Description of problem: Save and close a Guided rule with this fragment: > $total : Number( intValue > 0 ) from accumulate ( Applicant( age < 30 ), count() ) When it is reopened it looks like > Number( ) from accumulate ( Applicant( age < 30 ), count() ) Variable binding and field restrictions are gone. Version-Release number of selected component (if applicable): ER7 How reproducible: - Steps to Reproduce: See description. Actual results: GRE doesn't recognize parts of the DRL source. Expected results: After reopening the rule should look exactly the same as it was saved. Additional info:
Test in master: https://github.com/droolsjbpm/drools/commit/619b14877
Fixed by https://github.com/droolsjbpm/drools/commit/5b650c7ac
I fixed the drl unmarshalling. Reassigning to Toni to check if also the editor is now ok.
Looks like there was actually two bugs here. First one, no constraints shown for Number, is fixed. Second is that the variable for Number is not picked up. Here is the test for it. https://github.com/droolsjbpm/drools/commit/5a38cb402
Fixed by https://github.com/droolsjbpm/drools/commit/21dd2b838 Reassigning to Toni for a further check.
Commits for 6.0.x: https://github.com/droolsjbpm/drools/compare/7376025...227ac58