|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityExecution
| Method Summary | |
|---|---|
ActivityExecution |
createExecution()
creates a new execution. |
PvmProcessInstance |
createSubProcessInstance(PvmProcessDefinition processDefinition)
creates a new sub process instance. |
PvmProcessInstance |
createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey)
|
void |
end(boolean isScopeComplete)
ends this execution. |
void |
enterActivityInstance()
invoked to notify the execution that a new activity instance is started |
void |
executeActivity(PvmActivity activity)
Executes the ActivityBehavior associated with the given activity. |
List<ActivityExecution> |
findInactiveConcurrentExecutions(PvmActivity activity)
Retrieves all executions which are concurrent and inactive at the given activity. |
PvmActivity |
getActivity()
returns the current PvmActivity of the execution. |
String |
getActivityInstanceId()
return the Id of the activity instance currently executed by this execution |
List<? extends ActivityExecution> |
getExecutions()
returns the list of execution of which this execution the parent of. |
PvmActivity |
getNextActivity()
An activity which is to be started next. |
ActivityExecution |
getParent()
returns the parent of this execution, or null if there no parent. |
String |
getParentActivityInstanceId()
return the Id of the parent activity instance currently executed by this execution |
void |
inactivate()
Inactivates this execution. |
void |
interruptScope(String reason)
Called when an execution is interrupted. |
boolean |
isActive()
returns whether this execution is currently active. |
boolean |
isCanceled()
Returns whether this execution has been canceled. |
boolean |
isCompleteScope()
Returns whether this execution completed the parent scope. |
boolean |
isConcurrent()
returns whether this execution is concurrent or not. |
boolean |
isEnded()
returns whether this execution has ended or not. |
boolean |
isProcessInstance()
returns whether this execution is a process instance or not. |
boolean |
isScope()
Returns whether this execution is a scope. |
void |
leaveActivityInstance()
invoked to notify the execution that an activity instance is ended. |
void |
setActive(boolean isActive)
makes this execution active or inactive. |
void |
setActivityInstanceId(String id)
|
void |
setConcurrent(boolean isConcurrent)
changes the concurrent indicator on this execution. |
void |
setScope(boolean isScope)
Changes whether this execution is a scope or not |
void |
take(PvmTransition transition)
leaves the current activity by taking the given transition. |
void |
takeAll(List<PvmTransition> outgoingTransitions,
List<ActivityExecution> joinedExecutions)
Takes the given outgoing transitions, and potentially reusing the given list of executions that were previously joined. |
| Methods inherited from interface org.camunda.bpm.engine.delegate.DelegateExecution |
|---|
getBusinessKey, getCurrentActivityId, getCurrentActivityName, getCurrentTransitionId, getEventName, getId, getParentId, getProcessBusinessKey, getProcessDefinitionId, getProcessInstanceId |
| Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope |
|---|
getVariable, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal |
| Method Detail |
|---|
PvmActivity getActivity()
PvmActivity of the execution.
void enterActivityInstance()
void leaveActivityInstance()
void setActivityInstanceId(String id)
String getActivityInstanceId()
getActivityInstanceId in interface DelegateExecutionString getParentActivityInstanceId()
getParentActivityInstanceId in interface DelegateExecutionvoid take(PvmTransition transition)
ActivityExecution createExecution()
PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition)
processDefinition - The PvmProcessDefinition of the subprocess.
PvmProcessInstance createSubProcessInstance(PvmProcessDefinition processDefinition,
String businessKey)
processDefinition - The PvmProcessDefinition of the subprocess.businessKey - the business key of the process instancecreateSubProcessInstance(PvmProcessDefinition)ActivityExecution getParent()
List<? extends ActivityExecution> getExecutions()
void end(boolean isScopeComplete)
void setActive(boolean isActive)
boolean isActive()
boolean isEnded()
void setConcurrent(boolean isConcurrent)
boolean isConcurrent()
boolean isProcessInstance()
void inactivate()
boolean isScope()
void setScope(boolean isScope)
boolean isCompleteScope()
boolean isCanceled()
List<ActivityExecution> findInactiveConcurrentExecutions(PvmActivity activity)
void takeAll(List<PvmTransition> outgoingTransitions,
List<ActivityExecution> joinedExecutions)
void executeActivity(PvmActivity activity)
ActivityBehavior associated with the given activity.
void interruptScope(String reason)
PvmActivity getNextActivity()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||