[rules-users] mvel fact insertion best practices

Wolfgang Laun wolfgang.laun at gmail.com
Wed Feb 12 02:27:01 EST 2014


On 12/02/2014, drac0nic <scottlindsayjr at gmail.com> wrote:
> If I have a school pojo that has a list of classroom pojos, is it best
> practice to insert the school fact and loop through each classroom to set
> them as well?

It depends how frequently Classroom is used in rules. Inserting
Classroom objects as individual facts can simplify rules, although
you'll  have to establish linkage between a School and its Classrooms
unless there is just one school.

>
> Trying to set a consequence to the c.assroom based on whether the classroom
> that has a black chalkboard. To the document if the classrooms have student
> teachers.

I beg your pardon?
-W


>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/mvel-fact-insertion-best-practices-tp4028085.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list