public abstract class AbstractSetProcessDefinitionStateCmd extends Object implements Command<Void>
Modifier and Type | Field and Description |
---|---|
protected Date |
executionDate |
protected boolean |
includeProcessInstances |
protected ProcessDefinitionEntity |
processDefinitionEntity |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
Constructor and Description |
---|
AbstractSetProcessDefinitionStateCmd(ProcessDefinitionEntity processDefinitionEntity,
boolean includeProcessInstances,
Date executionDate) |
AbstractSetProcessDefinitionStateCmd(String processDefinitionId,
String processDefinitionKey,
boolean includeProcessInstances,
Date executionDate) |
Modifier and Type | Method and Description |
---|---|
protected void |
changeProcessDefinitionState(CommandContext commandContext,
List<ProcessDefinitionEntity> processDefinitions) |
protected void |
createTimerForDelayedExecution(CommandContext commandContext,
List<ProcessDefinitionEntity> processDefinitions) |
Void |
execute(CommandContext commandContext) |
protected List<ProcessDefinitionEntity> |
findProcessDefinition(CommandContext commandContext) |
protected abstract String |
getDelayedExecutionJobHandlerType()
Subclasses should return the type of the
JobHandler here. |
protected abstract SuspensionState |
getProcessDefinitionSuspensionState()
Subclasses should return the wanted
SuspensionState here. |
protected abstract AbstractSetProcessInstanceStateCmd |
getProcessInstanceChangeStateCmd(ProcessInstance processInstance)
Subclasses should return a
Command implementation that matches the process definition
state change. |
protected String processDefinitionId
protected String processDefinitionKey
protected ProcessDefinitionEntity processDefinitionEntity
protected boolean includeProcessInstances
protected Date executionDate
public AbstractSetProcessDefinitionStateCmd(ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate)
public Void execute(CommandContext commandContext)
protected List<ProcessDefinitionEntity> findProcessDefinition(CommandContext commandContext)
protected void createTimerForDelayedExecution(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions)
protected void changeProcessDefinitionState(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions)
protected abstract SuspensionState getProcessDefinitionSuspensionState()
SuspensionState
here.protected abstract String getDelayedExecutionJobHandlerType()
JobHandler
here. it will be used when
the user provides an execution date on which the actual state change will happen.protected abstract AbstractSetProcessInstanceStateCmd getProcessInstanceChangeStateCmd(ProcessInstance processInstance)
Command
implementation that matches the process definition
state change.Copyright © 2015. All rights reserved.