Author |
Message
|
loris |
Posted: Sat Mar 20, 2004 4:54 am Post subject: What is relationship between WorkItem and ActivityInstance? |
|
|
Novice
Joined: 07 Nov 2002 Posts: 15
|
Dear all,
What is the difference between WorkItem and ActivityInstance? Thanks in advance!
Loris. |
|
Back to top |
|
 |
jmac |
Posted: Sat Mar 20, 2004 5:16 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Every Activity in a Process Model has an Activity Instance. The Workitems are created from the activity instance, one for each Person who can work on the activity. The only exception is automatic activities which may not have a workitem created _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
loris |
Posted: Sat Mar 20, 2004 5:23 am Post subject: |
|
|
Novice
Joined: 07 Nov 2002 Posts: 15
|
Thanks, jmac!
Do you mean that one activity instance can have multiple workitems, they are one-to-many relationship? One workitem is only specific to one person, they are one-to-one relationship? Also, if the workitem is forceFinshed, what status will be the activity instance?
Thanks!
Loris |
|
Back to top |
|
 |
jmac |
Posted: Sat Mar 20, 2004 6:06 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
There is a 1-1 between WorkItems and People... I.e each Person eligible will have exactly 1 workitem for a given activity.
There is a 1-n between Workitems and Activity Instances. Every activity has an ActivityInstance, and it can have from 0 to n Workitems.
If you look at the workitem for user "A" and that workitem is in the Finished state, then the ActivityInstance is in the finished state. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
loris |
Posted: Sat Mar 20, 2004 6:40 am Post subject: |
|
|
Novice
Joined: 07 Nov 2002 Posts: 15
|
Thanks, John!
Based on your explaination, my understand is that only when one activity instance is assigned to multiple users simultaneously, one activity instance can be associated to multiple workitems, right? And as long as one user finishes his/her workitem, both the activity instance and all of the related workitems occuring in others' webpage are finished too. Do you think so?
Loris |
|
Back to top |
|
 |
jmac |
Posted: Sat Mar 20, 2004 6:44 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
You are pretty close.... The only thing is that the Workitems for the other users (who did not run the activity) are not in a finished state, I think they are in the disabled state. Only 1 user can actually work the activity _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
loris |
Posted: Sat Mar 20, 2004 6:51 am Post subject: |
|
|
Novice
Joined: 07 Nov 2002 Posts: 15
|
Surely, I think so. Thank you very much, John!
Loris |
|
Back to top |
|
 |
loris |
Posted: Sat Mar 20, 2004 6:56 am Post subject: |
|
|
Novice
Joined: 07 Nov 2002 Posts: 15
|
So, if only one WorkItem associated with one activity instance, whether operating on WorkItem or ActivityInstance, the result state should be the same, right? If yes, i know I can retrieve the specific activity instance by process instance description and activity name, how can I retrieve the specific WorkItem?
Thanks!
Loris |
|
Back to top |
|
 |
jmac |
Posted: Sat Mar 20, 2004 7:21 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
loris wrote: |
So, if only one WorkItem associated with one activity instance, whether operating on WorkItem or ActivityInstance, the result state should be the same, right? |
Yes this is correct
Quote: |
If yes, i know I can retrieve the specific activity instance by process instance description and activity name, how can I retrieve the specific WorkItem? |
Use Instance Name, activity name and owner _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|