[jbpm-dev] [BRMS 5.3] Bug 796654 in case of jbpm processes

Giovanni Marigi gmarigi at redhat.com
Tue Mar 12 05:53:46 EDT 2013


Hi,
we have some "stateless" processes and we would like to use a stateless session to run them; 
we don't have human tasks neither safe points but we are using work items; 
looking at the following issue https://bugzilla.redhat.com/show_bug.cgi?id=796654 it seems that it should be possible to attach workitems to a stateless session but running some tests it seems true only if work items are not inside processes.
The unit test attached https://github.com/droolsjbpm/drools/commit/fd655f726d491fd18ab42dc2aa5eb80e5da2d198 uses a work item in a drools rule and not inside a process.

In case of processes we have exceptions that work item handler XXX is not found....

The code we are using when we are going to start a new stateless process:

ksession.execute(new RegisterWorkItemHandlerCommand(KnowledgeConstants.EJB_CONTROL_WORK_ITEM,new EJBControlWorkItemHandler()));
Object execute = ksession.execute(CommandFactory.newStartProcess(processName, params));

Anyone can help me with this?

Regards,
Giovanni
-- 
Giovanni Marigi
Red Hat - JBoss Consultant -
email: gmarigi at redhat.com
Mobile: +39 3423175986
Office: +39 0687502315

Red Hat Italy
Via Andrea Doria 41m
00192 Roma - Italy
www.redhat.com

Prima di stampare, pensa all'ambiente ** Think about the environment before printing


More information about the jbpm-dev mailing list