Package org.activiti.bpmn.model
Class TerminateEventDefinition
- java.lang.Object
-
- org.activiti.bpmn.model.BaseElement
-
- org.activiti.bpmn.model.EventDefinition
-
- org.activiti.bpmn.model.TerminateEventDefinition
-
- All Implemented Interfaces:
HasExtensionAttributes
public class TerminateEventDefinition extends EventDefinition
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
terminateAll
When true, this event will terminate all parent process instances (in the case of using call activity), thus ending the whole process instance.protected boolean
terminateMultiInstance
When true (and used within a multi instance), this event will terminate all multi instance instances of the embedded subprocess/call activity this event is used in.-
Fields inherited from class org.activiti.bpmn.model.BaseElement
attributes, extensionElements, id, xmlColumnNumber, xmlRowNumber
-
-
Constructor Summary
Constructors Constructor Description TerminateEventDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminateEventDefinition
clone()
boolean
isTerminateAll()
boolean
isTerminateMultiInstance()
void
setTerminateAll(boolean terminateAll)
void
setTerminateMultiInstance(boolean terminateMultiInstance)
void
setValues(TerminateEventDefinition otherDefinition)
-
Methods inherited from class org.activiti.bpmn.model.BaseElement
addAttribute, addExtensionElement, getAttributes, getAttributeValue, getExtensionElements, getId, getXmlColumnNumber, getXmlRowNumber, setAttributes, setExtensionElements, setId, setValues, setXmlColumnNumber, setXmlRowNumber
-
-
-
-
Field Detail
-
terminateAll
protected boolean terminateAll
When true, this event will terminate all parent process instances (in the case of using call activity), thus ending the whole process instance. By default false (BPMN spec compliant): the parent scope is terminated (subprocess: embedded or call activity)
-
terminateMultiInstance
protected boolean terminateMultiInstance
When true (and used within a multi instance), this event will terminate all multi instance instances of the embedded subprocess/call activity this event is used in. In case of nested multi instance, only the first parent multi instance structure will be destroyed. In case of 'true' and not being in a multi instance construction: executes the default behavior. Note: if terminate all is set to true, this will have precedence over this.
-
-
Method Detail
-
clone
public TerminateEventDefinition clone()
- Specified by:
clone
in classEventDefinition
-
setValues
public void setValues(TerminateEventDefinition otherDefinition)
-
isTerminateAll
public boolean isTerminateAll()
-
setTerminateAll
public void setTerminateAll(boolean terminateAll)
-
isTerminateMultiInstance
public boolean isTerminateMultiInstance()
-
setTerminateMultiInstance
public void setTerminateMultiInstance(boolean terminateMultiInstance)
-
-