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