cancel
Showing results for 
Search instead for 
Did you mean: 

End all subprocesses at end of process

thomasplanchon
Champ in-the-making
Champ in-the-making
Hi,

I would like to design a process with 2 parallel subprocesses and kill subprocess #1 when subprocess #2 ended.

Which element can I use to do that (cancelling of subprocess #1 when subprocess #2 ended) ?


  <process id="TicketWorkflowV2" name="Ticket Workflow V2" isExecutable="true">
    <startEvent id="startevent2" name="Start"></startEvent>
    <parallelGateway id="parallelgateway1" name="Parallel Gateway"></parallelGateway>
    <sequenceFlow id="flow71" sourceRef="parallelgateway1" targetRef="subprocess3"></sequenceFlow>
    <subProcess id="subprocess4" name="SubProcess2"></subProcess>
    <subProcess id="subprocess3" name="SubProcess1"></subProcess>
    <sequenceFlow id="flow72" sourceRef="parallelgateway1" targetRef="subprocess4"></sequenceFlow>
    <sequenceFlow id="flow75" sourceRef="startevent2" targetRef="parallelgateway1"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow76" sourceRef="subprocess4" targetRef="endevent1"></sequenceFlow>
  </process>
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Thomas
use terminate end event (example org.activiti.engine.test.bpmn.event.end.TerminateEndEventTest in activiti source)

Regards
Martin

Thank you Martin for your suitable response !

Regards

Thomas