Hello,
I have a workflow project up and running using Drools Persistence. My workflows will have a number of “long running processes” which I will implement with WorkItemHandlers. I have created a dummy WorkItemHandler that just sleeps for a number
of seconds before calling manager.completeWorkItem(workItem.getId(), null);
My problem is that in a unit test I am creating a StatefulKnowledgeSession in one thread then calling start process on it in other threads to start multiple processes. I take it this is not supported because it tries to do persistence things
without a transaction. How should I be doing this?
Also how can I get my long running process to execute outside of a database transaction?
Thanks,
Greg