Asynchronous work item handler that utilizes power of
ExecutorService
.
it expects following parameters to be present on work item for proper execution:
- CommandClass - FQCN of the command to be executed - mandatory unless this handler is configured with default command class
- Retries - number of retires for the command execution - optional
- RetryDelay - Comma separated list of time expressions (5s, 2m, 4h) to be used in case of errors and retry needed.
During execution it will set contextual data that will be available inside the command:
- businessKey - generated from process instance id and work item id in following format: [processInstanceId]:[workItemId]
- workItem - actual work item instance that is being executed (including all parameters)
- processInstanceId - id of the process instance that triggered this work item execution
In case work item shall be aborted handler will attempt to cancel active requests based on business key (process instance id and work item id)