My example was bad, because the dsl starts with the same sentence as the first one in the mortgages project.
Can you please try to set the credit rating variable to OK in the Guided Editor,
then save, close and reopen the rule.
Now you should see that OK was replaced by AA.
This happens because the value is not in the enum and the editor uses the first enum value.
When you change the typ of rating to String, you should see this value in the rating input field: "OK and applicant dates is after 14-Mär-2014"
Im using this kie-wb build https://hudson.jboss.org/hudson/job/kie-wb-distributions/1243/
Isn't this the 6.1.0.Beta1 Version ?
Thanks for helping, Kai.2014-03-13 17:36 GMT+01:00 Michael Anstis <michael.anstis@gmail.com>:
I tried with the latest code (6.1.0.Beta1) and it works OK.[when]When the credit rating is {rating:ENUM:Applicant.creditRating} and applicant dates is after {dos:DATE:default} = applicant:Applicant(creditRating=="{rating}", applicationDate>"{dos}")1.|package org.mortgages;2.|3.|import java.lang.Number;4.|5.|rule "eeee"6.| dialect "mvel"7.| when8.| applicant:Applicant(creditRating=="AA", applicationDate>"13-Mar-2014")9.| then10.|end
On 13 March 2014 15:49, Kai Jemella <kjemella@gmail.com> wrote:
_______________________________________________Hi,
i recognized that DSL with multiple variables not working in current 6.1.0-SNAPSHOT master.
First i created a jira issue in the drools project:
https://issues.jboss.org/browse/DROOLS-428
I thought it was ui issue. I had closed the ticket and recreated it in guvnor project.
https://issues.jboss.org/browse/GUVNOR-2081
Now i figured out, that also without edit and save the GuidedRule in kie workbench, the issue exists.
Should i now reopen the drools ticket?
Should i create a unit test for the issue?
Thanks, Kai Jemella.
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users