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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.TimerChangeProcessDefinitionSuspensionStateJobHandler
All Implemented Interfaces:
JobHandler<TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration>
Direct Known Subclasses:
TimerActivateProcessDefinitionHandler, TimerSuspendProcessDefinitionHandler

public abstract class TimerChangeProcessDefinitionSuspensionStateJobHandler
extends Object
implements JobHandler<TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration>

Author:
Joram Barrez, roman.smirnov

Nested Class Summary
static class TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration
           
 
Field Summary
protected static String JOB_HANDLER_CFG_BY
           
protected static String JOB_HANDLER_CFG_INCLUDE_PROCESS_INSTANCES
           
protected static String JOB_HANDLER_CFG_PROCESS_DEFINITION_ID
           
protected static String JOB_HANDLER_CFG_PROCESS_DEFINITION_KEY
           
protected static String JOB_HANDLER_CFG_PROCESS_DEFINITION_TENANT_ID
           
 
Constructor Summary
TimerChangeProcessDefinitionSuspensionStateJobHandler()
           
 
Method Summary
 void execute(TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
           
protected abstract  AbstractSetProcessDefinitionStateCmd getCommand(TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration configuration)
           
 TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration newConfiguration(String canonicalString)
           
 void onDelete(TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration configuration, JobEntity jobEntity)
          Clean up before job is deleted.
 
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_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_PROCESS_DEFINITION_TENANT_ID

protected static final String JOB_HANDLER_CFG_PROCESS_DEFINITION_TENANT_ID
See Also:
Constant Field Values

JOB_HANDLER_CFG_INCLUDE_PROCESS_INSTANCES

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

TimerChangeProcessDefinitionSuspensionStateJobHandler

public TimerChangeProcessDefinitionSuspensionStateJobHandler()
Method Detail

execute

public void execute(TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration configuration,
                    ExecutionEntity execution,
                    CommandContext commandContext,
                    String tenantId)
Specified by:
execute in interface JobHandler<TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration>

getCommand

protected abstract AbstractSetProcessDefinitionStateCmd getCommand(TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration configuration)

newConfiguration

public TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration newConfiguration(String canonicalString)
Specified by:
newConfiguration in interface JobHandler<TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration>

onDelete

public void onDelete(TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration configuration,
                     JobEntity jobEntity)
Description copied from interface: JobHandler
Clean up before job is deleted. Like removing of auxiliary entities specific for this job handler.

Specified by:
onDelete in interface JobHandler<TimerChangeProcessDefinitionSuspensionStateJobHandler.ProcessDefinitionSuspensionStateConfiguration>
Parameters:
configuration - the job handler configuration
jobEntity - the job entity to be deleted


Copyright © 2017 camunda services GmbH. All rights reserved.