Task - If failure then...else

This task is very similar to Task - If...then...else, except that it does not check on specific conditions, but it checks if any previous task in the chain has failed.

The main page of the task itself only contain the description.

JSON Configuration

Below is a set of example configuration.

{
  "class": "io.ceptor.pipeline.tasks.IfFailureTask",
  "description": "if transformation failed",
  "then": [], // List of tasks to execute if conditions are met
  "else": [] // Tasks executed if conditions are not met.
}


The tasks under "then" are executed if a previous task has failed (context.exception has a non-null value), and those under "else" are executed if no error occured.


© Ceptor ApS. All Rights Reserved.