public class BpmnSupport extends Object
Process and the test cases, defined as bpmndt
extension elements.| Modifier and Type | Method and Description |
|---|---|
org.camunda.bpm.model.bpmn.instance.FlowNode |
get(String flowNodeId) |
Path |
getFile() |
org.camunda.bpm.model.bpmn.instance.MultiInstanceLoopCharacteristics |
getMultiInstance(String flowNodeId)
Gets the multi instance loop characteristics from the flow node with the given ID.
|
String |
getParentElementId(String flowNodeId)
Returns the ID of the parent element, which can be the ID of the process, an embedded sub process
or a transaction.
|
String |
getProcessId() |
List<TestCase> |
getTestCases() |
String |
getTopicName(String flowNodeId) |
boolean |
has(String flowNodeId) |
protected boolean |
is(String flowNodeId,
String typeName) |
boolean |
isBoundaryEvent(String flowNodeId) |
boolean |
isCallActivity(String flowNodeId) |
boolean |
isEventBasedGateway(String flowNodeId) |
boolean |
isExternalTask(String flowNodeId) |
boolean |
isIntermediateCatchEvent(String flowNodeId) |
boolean |
isProcessEnd(String flowNodeId)
Determines if the flow node with the given ID ends the process or not.
|
boolean |
isReceiveTask(String flowNodeId) |
boolean |
isUserTask(String flowNodeId) |
static BpmnSupport |
of(Path bpmnFile) |
static String |
toJavaLiteral(String id)
Converts the given BPMN element ID into a Java literal, which can be used when generating source
code.
|
static String |
toLiteral(String id)
Converts the given BPMN element ID into a literal, which can be used when generating source code.
|
public static BpmnSupport of(Path bpmnFile)
public static String toJavaLiteral(String id)
id - The ID of a specific flow node or process.public static String toLiteral(String id)
id - The ID of a specific flow node or process.public org.camunda.bpm.model.bpmn.instance.FlowNode get(String flowNodeId)
public Path getFile()
public org.camunda.bpm.model.bpmn.instance.MultiInstanceLoopCharacteristics getMultiInstance(String flowNodeId)
flowNodeId - A specific flow node ID.null, if the flow node does not exist or does not have
such loop characteristics.public String getParentElementId(String flowNodeId)
flowNodeId - A specific flow node ID.null, if the flow node with the given ID does not exist,
has no parent element or the parent element is not of type BaseElement.public String getProcessId()
public boolean has(String flowNodeId)
public boolean isBoundaryEvent(String flowNodeId)
public boolean isCallActivity(String flowNodeId)
public boolean isEventBasedGateway(String flowNodeId)
public boolean isExternalTask(String flowNodeId)
public boolean isIntermediateCatchEvent(String flowNodeId)
public boolean isProcessEnd(String flowNodeId)
flowNodeId - A specific flow node ID.true, if the flow node ends the process. Otherwise false.public boolean isReceiveTask(String flowNodeId)
public boolean isUserTask(String flowNodeId)
Copyright © 2022 Camunda Services GmbH. All rights reserved.