Interface TopicSubscription

    • Method Detail

      • close

        void close()
        The client has been unsubscribed from the topic. NB! It can happen, that the changes are not applied immediately, in case the client is currently iterating over the bunch of fetched and locked external tasks. The changes will have affect starting from the next bunch only.
      • getTopicName

        java.lang.String getTopicName()
        Returns:
        the topic name of the subscription
      • getLockDuration

        java.lang.Long getLockDuration()
        Returns:
        • the duration of the lock applied to the topic
        • if null, the client or the default lock duration is applied
      • getExternalTaskHandler

        ExternalTaskHandler getExternalTaskHandler()
        Returns:
        the external task handler of the topic
      • getVariableNames

        java.util.List<java.lang.String> getVariableNames()
        Returns:
        a list of variable names which are supposed to be retrieved
      • isLocalVariables

        boolean isLocalVariables()
        Returns:
        whether or not variables from greater scopes than the external task are 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 fetched.
      • getBusinessKey

        java.lang.String getBusinessKey()
        Returns:
        the business key associated with the external tasks which are supposed to be fetched and locked
      • getProcessDefinitionId

        java.lang.String getProcessDefinitionId()
        Returns:
        the process definition id associated with the external tasks which are supposed to be fetched and locked
      • getProcessDefinitionIdIn

        java.util.List<java.lang.String> getProcessDefinitionIdIn()
        Returns:
        the process definition ids associated with the external tasks which are supposed to be fetched and locked
      • getProcessDefinitionKey

        java.lang.String getProcessDefinitionKey()
        Returns:
        the process definition key associated with the external tasks which are supposed to be fetched and locked
      • getProcessDefinitionKeyIn

        java.util.List<java.lang.String> getProcessDefinitionKeyIn()
        Returns:
        the process definition keys associated with the external tasks which are supposed to be fetched and locked
      • getProcessDefinitionVersionTag

        java.lang.String getProcessDefinitionVersionTag()
        Returns:
        the process definition version tag associated with the external task which are supposed to be fetched and locked
      • getProcessVariables

        java.util.Map<java.lang.String,​java.lang.Object> getProcessVariables()
        Returns:
        the process variables associated with the external task which are supposed to be fetched and locked
      • isWithoutTenantId

        boolean isWithoutTenantId()
        Returns:
        the tenant id presence for the external tasks which are supposed to be fetched and locked
      • getTenantIdIn

        java.util.List<java.lang.String> getTenantIdIn()
        Returns:
        the tenant ids associated with the external tasks which are supposed to be fetched and locked
      • isIncludeExtensionProperties

        boolean isIncludeExtensionProperties()
        Returns:
        whether or not custom extension properties defined in the external task activity are included. The default is 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.