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
|
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) |
Map<String,String> |
getKeyPairs(String id) |
ArrayList<String> |
getListener(String id,
String listType,
String extType) |
String |
getMessageName(String messageRef)
Retrieve the message name of a given receiveTask
|
int |
getOutgoing(String id)
Return number of outgoing
|
ArrayList<Node> |
getOutgoingEdges(String id)
check xor gateways for outgoing edges
|
ArrayList<String> |
getOutputVariables(String id)
get List of output variables
|
ArrayList<String> |
getScriptTypes(String id)
Check if model has an scriptTag
|
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) throws ParserConfigurationException, SAXException, IOException
path - path to modelParserConfigurationException - exception if document cant be parsedIOException - Signals that an I/O exception of some sort has occurredSAXException - Encapsulate a general SAX error or warning.public 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 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<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 String getMessageName(String messageRef)
messageRef - id of messagepublic ArrayList<String> getOutputVariables(String id)
id - id of the elementpublic 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 boundaryErrorEventCopyright © 2017 viadee Unternehmensberatung GmbH. All rights reserved.