Versions Compared

Key

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

Table of Contents

Introduction

  • The Try/Catch Instruction adds error handling to a number of job nodes in a workflow.
  • If one of the jobs in the Try block fails, then the jobs in the Catch block are executed and otherwise those in the Try block are skipped.
    • If a job in a Catch block fails, then the order is considered being failed.
    • An empty Catch block can be used to force the successful outcome of order execution.
      Jira
      serverSOS JIRA
      columnIdsissuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution
      columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
      serverId6dc67751-9d67-34cd-985b-194a8cdc9602
      keyJS-2005

Feature Video

This video explains how to automate the handling of job errors in workflows.

Widget Connector
urlhttps://www.youtube.com/watch?v=SNzBXEo7EJo&ab_channel=JobScheduler

Workflow Instruction: Try/Catch

...

  • If the first or second job within the Try block fails then the jobs in the Catch block will be executed and otherwise are those in the Try block will be skipped.
  • If the jobs in the Catch block are executed successfully then the order continues will continue with the instruction after the Try-End node and otherwise the order will fail and will be halted in the Catch block.
  • An empty Catch block indicates successful outcome and makes an order move to the next instruction.

Further Resources

Display content by label
TypeHow To
Labelsjs7 howto try-catch-instruction