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

DRL applies even if groupflow was not assigned

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 7.6.0.GA
    • Decision Central
    • None
    • CR1
    • The problem is in the dirty testing environment and reproduces only if running the tests without cleaning the whole .niogit repository.
    • 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

    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

      Attachments

        Activity

          People

            dzonca@redhat.com Daniele Zonca
            adupliak Anna Dupliak
            Anna Dupliak Anna Dupliak
            Anna Dupliak Anna Dupliak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: