public class GetActivityInstanceCmd extends Object implements Command<ActivityInstance>
Modifier and Type | Field and Description |
---|---|
protected String |
processInstanceId |
Constructor and Description |
---|
GetActivityInstanceCmd(String processInstanceId) |
Modifier and Type | Method and Description |
---|---|
ActivityInstance |
execute(CommandContext commandContext) |
protected ScopeImpl |
getActivity(ExecutionEntity executionEntity) |
protected void |
initActivityInstanceTree(ActivityInstanceImpl parentActInst,
Map<String,List<ExecutionEntity>> executionsByParentActIds) |
protected boolean |
isInactiveConcurrentRoot(ExecutionEntity execution)
returns true if execution is a concurrent root.
|
protected void |
loadChildExecutionsFromCache(ExecutionEntity execution,
List<ExecutionEntity> childExecutions)
Loads all executions that are part of this process instance tree from the dbSqlSession cache.
|
protected List<ExecutionEntity> |
loadFromDb(String processInstanceId,
CommandContext commandContext) |
protected List<ExecutionEntity> |
loadProcessInstance(String processInstanceId,
CommandContext commandContext) |
protected String processInstanceId
public GetActivityInstanceCmd(String processInstanceId)
processInstanceId
- public ActivityInstance execute(CommandContext commandContext)
execute
in interface Command<ActivityInstance>
protected List<ExecutionEntity> loadProcessInstance(String processInstanceId, CommandContext commandContext)
protected List<ExecutionEntity> loadFromDb(String processInstanceId, CommandContext commandContext)
protected void loadChildExecutionsFromCache(ExecutionEntity execution, List<ExecutionEntity> childExecutions)
execution
- the current root execution (already contained in childExecutions)childExecutions
- the list in which all child executions should be collectedprotected void initActivityInstanceTree(ActivityInstanceImpl parentActInst, Map<String,List<ExecutionEntity>> executionsByParentActIds)
protected boolean isInactiveConcurrentRoot(ExecutionEntity execution)
protected ScopeImpl getActivity(ExecutionEntity executionEntity)
Copyright © 2018. All rights reserved.