Description of problem: The guided rule definitions, that are part of jboss-bpm-example (Big App) should be reviewed. It should be possible to open each of them in Guider Rule Editor (GRE) and also to validate them successfully. However that is not the case. Currently there are the following issues: 1. Jumbo Mortgage - possible to open, but does not validate in GRE. seems like the statement is not parsed correctly by the editor: application.setApr( application.getApr() + 0.5 ); --> We get the error: Unable to Analyse Expression System.out.println("Executed Rule: " + drools.getRule().getName() ); application.setApr( );: [Error: unable to resolve method using strict-mode: com.redhat.bpms.examples.mortgage.Application.setApr()] [Near : {... application.setApr( ); ....}] ^ [Line: 3, Column: 0] 2. Rules 'Low down payment before appraisal' and 'Low down payment based on appaisal' do not even open in the editor 3. Rule 'Validate down payment' - rule is not parset correctly by GRE as you can see by checking the source tab. I believe it is caused by the syntax: Application( downPayment < 0 || > property.price ) which based on latest info from engineering might no longer be supported. 4. Rule 'Validate SSN' - same issue as in 3 (rule not parsed by GRE editor) Version-Release number of selected component (if applicable): BPMS 6.0.0 ER5 How reproducible: Always Steps to Reproduce: 1. Install the jboss-bpm-example (Big App) 2. In project explorer navigate to MortgageDemo application and try to open each of the guider rules and try to validate each of them Actual results: See details above - 1 rules does not validate (seems like it's not parsed correctly) 2 rules cannot be opened 2 rules are parsed incorrectly - they are not fully read in the G.R.Editor (recommendation do not use shorthand syntax for comparions) Expected results: It should be possible to open all rules and all of them should pass validation.
Michael, could you assign this to someone?
Sorry Toni, could you have a look please (it's possibly covered by one of the other Guided Rule Editor BZs)?
Unit test for the Jumbo Mortgage https://github.com/droolsjbpm/drools/commit/c545fce01
Unit test for Validate down payment https://github.com/droolsjbpm/drools/commit/cacb2fd6f
Giving this to Mario while he fixes the tests. The tests should fix everything except the field > 10 || < 1 issue. That must be just an issue with the example or possibly with an import tool that the rules were imported with.
I fixed the drl unmarshalling issue related with the recognition of free form expression in rhs. Reassigning it to Toni.
*** Bug 1040037 has been marked as a duplicate of this bug. ***
As mentioned in Comment 5, the rules 'Validate down payment' and 'Validate SSN' will need to be updated in the BigApp repository to no longer use the abbreviated syntax, so that they can be correctly loaded by Guided Rule Editor.
Ok, verified with BPMS 6.0.0 CR1