public interface TestCaseActivity
TestCase.| Modifier and Type | Method and Description |
|---|---|
String |
getEventCode()
Returns the code of the related error or escalation event.
|
String |
getEventName()
Returns the name of the related message or signal event.
|
org.camunda.bpm.model.bpmn.instance.FlowNode |
getFlowNode()
Gets the underlying flow node.
|
<T extends org.camunda.bpm.model.bpmn.instance.FlowNode> |
getFlowNode(Class<T> flowNodeType)
Gets the underlying flow node of the given type.
|
String |
getId()
Returns the ID of the underlying flow node.
|
String |
getName()
Returns the name of the underlying flow node.
|
int |
getNestingLevel()
Determines how deep the activity is nested within the BPMN process.
|
TestCaseActivity |
getNext()
Returns the next test activity, if this is not the last activity.
|
TestCaseActivityScope |
getParent()
Return the parent scope, if the underlying flow node is not a direct child of the BPMN process
element.
|
TestCaseActivity |
getPrevious()
Returns the previous test activity, if this is not the first activity.
|
String |
getTopicName()
Gets the topic name of an external task activity.
|
TestCaseActivityType |
getType()
Returns the type or
TestCaseActivityType.OTHER, if there is no explicit type. |
String |
getTypeName()
Returns the name of the flow node element type.
|
boolean |
hasMultiInstanceParent()
Determines if the activity has a parent and the parent is a multi instance.
|
boolean |
hasNext()
Determins if the activity has a successor.
|
boolean |
hasParent()
Determines if the activity has a parent or if it is a direct child of the BPMN process element.
|
boolean |
hasPrevious()
Determins if the activity has a predecessor.
|
boolean |
hasPrevious(TestCaseActivityType type)
Checks if the activity has a predecessor and the predecessor's type is the given type.
|
boolean |
isAsyncAfter()
Returns
true, if an asynchronous continuation after the activity is specified. |
boolean |
isAsyncBefore()
Returns
true, if an asynchronous continuation before the activity is specified. |
boolean |
isAttachedTo(TestCaseActivity activity)
Checks if the activity is a boundary event, that is attached to the given activity.
|
boolean |
isMultiInstance()
Determines if the activity is a multi instance.
|
boolean |
isMultiInstanceParallel()
Determines if the activity is a parallel multi instance.
|
boolean |
isMultiInstanceSequential()
Determines if the activity is a sequential multi instance.
|
boolean |
isProcessEnd()
Returns
true, if the activity is a start activity of the process. |
boolean |
isProcessStart()
Returns
true, if the activity is an end activity of the process. |
String getEventCode()
null, if the activity is not an error or escalation event or
the code is not specified.String getEventName()
null, if the test activity is not related to an message or
signal event.org.camunda.bpm.model.bpmn.instance.FlowNode getFlowNode()
<T extends org.camunda.bpm.model.bpmn.instance.FlowNode> T getFlowNode(Class<T> flowNodeType)
T - A flow node type - e.g. IntermediateCatchEvent.flowNodeType - A specific flow node type.String getId()
String getName()
int getNestingLevel()
0, means that
the activity is not nested in a scope (embedded sub process).TestCaseActivity getNext()
IllegalStateException - If the activity has no successors.hasNext()TestCaseActivityScope getParent()
IllegalStateException - If the activity has no parent.hasParent()TestCaseActivity getPrevious()
IllegalStateException - If the activity has no predecessor.hasPrevious()String getTopicName()
null, if the activity is not an external task or the topic name
is not specified.TestCaseActivityType getType()
TestCaseActivityType.OTHER, if there is no explicit type.String getTypeName()
boolean hasMultiInstanceParent()
true, if the activity has a multi instance parent scope. Otherwise false.hasParent()boolean hasNext()
true, if the activity has a successor. Otherwise false.boolean hasParent()
true, if the activity has a parent scope. Otherwise false.boolean hasPrevious()
true, if the activity has a predecessor. Otherwise false.boolean hasPrevious(TestCaseActivityType type)
type - A specific test activity type.true, if a previous activity with the given type exists. Otherwise false.boolean isAsyncAfter()
true, if an asynchronous continuation after the activity is specified.true, if the activity is asynchronous after. Otherwise false.boolean isAsyncBefore()
true, if an asynchronous continuation before the activity is specified.true, if the activity is asynchronous before. Otherwise false.boolean isAttachedTo(TestCaseActivity activity)
activity - A specific activity.true, if the activity is attached to the given activity. Otherwise false.boolean isMultiInstance()
true, if the activity is a multi instance. Otherwise false.boolean isMultiInstanceParallel()
true, if the activity is a parallel multi instance. Otherwise false.IllegalStateException - If the activity is not a multi instance.boolean isMultiInstanceSequential()
true, if the activity is a sequential multi instance. Otherwise false.IllegalStateException - If the activity is not a multi instance.boolean isProcessEnd()
true, if the activity is a start activity of the process.true, if the activity starts the process. Otherwise false.boolean isProcessStart()
true, if the activity is an end activity of the process.true, if the activity ends the process. Otherwise false.Copyright © 2023 Camunda. All rights reserved.