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 Dateprotected booleanprotected ProcessDefinitionEntityprotected Stringprotected Stringprotected 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 voidchangeProcessDefinitionState(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) protected voidcreateTimerForDelayedExecution(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 StringSubclasses should return the type of theJobHandlerhere.protected abstract SuspensionStateSubclasses should return the wantedSuspensionStatehere.protected abstract AbstractSetProcessInstanceStateCmdgetProcessInstanceChangeStateCmd(ProcessInstance processInstance) Subclasses should return aCommandimplementation 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 wantedSuspensionStatehere. -
getDelayedExecutionJobHandlerType
Subclasses should return the type of theJobHandlerhere. 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 aCommandimplementation that matches the process definition state change.
-