Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-5943 Time-Based Goal Setting
  3. OPT-6075

Add endpoint for individual process goal evaluation

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • L3 - Default
    • 3.8.0
    • None
    • backend
    • Not defined

    Description

      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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              joshua.windels Joshua Windels
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce