The Imixs BPMNDefaultHandler is used to extract the Imixs Task and Event
Elements of a Imixs BPMN model.
A BPMN file can either be a simple diagram with one process or a
collaboration diagram with a bpmn2:collaboration definition. For
collaboration diagrams the currentWorkflowGroup is read from the
bpmn2:collaboration element. For a simple BPMN diagram type the
currentWorkflowGroup is read from the bpmn2:process element.
#issue 113: The parser connects pairs of catch and throw link events with a
virtual SequenceFlow to support the same behavior as if the link events were
This method builds the model from the information parsed by the handler.
First all task elements were adds as unique process entities into the model.
In the second step the method adds the Activity elements to the assigned
Task. We look also for activities with no incoming SequenceFlow.
The builder verifies the ProcessIDs for each task element to guaranty that
the numProcessID is unique
The build connects pairs of Catch and Throw LinkEvents with a virtual
SequenceFlow to support the same behavior as if those elements where
connected directly in the model.
The method tests the model for bpmn2:message elements and replace links in
Activity elements attribute 'rtfMailBody'