Author |
Message
|
anuppc |
Posted: Fri May 07, 2004 6:19 am Post subject: Workflow Design Issue |
|
|
 Voyager
Joined: 22 Oct 2002 Posts: 93 Location: Montreal
|
i have a group which has 100 users. When i assign an activity to this group. The first person who checks-out the activity consumes the activity.
I need all 100 to send in their comments in the activity. Does that mean i need to have 100 parallel activities? Which is quite cumbersome... is there any other way we can achieve this.
Regards
Anup Chandran _________________ BlowFish |
|
Back to top |
|
 |
jmac |
Posted: Fri May 07, 2004 6:25 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
It sounds like that will be necessary based on what you describe. I would try to rethink the design and come up with some other way to do this.
GOOD LUCK _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
anuppc |
Posted: Fri May 07, 2004 8:07 am Post subject: |
|
|
 Voyager
Joined: 22 Oct 2002 Posts: 93 Location: Montreal
|
well found a hack to this! choose the users from container and put the activity in a loop with a loop condition. Everytime user checks in remove the current user from the container and dont satisfy the loop condition till all the users in the container put in their comments. since the loop condition is not satisfied new workitems are created for users in the current container. _________________ BlowFish |
|
Back to top |
|
 |
jmac |
Posted: Fri May 07, 2004 8:11 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
What you suggest will of course work, but be aware that this may not perform well... Hopefully the code is not in a block because then the performance will be worse. If you've never had a look at WP01 support pack take a look and calculate how many BWU each instance is going to generate. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
manoj |
Posted: Fri May 07, 2004 12:57 pm Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
comments by 100 users for one workitem , is this something you wanted really ?...
if sequential processing is ok for you then you can put an exit condition with count. every time a user checks in the work item if the exit condition is not matched the workitem will go to READY state so that other users can check it out.
i believe the comments by users go to your application database.
You may need to go for a bit more complex logic than just using the count _________________ -manoj |
|
Back to top |
|
 |
anuppc |
Posted: Thu May 13, 2004 1:09 pm Post subject: |
|
|
 Voyager
Joined: 22 Oct 2002 Posts: 93 Location: Montreal
|
Well they are parallel activities, sequential is no good! _________________ BlowFish |
|
Back to top |
|
 |
manoj |
Posted: Thu May 13, 2004 1:13 pm Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
If they are parallel you may want to go for some bundling techinique..This way you don't have to model 100 activities in your process model, ofcource it will generate 100 workitems(from 100 activities) _________________ -manoj |
|
Back to top |
|
 |
anuppc |
Posted: Fri May 14, 2004 4:51 am Post subject: |
|
|
 Voyager
Joined: 22 Oct 2002 Posts: 93 Location: Montreal
|
can you explaina bit more on bundling technique? is it by using blocks??
as i described earlier... which jmac says might lead to performance issues... _________________ BlowFish |
|
Back to top |
|
 |
jmac |
Posted: Fri May 14, 2004 5:32 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
A "bundle" is a special construct that was in FlowMark (MQWF predecessor) that allows for the dynamic generation of instances based on some data. I think there is some additional information here
http://www.mqseries.net/phpBB2/viewtopic.php?t=7646&highlight=bundle
If you have a small system, bundles might perform for you, but if you are talking about generating a large number of these instances per day you are going to have to be careful. Quick example using your numbers:
Say you have 10,000 instances per day. You indicate you need to generate approvals from 100 users per instance. Using the bundling technique that would mean 1,000,000 instance creations per day. That is quite a number just for Process starts alone you are talking about 3,900,000 BWU per day if I am not mistaken thats about 45 BWU/second (assuming a 24 hour day, which is probably not correct) and this is ONLY for the process starts, depending on what else is in these instances it goes up from there. Now I believe the biggest unix boxes will give you in the neighborhood of 400 BWU/second, so this is doable but I would recommend that you get some help with your design to ensure that your system will run and that you don't disappoint your customer. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|