コード例 #1
0
 /**
  * Gets the succeeding exclusive gateway of the current task.
  *
  * @param taskId the ID of the current task
  * @param modelInstance the BPMN model instance
  * @return the succeeding exclusive gateway element
  */
 private ExclusiveGateway getExclusiveGateway(String taskId, BpmnModelInstance modelInstance) {
   UserTask userTask = (UserTask) modelInstance.getModelElementById(taskId);
   return (ExclusiveGateway) userTask.getSucceedingNodes().singleResult();
 }