Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-2014

Finish instruction is extended to make orders leave the workflow with unsuccessful outcome

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.5.0
    • JS7 Controller
    • None

    Description

      Current Situation

      • With JS-2005 the outcome of an order is considered successful if an order enters the Catch block of a Try-Catch Instruction.
      • This allows to make an order continue in the workflow using an empty Catch block.
      • This allows to make an order leave the workflow with a successful outcome using the Finish Instruction.
      • This does not allow to make an order leave the workflow with an unsuccessful outcome.

      Desired Behavior

      • The Finish Instruction is extended by two additional attributes specifying
        • that the order should leave the workflow with a successful (default) or unsuccessful outcome,
        • a message that is made available to the JOC Cockpit History from a corresponding event.
          • A Finish Instruction with unsuccessful outcome logs its message in red letters as error.
            Example:
            [ERROR] [OrderFinished] id=#2022-11-07#T47319953201-root, pos=0, Error (status=failed, reason=finish_instruction, msg=unsuccessful), returnCode=1
          • A Finish Instruction with successful outcome logs its message with the list of variables where the variable name is returnMessage.
            Example:
            [MAIN] [OrderFinished] id=#2022-11-07#T83056597200-root, pos=0, returnCode=0, returnMessage=successful

      Attachments

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              ap Andreas PĆ¼schel
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: