Hi Juan Carlos,
Sorry for the late reply.
Would you mind sending me the Sample.drl en .bpmn files as well?
I happen to have a bit of code that I can use to look into this.
Thanks,
Marco
10/06/2011 01:28 PM, juancarlos.fernandezj:
Hello,
I'm having trouble when trying to insert() facts
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
Why not get get List using from in the LHS and iterate this in the RHS
adding individual facts?
On 27 October 2011 21:39, RK rmeiap...@datacert.com wrote:
I want to insert multiple facts sourced by a 'from' clause to a service
method.
For Ex:
when
...
then
insert( mycustomobject() from
If globalService.getCustomObjects() returns a collection then there is no
point in doing a from/collect to iterate and collect (again) what was a
collection to start with.
Simply use
for (Object obj: globalService.getCustomObjects()) insert(obj);
-W
2011/10/27 Michael Anstis
Make sure you try with Drools 5.3 and the proper mvel version.
Edson
2011/10/27 lhorton lhor...@abclegal.com
thank you for taking the time to test this, Wolf.I have other tests
with
the same syntax that have tested ok as well. It is puzzling. I will test
tomorrow with the mvel
I am trying to use data enumerations and running into a problem. Following
the Vehicle engineType/fuelType data enumeration example in the Guvnor
manual, I created the following enumeration list and it works:
'Vehicle.engineType' : (new test.VehicleHelper()).getEngineTypes()