Discussion:
[jboss-user] [jBPM] - BPM5Processor - JBossESB
Vu Kien Pham
2012-08-03 21:23:25 UTC
Permalink
Vu Kien Pham [https://community.jboss.org/people/vukien] created the discussion

"BPM5Processor - JBossESB"

To view the discussion, visit: https://community.jboss.org/message/751974#751974

--------------------------------------------------------------
Dear Community,

I've successfully deployed a process on JBPM console. This process consists of different Task forms, Java and JBossESB work items (imported from public Service Repository)

It would be ok if I only have to trigger it in console.

But now I've got problem regarding triggering this process externally.

My question is if it is possible to trigger this process by using BPM5Processor from JBossESB and how? The idea is that a message is sent to ESB to trigger this JBPM process

As I read in the Service Guide, ESB can start a process that has been deployed to jBPM but all I can do is to start a simple process with script tasks within Eclipse. I got no idea how to make the BPM5Processor aware of a already deployed process.

Would appreciate if anyone can give me some suggestions.

I'm using:

JBPM 5.2
JBoss 5.1.0 GA
JBoss ESB 4.11
Java 7

Thanks!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/751974#751974]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
khuevu
2013-04-29 07:40:07 UTC
Permalink
khuevu [https://community.jboss.org/people/khuevu] created the discussion

"Re: BPM5Processor - JBossESB"

To view the discussion, visit: https://community.jboss.org/message/810712#810712

--------------------------------------------------------------
Hi,
you can triggered BPM process from ESB using the Bpm5Processor:


<action
     class="org.jboss.soa.esb.services.jbpm5.actions.Bpm5Processor" name="jbpm5">
     <property name="process-definition-name" value="helloworld.bpmn"/>
     <property name="process-id" value="com.helloworld.bpm"/>
     <property name="process-action" value="startProcess"/>
     <property name="processHandlerClass" value="org.jbpm.task.service.hornetq.CommandBasedHornetQWSHumanTaskHandler"/>
     <property name="processHandlerHost" value="127.0.0.1"/>
     <property name="processHandlerPort" value="5446"/>
     <property name="esbToBpmParams">
      ...
     </property>
    </action>


You can find this example in the Bpm5 installer package. Property esbToBpmParams are the list of parameters you want to pass to the bpm engine.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/810712#810712]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...