Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1401

Test Scenario freezes if NPE occurred in rule checking inner attributes

    XMLWordPrintable

Details

    • CR1
    • Hide
      1. Import the attached project inner_attributes into business central
      2. Open the file test_salaries
      3. Click Run Scenario button

      Actual result: The business central will freeze
      Expected result: Business central just informs about the NPE

      Show
      Import the attached project inner_attributes into business central Open the file test_salaries Click Run Scenario button Actual result: The business central will freeze Expected result: Business central just informs about the NPE

    Description

      The test scenario freezes if NPE occurs in rule that checks inner fields.

      Imagine in your scenario you insert fact Employee (and you don't initialize any field). Then imagine in your project is rule that checks $e : Employee( salary.amount > 0). Then it is correct NPE occurs when you run scenario. However the scenario shouldn't freeze, just inform user about the exception.

      Attachments

        Activity

          People

            trikkola Toni Rikkola
            rh-ee-jomarko Jozef Marko
            Jozef Marko Jozef Marko
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: