public class TopicSubscriptionImpl extends Object implements TopicSubscription
Modifier and Type | Field and Description |
---|---|
protected String |
businessKey |
protected ExternalTaskHandler |
externalTaskHandler |
protected boolean |
includeExtensionProperties |
protected boolean |
localVariables |
protected Long |
lockDuration |
protected String |
processDefinitionId |
protected List<String> |
processDefinitionIdIn |
protected String |
processDefinitionKey |
protected List<String> |
processDefinitionKeyIn |
protected String |
processDefinitionVersionTag |
protected Map<String,Object> |
processVariables |
protected List<String> |
tenantIdIn |
protected String |
topicName |
protected TopicSubscriptionManager |
topicSubscriptionManager |
protected List<String> |
variableNames |
protected boolean |
withoutTenantId |
Constructor and Description |
---|
TopicSubscriptionImpl(String topicName,
Long lockDuration,
ExternalTaskHandler externalTaskHandler,
TopicSubscriptionManager topicSubscriptionManager,
List<String> variableNames,
String businessKey) |
protected String topicName
protected Long lockDuration
protected ExternalTaskHandler externalTaskHandler
protected TopicSubscriptionManager topicSubscriptionManager
protected boolean localVariables
protected String businessKey
protected String processDefinitionId
protected String processDefinitionKey
protected String processDefinitionVersionTag
protected boolean withoutTenantId
protected boolean includeExtensionProperties
public TopicSubscriptionImpl(String topicName, Long lockDuration, ExternalTaskHandler externalTaskHandler, TopicSubscriptionManager topicSubscriptionManager, List<String> variableNames, String businessKey)
public String getTopicName()
getTopicName
in interface TopicSubscription
public Long getLockDuration()
getLockDuration
in interface TopicSubscription
null
, the client or the default lock duration is applied
public ExternalTaskHandler getExternalTaskHandler()
getExternalTaskHandler
in interface TopicSubscription
public void close()
TopicSubscription
close
in interface TopicSubscription
public List<String> getVariableNames()
getVariableNames
in interface TopicSubscription
public boolean isLocalVariables()
isLocalVariables
in interface TopicSubscription
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
fetched.public void setLocalVariables(boolean localVariables)
public String getBusinessKey()
getBusinessKey
in interface TopicSubscription
public String getProcessDefinitionId()
getProcessDefinitionId
in interface TopicSubscription
public TopicSubscription setProcessDefinitionId(String processDefinitionId)
public List<String> getProcessDefinitionIdIn()
getProcessDefinitionIdIn
in interface TopicSubscription
public TopicSubscription setProcessDefinitionIdIn(List<String> processDefinitionIds)
public String getProcessDefinitionKey()
getProcessDefinitionKey
in interface TopicSubscription
public TopicSubscription setProcessDefinitionKey(String processDefinitionKey)
public List<String> getProcessDefinitionKeyIn()
getProcessDefinitionKeyIn
in interface TopicSubscription
public TopicSubscription setProcessDefinitionKeyIn(List<String> processDefinitionKeys)
public String getProcessDefinitionVersionTag()
getProcessDefinitionVersionTag
in interface TopicSubscription
public void setProcessDefinitionVersionTag(String processDefinitionVersionTag)
public HashMap<String,Object> getProcessVariables()
getProcessVariables
in interface TopicSubscription
public boolean isWithoutTenantId()
isWithoutTenantId
in interface TopicSubscription
public void setWithoutTenantId(boolean withoutTenantId)
public List<String> getTenantIdIn()
getTenantIdIn
in interface TopicSubscription
public TopicSubscription setTenantIdIn(List<String> tenantIds)
public boolean isIncludeExtensionProperties()
isIncludeExtensionProperties
in interface TopicSubscription
false
,
which means that no extension properties will be available within
the external-task-client. true
means that all defined
extension properties are fetched and provided.public void setIncludeExtensionProperties(boolean includeExtensionProperties)
Copyright © 2022. All rights reserved.