Try without your $o in your constraints.
EG try with :
$o:Order(b.maxQ < q)
$o:Order(q > b.maxQ)
I suppose that as $o is the object itself, it may be binded only
AFTER your pattern (in parser), and could leads to some weird things
if used inside ..
Le 30/12/2010 20:32, Michael Whidden a écrit :
I notice an unexpected behavior when creating a
technical DRL in Guvnor.
If I have a fact with a sub-fact, then binary operators don't
seem to be commutative.
Eg.,
declare Broker
maxQ: Integer
declare Order
q: Integer
b: Broker
The rule
$o:Order($o.b.maxQ < $o.q)
validates fine, but
$o:Order($o.q > $o.b.maxQ)
returns an error "Unable to create restriction
'[QualifiedIndentifierRestr: > $o.broker.maxQ ]' for field
'$o.q' in the rule"
I'm new, so I want to make sure I'm not missing something obvious
here...
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
CARTE DE VISITE
Vincent LEGENDRE
Consultant Sénior
EURODECISION
9A rue de la Porte de Buc 78000 VERSAILLES
Tél. : +33 (0)1 39 07 12 40
Direct : +33 (0)1 39 07 26 16
www.eurodecision.com