org.camunda.bpm.engine.impl.cmd
Class ActivateJobDefinitionCmd

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.AbstractSetJobDefinitionStateCmd
      extended by org.camunda.bpm.engine.impl.cmd.ActivateJobDefinitionCmd
All Implemented Interfaces:
Command<Void>

public class ActivateJobDefinitionCmd
extends AbstractSetJobDefinitionStateCmd

Author:
roman.smirnov

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetJobDefinitionStateCmd
executionDate, includeJobs, jobDefinitionId, processDefinitionId, processDefinitionKey
 
Constructor Summary
ActivateJobDefinitionCmd(String jobDefinitionId, String processDefinitionId, String processDefinitionKey, boolean includeJobs, Date executionDate)
           
 
Method Summary
protected  String getDelayedExecutionJobHandlerType()
          Subclasses should return the type of the JobHandler here.
protected  AbstractSetJobStateCmd getSetJobStateCmd()
          Subclasses should return the type of the AbstractSetJobStateCmd here.
protected  SuspensionState getSuspensionState()
          Subclasses should return the wanted SuspensionState here.
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetJobDefinitionStateCmd
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivateJobDefinitionCmd

public ActivateJobDefinitionCmd(String jobDefinitionId,
                                String processDefinitionId,
                                String processDefinitionKey,
                                boolean includeJobs,
                                Date executionDate)
Method Detail

getSuspensionState

protected SuspensionState getSuspensionState()
Description copied from class: AbstractSetJobDefinitionStateCmd
Subclasses should return the wanted SuspensionState here.

Specified by:
getSuspensionState in class AbstractSetJobDefinitionStateCmd

getDelayedExecutionJobHandlerType

protected String getDelayedExecutionJobHandlerType()
Description copied from class: AbstractSetJobDefinitionStateCmd
Subclasses should return the type of the JobHandler here. it will be used when the user provides an execution date on which the actual state change will happen.

Specified by:
getDelayedExecutionJobHandlerType in class AbstractSetJobDefinitionStateCmd

getSetJobStateCmd

protected AbstractSetJobStateCmd getSetJobStateCmd()
Description copied from class: AbstractSetJobDefinitionStateCmd
Subclasses should return the type of the AbstractSetJobStateCmd here. It will be used to suspend or activate the Jobs.

Specified by:
getSetJobStateCmd in class AbstractSetJobDefinitionStateCmd


Copyright © 2014 camunda services GmbH. All rights reserved.