How to import Activiti process definition as sub-process into master process?

StackOverflow https://stackoverflow.com/questions/21520773

  •  06-10-2022
  •  | 
  •  

문제

We have created separate process definitions for review, approval and activate workflows (For eg: review.bpmn, approval.bpmn, activate.bpmn). I am creating a master process definition(master.bpmn) and want to import these three processes as sub-processes using Eclipse Activiti Designer.

How can I import them?

도움이 되었습니까?

해결책

With "importing" the three process definitions you mean instantiating them in the course of executing the parent process?

-> In this case, in Activiti Designer Palette look for the "Call Activity" and move it into your parent process. When selected, in the tab "properties" of the call activity you will find an attribute "Called Element": This is the id of the separate process definition you want to call when your parent process runs into the Call Activity. In the Activiti User Guide you will find that here, including a visual example and an example of the underlying XML representation: http://www.activiti.org/userguide/index.html#bpmnCallActivity

Or did you mean with "importing" that you want to physically move your predefined process definiton elements into the parent process?

-> In this case, you can make of Activiti sub processes (http://www.activiti.org/userguide/index.html#bpmnSubProcess) and directly embed the elements you used in your three pre-defined sub processes within an embedded sub process element. However, I am not aware of an Activiti Designer feature which would support a direct "import" of such elements into the process definition of your master.bpmn.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top