⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ischiefheredecisionhandler.java

📁 这是在JAVA 环境用 JBPM 架构编写的一一套 请假流程实例
💻 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 + -