|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.externaltask.ExternalTaskQueryTopicBuilderImpl
public class ExternalTaskQueryTopicBuilderImpl
| Field Summary | |
|---|---|
protected CommandExecutor |
commandExecutor
|
protected TopicFetchInstruction |
currentInstruction
|
protected boolean |
filterByBusinessKey
|
protected Map<String,TopicFetchInstruction> |
instructions
|
protected int |
maxTasks
|
protected boolean |
usePriority
Indicates that priority is enabled. |
protected String |
workerId
|
| Constructor Summary | |
|---|---|
ExternalTaskQueryTopicBuilderImpl(CommandExecutor commandExecutor,
String workerId,
int maxTasks,
boolean usePriority)
|
|
| Method Summary | |
|---|---|
ExternalTaskQueryTopicBuilder |
businessKey(String businessKey)
Define business key value to filter external tasks by (Process Instance) Business Key. |
ExternalTaskQueryTopicBuilder |
enableCustomObjectDeserialization()
Enable deserialization of variable values that are custom objects. |
List<LockedExternalTask> |
execute()
Performs the fetching. |
ExternalTaskQueryTopicBuilder |
processInstanceVariableEquals(Map<String,Object> variables)
Define a HashMap of variables and their values to filter correlated tasks. |
ExternalTaskQueryTopicBuilder |
processInstanceVariableEquals(String name,
Object value)
Define a single variable and its name to filter tasks in a topic. |
protected void |
submitCurrentInstruction()
|
ExternalTaskQueryTopicBuilder |
topic(String topicName,
long lockDuration)
Specifies that tasks of a topic should be fetched and locked for a certain amount of time |
ExternalTaskQueryTopicBuilder |
variables(List<String> variables)
Define variables to fetch with all tasks for the current topic. |
ExternalTaskQueryTopicBuilder |
variables(String... variables)
Define variables to fetch with all tasks for the current topic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CommandExecutor commandExecutor
protected String workerId
protected int maxTasks
protected boolean usePriority
protected Map<String,TopicFetchInstruction> instructions
protected boolean filterByBusinessKey
protected TopicFetchInstruction currentInstruction
| Constructor Detail |
|---|
public ExternalTaskQueryTopicBuilderImpl(CommandExecutor commandExecutor,
String workerId,
int maxTasks,
boolean usePriority)
| Method Detail |
|---|
public List<LockedExternalTask> execute()
ExternalTaskQueryBuilder
execute in interface ExternalTaskQueryBuilder
public ExternalTaskQueryTopicBuilder topic(String topicName,
long lockDuration)
ExternalTaskQueryBuilder
topic in interface ExternalTaskQueryBuildertopicName - the name of the topiclockDuration - the duration in milliseconds for which tasks should be locked;
begins at the time of fetching
public ExternalTaskQueryTopicBuilder variables(String... variables)
ExternalTaskQueryTopicBuilder
variables in interface ExternalTaskQueryTopicBuildervariables - the variable names to fetch, if null all variables will be fetched
public ExternalTaskQueryTopicBuilder variables(List<String> variables)
ExternalTaskQueryTopicBuilder
variables in interface ExternalTaskQueryTopicBuildervariables - the variable names to fetch, if null all variables will be fetched
public ExternalTaskQueryTopicBuilder processInstanceVariableEquals(Map<String,Object> variables)
ExternalTaskQueryTopicBuilder
processInstanceVariableEquals in interface ExternalTaskQueryTopicBuildervariables - a HashMap of the variable names (keys) and the values to filter by
public ExternalTaskQueryTopicBuilder processInstanceVariableEquals(String name,
Object value)
ExternalTaskQueryTopicBuilder
processInstanceVariableEquals in interface ExternalTaskQueryTopicBuildername - the name of the variable you want to fetch and query byvalue - the value of the variable which you want to filter
public ExternalTaskQueryTopicBuilder businessKey(String businessKey)
ExternalTaskQueryTopicBuilder
businessKey in interface ExternalTaskQueryTopicBuilderbusinessKey - the value of the Business Key to filter by
protected void submitCurrentInstruction()
public ExternalTaskQueryTopicBuilder enableCustomObjectDeserialization()
ExternalTaskQueryTopicBuilder
enableCustomObjectDeserialization in interface ExternalTaskQueryTopicBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||