org.camunda.bpm.engine.impl.jobexecutor
Class TimerChangeJobDefinitionSuspensionStateJobHandler

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.TimerChangeJobDefinitionSuspensionStateJobHandler
All Implemented Interfaces:
JobHandler
Direct Known Subclasses:
TimerActivateJobDefinitionHandler, TimerSuspendJobDefinitionHandler

public abstract class TimerChangeJobDefinitionSuspensionStateJobHandler
extends Object
implements JobHandler

Author:
roman.smirnov

Field Summary
protected static String JOB_HANDLER_CFG_BY
           
protected static String JOB_HANDLER_CFG_INCLUDE_JOBS
           
protected static String JOB_HANDLER_CFG_JOB_DEFINITION_ID
           
protected static String JOB_HANDLER_CFG_PROCESS_DEFINITION_ID
           
protected static String JOB_HANDLER_CFG_PROCESS_DEFINITION_KEY
           
 
Constructor Summary
TimerChangeJobDefinitionSuspensionStateJobHandler()
           
 
Method Summary
static String createJobHandlerConfigurationByJobDefinitionId(String jobDefinitionId, boolean includeJobs)
           
static String createJobHandlerConfigurationByProcessDefinitionId(String processDefinitionId, boolean includeJobs)
           
static String createJobHandlerConfigurationByProcessDefinitionKey(String processDefinitionKey, boolean includeJobs)
           
 void execute(String configuration, ExecutionEntity execution, CommandContext commandContext)
           
protected  String getBy(JSONObject configuration)
           
protected abstract  AbstractSetJobDefinitionStateCmd getCommand(String configuration)
           
protected  boolean getIncludeJobs(JSONObject configuration)
           
protected  String getJobDefinitionId(JSONObject configuration)
           
protected  String getProcessDefinitionId(JSONObject configuration)
           
protected  String getProcessDefinitionKey(JSONObject configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.impl.jobexecutor.JobHandler
getType
 

Field Detail

JOB_HANDLER_CFG_BY

protected static final String JOB_HANDLER_CFG_BY
See Also:
Constant Field Values

JOB_HANDLER_CFG_JOB_DEFINITION_ID

protected static final String JOB_HANDLER_CFG_JOB_DEFINITION_ID
See Also:
Constant Field Values

JOB_HANDLER_CFG_PROCESS_DEFINITION_ID

protected static final String JOB_HANDLER_CFG_PROCESS_DEFINITION_ID
See Also:
Constant Field Values

JOB_HANDLER_CFG_PROCESS_DEFINITION_KEY

protected static final String JOB_HANDLER_CFG_PROCESS_DEFINITION_KEY
See Also:
Constant Field Values

JOB_HANDLER_CFG_INCLUDE_JOBS

protected static final String JOB_HANDLER_CFG_INCLUDE_JOBS
See Also:
Constant Field Values
Constructor Detail

TimerChangeJobDefinitionSuspensionStateJobHandler

public TimerChangeJobDefinitionSuspensionStateJobHandler()
Method Detail

createJobHandlerConfigurationByJobDefinitionId

public static String createJobHandlerConfigurationByJobDefinitionId(String jobDefinitionId,
                                                                    boolean includeJobs)

createJobHandlerConfigurationByProcessDefinitionId

public static String createJobHandlerConfigurationByProcessDefinitionId(String processDefinitionId,
                                                                        boolean includeJobs)

createJobHandlerConfigurationByProcessDefinitionKey

public static String createJobHandlerConfigurationByProcessDefinitionKey(String processDefinitionKey,
                                                                         boolean includeJobs)

execute

public void execute(String configuration,
                    ExecutionEntity execution,
                    CommandContext commandContext)
Specified by:
execute in interface JobHandler

getJobDefinitionId

protected String getJobDefinitionId(JSONObject configuration)

getProcessDefinitionId

protected String getProcessDefinitionId(JSONObject configuration)

getProcessDefinitionKey

protected String getProcessDefinitionKey(JSONObject configuration)

getIncludeJobs

protected boolean getIncludeJobs(JSONObject configuration)

getBy

protected String getBy(JSONObject configuration)

getCommand

protected abstract AbstractSetJobDefinitionStateCmd getCommand(String configuration)


Copyright © 2016 camunda services GmbH. All rights reserved.