Add endpoint for individual process goal evaluation

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 3.8.0
    • Affects Version/s: None
    • Component/s: backend
    • Not defined

      For the goal setting modal, we would need to present the current success/failure of the goals being set. For this, we need a new endpoint to evaluate the goals specified.

      Request:

       

      POST /api/process/{processDefinitionKey}/goals/evaluate

       

      Request:

       

      [
        {type: 'targetDuration', percentile: '75' , value: '5', unit: 'days' },
        {type: 'slaDuration', percentile: '99' , value: '5', unit: 'days' }
      ]

       

      Response:

       

      [
        {}{"type""targetDuration",  "value": 43243242342, "successful"true},
        {}{"type""slaDuration",  "value": 213123123, "successful"false}
      ]  

       

       

      200 - OK: Goals evaluated
      400 - Bad Request: The parameters are invalid
      404 - Not Found: the process definition does not exist
      401 - Unauthorized

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Joshua Windels
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: