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

[Project Oriented] Asset validation show errors of other assets

XMLWordPrintable

    • ER1
    • Hide
      1. Open the workbench
      2. Import the mortgages project
      3. Update the asset Dummy rule.drl to be invalid, for example [1]
      4. Save the Dummy rule
      5. Open Pricing loans.gdst
      6. Validate Pricing loans
      7. Error that belongs to Dummy rule will be shown

      [1]

      Unable to find source-code formatter for language: mvel. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      package mortgages.mortgages
      
      rule 'Dummy rule'
      
      w
        //actions
      
      end
      
      Show
      Open the workbench Import the mortgages project Update the asset Dummy rule.drl to be invalid, for example [1] Save the Dummy rule Open Pricing loans.gdst Validate Pricing loans Error that belongs to Dummy rule will be shown [1] Unable to find source-code formatter for language: mvel. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml package mortgages.mortgages rule 'Dummy rule' w //actions end

      Setting this as blocker as the amount of failing tests.

      The issue can be seen if the project contains two assets, for example:

      • a.rdrl - valid
      • b.drl - invalid

      Then if user validates the asset a, he will see errors of the asset b

      The issue was revealed by the tests:

      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testValidDSRLFile
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testInvalidDSRLFile
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDSLCompinedWithPureDRL
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWithGlobalVariable
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWithExplicitNonExistingImport
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWithExplicitImport
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testValidDRLFileWithTwoRules
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testValidDRLFile
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWithUnknownGlobalVariable
      • org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWrongConstructor
      • org.drools.workbench.screens.guided.dtable.backend.server.GuidedDecisionTableEditorServiceImplCDITest.testFunctionFromDrl
      • org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleEditorServiceImplCDITest.testAbbreviatedCondition
      • org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleEditorServiceImplCDITest.testValidateRuleThatInherit

      The tests was temporarily ignored by: PR

              trikkola Toni Rikkola
              rh-ee-jomarko Jozef Marko (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: