for the first rule, the Jira is https://jira.jboss.org/jira/browse/JBRULES-1929
and you have to wait that my patch is applied and you will be able to do all you want
look at https://jira.jboss.org/jira/secure/attachment/12325575/FinalModification.jpg
for the second part of you question, did you try with class Double instead of standard type double.
For example, if a variable is boolean, than no listbox appears.
But if you use Boolean, then it works, a listbox appears and you can select everything
Le jeudi 26 mars 2009 à 12:53 -0700, hpost a écrit :
Hi. I am trying to implement the following rule using a guided rule in
Guvnor. It works successfully in the Eclipse environment.
$event : GlucoseEvent(input.glucoseValue <=
GlucoseResult result = $event.getResult();
double nextTime = glucoseCalc.calculateDuration(1.0,
System.out.println("SevereHypoglycemia rule ran.");
I have imported the jar file and can see all of the objects. The problem I
am having is with the nested object model. I can reference the
GlucoseEvent.input.glucoseValue field successfully, but the only comparison
operators I get are 'equals too' and 'not equals to'. They type of
glucoseValue is double and I need to do relational comparison as in the rule
above. If I do a 'View Source' on the rule in BRMS, this is what I see if
I use the 'equals' operator:
GlucoseEvent( input.glucoseValue == "40" )
Is this bug or does the guided rule editor only support flat object models?