[rules-users] inserting multiple facts in RHS

RK rmeiappan at datacert.com
Thu Oct 27 16:39:31 EDT 2011


I want to insert multiple facts sourced by a 'from' clause to a service
method.
For Ex:

when
...
then
 insert( mycustomobject() from globalService.getCustomObjects())

getCustomObjects() method will return several instances of custom objects
based on a sql query and i want to insert them into the knowledge session.
I'll be using these custom objects in other subsequent rules.

Is it possible to do something like this ?

Thanks


--
View this message in context: http://drools.46999.n3.nabble.com/inserting-multiple-facts-in-RHS-tp3459071p3459071.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list