Interface TestCaseActivityScope
public interface TestCaseActivityScope
Scope (embedded sub process) of one or more test case activities.
-
Method Summary
Modifier and TypeMethodDescriptionGets the scope's activities.org.camunda.bpm.model.bpmn.instance.FlowNodeGets the underlying flow node.<T extends org.camunda.bpm.model.bpmn.instance.SubProcess>
TgetFlowNode(Class<T> subProcessType) Gets the underlying flow node of the given sub process type.getId()Returns the ID of the underlying flow node.getName()Returns the name of the underlying flow node.intDetermines how deep the scope is nested within the BPMN process.Return the parent scope, if the scope is not a direct child of the related BPMN process element.Returns the name of the flow node element type.booleanDetermines if the scope has a parent or if it is a direct child of the BPMN process element.booleanDetermines if the scope is a multi instance.booleanDetermines if the scope is a parallel multi instance.booleanDetermines if the scope is a sequential multi instance.
-
Method Details
-
getActivities
List<TestCaseActivity> getActivities()Gets the scope's activities.- Returns:
- A list of activities that have the scope as parent.
-
getFlowNode
org.camunda.bpm.model.bpmn.instance.FlowNode getFlowNode()Gets the underlying flow node.- Returns:
- The scope's flow node.
-
getFlowNode
Gets the underlying flow node of the given sub process type.- Type Parameters:
T- A sub process type.- Parameters:
subProcessType- A specific sub process type.- Returns:
- The typed flow node.
-
getId
String getId()Returns the ID of the underlying flow node.- Returns:
- The scope ID.
-
getName
String getName()Returns the name of the underlying flow node.- Returns:
- The scope name.
-
getNestingLevel
int getNestingLevel()Determines how deep the scope is nested within the BPMN process. Level0, means that the scope is not nested in another scope (embedded sub process).- Returns:
- The scope's nesting level.
-
getParent
TestCaseActivityScope getParent()Return the parent scope, if the scope is not a direct child of the related BPMN process element.- Returns:
- The parent test case activity scope.
- Throws:
IllegalStateException- If the scope has no parent.- See Also:
-
getTypeName
String getTypeName()Returns the name of the flow node element type.- Returns:
- The type name.
-
hasParent
boolean hasParent()Determines if the scope has a parent or if it is a direct child of the BPMN process element.- Returns:
true, if the scope has a parent scope. Otherwisefalse.
-
isMultiInstance
boolean isMultiInstance()Determines if the scope is a multi instance.- Returns:
true, if the scope is a multi instance. Otherwisefalse.
-
isMultiInstanceParallel
boolean isMultiInstanceParallel()Determines if the scope is a parallel multi instance.- Returns:
true, if the scope is a parallel multi instance. Otherwisefalse.- Throws:
IllegalStateException- If the scope is not a multi instance.
-
isMultiInstanceSequential
boolean isMultiInstanceSequential()Determines if the scope is a sequential multi instance.- Returns:
true, if the scope is a sequential multi instance. Otherwisefalse.- Throws:
IllegalStateException- If the scope is not a multi instance.
-