ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » What is relationship between WorkItem and ActivityInstance?

Post new topic  Reply to topic
 What is relationship between WorkItem and ActivityInstance? « View previous topic :: View next topic » 
Author Message
loris
PostPosted: Sat Mar 20, 2004 4:54 am    Post subject: What is relationship between WorkItem and ActivityInstance? Reply with quote

Novice

Joined: 07 Nov 2002
Posts: 15

Dear all,

What is the difference between WorkItem and ActivityInstance? Thanks in advance!

Loris.
Back to top
View user's profile Send private message
jmac
PostPosted: Sat Mar 20, 2004 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
loris
PostPosted: Sat Mar 20, 2004 5:23 am    Post subject: Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Sat Mar 20, 2004 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
loris
PostPosted: Sat Mar 20, 2004 6:40 am    Post subject: Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Sat Mar 20, 2004 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
loris
PostPosted: Sat Mar 20, 2004 6:51 am    Post subject: Reply with quote

Novice

Joined: 07 Nov 2002
Posts: 15

Surely, I think so. Thank you very much, John!

Loris
Back to top
View user's profile Send private message
loris
PostPosted: Sat Mar 20, 2004 6:56 am    Post subject: Reply with quote

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
View user's profile Send private message
jmac
PostPosted: Sat Mar 20, 2004 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » What is relationship between WorkItem and ActivityInstance?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.