cancel
Showing results for 
Search instead for 
Did you mean: 

insert task at export mashaller

christianelmer
Champ in-the-making
Champ in-the-making
Hello,

can I insert a Receive Task in a diagram by means of my own Export Marshaller which extends the BPMN20ExportMarshaller? The additional task, inclusive the new and changed flows, only has to be in the resulted bpmn20.xml file. The task should not be visible in the activiti diagram.

Hopefully you can give me a hint to do this.

Greetings,
Christian
1 REPLY 1

tiesebarrell
Champ in-the-making
Champ in-the-making
Christian,

yes, you can produce any XML (or anything else actually) you need in an ExportMarshaller. The trick would be to override the private void createXML(EObject object) method and implement the hook to produce the additional task at the correct point or to do it from one of the export classes that gets invoked. The task itself will probably not be that hard, it's the rewiring that will require some concentration, since the transitions are marshalled separately, so you you need to jump in at all the correct moments.