public interface TopicSubscriptionBuilder
A fluent builder to configure the topic subscription
TopicSubscriptionBuilder lockDuration(long lockDuration)
lockDuration
- TopicSubscriptionBuilder handler(ExternalTaskHandler handler)
handler
- which will be executed for the external taskTopicSubscriptionBuilder variables(String... variableNames)
variableNames
- of variables which are supposed to be retrievedTopicSubscriptionBuilder localVariables(boolean localVariables)
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 fetchedTopicSubscriptionBuilder businessKey(String businessKey)
businessKey
- to filter for external tasks that are supposed to be fetched and lockedTopicSubscriptionBuilder processDefinitionId(String processDefinitionId)
processDefinitionId
- to filter for external tasks that are supposed to be fetched and lockedTopicSubscriptionBuilder processDefinitionIdIn(String... processDefinitionIds)
processDefinitionIds
- to filter for external tasks that are supposed to be fetched and lockedTopicSubscriptionBuilder processDefinitionKey(String processDefinitionKey)
processDefinitionKey
- to filter for external tasks that are supposed to be fetched and lockedTopicSubscriptionBuilder processDefinitionKeyIn(String... processDefinitionKeys)
processDefinitionKeys
- to filter for external tasks that are supposed to be fetched and lockedTopicSubscriptionBuilder processDefinitionVersionTag(String processDefinitionVersionTag)
processDefinitionKeys
- to filter for external tasks that are supposed to be fetched and lockedTopicSubscriptionBuilder processVariablesEqualsIn(Map<String,Object> processVariables)
processVariables
- of which the external tasks to be retrieved are related toTopicSubscriptionBuilder processVariableEquals(String name, Object value)
processVariables
- of which the external tasks to be retrieved are related to
When called more than once, retrieves tasks related to ANY of the given processVariables
In such cases, consider using processVariablesEqualsIn(Map)
insteadTopicSubscriptionBuilder withoutTenantId()
TopicSubscriptionBuilder tenantIdIn(String... tenantIds)
tenantIds
- to filter for external tasks that are supposed to be fetched and lockedTopicSubscriptionBuilder includeExtensionProperties(boolean includeExtensionProperties)
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
.TopicSubscription open()
ExternalTaskClientException
- Copyright © 2022. All rights reserved.