Workaround for throw

To conditionally throw an error, you can configure a module to make it purposely fail during its operation. One possibility is to employ the JSON > Parse JSON module, configured to optionally throw an error (BundleValidationError in this case):

JSON error

You can then attach one of the error handling directives to the error handling route:

  • Rollback: Force the scenario execution to stop and perform the rollback phase.
  • Commit: Force the scenario execution to stop and perform the commit phase.
  • Ignore: Stop the processing of a route.
  • Break: Stop the processing of a route and store it in the queue of incomplete executions folder.

The following example shows the use of the Rollback directive:

Rollback directive

Previous pageAdd filtering and nesting to error handling routes
Next pageConfigure retry error handling workaround

Workfront