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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.ProcessEventJobHandler
All Implemented Interfaces:
JobHandler<ProcessEventJobHandler.EventSubscriptionJobConfiguration>

public class ProcessEventJobHandler
extends Object
implements JobHandler<ProcessEventJobHandler.EventSubscriptionJobConfiguration>

Author:
Daniel Meyer

Nested Class Summary
static class ProcessEventJobHandler.EventSubscriptionJobConfiguration
           
 
Field Summary
static String TYPE
           
 
Constructor Summary
ProcessEventJobHandler()
           
 
Method Summary
 void execute(ProcessEventJobHandler.EventSubscriptionJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId)
           
 String getType()
           
 ProcessEventJobHandler.EventSubscriptionJobConfiguration newConfiguration(String canonicalString)
           
 void onDelete(ProcessEventJobHandler.EventSubscriptionJobConfiguration 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
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

ProcessEventJobHandler

public ProcessEventJobHandler()
Method Detail

getType

public String getType()
Specified by:
getType in interface JobHandler<ProcessEventJobHandler.EventSubscriptionJobConfiguration>

execute

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

newConfiguration

public ProcessEventJobHandler.EventSubscriptionJobConfiguration newConfiguration(String canonicalString)
Specified by:
newConfiguration in interface JobHandler<ProcessEventJobHandler.EventSubscriptionJobConfiguration>

onDelete

public void onDelete(ProcessEventJobHandler.EventSubscriptionJobConfiguration 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<ProcessEventJobHandler.EventSubscriptionJobConfiguration>
Parameters:
configuration - the job handler configuration
jobEntity - the job entity to be deleted


Copyright © 2017 camunda services GmbH. All rights reserved.