Is there any way to define targetRef/sourceRef/id of bpmn2 flows as variables.
eg. something like this
<sequenceFlow id ="flow1" sourceRef = ${placeholderVariable1}, targetRef = ${placeholderVariable2}>
So that , when the process excutes, it dynamicall have sequence flow based on the variable value (id of defined service task in xml file)being set in code.