?? demanddecision.java.svn-base
字號:
package com.chinacars.oss.data.appform.workflow.decision;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.graph.node.DecisionHandler;
import com.chinacars.oss.data.appform.domain.Task;
public class DemandDecision implements DecisionHandler {
private static final long serialVersionUID = 1L;
public String decide(ExecutionContext arg0) throws Exception {
String forward = "正常";
//獲取業務表單信息
Task task = (Task)arg0.getContextInstance().getTransientVariable("BUSINESS_TASK");
String demand = task.getDemand();
if (demand.indexOf("YZBM")>=0 || demand.indexOf("LXDZ")>=0) {
forward = "超量";
}
String demandNumber = task.getDemandnum(); //請求的數據記錄數
if (demandNumber!=null) {
if (10000 < Integer.parseInt(demandNumber)) {
forward = "超量";
}
}
return forward;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -