[rules-users] LHS with combined "from" condition

Martin Book m.book at web.de
Mon Dec 24 08:16:36 EST 2007


Hello, 

 

i have following problem with defining a rule:

- Object type A contains object OA with attribute session(long).

- Object type B contains object OB with attribute session(long).

 

I would like to get any object of type B that contains object OB with
OB.session==OA.session

 

My LHS looks like this:

 

When

            $a:A()

            OA($sess : session) from $a.getOA()

            $b:B()

            OB(session==$sess) from $b.getOB()

Then

.

 

The problem is that condition two matches before condition three and
condition three could not be set before condition two. Is it possible to
group the conditions? 

 

 

kind regards and merry Christmas

 

Martin

 

 

            

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071224/f0b0ac94/attachment.html 


More information about the rules-users mailing list