Home > other >  Activiti is how to determine the next node of the current node gateway nodes?
Activiti is how to determine the next node of the current node gateway nodes?

Time:11-27




1, Activiti is how to determine the next node of the current node gateway nodes?

2, how to take the gateway node node ID?

A great god, please help solve

CodePudding user response:


Access to the activiti node object of the current node
BpmProcessDef pd=pdManager. GetProcessDef (processDefinitionId);
//process definition
ProcessDefinitionEntity processDefinition=getProcessDefinitionEntity (pd) getActProcDefId ());
//according to node ID, obtain the corresponding active node
ActivityImpl ActivityImpl=((ProcessDefinitionImpl) processDefinition)
FindActivity (activityId);
List PvmTransitions=activityImpl. GetOutgoingTransitions ();//remove all nodes out of the line
For (PvmTransition PvmTransition: pvmTransitions) {
ActivityImpl pvmActivityImpl=(ActivityImpl) pvmTransition. GetDestination ();//pick up line target node
PvmActivityImpl. GetId ();//get the node ID again through the node ID for the node object
}

CodePudding user response:

How to obtain ActivityImpl ActivityImpl=((ProcessDefinitionImpl) processDefinition.) findActivity (activityId); The activityId?
  • Related