2010/1/25 Mike Dougherty <mjdougherty@gmail.com>
Hello Wolfgang,

Thank you for the response. However, as I read this documentation this should not be necessary.

But it is, definitely. Matching and binding a Java object the way you do it in your rule
   property : StatusProperty( ... )
will only work if such an object has been inserted.
 
Even still, if I try it, it does not seem to help.


Could you please post your Java code from session creation til fireAllRules(), with all the
object creations and inserts?

Even if you insert the StatusProperty objects, your rule may still not fire if you do, for
instance, insertion of the TrainingStatus object before you add the StatusProperty
objects to the Set<StatusProperty> of the inserted training status!

-W
 

Thanks,
Mike



On Jan 24, 2010, at 9:17 AM, Wolfgang Laun wrote:

On Sun, Jan 24, 2010 at 8:16 AM, Mike Dougherty <mjdougherty@gmail.com> wrote:

I'm inserting a TrainingStatus object that should match this rule. But the resulting object does not have the nextSection and previousSection fields set to the values they should.

Only because you mention the insertion of the TrainingStatus object but not the one(s) of (a) StatusProperty object(s): They should be inserted, too!

-W


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users