JBoss Community

Re: apply rules on a file

created by stellina_rosa in jBPM - View the full discussion

Hi!

I have create a workItem that create an object for any string in the result file; in my example, it will create 3 object:

 

q1("Miller",38000,"New York")

q1("Koch",2000000,"Atlanta")

q1("Nguyen",35000,"New York")

 

I need to do this because Drools only works with object, and at the same time Drools take the object in the session; so now I need to add my objects to the session in the method executeWorkItem() of my workItem....

So far, I have only create the object... How can I add these to the session?

Thank you very much!

Reply to this message by going to Community

Start a new discussion in jBPM at Community