Package org.activiti.engine.impl.cmd
Class AbstractSetProcessDefinitionStateCmd
java.lang.Object
org.activiti.engine.impl.cmd.AbstractSetProcessDefinitionStateCmd
- Direct Known Subclasses:
ActivateProcessDefinitionCmd,SuspendProcessDefinitionCmd
-
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 voidchangeProcessDefinitionStateInternal(CommandContext commandContext, ProcessDefinitionEntity processDefinition) protected voidcreateTimerForDelayedExecution(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) protected voidcreateTimerForDelayedExecutionInternal(CommandContext commandContext, ProcessDefinitionEntity processDefinition) execute(CommandContext commandContext) protected voidexecuteInternal(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) 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
-
executeInternal
protected void executeInternal(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) -
findProcessDefinition
-
createTimerForDelayedExecution
protected void createTimerForDelayedExecution(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) -
createTimerForDelayedExecutionInternal
protected void createTimerForDelayedExecutionInternal(CommandContext commandContext, ProcessDefinitionEntity processDefinition) -
changeProcessDefinitionState
protected void changeProcessDefinitionState(CommandContext commandContext, List<ProcessDefinitionEntity> processDefinitions) -
changeProcessDefinitionStateInternal
protected void changeProcessDefinitionStateInternal(CommandContext commandContext, ProcessDefinitionEntity processDefinition) -
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.
-