[rules-users] qualified identifiers in constraints: not commutative?
Michael Whidden
mwhidden at thebluew.com
Thu Dec 30 14:32:30 EST 2010
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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101230/2ddf2079/attachment.html
More information about the rules-users
mailing list