public class TopicSubscriptionBuilderImpl extends Object implements TopicSubscriptionBuilder
| Modifier and Type | Field and Description |
|---|---|
protected String |
businessKey |
protected ExternalTaskHandler |
externalTaskHandler |
protected boolean |
includeExtensionProperties |
protected boolean |
localVariables |
protected Long |
lockDuration |
protected static ExternalTaskClientLogger |
LOG |
protected String |
processDefinitionId |
protected List<String> |
processDefinitionIds |
protected String |
processDefinitionKey |
protected List<String> |
processDefinitionKeys |
protected String |
processDefinitionVersionTag |
protected Map<String,Object> |
processVariables |
protected List<String> |
tenantIds |
protected String |
topicName |
protected TopicSubscriptionManager |
topicSubscriptionManager |
protected List<String> |
variableNames |
protected boolean |
withoutTenantId |
| Constructor and Description |
|---|
TopicSubscriptionBuilderImpl(String topicName,
TopicSubscriptionManager topicSubscriptionManager) |
protected static final ExternalTaskClientLogger LOG
protected String topicName
protected Long lockDuration
protected boolean localVariables
protected String businessKey
protected String processDefinitionId
protected String processDefinitionKey
protected String processDefinitionVersionTag
protected boolean withoutTenantId
protected ExternalTaskHandler externalTaskHandler
protected TopicSubscriptionManager topicSubscriptionManager
protected boolean includeExtensionProperties
public TopicSubscriptionBuilderImpl(String topicName, TopicSubscriptionManager topicSubscriptionManager)
public TopicSubscriptionBuilder lockDuration(long lockDuration)
lockDuration in interface TopicSubscriptionBuilderlockDuration - public TopicSubscriptionBuilder handler(ExternalTaskHandler externalTaskHandler)
handler in interface TopicSubscriptionBuilderexternalTaskHandler - which will be executed for the external taskpublic TopicSubscriptionBuilder variables(String... variableNames)
variables in interface TopicSubscriptionBuildervariableNames - of variables which are supposed to be retrievedpublic TopicSubscriptionBuilder localVariables(boolean localVariables)
localVariables in interface TopicSubscriptionBuilderlocalVariables - whether or not variables from greater scope than the external task
should be fetched. false means all variables visible
in the scope of the external task will be fetched,
true means only local variables (to the scope of the
external task) will be fetchedpublic TopicSubscriptionBuilder businessKey(String businessKey)
businessKey in interface TopicSubscriptionBuilderbusinessKey - to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionId(String processDefinitionId)
processDefinitionId in interface TopicSubscriptionBuilderprocessDefinitionId - to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionIdIn(String... processDefinitionIds)
processDefinitionIdIn in interface TopicSubscriptionBuilderprocessDefinitionIds - to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionKey(String processDefinitionKey)
processDefinitionKey in interface TopicSubscriptionBuilderprocessDefinitionKey - to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionKeyIn(String... processDefinitionKeys)
processDefinitionKeyIn in interface TopicSubscriptionBuilderprocessDefinitionKeys - to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionVersionTag(String processDefinitionVersionTag)
processDefinitionVersionTag in interface TopicSubscriptionBuilderpublic TopicSubscriptionBuilder processVariablesEqualsIn(Map<String,Object> processVariables)
processVariablesEqualsIn in interface TopicSubscriptionBuilderprocessVariables - of which the external tasks to be retrieved are related topublic TopicSubscriptionBuilder processVariableEquals(String name, Object value)
processVariableEquals in interface TopicSubscriptionBuilderpublic TopicSubscriptionBuilder withoutTenantId()
TopicSubscriptionBuilderwithoutTenantId in interface TopicSubscriptionBuilderpublic TopicSubscriptionBuilder tenantIdIn(String... tenantIds)
tenantIdIn in interface TopicSubscriptionBuildertenantIds - to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder includeExtensionProperties(boolean includeExtensionProperties)
includeExtensionProperties in interface TopicSubscriptionBuilderincludeExtensionProperties - whether or not to include custom extension properties for fetched
external tasks. true means all extensionProperties
defined in the external task activity will be provided.
false means custom extension properties are not
available within the external-task-client. The default is
false.public TopicSubscription open()
TopicSubscriptionBuilderopen in interface TopicSubscriptionBuilderCopyright © 2022. All rights reserved.