Annotation Interface EnableExternalTaskClient
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Import(PostProcessorConfiguration.class)
public @interface EnableExternalTaskClient
Annotation to bootstrap the External Task Client
Heads-up:
- for attributes of type
String
, the string $null$ is reserved and used as default value - for attributes of type
Long
, the valueLong.MIN_VALUE
is reserved and used as default value - for attributes of type
Integer
, the valueInteger.MIN_VALUE
is reserved and used as default value
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionlong
Asynchronous response (long polling) is enabled if a timeout is given.Base url of the Camunda Runtime Platform REST API.Specifies the date format to de-/serialize date variables.Specifies the serialization format that is used to serialize objects when no specific format is requested.boolean
Disables immediate fetching for external tasks after bootstrapping the client.boolean
Disables the client-side backoff strategy.long
int
Specifies the maximum amount of tasks that can be fetched within one request.Specifies whether tasks should be fetched based on their createTime with a configured order () This information is optional.boolean
Specifies whether tasks should be fetched based on their createTime.boolean
Specifies whether tasks should be fetched based on their priority or arbitrarily.Base url of the Camunda Runtime Platform REST API.A custom worker id the Workflow Engine is aware of. -
Field Summary
-
Field Details
-
STRING_NULL_VALUE
- See Also:
-
LONG_NULL_VALUE
static final long LONG_NULL_VALUE- See Also:
-
INT_NULL_VALUE
static final int INT_NULL_VALUE- See Also:
-
STRING_ORDER_BY_ASC_VALUE
- See Also:
-
STRING_ORDER_BY_DESC_VALUE
- See Also:
-
-
Element Details
-
value
Base url of the Camunda Runtime Platform REST API. This information is mandatory. Alias ofbaseUrl()
.- Returns:
- baseUrl of the Camunda Runtime Platform REST API
- Default:
- "$null$"
-
baseUrl
Base url of the Camunda Runtime Platform REST API. This information is mandatory. Alias ofvalue()
.- Returns:
- baseUrl of the Camunda Runtime Platform REST API
- Default:
- "$null$"
-
maxTasks
int maxTasksSpecifies the maximum amount of tasks that can be fetched within one request. This information is optional. Default is 10.- Returns:
- maxTasks which are supposed to be fetched within one request
- Default:
- -2147483648
-
workerId
String workerIdA custom worker id the Workflow Engine is aware of. This information is optional. Note: make sure to choose a unique worker idIf not given or null, a worker id is generated automatically which consists of the hostname as well as a random and unique 128 bit string (UUID).
- Returns:
- workerId the Workflow Engine is aware of
- Default:
- "$null$"
-
usePriority
boolean usePrioritySpecifies whether tasks should be fetched based on their priority or arbitrarily. This information is optional. Default istrue
.- Returns:
- usePriority when fetching and locking tasks
- Default:
- true
-
useCreateTime
boolean useCreateTimeSpecifies whether tasks should be fetched based on their createTime. This is optional. The default isfalse
.- Returns:
- useCreateTime when fetching and locking tasks
- Default:
- false
-
orderByCreateTime
String orderByCreateTimeSpecifies whether tasks should be fetched based on their createTime with a configured order () This information is optional.- Returns:
- useCreateTime when fetching and locking tasks
- Default:
- "$null$"
-
asyncResponseTimeout
long asyncResponseTimeoutAsynchronous response (long polling) is enabled if a timeout is given. Specifies the maximum waiting time for the response of fetched and locked external tasks. The response is performed immediately, if external tasks are available in the moment of the request. This information is optional. Unless a timeout is given, fetch and lock responses are synchronous.- Returns:
- asyncResponseTimeout of fetched and locked external tasks in milliseconds
- Default:
- -9223372036854775808L
-
disableAutoFetching
boolean disableAutoFetchingDisables immediate fetching for external tasks after bootstrapping the client. To start fetchingExternalTaskClient.start()
must be called.- Returns:
- disableAutoFetching when after bootstrapping the client
- Default:
- false
-
disableBackoffStrategy
boolean disableBackoffStrategyDisables the client-side backoff strategy. When set totrue
, aBackoffStrategy
bean is ignored.NOTE: Please bear in mind that disabling the client-side backoff can lead to heavy load situations on engine side. To avoid this, please specify an appropriate
asyncResponseTimeout()
.- Returns:
- disableBackoffStrategy
- Default:
- false
-
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)
- is overridden by the lock duration configured on a topic subscription
- Default:
- -9223372036854775808L
-
dateFormat
String dateFormatSpecifies the date format to de-/serialize date variables. The option defaults toyyyy-MM-dd'T'HH:mm:ss.SSSZ
- Returns:
- dateFormat date format to be used
- Default:
- "$null$"
-
defaultSerializationFormat
String defaultSerializationFormatSpecifies the serialization format that is used to serialize objects when no specific format is requested. This option defaults to application/json.- Returns:
- defaultSerializationFormat serialization format to be used
- Default:
- "$null$"
-