cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with parallel flows

kpagratis
Champ in-the-making
Champ in-the-making
I have a workflow that branches into 3 parallel sub processes.  Each subprocess has a start and end node with some user tasks in between.  This flow was working just fine with 5.0.  Now that I've upgraded to 5.2 I can't even deploy the flow. 
I'm getting the following errors
org.activiti.engine.ActivitiException: cvc-id.1: There is no ID/IDREF binding for IDREF 'subprocess11_endevent10'. | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 110 | column 15
Invalid source 'subprocess11_startevent10' of sequence flow 'subprocess11_flow95' | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 25 | column 128
Invalid destination 'subprocess11_endevent10' of sequence flow 'subprocess11_flow96' | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 27 | column 126
Invalid source 'subprocess12_startevent11' of sequence flow 'subprocess12_flow97' | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 45 | column 128
Invalid destination 'subprocess12_endevent11' of sequence flow 'subprocess12_flow98' | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 47 | column 126

Any help would be appreciated.  Thanks
5 REPLIES 5

trademak
Star Contributor
Star Contributor
Hi,

Are you using the Activiti Designer?
Did you use the exact same XML for version 5.0 and 5.2?
Or did you generate the XML again from the Designer?

Best regards,

kpagratis
Champ in-the-making
Champ in-the-making
I am using the designer, and and used both 5.0 xml and newly generated xml.
I submitted a JIRA issue.  Here's the text:
When creating sub processes, the start and end event id's are incorrect. Here is the generated BPMN2.0 code:
<subProcess id="subprocess1" name="Print Design">
<startEvent id="startevent2" name="Start"></startEvent>
<endEvent id="endevent2" name="End"></endEvent>

Sequence flows within the subprocess use the ids <subProcessid>_<start|end event id>
ex:
<sequenceFlow id="subprocess1_flow16" name="" sourceRef="subprocess1_startevent2" targetRef="subprocess1_usertask2"></sequenceFlow>
and
<sequenceFlow id="subprocess1_flow23" name="" sourceRef="subprocess1_usertask5" targetRef="subprocess1_endevent2"></sequenceFlow>

This causes deployment problems.

Invalid source 'subprocess1_startevent2' of sequence flow 'subprocess1_flow16' | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 14 | column 123
Invalid destination 'subprocess1_endevent2' of sequence flow 'subprocess1_flow23' | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 25 | column 121

tombaeyens
Champ in-the-making
Champ in-the-making

<subProcess id="subprocess1" name="Print Design">
<startEvent id="startevent2" name="Start"></startEvent>
<endEvent id="endevent2" name="End"></endEvent>

<sequenceFlow id="subprocess1_flow16" name="" sourceRef="subprocess1_startevent2" targetRef="subprocess1_usertask2"></sequenceFlow>
<sequenceFlow id="subprocess1_flow23" name="" sourceRef="subprocess1_usertask5" targetRef="subprocess1_endevent2"></sequenceFlow>

This causes deployment problems.
Invalid source 'subprocess1_startevent2' of sequence flow 'subprocess1_flow16' | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 14 | column 123
Invalid destination 'subprocess1_endevent2' of sequence flow 'subprocess1_flow23' | diagrams/FutureStateWorkflow.activiti.bpmn20.xml | line 25 | column 121

those errors look like genuine errors to me.  activity "subprocess1_startevent2" doesn't exist.  i think it should be "startevent2". 
activity ids must be globally unique (in the scope of the process) and therefor, you should not refer to them by prefixing the subProcess id's

trademak
Star Contributor
Star Contributor
Hi,

This was I think a bug in the designer, but it should work in 0.7.0.
Are you using version 0.7.0 of the designer?

Best regards,

kpagratis
Champ in-the-making
Champ in-the-making
Yes this is with 0.7.0