Posted: Wed Jul 12, 2006 6:15 am Post subject: Bundling in WF
Apprentice
Joined: 07 Feb 2006 Posts: 26
HI,
We have a problem that led us to think about the bundling concept in WF. For one of our models, we need to call a particular process number of times (n. th evalue of n can vary) . Remeber that some data fileds in the data structure will be different each time. I know that we can model the process the required number of times and call each one with different data (may need to use arrays and data mappings). The other solution is an external program can can call the particular process number of time with different data fields.
What my question is can WF by itself handle this scenario using the bundling concept i.e. recursively calling itself while shifting/changing the data. Did any one implement this?
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
This can be done by invoking a subProcess activity that names a process that recursively invokes itself. (Note that this can be non-trivial)
The danger is if the value of n is great the introduced overhead of subProcess instantiation may be more than you can handle.
If the maximum value of n is small then I would model this directly.
If the maximum value of n is not so small (i.e greater than say 10) but on average there are a small number of "bundles" created, then I would go with the recursive subProcess approach.
If the average number of bundles is large, then you really need to ensure that you can handle the load. Especially if the top level process is heavily used.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum