Thanks, I don it like this now:
public void executeWorkItem(WorkItem wi, WorkItemManager wim) { MyThread th = new MyThread(); th.start(); } private final class MyThread extends Thread { public WorkItem wi; public WorkItemManager wim; @Override public void run() { try { // do something wim.completeWorkItem(wi.getId(), null); } catch (Exception e) { wim.abortWorkItem(wi.getId()); } } } Should be OK !? juergen -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rileflow-Domain-specific-processes-thread-model-tp1329422p1330496.html Sent from the Drools - User mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users