Package org.camunda.bpm.engine.impl.cmd
Class FetchExternalTasksCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.FetchExternalTasksCmd
- All Implemented Interfaces:
Command<List<LockedExternalTask>>
- Author:
- Thorben Lindhauer, Christopher Zell
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
TopicFetchInstruction> protected static final EnginePersistenceLogger
protected int
protected List<QueryOrderingProperty>
protected String
-
Constructor Summary
ConstructorDescriptionFetchExternalTasksCmd
(String workerId, int maxResults, Map<String, TopicFetchInstruction> instructions) FetchExternalTasksCmd
(String workerId, int maxResults, Map<String, TopicFetchInstruction> instructions, boolean usePriority, List<QueryOrderingProperty> orderingProperties) -
Method Summary
Modifier and TypeMethodDescriptionexecute
(CommandContext commandContext) protected void
filterOnOptimisticLockingFailure
(CommandContext commandContext, List<LockedExternalTask> tasks) protected List<QueryOrderingProperty>
orderingPropertiesWithPriority
(boolean usePriority, List<QueryOrderingProperty> queryOrderingProperties) protected void
-
Field Details
-
LOG
-
workerId
-
maxResults
protected int maxResults -
orderingProperties
-
fetchInstructions
-
-
Constructor Details
-
FetchExternalTasksCmd
public FetchExternalTasksCmd(String workerId, int maxResults, Map<String, TopicFetchInstruction> instructions) -
FetchExternalTasksCmd
public FetchExternalTasksCmd(String workerId, int maxResults, Map<String, TopicFetchInstruction> instructions, boolean usePriority, List<QueryOrderingProperty> orderingProperties)
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceCommand<List<LockedExternalTask>>
-
filterOnOptimisticLockingFailure
protected void filterOnOptimisticLockingFailure(CommandContext commandContext, List<LockedExternalTask> tasks) -
validateInput
protected void validateInput() -
orderingPropertiesWithPriority
protected List<QueryOrderingProperty> orderingPropertiesWithPriority(boolean usePriority, List<QueryOrderingProperty> queryOrderingProperties)
-