[jbpm-dev] [BRMS 5.3] Bug 796654 in case of jbpm processes
Giovanni Marigi
gmarigi at redhat.com
Tue Mar 12 06:16:17 EDT 2013
it seems working using a list of commands
List<Command<?>> commands = Lists.newArrayList();
commands.add(new RegisterWorkItemHandlerCommand(KnowledgeConstants.EJB_CONTROL_WORK_ITEM,new EJBControlWorkItemHandler()));
commands.add(new RegisterWorkItemHandlerCommand(KnowledgeConstants.WS_CONTROL_WORK_ITEM,new WSControlWorkItemHandler()));
commands.add(CommandFactory.newStartProcess(processName, params));
ExecutionResults results = ksession.execute(CommandFactory.newBatchExecution(commands));
----- Messaggio originale -----
Da: "Giovanni Marigi" <gmarigi at redhat.com>
A: "jbpm-dev" <jbpm-dev at lists.jboss.org>, sme-brms at redhat.com, sme-jbpm at redhat.com
Cc: "Jboss-Italy" <jboss-italy at redhat.com>
Inviato: Martedì, 12 marzo 2013 10:53:46
Oggetto: [jbpm-dev] [BRMS 5.3] Bug 796654 in case of jbpm processes
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
_______________________________________________
jbpm-dev mailing list
jbpm-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbpm-dev
--
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