public interface DelegateExecution extends VariableScope
JavaDelegate
s and ExecutionListener
s.Modifier and Type | Method and Description |
---|---|
org.activiti.bpmn.model.ActivitiListener |
getCurrentActivitiListener()
Returns the
ActivitiListener instance matching an ExecutionListener
if currently an execution listener is being execution. |
String |
getCurrentActivityId()
Gets the id of the current activity.
|
org.activiti.bpmn.model.FlowElement |
getCurrentFlowElement()
The BPMN element where the execution currently is at.
|
String |
getEventName()
Will contain the event name in case this execution is passed in for an
ExecutionListener . |
List<? extends DelegateExecution> |
getExecutions()
returns the list of execution of which this execution the parent of.
|
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.
|
DelegateExecution |
getParent()
returns the parent of this execution, or null if there no parent.
|
String |
getParentId()
Gets the id of the parent of this execution.
|
String |
getProcessDefinitionId()
The process definition key for the process instance this execution is associated with.
|
String |
getProcessInstanceBusinessKey()
The business key for the process instance this execution is associated with.
|
String |
getProcessInstanceId()
Reference to the overall process instance
|
String |
getRootProcessInstanceId()
The 'root' process instance.
|
String |
getSuperExecutionId()
Gets the id of the calling execution.
|
String |
getTenantId()
Returns the tenant id, if any is set before on the process definition or process instance.
|
void |
inactivate()
Inactivates this execution.
|
boolean |
isActive()
returns whether this execution is currently active.
|
boolean |
isConcurrent()
returns whether this execution is concurrent or not.
|
boolean |
isEnded()
returns whether this execution has ended or not.
|
boolean |
isMultiInstanceRoot()
Returns whather this execution is the root of a multi instance execution.
|
boolean |
isProcessInstanceType()
returns whether this execution is a process instance or not.
|
boolean |
isScope()
Returns whether this execution is a scope.
|
void |
setActive(boolean isActive)
makes this execution active or inactive.
|
void |
setConcurrent(boolean isConcurrent)
changes the concurrent indicator on this execution.
|
void |
setCurrentActivitiListener(org.activiti.bpmn.model.ActivitiListener currentActivitiListener)
Called when an
ExecutionListener is being executed. |
void |
setCurrentFlowElement(org.activiti.bpmn.model.FlowElement flowElement)
Change the current BPMN element the execution is at.
|
void |
setEventName(String eventName)
Sets the current event (typically when execution an
ExecutionListener ). |
void |
setMultiInstanceRoot(boolean isMultiInstanceRoot)
Changes whether this execution is a multi instance root or not.
|
void |
setScope(boolean isScope)
Changes whether this execution is a scope or not.
|
getTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal
String getId()
String getProcessInstanceId()
String getRootProcessInstanceId()
String getEventName()
ExecutionListener
.void setEventName(String eventName)
ExecutionListener
).String getProcessInstanceBusinessKey()
String getProcessDefinitionId()
String getParentId()
String getSuperExecutionId()
String getCurrentActivityId()
String getTenantId()
org.activiti.bpmn.model.FlowElement getCurrentFlowElement()
void setCurrentFlowElement(org.activiti.bpmn.model.FlowElement flowElement)
org.activiti.bpmn.model.ActivitiListener getCurrentActivitiListener()
ActivitiListener
instance matching an ExecutionListener
if currently an execution listener is being execution.
Returns null otherwise.void setCurrentActivitiListener(org.activiti.bpmn.model.ActivitiListener currentActivitiListener)
ExecutionListener
is being executed.DelegateExecution getParent()
List<? extends DelegateExecution> getExecutions()
void setActive(boolean isActive)
boolean isActive()
boolean isEnded()
void setConcurrent(boolean isConcurrent)
boolean isConcurrent()
boolean isProcessInstanceType()
void inactivate()
boolean isScope()
void setScope(boolean isScope)
boolean isMultiInstanceRoot()
void setMultiInstanceRoot(boolean isMultiInstanceRoot)
isMultiInstanceRoot
- Copyright © 2017 Alfresco. All rights reserved.