Dynamic splits and joins, subflows

[email protected]
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
I'm evaluating OSWorkflow for a large application and have a couple of questions 
I'm betting someone on the list can help me with..

I've pretty much figured out the basic split/join functionality in OSWorkflow.. 
What I need is a "dynamic" version of this, where based on the results of a step 
there could be 1, 10, or 100 split steps that all need to be completed and joined 
before the main flow can continue. Custom Java code or beanshell would figure out 
how many parallel flows need to be created, but there doesn't seem to be an easy 
way to create/manage these split flows.. Any ideas? 

I was thinking of creating my own utility class, something like "DynamicSplit", 
that spawns workflows containing the steps I need and saves some sort of count or 
status list, then at the end of each split workflow a special "DynamicJoin" class 
would update the shared count or status list and complete the original step when 
all splits were done.

On a second topic, is there any way to spawn a different workflow in a step, 
waiting for the other workflow to complete before this step is complete? Subflows 
like this are pretty common and necessary, it seems to me. Again this could be a 
single-workflow case of the DynamicSplit/DynamicJoin pair, but I was hoping at 
least this need was already being addressed..

Thanks.
-Greg





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.