Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Image Added

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

JSON Configuration

Below is a set of example configuration.

Code Block
languagejs
themeEclipse
{
  "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.