Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13987

In RPA Bridge, display meaningful error messages

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • L3 - Default
    • None
    • rpa-bridge-1.1.1
    • rpa

    Description

      User Story (Required on creation):

      When I start the RPA Bridge with an erroneous configuration, the application should clearly state which properties are configured in the wrong way.

      For example, starting the RPA Bridge with both configuration properties org.camunda.bpm.rpa.uipath-api.url as well as org.camunda.bpm.rpa.automation-anywhere-api.url in your application.yml file leads to the following stack trace. Instead, the application should display a meaningful error message helping the user to identify the issue that only one vendor is supported within a single RPA Bridge instance.

      2021-10-06 12:19:32.852 INFO 12932 — [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
      2021-10-06 12:19:32.853 ERROR 12932 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :
      ***************************
      APPLICATION FAILED TO START
      ***************************
      Description: The bean 'authentication', defined in class path resource [org/camunda/bpm/rpa/bridge/vendor/uipath/UiPathConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/camunda/bpm/rpa/bridge/vendor/aai/AutomationAnywhereConfiguration.class] and overriding is disabled.Action: Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
      

      Functional Requirements (Required before implementation):

      • Application properties are properly validated before application start
      • Erroneous configurations lead to meaningful error messages that help the user in fixing the errors

      Technical Requirements (Required before implementation):

      We can either

      • Add validation for the use case mentioned here
      • Create a centralized configuration validation and move validation logic there where applicable

      Limitations of Scope (Optional):

      Hints (optional):

      No validation of properties [1] at startup is available.

      [1] https://reflectoring.io/validate-spring-boot-configuration-parameters-at-startup/

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                robert.emsbach Robert Emsbach
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Salesforce