Package org.imixs.workflow.bpmn
Class BPMNUtil
java.lang.Object
org.imixs.workflow.bpmn.BPMNUtil
The
BPMNUtil
provides convenient methods to access elements and
bpmn2:extension tags within a Open-BPMN Model
Example for a :
<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>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionfindAllImixsElements
(Element parent, String type) This helper method returns a set of all imixs:ELEMENTS for the given parent node.getItemValueList
(Element imixsItemElement) This helper method returns a value list of a given imixs extension element.static String
static String
static String
getVersion
(org.openbpmn.bpmn.BPMNModel model) This method resolves the imixs version of a model.static boolean
isImixsEventElement
(org.openbpmn.bpmn.elements.core.BPMNElementNode element) Returns true if the given BPMNElement is a Imixs Event element <bpmn2:intermediateCatchEvent id="CatchEvent_2" imixs:activityid="20" >static boolean
isImixsTaskElement
(org.openbpmn.bpmn.elements.core.BPMNElementNode element) Returns true if the given BPMNElement is a Imixs Task element <bpmn2:task id="Task_2" imixs:processid="1000" name="Task 1">static boolean
isInitEventNode
(org.openbpmn.bpmn.elements.core.BPMNElementNode eventNode) Returns true if the given node is a an ImixsEvent node with no incoming nodes or with one incoming node that comes from a Start event.static boolean
isLinkCatchEventElement
(org.openbpmn.bpmn.elements.core.BPMNElementNode element) Returns true if the given BPMNElement is a BPMN TROW_EVENT with a Link definitionstatic boolean
isParallelGatewayElement
(org.openbpmn.bpmn.elements.core.BPMNElementNode element) Returns true if the given BPMNElement is a BPMN ParallelGateway
-
Field Details
-
TASK_ITEM_NAME
- See Also:
-
TASK_ITEM_TASKID
- See Also:
-
TASK_ITEM_DOCUMENTATION
- See Also:
-
TASK_ITEM_WORKFLOW_SUMMARY
- See Also:
-
TASK_ITEM_WORKFLOW_ABSTRACT
- See Also:
-
TASK_ITEM_APPLICATION_EDITOR
- See Also:
-
TASK_ITEM_APPLICATION_ICON
- See Also:
-
TASK_ITEM_APPLICATION_TYPE
- See Also:
-
TASK_ITEM_ACL_OWNER_LIST
- See Also:
-
TASK_ITEM_ACL_OWNER_LIST_MAPPING
- See Also:
-
TASK_ITEM_ACL_READACCESS_LIST
- See Also:
-
TASK_ITEM_ACL_READACCESS_LIST_MAPPING
- See Also:
-
TASK_ITEM_ACL_WRITEACCESS_LIST
- See Also:
-
TASK_ITEM_ACL_WRITEACCESS_LIST_MAPPING
- See Also:
-
TASK_ITEM_ACL_UPDATE
- See Also:
-
EVENT_ITEM_NAME
- See Also:
-
EVENT_ITEM_EVENTID
- See Also:
-
EVENT_ITEM_DOCUMENTATION
- See Also:
-
EVENT_ITEM_ACL_OWNER_LIST
- See Also:
-
EVENT_ITEM_ACL_OWNER_LIST_MAPPING
- See Also:
-
EVENT_ITEM_ACL_READACCESS_LIST
- See Also:
-
EVENT_ITEM_ACL_READACCESS_LIST_MAPPING
- See Also:
-
EVENT_ITEM_ACL_WRITEACCESS_LIST
- See Also:
-
EVENT_ITEM_ACL_WRITEACCESS_LIST_MAPPING
- See Also:
-
EVENT_ITEM_ACL_UPDATE
- See Also:
-
EVENT_ITEM_WORKFLOW_RESULT
- See Also:
-
EVENT_ITEM_WORKFLOW_PUBLIC
- See Also:
-
EVENT_ITEM_WORKFLOW_PUBLIC_ACTORS
- See Also:
-
EVENT_ITEM_READACCESS
- See Also:
-
EVENT_ITEM_HISTORY_MESSAGE
- See Also:
-
EVENT_ITEM_MAIL_SUBJECT
- See Also:
-
EVENT_ITEM_MAIL_BODY
- See Also:
-
EVENT_ITEM_MAIL_TO_LIST
- See Also:
-
EVENT_ITEM_MAIL_TO_LIST_MAPPING
- See Also:
-
EVENT_ITEM_MAIL_CC_LIST
- See Also:
-
EVENT_ITEM_MAIL_CC_LIST_MAPPING
- See Also:
-
EVENT_ITEM_MAIL_BCC_LIST
- See Also:
-
EVENT_ITEM_MAIL_BCC_LIST_MAPPING
- See Also:
-
EVENT_ITEM_RULE_ENGINE
- See Also:
-
EVENT_ITEM_RULE_DEFINITION
- See Also:
-
EVENT_ITEM_REPORT_NAME
- See Also:
-
EVENT_ITEM_REPORT_PATH
- See Also:
-
EVENT_ITEM_REPORT_OPTIONS
- See Also:
-
EVENT_ITEM_REPORT_TARGET
- See Also:
-
EVENT_ITEM_VERSION_MODE
- See Also:
-
EVENT_ITEM_VERSION_EVENT
- See Also:
-
EVENT_ITEM_TIMER_ACTIVE
- See Also:
-
EVENT_ITEM_TIMER_SELECTION
- See Also:
-
EVENT_ITEM_TIMER_DELAY
- See Also:
-
EVENT_ITEM_TIMER_DELAY_UNIT
- See Also:
-
EVENT_ITEM_TIMER_DELAY_BASE
- See Also:
-
EVENT_ITEM_TIMER_DELAY_BASE_PROPERTY
- See Also:
-
-
Method Details
-
getNamespace
-
getNamespaceURI
-
getVersion
This method resolves the imixs version of a model.The method parses the version directly form the imixs:extension element from teh definitions node. Note: we can not call findDefinition here because of recursive call
- Parameters:
model
-- Returns:
-
getItemValueList
This helper method returns a value list of a given imixs extension element. If no values exists, than the method returns an empty List The method also avoids duplicates as this can of course not be handled by the react component.- Parameters:
itemName
- - name of the itemreferenceList
- - optional list of allowed values- Returns:
- the itemValue list.
-
findAllImixsElements
This helper method returns a set of all imixs:ELEMENTS for the given parent node. If no nodes were found, the method returns an empty list.The type can be either 'item' or 'value' Example:
<imixs:item name="user.name" type= "xs:string">John</imixs:item>
- Parameters:
parent
-nodeName
-- Returns:
- - list of nodes. If no nodes were found, the method returns an empty list
-
isImixsTaskElement
public static boolean isImixsTaskElement(org.openbpmn.bpmn.elements.core.BPMNElementNode element) Returns true if the given BPMNElement is a Imixs Task element <bpmn2:task id="Task_2" imixs:processid="1000" name="Task 1">- Returns:
-
isImixsEventElement
public static boolean isImixsEventElement(org.openbpmn.bpmn.elements.core.BPMNElementNode element) Returns true if the given BPMNElement is a Imixs Event element <bpmn2:intermediateCatchEvent id="CatchEvent_2" imixs:activityid="20" >- Returns:
-
isLinkCatchEventElement
public static boolean isLinkCatchEventElement(org.openbpmn.bpmn.elements.core.BPMNElementNode element) Returns true if the given BPMNElement is a BPMN TROW_EVENT with a Link definition<bpmn2:intermediateThrowEvent id="event_ounTaA" name="HOLD"> <bpmn2:linkEventDefinition id="linkEventDefinition_343OGA"/> .... </bpmn2:intermediateCatchEvent>
- Returns:
-
isParallelGatewayElement
public static boolean isParallelGatewayElement(org.openbpmn.bpmn.elements.core.BPMNElementNode element) Returns true if the given BPMNElement is a BPMN ParallelGateway- Returns:
-
isInitEventNode
public static boolean isInitEventNode(org.openbpmn.bpmn.elements.core.BPMNElementNode eventNode) Returns true if the given node is a an ImixsEvent node with no incoming nodes or with one incoming node that comes from a Start event.
-