[jboss-user] [jBPM] - Re: jms and jbpm

Alejandro Guizar do-not-reply at jboss.com
Thu Sep 9 11:21:03 EDT 2010


Alejandro Guizar [http://community.jboss.org/people/alex.guizar%40jboss.com] created the discussion

"Re: jms and jbpm"

To view the discussion, visit: http://community.jboss.org/message/560991#560991

--------------------------------------------------------------
Uwe, your design is unnecessarily complex because you are trying to incorporate jBPM internals which are not meant for external usage. I would model the process as follows.
<process-definition name="callback">
 <start-state>
  <transition to="send-mail" />
 </start-state>
 <mail-node name="send-mail">
  <transition to="wait-for-callback" />
 </mail-node>
 <state name="wait-for-callback" />
</process-definition>

Once the user performs the work indicated in the email, application B should send a plain message to a queue with a long property set to the token ID. In addition you should code a simple MDB that reads  this message, loads the referenced token and signals it. That's all. You should not try to involve JmsMessageServiceFactory.
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100909/59d9556e/attachment.html 


More information about the jboss-user mailing list