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

Import non existing type breaks DRL validation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.4.0.GA
    • Business Central
    • Workaround Exists
    • Hide

      Once the bad import is removed, build the project. Then validation stop to present invalid error messages.

      Show
      Once the bad import is removed, build the project. Then validation stop to present invalid error messages.
    • Hide
      • In some BC project creates a DRL;
      • Use a valid code, for example:
        package com.myspace.testrules;
        
        rule "rulez"
        when
        then 
        end
        
      • Click on validation, it says the rule is fine;
      • Now add a bad import and validate, it will show the error, see:

      • now delete the bad code and validate again, there will be some unknown error:

      • You can even delete the drl and create a new one, you will see the error again when validating the rule
      • the validation works when the rule has only the package declaration
      • create a rule in other project works, but refreshing the page or changing the rule structure will never work
      Show
      In some BC project creates a DRL; Use a valid code, for example: package com.myspace.testrules; rule "rulez" when then end Click on validation, it says the rule is fine; Now add a bad import and validate, it will show the error, see: now delete the bad code and validate again, there will be some unknown error: You can even delete the drl and create a new one, you will see the error again when validating the rule the validation works when the rule has only the package declaration create a rule in other project works, but refreshing the page or changing the rule structure will never work

    Description

      DRL validation correctly tell us that there's an error when you import a non existing type.

      However, if you delete the bad import and try to validate again the validation will not work and point to errors that does not exist.

      If you build the project it works.

      The attached screencast describes the issue.

      Attachments

        Activity

          People

            trikkola Toni Rikkola
            rhn-support-wsiqueir William Siqueira
            Jozef Marko Jozef Marko
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: