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

Add endpoint to retrigger workflow in error state

XMLWordPrintable

      A new endpoint should be added to re-trigger workflows in error state. This endpoint needs to perform two operations on the SonataFlow service: (1) update the variables with new values; (2) call the SonataFlow retrigger endpoint.

      • Orchestrator backend plugin - new endpoint details:

      Method: POST
      Body: new variables (must follow JSON schema)
      Endpoint: /instances/<instanceId>/retrigger

      This endpoint will throw an error if (a) the new variables don't follow the JSON Schema, (b) the instance is not in error state, (c) even with updated variables the workflow is not able to recover.

      • SonataFlow - endpoint details:

      Update the input variables
      Method: PATCH
      Body: new values (must follow JSON schema)
      Endpoint: <serviceUrl>/<definitionId>/<instanceId>

      Retrigger Instance in error state
      Method: POST
      Body: empty
      Endpoint: <serviceUrl>/management/processes/<definitionId>/instances/<instanceId>/retrigger

              gcaponet Guilherme Caponetto
              gcaponet Guilherme Caponetto
              Yona First Yona First
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: