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
.
Modifier and Type | Field and Description |
---|---|
protected EventSubscriptionDeclaration |
eventSubscriptionDeclaration |
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider
Constructor and Description |
---|
EventSubscriptionJobDeclaration(EventSubscriptionDeclaration eventSubscriptionDeclaration) |
Modifier and Type | Method and Description |
---|---|
static EventSubscriptionJobDeclaration |
findDeclarationForSubscription(EventSubscriptionEntity eventSubscription)
Assumes that an activity has at most one declaration of a certain eventType.
|
String |
getActivityId() |
static List<EventSubscriptionJobDeclaration> |
getDeclarationsForActivity(PvmActivity activity) |
String |
getEventName() |
String |
getEventType() |
protected MessageEntity |
newJobInstance(EventSubscriptionEntity eventSubscription) |
protected ExecutionEntity |
resolveExecution(EventSubscriptionEntity context)
Returns the execution in which context the job is created.
|
protected JobHandlerConfiguration |
resolveJobHandlerConfiguration(EventSubscriptionEntity context) |
createJobInstance, getActivity, getJobConfiguration, getJobDefinitionId, getJobHandlerType, getJobPriorityProvider, getProcessDefinition, isExclusive, postInitialize, reconfigure, resolveDueDate, resolveExclusive, resolveJobDefinitionId, resolveJobHandler, resolveJobHandlerType, resolveRetries, setActivity, setExclusive, setJobConfiguration, setJobDefinitionId, setJobPriorityProvider
protected EventSubscriptionDeclaration eventSubscriptionDeclaration
public EventSubscriptionJobDeclaration(EventSubscriptionDeclaration eventSubscriptionDeclaration)
protected MessageEntity newJobInstance(EventSubscriptionEntity eventSubscription)
newJobInstance
in class JobDeclaration<EventSubscriptionEntity,MessageEntity>
public String getEventType()
public String getEventName()
public String getActivityId()
getActivityId
in class JobDeclaration<EventSubscriptionEntity,MessageEntity>
protected ExecutionEntity resolveExecution(EventSubscriptionEntity context)
JobDeclaration
resolveExecution
in class JobDeclaration<EventSubscriptionEntity,MessageEntity>
protected JobHandlerConfiguration resolveJobHandlerConfiguration(EventSubscriptionEntity context)
resolveJobHandlerConfiguration
in class JobDeclaration<EventSubscriptionEntity,MessageEntity>
public static List<EventSubscriptionJobDeclaration> getDeclarationsForActivity(PvmActivity activity)
public static EventSubscriptionJobDeclaration findDeclarationForSubscription(EventSubscriptionEntity eventSubscription)
Copyright © 2020. All rights reserved.