Annotation Type ExternalTaskSubscription


  • @Documented
    @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    public @interface ExternalTaskSubscription
    Annotation to subscribe the External Task Client to a topic.

    Heads-up:

    • for attributes of type String, the string $null$ is reserved and used as default value
    • for attributes of type Long, the value Long.MIN_VALUE is reserved and used as default value
    • Field Detail

      • STRING_NULL_VALUE

        static final java.lang.String STRING_NULL_VALUE
      • LONG_NULL_VALUE

        static final long LONG_NULL_VALUE
    • Element Detail

      • autoOpen

        boolean autoOpen
        Returns:
        autoOpen
        • true: the client immediately starts to fetch for External Tasks
        • false: topic subscription can be opened after application start by calling SpringTopicSubscription.open()
        Default:
        true
      • topicName

        @AliasFor("value")
        java.lang.String topicName
        Alias for value().
        Returns:
        topicName of the Service Task in the BPMN process model the client subscribes to
        Default:
        "$null$"
      • value

        @AliasFor("topicName")
        java.lang.String value
        Alias for topicName().
        Returns:
        topicName of the Service Task in the BPMN process model the client subscribes to
        Default:
        "$null$"
      • lockDuration

        long lockDuration
        Returns:
        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
        Default:
        -9223372036854775808L
      • variableNames

        java.lang.String[] variableNames
        Returns:
        variableNames of variables which are supposed to be retrieved. All variables are retrieved by default.
        Default:
        {"$null$"}
      • localVariables

        boolean localVariables
        Returns:
        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 fetched
        Default:
        false
      • businessKey

        java.lang.String businessKey
        Returns:
        businessKey to filter for external tasks that are supposed to be fetched and locked
        Default:
        "$null$"
      • processDefinitionId

        java.lang.String processDefinitionId
        Returns:
        processDefinitionId to filter for external tasks that are supposed to be fetched and locked
        Default:
        "$null$"
      • processDefinitionIdIn

        java.lang.String[] processDefinitionIdIn
        Returns:
        processDefinitionIds to filter for external tasks that are supposed to be fetched and locked
        Default:
        {"$null$"}
      • processDefinitionKey

        java.lang.String processDefinitionKey
        Returns:
        processDefinitionKey to filter for external tasks that are supposed to be fetched and locked
        Default:
        "$null$"
      • processDefinitionKeyIn

        java.lang.String[] processDefinitionKeyIn
        Returns:
        processDefinitionKeyIn to filter for external tasks that are supposed to be fetched and locked
        Default:
        {"$null$"}
      • processDefinitionVersionTag

        java.lang.String processDefinitionVersionTag
        Returns:
        processDefinitionVersionTag to filter for external tasks that are supposed to be fetched and locked
        Default:
        "$null$"
      • withoutTenantId

        boolean withoutTenantId
        Returns:
        Filter for external tasks without tenant
        Default:
        false
      • tenantIdIn

        java.lang.String[] tenantIdIn
        Returns:
        tenantIds to filter for external tasks that are supposed to be fetched and locked
        Default:
        {"$null$"}
      • includeExtensionProperties

        boolean includeExtensionProperties
        Returns:
        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.
        Default:
        false