Can I create Forks dynamically?

Question: Hi All,

Kindly answer my query as below...

This is regarding MM02.

I have a custom table with entries to call different MM views parallely & send the workitem to diff users.
Something like this..

Plant Stepcntr view1 View2 view3 view4
XXXX | 1 | MRP |
XXXX | 2 | COST |
XXXX | 3 | Works | Purch
XXXX | 4 | Accntg |


Here, 1st WI will be send to User1 with MRP view and then 2nd WI to user2 with Costing view and then at the 3rd step there will be 2 WIs parallely created for work scheduling and Purchashing and will be send to user3 and user4 resp.

My problem is there can be at the max 4 way forks. but the nos of forks is not fixed, we can have 2, 3 or 4 way fork....I will be calling single step sub-WF for each view but how do I call them parallely for different forks at runtime. coz this data is identified from the custom table.

Is this possible? if not can you suggest any other work around for this.

Pls. help me out ASAP...

thanks in advance...
Priya.

Answer:
Hi,
I would do the following.
1. Create a method/virtual attribute for filling a multiline workflow container.
2. Use this container as a multiline element in a subflow.
3. In the subflow you can either use a fork, or a loop to create the various workitems.

Regards, Rob Dielemans
Copyright ?2007 - 2008 www.jt77.com