Package org.flowable.engine.delegate
Interface ReadOnlyDelegateExecution
- All Superinterfaces:
org.flowable.common.engine.api.variable.VariableContainer
public interface ReadOnlyDelegateExecution
extends org.flowable.common.engine.api.variable.VariableContainer
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionGets the id of the current activity.org.flowable.bpmn.model.FlowElement
The BPMN element where the execution currently is at.Will contain the event name in case this execution is passed in for anExecutionListener
.getId()
Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states.Gets the id of the parent of this execution.The process definition key for the process instance this execution is associated with.The business key for the process instance this execution is associated with.The business status for the process instance this execution is associated with.Reference to the overall process instanceIf this execution runs in the context of a case and stage, this method returns it's closest parent stage instance id (the stage plan item instance id to be precise).The 'root' process instance.Gets the id of the calling execution.boolean
isActive()
returns whether this execution is currently active.boolean
returns whether this execution is concurrent or not.boolean
isEnded()
returns whether this execution has ended or not.boolean
Returns whether this execution is the root of a multi instance execution.boolean
returns whether this execution is a process instance or not.boolean
isScope()
Returns whether this execution is a scope.default void
setTransientVariable
(String variableName, Object variableValue) default void
setVariable
(String variableName, Object variableValue) Methods inherited from interface org.flowable.common.engine.api.variable.VariableContainer
getTenantId, getVariable, hasVariable
-
Method Details
-
getId
String getId()Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states. -
getProcessInstanceId
String getProcessInstanceId()Reference to the overall process instance -
getRootProcessInstanceId
String getRootProcessInstanceId()The 'root' process instance. When using call activity for example, the processInstance set will not always be the root. This method returns the topmost process instance. -
getEventName
String getEventName()Will contain the event name in case this execution is passed in for anExecutionListener
. -
getProcessInstanceBusinessKey
String getProcessInstanceBusinessKey()The business key for the process instance this execution is associated with. -
getProcessInstanceBusinessStatus
String getProcessInstanceBusinessStatus()The business status for the process instance this execution is associated with. -
getProcessDefinitionId
String getProcessDefinitionId()The process definition key for the process instance this execution is associated with. -
getPropagatedStageInstanceId
String getPropagatedStageInstanceId()If this execution runs in the context of a case and stage, this method returns it's closest parent stage instance id (the stage plan item instance id to be precise).- Returns:
- the stage instance id this execution belongs to or null, if this execution is not part of a case at all or is not a child element of a stage
-
getParentId
String getParentId()Gets the id of the parent of this execution. If null, the execution represents a process-instance. -
getSuperExecutionId
String getSuperExecutionId()Gets the id of the calling execution. If not null, the execution is part of a subprocess. -
getCurrentActivityId
String getCurrentActivityId()Gets the id of the current activity. -
getCurrentFlowElement
org.flowable.bpmn.model.FlowElement getCurrentFlowElement()The BPMN element where the execution currently is at. -
isActive
boolean isActive()returns whether this execution is currently active. -
isEnded
boolean isEnded()returns whether this execution has ended or not. -
isConcurrent
boolean isConcurrent()returns whether this execution is concurrent or not. -
isProcessInstanceType
boolean isProcessInstanceType()returns whether this execution is a process instance or not. -
isScope
boolean isScope()Returns whether this execution is a scope. -
isMultiInstanceRoot
boolean isMultiInstanceRoot()Returns whether this execution is the root of a multi instance execution. -
setVariable
- Specified by:
setVariable
in interfaceorg.flowable.common.engine.api.variable.VariableContainer
-
setTransientVariable
- Specified by:
setTransientVariable
in interfaceorg.flowable.common.engine.api.variable.VariableContainer
-