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

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

public abstract class AbstractSetJobDefinitionStateCmd
extends Object
implements Command<Void>

Author:
Daniel Meyer, roman.smirnov

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

Field Detail

jobDefinitionId

protected String jobDefinitionId

processDefinitionId

protected String processDefinitionId

processDefinitionKey

protected String processDefinitionKey

includeJobs

protected boolean includeJobs

executionDate

protected Date executionDate
Constructor Detail

AbstractSetJobDefinitionStateCmd

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

execute

public Void execute(CommandContext commandContext)
Specified by:
execute in interface Command<Void>

getSuspensionState

protected abstract SuspensionState getSuspensionState()
Subclasses should return the wanted SuspensionState here.


getDelayedExecutionJobHandlerType

protected abstract String getDelayedExecutionJobHandlerType()
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.


getSetJobStateCmd

protected abstract AbstractSetJobStateCmd getSetJobStateCmd()
Subclasses should return the type of the AbstractSetJobStateCmd here. It will be used to suspend or activate the Jobs.



Copyright © 2014 camunda services GmbH. All rights reserved.