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 |
---|---|
Void |
execute(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 AbstractSetJobDefinitionStateCmd |
getSetJobDefinitionStateCmd()
Subclasses should return the type of the
AbstractSetJobDefinitionStateCmd here. |
protected abstract AbstractSetProcessInstanceStateCmd |
getSetProcessInstanceStateCmd()
Subclasses should return the type of the
AbstractSetProcessInstanceStateCmd here. |
protected void |
scheduleSuspensionStateUpdate(CommandContext commandContext) |
protected void |
updateSuspensionState(CommandContext commandContext) |
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 void scheduleSuspensionStateUpdate(CommandContext commandContext)
protected void updateSuspensionState(CommandContext commandContext)
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 AbstractSetJobDefinitionStateCmd getSetJobDefinitionStateCmd()
AbstractSetJobDefinitionStateCmd
here.
It will be used to suspend or activate the JobDefinition
s.protected abstract AbstractSetProcessInstanceStateCmd getSetProcessInstanceStateCmd()
AbstractSetProcessInstanceStateCmd
here.
It will be used to suspend or activate the ProcessInstance
s.Copyright © 2018. All rights reserved.