public class ExternalTaskQueryTopicBuilderImpl extends Object implements ExternalTaskQueryTopicBuilder
| Modifier and Type | Field and Description |
|---|---|
protected CommandExecutor |
commandExecutor |
protected TopicFetchInstruction |
currentInstruction |
protected Map<String,TopicFetchInstruction> |
instructions |
protected int |
maxTasks |
protected boolean |
usePriority
Indicates that priority is enabled.
|
protected String |
workerId |
| Constructor and Description |
|---|
ExternalTaskQueryTopicBuilderImpl(CommandExecutor commandExecutor,
String workerId,
int maxTasks,
boolean usePriority) |
| Modifier and Type | Method and Description |
|---|---|
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 |
localVariables()
Define whether only local variables will be fetched with all tasks for the current topic.
|
ExternalTaskQueryTopicBuilder |
processDefinitionId(String processDefinitionId)
Define process definition id to filter external tasks by.
|
ExternalTaskQueryTopicBuilder |
processDefinitionIdIn(String... processDefinitionIds)
Define process definition ids to filter external tasksb by.
|
ExternalTaskQueryTopicBuilder |
processDefinitionKey(String processDefinitionKey)
Define process definition key to filter external tasks by.
|
ExternalTaskQueryTopicBuilder |
processDefinitionKeyIn(String... processDefinitionKeys)
Define process definition keys to filter external tasks by.
|
ExternalTaskQueryTopicBuilder |
processDefinitionVersionTag(String processDefinitionVersionTag)
Define a process definition version tag to filter external tasks by.
|
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 |
tenantIdIn(String... tenantIds)
Define tenant ids to filter external tasks by.
|
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.
|
ExternalTaskQueryTopicBuilder |
withoutTenantId()
Filter external tasks only with null tenant id.
|
protected CommandExecutor commandExecutor
protected String workerId
protected int maxTasks
protected boolean usePriority
protected Map<String,TopicFetchInstruction> instructions
protected TopicFetchInstruction currentInstruction
public ExternalTaskQueryTopicBuilderImpl(CommandExecutor commandExecutor, String workerId, int maxTasks, boolean usePriority)
public List<LockedExternalTask> execute()
ExternalTaskQueryBuilderexecute in interface ExternalTaskQueryBuilderpublic ExternalTaskQueryTopicBuilder topic(String topicName, long lockDuration)
ExternalTaskQueryBuildertopic in interface ExternalTaskQueryBuildertopicName - the name of the topiclockDuration - the duration in milliseconds for which tasks should be locked;
begins at the time of fetchingpublic ExternalTaskQueryTopicBuilder variables(String... variables)
ExternalTaskQueryTopicBuildervariables in interface ExternalTaskQueryTopicBuildervariables - the variable names to fetch, if null all variables will be fetchedpublic ExternalTaskQueryTopicBuilder variables(List<String> variables)
ExternalTaskQueryTopicBuildervariables in interface ExternalTaskQueryTopicBuildervariables - the variable names to fetch, if null all variables will be fetchedpublic ExternalTaskQueryTopicBuilder processInstanceVariableEquals(Map<String,Object> variables)
ExternalTaskQueryTopicBuilderprocessInstanceVariableEquals in interface ExternalTaskQueryTopicBuildervariables - a HashMap of the variable names (keys) and the values to filter bypublic ExternalTaskQueryTopicBuilder processInstanceVariableEquals(String name, Object value)
ExternalTaskQueryTopicBuilderprocessInstanceVariableEquals in interface ExternalTaskQueryTopicBuildername - the name of the variable you want to fetch and query byvalue - the value of the variable which you want to filterpublic ExternalTaskQueryTopicBuilder businessKey(String businessKey)
ExternalTaskQueryTopicBuilderbusinessKey in interface ExternalTaskQueryTopicBuilderbusinessKey - the value of the Business Key to filter bypublic ExternalTaskQueryTopicBuilder processDefinitionId(String processDefinitionId)
ExternalTaskQueryTopicBuilderprocessDefinitionId in interface ExternalTaskQueryTopicBuilderprocessDefinitionId - the definition id to filter bypublic ExternalTaskQueryTopicBuilder processDefinitionIdIn(String... processDefinitionIds)
ExternalTaskQueryTopicBuilderprocessDefinitionIdIn in interface ExternalTaskQueryTopicBuilderprocessDefinitionIds - the definition ids to filter bypublic ExternalTaskQueryTopicBuilder processDefinitionKey(String processDefinitionKey)
ExternalTaskQueryTopicBuilderprocessDefinitionKey in interface ExternalTaskQueryTopicBuilderprocessDefinitionKey - the definition key to filter bypublic ExternalTaskQueryTopicBuilder processDefinitionKeyIn(String... processDefinitionKeys)
ExternalTaskQueryTopicBuilderprocessDefinitionKeyIn in interface ExternalTaskQueryTopicBuilderpublic ExternalTaskQueryTopicBuilder processDefinitionVersionTag(String processDefinitionVersionTag)
ExternalTaskQueryTopicBuilderprocessDefinitionVersionTag in interface ExternalTaskQueryTopicBuilderprocessDefinitionVersionTag - the version tag to filter bypublic ExternalTaskQueryTopicBuilder withoutTenantId()
ExternalTaskQueryTopicBuilderwithoutTenantId in interface ExternalTaskQueryTopicBuilderpublic ExternalTaskQueryTopicBuilder tenantIdIn(String... tenantIds)
ExternalTaskQueryTopicBuildertenantIdIn in interface ExternalTaskQueryTopicBuildertenantIds - the tenant ids to filter byprotected void submitCurrentInstruction()
public ExternalTaskQueryTopicBuilder enableCustomObjectDeserialization()
ExternalTaskQueryTopicBuilderenableCustomObjectDeserialization in interface ExternalTaskQueryTopicBuilderpublic ExternalTaskQueryTopicBuilder localVariables()
ExternalTaskQueryTopicBuilderlocalVariables in interface ExternalTaskQueryTopicBuilderCopyright © 2021. All rights reserved.