Class TopicSubscriptionBuilderImpl
java.lang.Object
org.camunda.bpm.client.topic.impl.TopicSubscriptionBuilderImpl
- All Implemented Interfaces:
TopicSubscriptionBuilder
- Author:
- Tassilo Weidner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected ExternalTaskHandlerprotected booleanprotected booleanprotected Longprotected static final ExternalTaskClientLoggerprotected Stringprotected Stringprotected Stringprotected Stringprotected TopicSubscriptionManagerprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionTopicSubscriptionBuilderImpl(String topicName, TopicSubscriptionManager topicSubscriptionManager) -
Method Summary
Modifier and TypeMethodDescriptionbusinessKey(String businessKey) protected voidensureNotNull(Object tenantIds, String parameterName) handler(ExternalTaskHandler externalTaskHandler) includeExtensionProperties(boolean includeExtensionProperties) localVariables(boolean localVariables) lockDuration(long lockDuration) open()Release the topic subscription for being executed asynchronouslyprocessDefinitionId(String processDefinitionId) processDefinitionIdIn(String... processDefinitionIds) processDefinitionKey(String processDefinitionKey) processDefinitionKeyIn(String... processDefinitionKeys) processDefinitionVersionTag(String processDefinitionVersionTag) processVariableEquals(String name, Object value) processVariablesEqualsIn(Map<String, Object> processVariables) tenantIdIn(String... tenantIds) Filter for external tasks without tenant
-
Field Details
-
LOG
-
topicName
-
lockDuration
-
variableNames
-
localVariables
protected boolean localVariables -
businessKey
-
processDefinitionId
-
processDefinitionIds
-
processDefinitionKey
-
processDefinitionKeys
-
processDefinitionVersionTag
-
processVariables
-
withoutTenantId
protected boolean withoutTenantId -
tenantIds
-
externalTaskHandler
-
topicSubscriptionManager
-
includeExtensionProperties
protected boolean includeExtensionProperties
-
-
Constructor Details
-
TopicSubscriptionBuilderImpl
public TopicSubscriptionBuilderImpl(String topicName, TopicSubscriptionManager topicSubscriptionManager)
-
-
Method Details
-
lockDuration
- Specified by:
lockDurationin interfaceTopicSubscriptionBuilder- Parameters:
lockDuration-- in milliseconds to lock the external tasks
- must be greater than zero
- the default lock duration is 20 seconds (20,000 milliseconds)
- overrides the lock duration configured on bootstrapping the client
- Returns:
- the builder
-
handler
- Specified by:
handlerin interfaceTopicSubscriptionBuilder- Parameters:
externalTaskHandler- which will be executed for the external task- Returns:
- the builder
-
variables
- Specified by:
variablesin interfaceTopicSubscriptionBuilder- Parameters:
variableNames- of variables which are supposed to be retrieved- Returns:
- the builder
-
localVariables
- Specified by:
localVariablesin interfaceTopicSubscriptionBuilder- Parameters:
localVariables- whether or not variables from greater scope than the external task should be fetched.falsemeans all variables visible in the scope of the external task will be fetched,truemeans only local variables (to the scope of the external task) will be fetched- Returns:
- the builder
-
businessKey
- Specified by:
businessKeyin interfaceTopicSubscriptionBuilder- Parameters:
businessKey- to filter for external tasks that are supposed to be fetched and locked- Returns:
- the builder
-
processDefinitionId
- Specified by:
processDefinitionIdin interfaceTopicSubscriptionBuilder- Parameters:
processDefinitionId- to filter for external tasks that are supposed to be fetched and locked- Returns:
- the builder
-
processDefinitionIdIn
- Specified by:
processDefinitionIdInin interfaceTopicSubscriptionBuilder- Parameters:
processDefinitionIds- to filter for external tasks that are supposed to be fetched and locked- Returns:
- the builder
-
processDefinitionKey
- Specified by:
processDefinitionKeyin interfaceTopicSubscriptionBuilder- Parameters:
processDefinitionKey- to filter for external tasks that are supposed to be fetched and locked- Returns:
- the builder
-
processDefinitionKeyIn
- Specified by:
processDefinitionKeyInin interfaceTopicSubscriptionBuilder- Parameters:
processDefinitionKeys- to filter for external tasks that are supposed to be fetched and locked- Returns:
- the builder
-
processDefinitionVersionTag
- Specified by:
processDefinitionVersionTagin interfaceTopicSubscriptionBuilder- Returns:
- the builder
-
processVariablesEqualsIn
- Specified by:
processVariablesEqualsInin interfaceTopicSubscriptionBuilder- Parameters:
processVariables- of which the external tasks to be retrieved are related to- Returns:
- the builder
-
processVariableEquals
- Specified by:
processVariableEqualsin interfaceTopicSubscriptionBuilder- Returns:
- the builder
-
withoutTenantId
Description copied from interface:TopicSubscriptionBuilderFilter for external tasks without tenant- Specified by:
withoutTenantIdin interfaceTopicSubscriptionBuilder- Returns:
- the builder
-
tenantIdIn
- Specified by:
tenantIdInin interfaceTopicSubscriptionBuilder- Parameters:
tenantIds- to filter for external tasks that are supposed to be fetched and locked- Returns:
- the builder
-
includeExtensionProperties
- Specified by:
includeExtensionPropertiesin interfaceTopicSubscriptionBuilder- Parameters:
includeExtensionProperties- whether or not to include custom extension properties for fetched external tasks.truemeans all extensionProperties defined in the external task activity will be provided.falsemeans custom extension properties are not available within the external-task-client. The default isfalse.- Returns:
- the builder
-
open
Description copied from interface:TopicSubscriptionBuilderRelease the topic subscription for being executed asynchronously- Specified by:
openin interfaceTopicSubscriptionBuilder- Returns:
- the builder
-
ensureNotNull
-