📄 ischiefheredecisionhandler.java
字号:
package com.myrequest.decision;
import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.graph.node.DecisionHandler;
import com.myrequest.RequestVariable;
public class IsChiefHereDecisionHandler implements DecisionHandler {
public String decide(ExecutionContext executionContext) throws Exception {
/**
* 根据主管是否休假来判断走哪条边
* */
System.out.println("=====Decision=======IsChiefHereDecisionHandler.decide()==");
//主管在
if(((Boolean)executionContext.getContextInstance().
getVariable(RequestVariable.isChiefHere)).booleanValue())
return "Tr_Chief";
else
return "Tr_Boss";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -