Class ReadOnlyDelegateExecutionImpl
java.lang.Object
org.flowable.engine.impl.delegate.ReadOnlyDelegateExecutionImpl
- All Implemented Interfaces:
VariableContainer
,ReadOnlyDelegateExecution
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final boolean
protected final String
protected final FlowElement
protected final boolean
protected final String
protected final String
protected final boolean
protected final String
protected final String
protected final String
protected final String
protected final String
protected final boolean
protected final String
protected final String
protected final boolean
protected final String
protected final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the id of the current activity.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.getVariable
(String variableName) boolean
hasVariable
(String variableName) 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.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.flowable.engine.delegate.ReadOnlyDelegateExecution
setTransientVariable, setVariable
-
Field Details
-
id
-
processInstanceId
-
rootProcessInstanceId
-
eventName
-
processInstanceBusinessKey
-
processInstanceBusinessStatus
-
processDefinitionId
-
propagatedStageInstanceId
-
parentId
-
superExecutionId
-
currentActivityId
-
tenantId
-
currentFlowElement
-
active
protected final boolean active -
ended
protected final boolean ended -
concurrent
protected final boolean concurrent -
processInstanceType
protected final boolean processInstanceType -
scope
protected final boolean scope -
multiInstanceRoot
protected final boolean multiInstanceRoot -
variables
-
-
Constructor Details
-
ReadOnlyDelegateExecutionImpl
-
-
Method Details
-
getId
Description copied from interface:ReadOnlyDelegateExecution
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.- Specified by:
getId
in interfaceReadOnlyDelegateExecution
-
getProcessInstanceId
Description copied from interface:ReadOnlyDelegateExecution
Reference to the overall process instance- Specified by:
getProcessInstanceId
in interfaceReadOnlyDelegateExecution
-
getRootProcessInstanceId
Description copied from interface:ReadOnlyDelegateExecution
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.- Specified by:
getRootProcessInstanceId
in interfaceReadOnlyDelegateExecution
-
getEventName
Description copied from interface:ReadOnlyDelegateExecution
Will contain the event name in case this execution is passed in for anExecutionListener
.- Specified by:
getEventName
in interfaceReadOnlyDelegateExecution
-
getProcessInstanceBusinessKey
Description copied from interface:ReadOnlyDelegateExecution
The business key for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessKey
in interfaceReadOnlyDelegateExecution
-
getProcessInstanceBusinessStatus
Description copied from interface:ReadOnlyDelegateExecution
The business status for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessStatus
in interfaceReadOnlyDelegateExecution
-
getProcessDefinitionId
Description copied from interface:ReadOnlyDelegateExecution
The process definition key for the process instance this execution is associated with.- Specified by:
getProcessDefinitionId
in interfaceReadOnlyDelegateExecution
-
getPropagatedStageInstanceId
Description copied from interface:ReadOnlyDelegateExecution
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).- Specified by:
getPropagatedStageInstanceId
in interfaceReadOnlyDelegateExecution
- 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
Description copied from interface:ReadOnlyDelegateExecution
Gets the id of the parent of this execution. If null, the execution represents a process-instance.- Specified by:
getParentId
in interfaceReadOnlyDelegateExecution
-
getSuperExecutionId
Description copied from interface:ReadOnlyDelegateExecution
Gets the id of the calling execution. If not null, the execution is part of a subprocess.- Specified by:
getSuperExecutionId
in interfaceReadOnlyDelegateExecution
-
getCurrentActivityId
Description copied from interface:ReadOnlyDelegateExecution
Gets the id of the current activity.- Specified by:
getCurrentActivityId
in interfaceReadOnlyDelegateExecution
-
getTenantId
- Specified by:
getTenantId
in interfaceVariableContainer
-
getCurrentFlowElement
Description copied from interface:ReadOnlyDelegateExecution
The BPMN element where the execution currently is at.- Specified by:
getCurrentFlowElement
in interfaceReadOnlyDelegateExecution
-
isActive
public boolean isActive()Description copied from interface:ReadOnlyDelegateExecution
returns whether this execution is currently active.- Specified by:
isActive
in interfaceReadOnlyDelegateExecution
-
isEnded
public boolean isEnded()Description copied from interface:ReadOnlyDelegateExecution
returns whether this execution has ended or not.- Specified by:
isEnded
in interfaceReadOnlyDelegateExecution
-
isConcurrent
public boolean isConcurrent()Description copied from interface:ReadOnlyDelegateExecution
returns whether this execution is concurrent or not.- Specified by:
isConcurrent
in interfaceReadOnlyDelegateExecution
-
isProcessInstanceType
public boolean isProcessInstanceType()Description copied from interface:ReadOnlyDelegateExecution
returns whether this execution is a process instance or not.- Specified by:
isProcessInstanceType
in interfaceReadOnlyDelegateExecution
-
isScope
public boolean isScope()Description copied from interface:ReadOnlyDelegateExecution
Returns whether this execution is a scope.- Specified by:
isScope
in interfaceReadOnlyDelegateExecution
-
isMultiInstanceRoot
public boolean isMultiInstanceRoot()Description copied from interface:ReadOnlyDelegateExecution
Returns whether this execution is the root of a multi instance execution.- Specified by:
isMultiInstanceRoot
in interfaceReadOnlyDelegateExecution
-
getVariable
- Specified by:
getVariable
in interfaceVariableContainer
-
hasVariable
- Specified by:
hasVariable
in interfaceVariableContainer
-
toString
-