Hi. I want that the three parts of the ChoreographyTask above can be selectable, because I want to create the corresponding XML element, to create an XML model like
<choreographyTask id="id-choreographyTask" initiatingParticipantRef="id-first-participant" loopType="None" name="name">
<incoming>id-incoming</incoming>
<outgoing>id-outgoing</outgoing>
<participantRef>id-first-participant</participantRef>
<participantRef>id-second-participant</participantRef>
<messageFlowRef>id-messageFlow</messageFlowRef>
</choreographyTask>
In bpmn.json there are all properties I need, but I don’t know how to give them a value from the model.
Thanks.
1 Like
nikku
December 13, 2017, 11:23am
2
Please share the specs / a test case for what exactly you’d like to achieve and we may be able to help you out.
I have extended the camunda modeler with choreography task, now I would like to automatically generate the corresponding XML file according to the BPMN standard. More specifically I am able to generate the following model.
The expected XML file is:
<choreography id="id-557d327b" isClosed="false">
<participant id="id-4193C385" name="Participant A"></participant>
<participant id="id-70BEB9BE" name="Participant B"></participant>
<messageFlow id="id-d77142e5" messageRef="id-bbe46bf2" sourceRef="id-70BEB9BE" targetRef="id-4193C385"/>
<messageFlow id="id-fff9ff20" messageRef="id-b1a0714f" sourceRef="id-4193C385" targetRef="id-70BEB9BE"/>
<startEvent id="id-DF8A6627" name="">
<outgoing>id-1BCB8968</outgoing>
</startEvent>
<choreographyTask id="id-88C49C4E" initiatingParticipantRef="id-70BEB9BE" loopType="None" name="Task 1">
<incoming>id-1BCB8968</incoming>
<outgoing>id-959EDD04</outgoing>
<participantRef>id-4193C385</participantRef>
<participantRef>id-70BEB9BE</participantRef>
<messageFlowRef>id-d77142e5</messageFlowRef>
<messageFlowRef>id-fff9ff20</messageFlowRef>
</choreographyTask>
<endEvent id="id-6D2D65E9" name="">
<incoming>id-959EDD04</incoming>
</endEvent>
<sequenceFlow id="id-1BCB8968" name="" sourceRef="id-DF8A6627" targetRef="id-88C49C4E"></sequenceFlow>
<sequenceFlow id="id-959EDD04" name="" sourceRef="id-88C49C4E" targetRef="id-6D2D65E9"></sequenceFlow>
</choreography>
Which are the files/functions involved that allow me to generate the XML file?