如何判断下一步或者下几步可行路径?

tianyazi 2012-03-06
分支节点信息如下:
<decision expr="#{day > 3 ? '老板审批' : '结束'}" g="200,308,48,48" name="exclusive1">
      <transition g="-39,-10" name="结束" to="end1"/>
      <transition g="339,342:-71,-17" name="老板审批" to="老板审批"/>
   </decision>

如果在初始化如下:
ProcessEngine processEngine = Configuration.getProcessEngine();
ExecutionService executionService = processEngine
.getExecutionService();
Map map = new HashMap();
map.put("day", 5);

executionService.startProcessInstanceById(request
.getParameter("id"), map);

我想在发起流程后,或者在到达流程节点 exclusive1 之前,就可以判断出,流程在审批的过程中,根据参数 map.put("day", 5); 要走那条路径?

多谢各位。急等?
tianyazi 2012-03-06
在3中有 : activity.getLeavingTransitions();
这个方法,可以拿到下一步 的正确路?

不知道4.4 中,有什么办法可以实现相似的效果?


tianyazi 2012-03-19
有如下代码: 
List listadd = new ArrayList();  
            List list = clerkOpinionActivityImpl.getActivities() ;
            System.out.println("list all activitys = " + list );
           
            List list2 = clerkOpinionActivityImpl.getOutgoingTransitions() ;
            Transition tran = null ;
            for(Object obj  : list2)
            {
            tran = (Transition) obj ;
           
            System.out.println("Transition Name = " + tran.getName() );
            System.out.println("Next Node Name = " + tran.getDestination().getName());
            Activity act = tran.getDestination() ;
            System.out.println("actity type is = " + act.getType());
           
            if("decision".equals(act.getType()))
            {
            DecisionConditionActivity d  = (DecisionConditionActivity)act;
            System.out.println();
            DecisionExpressionActivity dea = (DecisionExpressionActivity)act;
            ExpressionDescriptor ea;
            ActivityExecution aex = null ;
            System.out.println("decision info is = " + act);
            }
            }
Global site tag (gtag.js) - Google Analytics