Annotation Type 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
- for attributes of type
-
-
Field Summary
Fields Modifier and Type Fields Description static int
INT_NULL_VALUE
static long
LONG_NULL_VALUE
static String
STRING_NULL_VALUE
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description long
asyncResponseTimeout
Asynchronous response (long polling) is enabled if a timeout is given.String
baseUrl
Base url of the Camunda Runtime Platform REST API.String
dateFormat
Specifies the date format to de-/serialize date variables.String
defaultSerializationFormat
Specifies the serialization format that is used to serialize objects when no specific format is requested.boolean
disableAutoFetching
Disables immediate fetching for external tasks after bootstrapping the client.boolean
disableBackoffStrategy
Disables the client-side backoff strategy.long
lockDuration
int
maxTasks
Specifies the maximum amount of tasks that can be fetched within one request.boolean
usePriority
Specifies whether tasks should be fetched based on their priority or arbitrarily.String
value
Base url of the Camunda Runtime Platform REST API.String
workerId
A custom worker id the Workflow Engine is aware of.
-
-
-
Field Detail
-
STRING_NULL_VALUE
static final String STRING_NULL_VALUE
-
-
-
workerId
String workerId
A 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$"
-
-
-
asyncResponseTimeout
long asyncResponseTimeout
Asynchronous 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 disableAutoFetching
Disables 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 disableBackoffStrategy
Disables 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
-
-
-
dateFormat
String dateFormat
Specifies 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 defaultSerializationFormat
Specifies 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$"
-
-