Class MessageJobDeclaration
- java.lang.Object
-
- org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<AtomicOperationInvocation,MessageEntity>
-
- org.camunda.bpm.engine.impl.jobexecutor.MessageJobDeclaration
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AsyncAfterMessageJobDeclaration
,AsyncBeforeMessageJobDeclaration
public class MessageJobDeclaration extends JobDeclaration<AtomicOperationInvocation,MessageEntity>
Declaration of a Message Job (Asynchronous continuation job)
- Author:
- Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ASYNC_AFTER
static String
ASYNC_BEFORE
protected String[]
operationIdentifier
-
Fields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
activity, exclusive, jobConfiguration, jobDefinitionId, jobHandlerConfiguration, jobHandlerType, jobPriorityProvider
-
-
Constructor Summary
Constructors Constructor Description MessageJobDeclaration(String[] operationsIdentifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isApplicableForOperation(AtomicOperation operation)
protected MessageEntity
newJobInstance(AtomicOperationInvocation context)
protected ExecutionEntity
resolveExecution(AtomicOperationInvocation context)
Returns the execution in which context the job is created.protected JobHandlerConfiguration
resolveJobHandlerConfiguration(AtomicOperationInvocation context)
-
Methods inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration
createJobInstance, getActivity, getActivityId, getJobConfiguration, getJobDefinitionId, getJobHandlerType, getJobPriorityProvider, getProcessDefinition, isExclusive, postInitialize, reconfigure, resolveDueDate, resolveExclusive, resolveJobDefinitionId, resolveJobHandler, resolveJobHandlerType, resolveRetries, setActivity, setExclusive, setJobConfiguration, setJobDefinitionId, setJobPriorityProvider
-
-
-
-
Field Detail
-
ASYNC_BEFORE
public static final String ASYNC_BEFORE
- See Also:
- Constant Field Values
-
ASYNC_AFTER
public static final String ASYNC_AFTER
- See Also:
- Constant Field Values
-
operationIdentifier
protected String[] operationIdentifier
-
-
Constructor Detail
-
MessageJobDeclaration
public MessageJobDeclaration(String[] operationsIdentifier)
-
-
Method Detail
-
newJobInstance
protected MessageEntity newJobInstance(AtomicOperationInvocation context)
- Specified by:
newJobInstance
in classJobDeclaration<AtomicOperationInvocation,MessageEntity>
-
isApplicableForOperation
public boolean isApplicableForOperation(AtomicOperation operation)
-
resolveExecution
protected ExecutionEntity resolveExecution(AtomicOperationInvocation context)
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<AtomicOperationInvocation,MessageEntity>
-
resolveJobHandlerConfiguration
protected JobHandlerConfiguration resolveJobHandlerConfiguration(AtomicOperationInvocation context)
- Specified by:
resolveJobHandlerConfiguration
in classJobDeclaration<AtomicOperationInvocation,MessageEntity>
-
-