public class BPMNScanner extends Object
| Constructor and Description |
|---|
BPMNScanner()
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 |
|---|---|
String |
getImplementation(String path,
String id)
Return the Implementation of an specific element (sendTask, ServiceTask or BusinessRuleTask)
|
int |
getOutgoing(String path,
String id)
Return number of outgoing
|
String |
getScriptType(String path,
String id)
Check if model has an scriptTag
|
String |
getXorGateWays(String path,
String id)
Return a list of used gateways for a given bpmn model
|
public BPMNScanner()
throws ParserConfigurationException
ParserConfigurationException - exception if document cant be parsedpublic String getImplementation(String path, String id) throws SAXException, IOException, ParserConfigurationException
path - path to modelid - id of bpmn elementSAXException - possible exception while process xmlIOException - possible exception if file not foundParserConfigurationException - possible exception if file could not be parsedpublic String getScriptType(String path, String id) throws SAXException, IOException
path - path to modelid - id of bpmn elementSAXException - possible exception while process xmlIOException - possible exception if file not foundpublic String getXorGateWays(String path, String id) throws SAXException, IOException, ParserConfigurationException
path - path to modelid - id of bpmn elementSAXException - possible exception while process xmlIOException - possible exception if file not foundParserConfigurationException - possible exception if file could not be parsedpublic int getOutgoing(String path, String id) throws SAXException, IOException, ParserConfigurationException
path - path to modelid - id of bpmn elementSAXException - possible exception while process xmlIOException - possible exception if file not foundParserConfigurationException - possible exception if file could not be parsedCopyright © 2017 viadee Unternehmensberatung GmbH. All rights reserved.