cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the next node

zhengke
Champ in-the-making
Champ in-the-making
when the process is started,and the leader get the task
when the leader agree and click the complete button, i want he can select the next performer
so i must to get the next node's activiti:candidateGroups,but the next node is exclusiveGateway, how can i get it


<process id="leave" name="my leave">
    <startEvent id="startevent1" name="starta" activiti:initiator="applyId"></startEvent>
    <userTask id="usertask1" name="leader" activiti:candidateGroups="manager"></userTask>
    <exclusiveGateway id="exclusivegateway1" name="leadergateway"></exclusiveGateway>
    <userTask id="usertask2" name="hr" activiti:candidateGroups="hrmanager"></userTask>
    <exclusiveGateway id="exclusivegateway2" name="hrgateway"></exclusiveGateway>
    <userTask id="usertask3" name="reset" activiti:assignee="${applyId}"></userTask>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow2" name="" sourceRef="usertask1" targetRef="exclusivegateway1"></sequenceFlow>
    <sequenceFlow id="flow3" name="yes" sourceRef="exclusivegateway1" targetRef="usertask2">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${okFlg}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow4" name="no" sourceRef="exclusivegateway1" targetRef="usertask3">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!okFlg}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow6" name="" sourceRef="usertask2" targetRef="exclusivegateway2"></sequenceFlow>
    <sequenceFlow id="flow9" name="yes" sourceRef="exclusivegateway2" targetRef="endevent1"></sequenceFlow>
    <sequenceFlow id="flow8" name="no" sourceRef="exclusivegateway2" targetRef="usertask3"></sequenceFlow>
    <sequenceFlow id="flow5" name="" sourceRef="usertask3" targetRef="usertask1"></sequenceFlow>
    <sequenceFlow id="flow10" name="" sourceRef="startevent1" targetRef="usertask1"></sequenceFlow>
  </process>
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
I tried really hard, and I think I get your question 😉

So basically you want to 'look ahead' … that's not possible in BPMN, unless you put it in the XML and fetch the xml yourself.