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

Alerting does not work with decision reports

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 2.4.0
    • None
    • backend
    • None

      • given:
        • I create a number decision report
      • when:
        • I want to create an alert for the decision number report
      • then:
        • the alert is scheduled for the decision number report, but a notification is never send out when the threshold is exceeded
        • I can see the following exception in the logs:
          java.lang.ClassCastException: org.camunda.optimize.service.es.report.result.decision.SingleDecisionNumberReportResult cannot be cast to org.camunda.optimize.service.es.report.result.process.SingleProcessNumberReportResult at org.camunda.optimize.service.alert.AlertJob.execute(AlertJob.java:58) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
          
      • expected:
        • the alert is scheduled, the respective report evaluated and a notification is send out as soon as the threshold is exceeded
        • there is no error log message

        This is the controller panel for Smart Panels app

            [OPT-2054] Alerting does not work with decision reports

            Michael added a comment -

            Since I'm leaving soon I can't fix the bug, but what I found out so far:
            SingleDecisionNumberReportResult is not implementing NumberResult (that's why there is probably a ClassCastException, though not to SingleProcessNumberReportResult as stated here, but to NumberResult)
            I didn't test it yet though, since I didnt figure out yet how to manually test the Alerts (or if there are IT tests)...

            Michael added a comment - Since I'm leaving soon I can't fix the bug, but what I found out so far: SingleDecisionNumberReportResult is not implementing NumberResult (that's why there is probably a ClassCastException, though not to SingleProcessNumberReportResult as stated here, but to NumberResult) I didn't test it yet though, since I didnt figure out yet how to manually test the Alerts (or if there are IT tests)...

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

                Created:
                Updated:
                Resolved: