Class MessageJobDeclaration
- java.lang.Object
-
- org.camunda.bpm.engine.impl.jobexecutor.JobDeclaration<AtomicOperationInvocation,MessageEntity>
-
- org.camunda.bpm.engine.impl.jobexecutor.MessageJobDeclaration
-
- All Implemented Interfaces:
java.io.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 java.lang.String
ASYNC_AFTER
static java.lang.String
ASYNC_BEFORE
protected java.lang.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(java.lang.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 java.lang.String ASYNC_BEFORE
- See Also:
- Constant Field Values
-
ASYNC_AFTER
public static final java.lang.String ASYNC_AFTER
- See Also:
- Constant Field Values
-
operationIdentifier
protected java.lang.String[] operationIdentifier
-
-
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>
-
-