[rules-users] PlanningVariables are sometimes null

Michiel Vermandel mvermand at yahoo.com
Fri Aug 31 06:33:48 EDT 2012


Hi,

I've got an planningEntity with two planningVariables.
For both variables I build a list of objects.
While solving, it seems that the planningEntity objects are sometimes called without setting the planning variables.

When I read an attribute of such a variable in a rule I get a NPE, ofcourse.
Is it possible to always have the planningsvariables to be set before executing a rule?

Or am I missing the obvious?

Thanks,

Michiel
 
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120831/0c3aa2b9/attachment.html 


More information about the rules-users mailing list