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

📄 needbossdecidedecisionhandler.java

📁 这是在JAVA 环境用 JBPM 架构编写的一一套 请假流程实例
💻 JAVA
字号:
package com.myrequest.decision;


import org.jbpm.graph.exe.ExecutionContext;

import org.jbpm.graph.node.DecisionHandler;


import com.myrequest.*;


public class NeedBossDecideDecisionHandler implements DecisionHandler {


       public String decide(ExecutionContext executionContext) throws Exception {

              // TODO Auto-generated method stub
    	   System.out.println("=====Decision=======NeedBossDecideDecisionHandler.decide()==");
              int dayCount =((Integer)executionContext.getContextInstance().
            		  getVariable(RequestVariable.dayCount)).intValue();

              int dayLevel= 10;//是否需要boss批准的分界
              if(dayCount>=dayLevel)
              {

                     return "Tr_Need";
              }
              else
              {
                     return "Tr_NotNeed";
              }
       }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -