Package org.flowable.engine.impl.cmd
Class AbstractSetProcessDefinitionStateCmd
java.lang.Object
org.flowable.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
- Direct Known Subclasses:
ActivateProcessDefinitionCmd
,SuspendProcessDefinitionCmd
- Author:
- Daniel Meyer, Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Date
protected boolean
protected ProcessDefinitionEntity
protected String
protected String
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSetProcessDefinitionStateCmd
(String processDefinitionId, String processDefinitionKey, boolean includeProcessInstances, Date executionDate, String tenantId) AbstractSetProcessDefinitionStateCmd
(ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate, String tenantId) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
changeProcessDefinitionState
(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) protected void
createTimerForDelayedExecution
(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) execute
(CommandContext commandContext) protected List<ProcessInstance>
fetchProcessInstancesPage
(CommandContext commandContext, ProcessDefinition processDefinition, int currentPageStartIndex) protected List<ProcessDefinitionEntity>
findProcessDefinition
(CommandContext commandContext) protected abstract String
Subclasses should return the type of theJobHandler
here.protected abstract SuspensionState
Subclasses should return the wantedSuspensionState
here.protected abstract AbstractSetProcessInstanceStateCmd
getProcessInstanceChangeStateCmd
(ProcessInstance processInstance) Subclasses should return aCommand
implementation that matches the process definition state change.
-
Field Details
-
processDefinitionId
-
processDefinitionKey
-
processDefinitionEntity
-
includeProcessInstances
protected boolean includeProcessInstances -
executionDate
-
tenantId
-
-
Constructor Details
-
AbstractSetProcessDefinitionStateCmd
public AbstractSetProcessDefinitionStateCmd(ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate, String tenantId) -
AbstractSetProcessDefinitionStateCmd
-
-
Method Details
-
execute
-
findProcessDefinition
-
createTimerForDelayedExecution
protected void createTimerForDelayedExecution(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) -
changeProcessDefinitionState
protected void changeProcessDefinitionState(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) -
fetchProcessInstancesPage
protected List<ProcessInstance> fetchProcessInstancesPage(CommandContext commandContext, ProcessDefinition processDefinition, int currentPageStartIndex) -
getProcessDefinitionSuspensionState
Subclasses should return the wantedSuspensionState
here. -
getDelayedExecutionJobHandlerType
Subclasses should return the type of theJobHandler
here. it will be used when the user provides an execution date on which the actual state change will happen. -
getProcessInstanceChangeStateCmd
protected abstract AbstractSetProcessInstanceStateCmd getProcessInstanceChangeStateCmd(ProcessInstance processInstance) Subclasses should return aCommand
implementation that matches the process definition state change.
-