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 TopicSubscriptionBuilder
lockDuration
- public TopicSubscriptionBuilder handler(ExternalTaskHandler externalTaskHandler)
handler
in interface TopicSubscriptionBuilder
externalTaskHandler
- which will be executed for the external taskpublic TopicSubscriptionBuilder variables(String... variableNames)
variables
in interface TopicSubscriptionBuilder
variableNames
- of variables which are supposed to be retrievedpublic TopicSubscriptionBuilder localVariables(boolean localVariables)
localVariables
in interface TopicSubscriptionBuilder
localVariables
- 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 TopicSubscriptionBuilder
businessKey
- to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionId(String processDefinitionId)
processDefinitionId
in interface TopicSubscriptionBuilder
processDefinitionId
- to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionIdIn(String... processDefinitionIds)
processDefinitionIdIn
in interface TopicSubscriptionBuilder
processDefinitionIds
- to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionKey(String processDefinitionKey)
processDefinitionKey
in interface TopicSubscriptionBuilder
processDefinitionKey
- to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionKeyIn(String... processDefinitionKeys)
processDefinitionKeyIn
in interface TopicSubscriptionBuilder
processDefinitionKeys
- to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder processDefinitionVersionTag(String processDefinitionVersionTag)
processDefinitionVersionTag
in interface TopicSubscriptionBuilder
public TopicSubscriptionBuilder processVariablesEqualsIn(Map<String,Object> processVariables)
processVariablesEqualsIn
in interface TopicSubscriptionBuilder
processVariables
- of which the external tasks to be retrieved are related topublic TopicSubscriptionBuilder processVariableEquals(String name, Object value)
processVariableEquals
in interface TopicSubscriptionBuilder
public TopicSubscriptionBuilder withoutTenantId()
TopicSubscriptionBuilder
withoutTenantId
in interface TopicSubscriptionBuilder
public TopicSubscriptionBuilder tenantIdIn(String... tenantIds)
tenantIdIn
in interface TopicSubscriptionBuilder
tenantIds
- to filter for external tasks that are supposed to be fetched and lockedpublic TopicSubscriptionBuilder includeExtensionProperties(boolean includeExtensionProperties)
includeExtensionProperties
in interface TopicSubscriptionBuilder
includeExtensionProperties
- 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()
TopicSubscriptionBuilder
open
in interface TopicSubscriptionBuilder
Copyright © 2022. All rights reserved.