cancel
Showing results for 
Search instead for 
Did you mean: 

subprocess in a process

fchatzia
Champ in-the-making
Champ in-the-making
Hi,

I want to include an independent process i have created as a sub process in a new process is there any way to do this?
3 REPLIES 3

kafeitu
Champ on-the-rise
Champ on-the-rise
Hi,

I want to include an independent process i have created as a sub process in a new process is there any way to do this?

use call activity.

fchatzia
Champ in-the-making
Champ in-the-making
Thank you for the response


What exactly do you mean with "call activity"? To be more specific, i am asking, if there is the opportunity to define into the xml of a process that in that point activity engine is going to execute another deployed process.

eg
process 1, file1
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">

  <process id="process1" name="process1">
<subprocess id=something></subprocess>
  </process>


process2,file2
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test"
<process id="something" name="process2">
</process>

jbarrez
Star Contributor
Star Contributor
Yes, like said above that can be done using the call activity, or an embedded subprocess. See http://activiti.org/userguide/index.html#bpmnSubprocessAndCallActivity