Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-3084

Align error and no result handling in reader layer

    XMLWordPrintable

Details

    • Task
    • Status: Done
    • L3 - Default
    • Resolution: Fixed
    • None
    • 3.2.0-alpha1, 3.2.0
    • backend
    • None
    • 33
    • Not defined

    Description

      Context:
      We throw a lot of exceptions for different cases (sometimes on no result, sometimes on actual communication errors) on the reader level which makes it very intransparent what happens if you use methods from the reader layer. To avoid that we started to use Optional objects.

      AT:

      • the reader layer only throws exceptions on communication problems with the soure (elasticsearch)
      • in cases where there was just no result (e.g. by id not found) it returns Optional wrapped dto's to signal this rather then throwing e.g. Rest Exceptions like notFoundException

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                johannes.heinemann Johannes
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce