public enum SystemTaskFailureBehaviour extends Enum<SystemTaskFailureBehaviour>
Defines the behaviour in case a system task fails. A system task is a task that is executed by the system.
The behaviour that should be applied if a system task fails is not set on the task definition because process designers may like to change the behaviour depending on what kind of failure happens inside the system task. Therefore the behaviour can be configured either on the ivy.response object inside the system task process or with the engine wide system property 'SystemTask.Failure.Behaviour'
The following example shows how to set the behaviour:
ivy.response.setParameter("ch.ivyteam.ivy.workflow.SystemTaskFailureBehaviour", SystemTaskFailureBehaviour.FAIL_TASK_DO_NOT_RETRY);
If the behaviour is not set in the system task process the default behaviour is SystemTaskFailureBehaviour.FAIL_TASK_DO_RETRY
.
Enum Constant and Description |
---|
DESTROY_CASE
In case the system task fails, the case will be destroyed.
|
DESTROY_TASK
In case the system task fails, the task will be destroyed.
|
FAIL_TASK_DO_NOT_RETRY
In case the system task fails, put the task into state
TaskState.FAILED . |
FAIL_TASK_DO_RETRY
In case the system task fails, put the task into state
TaskState.FAILED . |
public static final SystemTaskFailureBehaviour FAIL_TASK_DO_RETRY
TaskState.FAILED
.
After a defined period the task state will be changed by the system back to state TaskState.SUSPENDED
and the system retries to execute the task.public static final SystemTaskFailureBehaviour FAIL_TASK_DO_NOT_RETRY
TaskState.FAILED
.
The task state will not be changed back to state TaskState.SUSPENDED
by the system.
Therefore the system does not retry to execute the task. Note that the workflow administrator can manually set the task state
back to TaskState.SUSPENDED
in which case the system retries to execute the task.public static final SystemTaskFailureBehaviour DESTROY_TASK
public static final SystemTaskFailureBehaviour DESTROY_CASE
Copyright © 2024
AXON IVY AG
All Rights Reserved Documentation was generated
on April 28, 2024