Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1162

DRL applies even if groupflow was not assigned

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7.6.0.GA
    • Fix Version/s: None
    • Component/s: Decision Central
    • Labels:
      None
    • Affects Build:
      CR1
    • Target Release:
    • Steps to Reproduce:
      Hide
      1. Import the attached project bpms_Traffic.zip into business central
      2. Remove ruleflow-group "driver status" from Driver Status Rules file and save it
      3. Start the scenario simulation file Driver Status Rules Test, it will pass
      4. Add again ruleflow-group "driver status" into Driver Status Rules (all rules) file and save it
      5. Open the scenario simulation file Driver Status Rules Test
      6. Run it
      7. It will fail
      Show
      Import the attached project bpms_Traffic.zip into business central Remove ruleflow-group "driver status" from Driver Status Rules file and save it Start the scenario simulation file Driver Status Rules Test , it will pass Add again ruleflow-group "driver status" into Driver Status Rules (all rules) file and save it Open the scenario simulation file Driver Status Rules Test Run it It will fail
    • Release Notes Text:
      The problem is in the dirty testing environment and reproduces only if running the tests without cleaning the whole .niogit repository.

      Description

      For version 7.5

      1. Given Traffic repo
      2. Edit DRL driver status rules
        rule "Status 1: young driver"
          when
            driver: Driver(age <= 18)
          then
            driver.setStatus("young");
        end
        
        rule "Status 2: young adult driver"
          when
            driver: Driver(age > 18 && < 25)
          then
            driver.setStatus("young adult");
        end
        
        rule "Status 3: adult driver"
          when
            driver: Driver(age >= 25)
          then
            driver.setStatus("adult");
        end 
      1. Go to Driver Status Rules Tests.scesim
      2. Run the Tests

      Expected : Tests failed bcs the values null expected (no DRL rules are applied)
      Actual: Tests passed rules group was not updated

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                danielezonca Daniele Zonca
                Reporter:
                adupliak Anna Dupliak
                Tester:
                Anna Dupliak
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: