Package org.imixs.workflow.bpmn
Class BPMNEntityBuilder
java.lang.Object
org.imixs.workflow.bpmn.BPMNEntityBuilder
This
BPMNEntityBuilder
provides methods to convert a
BPMNElementNode
into a ItemCollection
. The corresponding
ItemCollection
contains all Imixs Extension Elements as also the
items 'id' and 'type'.
Through the item 'id' it is possible to access the BPMN element directly from
an ItemCollection
by the BPMN element id which should be unique. In
addition,
the item "type" is set to 'TASK' or 'EVENT', which reflects the
type of an element.
Example:
<bpmn2:task id="Task_2" imixs:processid="1900" name="Approve">
<bpmn2:extensionElements>
<imixs:item name="user.name" type="xs:string">John</imixs:item>
....
</bpmn2:extensionElements>
...
</bpmn2:task>
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemCollection
build
(org.openbpmn.bpmn.elements.core.BPMNElementNode bpmnElement) This method converts a Imixs BPMNElement into an ItemCollection All imixs Extension values will be added as items.protected static void
resolveMessageTags
(org.openbpmn.bpmn.elements.core.BPMNElementNode elementNode, ItemCollection entity) This method resolves message tags for an event element.
-
Method Details
-
build
This method converts a Imixs BPMNElement into an ItemCollection All imixs Extension values will be added as items. Example:<bpmn2:extensionElements> <imixs:item name="txttype" type="xs:string"> <imixs:value><![CDATA[workitemarchive]]></imixs:value> </imixs:item> ....
- Parameters:
bpmnElement
-- Returns:
-
resolveMessageTags
protected static void resolveMessageTags(org.openbpmn.bpmn.elements.core.BPMNElementNode elementNode, ItemCollection entity) This method resolves message tags for an event element. The method pares for the text fragment <bpmn2:message>...</bpmn2:message> and replaces the tag with the corresponding message if available- Parameters:
elementNode
- - the bpmn event elemententity
- - the ItemCollection of the event
-