Author |
Message
|
beth_carlin |
Posted: Tue Jun 08, 2004 12:33 pm Post subject: what is workflow api to check who checked out the workitem ? |
|
|
Acolyte
Joined: 08 Jun 2004 Posts: 64
|
I am looking for a MQWF api to find out who checked out the work item ? I appreciate any code sample
Thanks
Beth |
|
Back to top |
|
 |
jmac |
Posted: Tue Jun 08, 2004 1:26 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Beth:
There is no direct API call that will tell you who checked out a workitem.
What exactly is it you are doing? Are you talking about a situation where the activity is completed and you want to know who checked it out. Or a situation where the activity is in a "checked out" state? _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
beth_carlin |
Posted: Tue Jun 08, 2004 2:39 pm Post subject: |
|
|
Acolyte
Joined: 08 Jun 2004 Posts: 64
|
John,
Thanks...the situation where the activity is in a "checked out state" ...For example ...in WA82...after WEBBANK_CLERK logs in, WEBBANK_CLERK can see the work items for WEBBANK_CLERK, CLERK2 and CLERK3.
if WEBBANK_CLERK checks out a workitem, CLERK2 after logs in will see the same workitem in disabled state (with a lock and ?)
it would be nice if there is an API to find out who checked out the workitem so CLERK2 can know who checked out the work item
Thanks again |
|
Back to top |
|
 |
jmac |
Posted: Tue Jun 08, 2004 2:51 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
beth_carlin wrote: |
it would be nice if there is an API to find out who checked out the workitem so CLERK2 can know who checked out the work item |
Beth:
There is a way, but it depends on the scenario, which was why I asked
In your case what you need to do is get the ActivityInstance (use Workitem::activityInstance) then use the ActivityInstance::starter to get the starter of the activity. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
manoj |
Posted: Wed Jun 09, 2004 5:56 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
Why can't he use "OWNER" from the workitem ? The only thing preventing the other user is a checkout ... _________________ -manoj |
|
Back to top |
|
 |
jmac |
Posted: Wed Jun 09, 2004 6:51 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
In order to use Workitem::owner() you would have to have access to the workitem. It is possible that I just misunderstood the question. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
manoj |
Posted: Wed Jun 09, 2004 6:59 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
Oh ok,
I thought he's getting a list of workitems for a particular user and the user has confusion which workitems he can work with... _________________ -manoj |
|
Back to top |
|
 |
beth_carlin |
Posted: Wed Jun 09, 2004 7:48 am Post subject: |
|
|
Acolyte
Joined: 08 Jun 2004 Posts: 64
|
In your case what you need to do is get the ActivityInstance (use Workitem::activityInstance) then use the ActivityInstance::starter to get the starter of the activity.
Thanks John....thanks so much....I appreciate all your help...I will try your recommendations |
|
Back to top |
|
 |
jmac |
Posted: Wed Jun 09, 2004 7:50 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Beth:
Just let me know how you make out with this....
GOOD LUCK _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
beth_carlin |
Posted: Wed Jun 09, 2004 11:11 am Post subject: John, I have another question |
|
|
Acolyte
Joined: 08 Jun 2004 Posts: 64
|
John,
Thanks for all your help..I am new to workflow...still trying to find my way..especially the webclient part
The "forms" directory inside the webclient's directory
C:\WASAE5\WebSphere\AppServer\installedApps\BETH\MQWF_Web_Client_WEBCLNT.ear\fmcohcli.war\forms contain a bunch of jsps....
Are some of those jsps in the forms dir containing the data entry template
for the Web Client's Activity implementation jsps ? if not, could you tell me what forms dir is for ? Thanks again |
|
Back to top |
|
 |
jmac |
Posted: Wed Jun 09, 2004 11:48 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
The main one is the ListViewer.jsp and this controls the view that you see when you fire up the webclient (i.e the workitems, templates, instances etc)
I am not sure I understand what you mean when you say ActivityImplementation jsps. Since IBM doesn't really supply your activity jsps you have to write them yourself. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|