Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-507

WorkflowService should throws exception if FAILED status when starting execution

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • parodos-backend
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • FLPATH 5, FLPATH 6

      Based on PR444 discussion (https://github.com/parodos-dev/parodos/pull/444#discussion_r1245281683) 

      Currently, the WorkflowController is checking the WorkReport for failed state and returns an exception if that is the case. This should be done only for parodos related error (ie: not error throw by the workflow itself, that's managed by the creator of the workflow)

      This behaviour should be done by the WorkflowService instead, this will enable better, more meaningful error.

      Different exception could be throw depending on the kind of error that occured, new Exception class may be introduced and added to the ControllerExceptionHandler 

            rh-ee-gfarache Gabriel Farache
            rh-ee-gfarache Gabriel Farache
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: