Class ReadOnlyDelegateExecutionImpl
- java.lang.Object
-
- org.flowable.engine.impl.delegate.ReadOnlyDelegateExecutionImpl
-
- All Implemented Interfaces:
VariableContainer,ReadOnlyDelegateExecution
public class ReadOnlyDelegateExecutionImpl extends Object implements ReadOnlyDelegateExecution
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanactiveprotected booleanconcurrentprotected StringcurrentActivityIdprotected org.flowable.bpmn.model.FlowElementcurrentFlowElementprotected booleanendedprotected StringeventNameprotected Stringidprotected booleanmultiInstanceRootprotected StringparentIdprotected StringprocessDefinitionIdprotected StringprocessInstanceBusinessKeyprotected StringprocessInstanceBusinessStatusprotected StringprocessInstanceIdprotected booleanprocessInstanceTypeprotected StringpropagatedStageInstanceIdprotected StringrootProcessInstanceIdprotected booleanscopeprotected StringsuperExecutionIdprotected StringtenantIdprotected Map<String,Object>variables
-
Constructor Summary
Constructors Constructor Description ReadOnlyDelegateExecutionImpl(DelegateExecution execution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrentActivityId()Gets the id of the current activity.org.flowable.bpmn.model.FlowElementgetCurrentFlowElement()The BPMN element where the execution currently is at.StringgetEventName()Will contain the event name in case this execution is passed in for anExecutionListener.StringgetId()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.StringgetParentId()Gets the id of the parent of this execution.StringgetProcessDefinitionId()The process definition key for the process instance this execution is associated with.StringgetProcessInstanceBusinessKey()The business key for the process instance this execution is associated with.StringgetProcessInstanceBusinessStatus()The business status for the process instance this execution is associated with.StringgetProcessInstanceId()Reference to the overall process instanceStringgetPropagatedStageInstanceId()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).StringgetRootProcessInstanceId()The 'root' process instance.StringgetSuperExecutionId()Gets the id of the calling execution.StringgetTenantId()ObjectgetVariable(String variableName)booleanhasVariable(String variableName)booleanisActive()returns whether this execution is currently active.booleanisConcurrent()returns whether this execution is concurrent or not.booleanisEnded()returns whether this execution has ended or not.booleanisMultiInstanceRoot()Returns whether this execution is the root of a multi instance execution.booleanisProcessInstanceType()returns whether this execution is a process instance or not.booleanisScope()Returns whether this execution is a scope.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.engine.delegate.ReadOnlyDelegateExecution
setTransientVariable, setVariable
-
-
-
-
Field Detail
-
id
protected final String id
-
processInstanceId
protected final String processInstanceId
-
rootProcessInstanceId
protected final String rootProcessInstanceId
-
eventName
protected final String eventName
-
processInstanceBusinessKey
protected final String processInstanceBusinessKey
-
processInstanceBusinessStatus
protected final String processInstanceBusinessStatus
-
processDefinitionId
protected final String processDefinitionId
-
propagatedStageInstanceId
protected final String propagatedStageInstanceId
-
parentId
protected final String parentId
-
superExecutionId
protected final String superExecutionId
-
currentActivityId
protected final String currentActivityId
-
tenantId
protected final String tenantId
-
currentFlowElement
protected final org.flowable.bpmn.model.FlowElement 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
-
-
Constructor Detail
-
ReadOnlyDelegateExecutionImpl
public ReadOnlyDelegateExecutionImpl(DelegateExecution execution)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ReadOnlyDelegateExecutionUnique 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:
getIdin interfaceReadOnlyDelegateExecution
-
getProcessInstanceId
public String getProcessInstanceId()
Description copied from interface:ReadOnlyDelegateExecutionReference to the overall process instance- Specified by:
getProcessInstanceIdin interfaceReadOnlyDelegateExecution
-
getRootProcessInstanceId
public String getRootProcessInstanceId()
Description copied from interface:ReadOnlyDelegateExecutionThe '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:
getRootProcessInstanceIdin interfaceReadOnlyDelegateExecution
-
getEventName
public String getEventName()
Description copied from interface:ReadOnlyDelegateExecutionWill contain the event name in case this execution is passed in for anExecutionListener.- Specified by:
getEventNamein interfaceReadOnlyDelegateExecution
-
getProcessInstanceBusinessKey
public String getProcessInstanceBusinessKey()
Description copied from interface:ReadOnlyDelegateExecutionThe business key for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessKeyin interfaceReadOnlyDelegateExecution
-
getProcessInstanceBusinessStatus
public String getProcessInstanceBusinessStatus()
Description copied from interface:ReadOnlyDelegateExecutionThe business status for the process instance this execution is associated with.- Specified by:
getProcessInstanceBusinessStatusin interfaceReadOnlyDelegateExecution
-
getProcessDefinitionId
public String getProcessDefinitionId()
Description copied from interface:ReadOnlyDelegateExecutionThe process definition key for the process instance this execution is associated with.- Specified by:
getProcessDefinitionIdin interfaceReadOnlyDelegateExecution
-
getPropagatedStageInstanceId
public String getPropagatedStageInstanceId()
Description copied from interface:ReadOnlyDelegateExecutionIf 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:
getPropagatedStageInstanceIdin 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
public String getParentId()
Description copied from interface:ReadOnlyDelegateExecutionGets the id of the parent of this execution. If null, the execution represents a process-instance.- Specified by:
getParentIdin interfaceReadOnlyDelegateExecution
-
getSuperExecutionId
public String getSuperExecutionId()
Description copied from interface:ReadOnlyDelegateExecutionGets the id of the calling execution. If not null, the execution is part of a subprocess.- Specified by:
getSuperExecutionIdin interfaceReadOnlyDelegateExecution
-
getCurrentActivityId
public String getCurrentActivityId()
Description copied from interface:ReadOnlyDelegateExecutionGets the id of the current activity.- Specified by:
getCurrentActivityIdin interfaceReadOnlyDelegateExecution
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceVariableContainer
-
getCurrentFlowElement
public org.flowable.bpmn.model.FlowElement getCurrentFlowElement()
Description copied from interface:ReadOnlyDelegateExecutionThe BPMN element where the execution currently is at.- Specified by:
getCurrentFlowElementin interfaceReadOnlyDelegateExecution
-
isActive
public boolean isActive()
Description copied from interface:ReadOnlyDelegateExecutionreturns whether this execution is currently active.- Specified by:
isActivein interfaceReadOnlyDelegateExecution
-
isEnded
public boolean isEnded()
Description copied from interface:ReadOnlyDelegateExecutionreturns whether this execution has ended or not.- Specified by:
isEndedin interfaceReadOnlyDelegateExecution
-
isConcurrent
public boolean isConcurrent()
Description copied from interface:ReadOnlyDelegateExecutionreturns whether this execution is concurrent or not.- Specified by:
isConcurrentin interfaceReadOnlyDelegateExecution
-
isProcessInstanceType
public boolean isProcessInstanceType()
Description copied from interface:ReadOnlyDelegateExecutionreturns whether this execution is a process instance or not.- Specified by:
isProcessInstanceTypein interfaceReadOnlyDelegateExecution
-
isScope
public boolean isScope()
Description copied from interface:ReadOnlyDelegateExecutionReturns whether this execution is a scope.- Specified by:
isScopein interfaceReadOnlyDelegateExecution
-
isMultiInstanceRoot
public boolean isMultiInstanceRoot()
Description copied from interface:ReadOnlyDelegateExecutionReturns whether this execution is the root of a multi instance execution.- Specified by:
isMultiInstanceRootin interfaceReadOnlyDelegateExecution
-
getVariable
public Object getVariable(String variableName)
- Specified by:
getVariablein interfaceVariableContainer
-
hasVariable
public boolean hasVariable(String variableName)
- Specified by:
hasVariablein interfaceVariableContainer
-
-