Class EventSubscriptionJobDeclaration
java.lang.Object
org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<EventSubscriptionEntity,MessageEntity>
org.camunda.bpm.engine.impl.jobexecutor.EventSubscriptionJobDeclaration
- All Implemented Interfaces:
Serializable
public class EventSubscriptionJobDeclaration
extends JobDeclaration<EventSubscriptionEntity,MessageEntity>
Describes and creates jobs for handling an event asynchronously.
These jobs are created in the context of an EventSubscriptionEntity
and are of type MessageEntity
.
- Author:
- Thorben Lindhauer
- See Also:
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider
-
Constructor Summary
ConstructorDescriptionEventSubscriptionJobDeclaration
(EventSubscriptionDeclaration eventSubscriptionDeclaration) -
Method Summary
Modifier and TypeMethodDescriptionfindDeclarationForSubscription
(EventSubscriptionEntity eventSubscription) Assumes that an activity has at most one declaration of a certain eventType.static List<EventSubscriptionJobDeclaration>
getDeclarationsForActivity
(PvmActivity activity) protected MessageEntity
newJobInstance
(EventSubscriptionEntity eventSubscription) protected ExecutionEntity
resolveExecution
(EventSubscriptionEntity context) Returns the execution in which context the job is created.protected JobHandlerConfiguration
Methods inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
createJobInstance, getActivity, getJobConfiguration, getJobDefinitionId, getJobHandlerType, getJobPriorityProvider, getProcessDefinition, isExclusive, postInitialize, reconfigure, resolveDueDate, resolveExclusive, resolveJobDefinitionId, resolveJobHandler, resolveJobHandlerType, resolveRetries, setActivity, setExclusive, setJobConfiguration, setJobDefinitionId, setJobPriorityProvider
-
Field Details
-
eventSubscriptionDeclaration
-
-
Constructor Details
-
EventSubscriptionJobDeclaration
-
-
Method Details
-
newJobInstance
- Specified by:
newJobInstance
in classJobDeclaration<EventSubscriptionEntity,
MessageEntity>
-
getEventType
-
getEventName
-
getActivityId
- Overrides:
getActivityId
in classJobDeclaration<EventSubscriptionEntity,
MessageEntity>
-
resolveExecution
Description copied from class:JobDeclaration
Returns the execution in which context the job is created. The execution is used to determine the job's priority based on a BPMN activity the execution is currently executing. May be null.- Specified by:
resolveExecution
in classJobDeclaration<EventSubscriptionEntity,
MessageEntity>
-
resolveJobHandlerConfiguration
- Specified by:
resolveJobHandlerConfiguration
in classJobDeclaration<EventSubscriptionEntity,
MessageEntity>
-
getDeclarationsForActivity
public static List<EventSubscriptionJobDeclaration> getDeclarationsForActivity(PvmActivity activity) -
findDeclarationForSubscription
public static EventSubscriptionJobDeclaration findDeclarationForSubscription(EventSubscriptionEntity eventSubscription) Assumes that an activity has at most one declaration of a certain eventType.
-