Hi 'digitalclock'?
anonymous wrote : Once the signal method has returned... the workflow is in a 
wait state, meaning there is nothing jBPM can further do without external 
action / input.

You basically have two options:
- 'process the entire workflow on one JMS server' that wouldn't be the JMS 
server but where ever the message consumer is located. There is nothing wrong 
with that. I assume you will have >>> 1 message so load balancing will happen.
- break up your workflow into smaller pieces of work. This will require you to 
suspend the workflow (by returning from the signal() method without triggering 
the next node, i.e. by returning from ActionHandler.execute() without taking a 
transition). But before you return from signal() you will have to send a new 
Message that will continue the workflow. All this is non trivial but has some 
benefits:
a) you can priorize parts of your workflow by using JMS priority mechs
b) you can break the execution of your workflow into different transactions.

anonymous wrote : Also, when a JMS message is delivered if auto-acknowledge is 
turned on then the trasnaction is successful.
This seems to me a quite revolutionary concept. But I will be glad to try it. 
What you are saying is that if I use auto acknowledge my transaction is sure to 
commit. That's cool. :-)

Should the new approach not work as expected: the old fashion concept is that 
you execute acceptance of a message AND execution of the workflow in a single 
transaction. That way if the workflow fails the message gets redelivered.

The luxury edition is to split the execution of the workflow and the 
persistence of the workflow state into different transactions... but that 
doesn't seem to be of great interest here.

What's wrong with an app server? A MDB would solve all your load balancing and 
delivery problems at once. No great effort in setting one up. JBoss even offers 
one for free.

What is very helpfull is to trace the execution of signal(). then you will 
probably understand all the details. It's really not that hard, just 5-6 
classes deep.

Hope this helps even if it isn't a cookbook.

Greetings

Rainer

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915201#3915201

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915201


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to