public class BpmnScanner extends Object
| Constructor and Description |
|---|
BpmnScanner(String path)
The Camunda API's method "getImplementation" doesn't return the correct
Implementation, so the we have to scan the xml of the model for the
implementation
|
| Modifier and Type | Method and Description |
|---|---|
Node |
checkNamingOfEdges(String id)
check xor gateways for outgoing edges
|
boolean |
checkStartEvent(String id)
Retrieve startevents to check whether any parent node is a subprocess
|
String |
getErrorCodeVar(String id)
get errorCodeVariable
|
Map<String,String> |
getErrorDef(String id)
get errorDefinition
|
Map<String,String> |
getErrorEvent(String id)
get errorEventDefinition
|
String |
getErrorEventMapping(String id) |
String |
getEventImplementation(String id)
Return the Implementation of an specific element (endEvent and/or
intermediateThrowEvent)
|
ArrayList<String> |
getFieldInjectionExpression(String id)
get value of expression
|
ArrayList<String> |
getFieldInjectionVarName(String id)
get names of variable in fieldInjection
|
String |
getImplementation(String id)
Return the Implementation of an specific element (sendTask, ServiceTask or
BusinessRuleTask)
|
String |
getImplementationReference(String id,
String implementation) |
HashMap<String,Map<String,String>> |
getInputMapping(String id)
get mapping of inputParameters
|
Map<String,String> |
getKeyPairs(String id) |
ArrayList<String> |
getLinkRefs(String id) |
ArrayList<String> |
getListener(String id,
String listType,
String extType) |
org.apache.commons.collections4.map.LinkedMap<String,String> |
getMappingType(String id,
String mapping)
get mapping type for input/output parameters for given element by id
|
String |
getMessageName(String messageRef)
Retrieve the message name
|
ArrayList<String> |
getMessageRefs(String id) |
int |
getOutgoing(String id)
Return number of outgoing
|
ArrayList<Node> |
getOutgoingEdges(String id)
check xor gateways for outgoing edges
|
HashMap<String,Map<String,String>> |
getOutputMapping(String id)
get mapping of outputParameters
|
ArrayList<String> |
getScriptTypes(String id)
Check if model has an scriptTag
|
ArrayList<String> |
getSequenceFlowDef(String id)
get sequenceFlow attributes such as sourceRef and targetRef
|
String |
getSignalName(String signalRef)
Retrieve the signal name
|
ArrayList<String> |
getSignalRefs(String id) |
Map<Element,Element> |
getTimerImplementation(String id)
get ids and timer definition for all timer event types
|
String |
getXorGateWays(String id)
Return a list of used gateways for a given bpmn model
|
boolean |
hasScriptInCondExp(String id)
Checks for scripts in conditional expressions
|
public BpmnScanner(String path)
path - path to modelpublic String getImplementation(String id)
id - id of bpmn elementpublic String getImplementationReference(String id, String implementation)
id - id of bpmnElementimplementation - DelegateExpression/Java Classpublic String getEventImplementation(String id)
id - id of bpmn elementpublic ArrayList<String> getListener(String id, String listType, String extType)
id - id of bpmn elementlistType - Type of AttributeextType - Type of Listenerpublic ArrayList<String> getScriptTypes(String id)
id - id of bpmn elementpublic boolean checkStartEvent(String id)
id - id of element to checkpublic boolean hasScriptInCondExp(String id)
id - id of the elementpublic String getXorGateWays(String id)
id - id of bpmn elementpublic int getOutgoing(String id)
id - id of bpmn elementpublic ArrayList<String> getSequenceFlowDef(String id)
id - id of bpmn elementpublic ArrayList<Node> getOutgoingEdges(String id)
id - id of bpmn elementpublic Node checkNamingOfEdges(String id)
id - id of edgepublic Map<Element,Element> getTimerImplementation(String id)
id - id of bpmn elementpublic org.apache.commons.collections4.map.LinkedMap<String,String> getMappingType(String id, String mapping)
id - id of current elementmapping - input or output mappingpublic HashMap<String,Map<String,String>> getInputMapping(String id)
id - element idpublic HashMap<String,Map<String,String>> getOutputMapping(String id)
id - element idpublic ArrayList<String> getFieldInjectionExpression(String id)
id - id from elementpublic ArrayList<String> getFieldInjectionVarName(String id)
id - id from elementpublic Map<String,String> getErrorEvent(String id)
id - id from elementpublic Map<String,String> getErrorDef(String id)
id - id from elementpublic String getErrorCodeVar(String id)
id - id from elementpublic String getErrorEventMapping(String id)
id - id of boundaryErrorEventpublic Map<String,String> getKeyPairs(String id)
id - id of bpmn elementpublic String getMessageName(String messageRef)
messageRef - id of messageCopyright © 2019 viadee Unternehmensberatung AG. All rights reserved.