Hi,

I've been making good progress getting jbpm running on a production database 
and have written some test code, etc. But now I'm trying to understand how to 
get some real work done!

Part 1:

Let's say that one thing we have to accomplish in a process is:

"ftp large file to remote site"

Assume this will take a "long" while, as in 30 minutes or so. This seems to 
imply that we don't do this in a normal node, right? Since we don't want a 30 
minute database transaction!

What's the best way to model this in jbpm? I see at least these two options 
(I'm a beginner!):

1. Do this in an async="true" node. The process is in a wait state while a 
separate thread gets this job done.

2. Set this up as a task, but instead of a user being involved, it's an 
automated system (maybe like wf.runa.ru "task bots"?). When the task completes, 
the process continues.

So how would the experts do this? All advice welcome.

Part 2:

However we accomplish the ftp process, these things can happen:

1. The ftp job works properly. The process continues.
2. The ftp job fails in some expected way (remote server is down). I can 
imagine a process definition that somehow does "try again later".
3. The ftp job fails in an unexpected way. Say for example that the machine 
running the ftp process crashes. In this case, jbpm will never hear back from 
the job (either async thread or external task).

What's the best practice for case #3? And how does the process model know the 
difference between a failed task and one that's taking a really long time?

Thanks,

Fred


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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to