Author |
Message
|
ucbus1 |
Posted: Mon Dec 01, 2003 8:18 am Post subject: How to query Activity Instances ? |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
I would like to know Activity instances containing particualr name say "AI_XYZ" with state say inactive/Running. Is it possible to query for Activity Instances using out-of-box web client?
If so, how my query showd look like when creating the worklist/instance list?
Thanks
Last edited by ucbus1 on Mon Dec 01, 2003 9:34 am; edited 1 time in total |
|
Back to top |
|
 |
kriersd |
Posted: Mon Dec 01, 2003 8:46 am Post subject: |
|
|
 Master
Joined: 22 Jul 2002 Posts: 209 Location: IA, USA
|
ucbus
I believe all you need to do is create a worklist and then set the filter. Simple as that.. !!!
Dave _________________ Dave Krier
IBM WebSphere MQ Workflow V3.4 Solution Designer |
|
Back to top |
|
 |
ucbus1 |
Posted: Mon Dec 01, 2003 9:39 am Post subject: |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
I think I have missed to mention. I have only workinstance not worklist as it is a UPES activity. So how do I query workinstance?
Could you giveme an example how the filter looks like for querying Activity instances meeting certain criteria when I do not have a work Item for it. Currently I am going to each workinstance which I find to be bit delayed , check the monitor view and find out what stop the instance is in and then click on the stop to find out the properites of "Activity Instance". |
|
Back to top |
|
 |
jmac |
Posted: Mon Dec 01, 2003 11:07 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Ucbus:
Sad but true... there is no way to query ActivityInstances. The easiest way to get to the activity instance is from the workitem. If you have the Process instance you can get all the activity instances and then loop thru and match on the name.
GOOD LUCK _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
CHF |
Posted: Fri May 28, 2004 5:17 am Post subject: |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
Quote: |
there is no way to query ActivityInstances |
Quote: |
If you have the Process instance you can get all the activity instances |
I am little confused with the above two statements. Can you give me the sequence of API calls in order to get the activity instances from a Process Instance?
Thanks
CHF  |
|
Back to top |
|
 |
Ratan |
Posted: Fri May 28, 2004 7:16 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
get hold of ProcessInstanceMonitor. Get ActivityInstances from It. _________________ -Ratan |
|
Back to top |
|
 |
manoj |
Posted: Fri May 28, 2004 7:43 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
If it's for reporting purpose it will be better if you look at the audit trail than traversing through the process instance. _________________ -manoj |
|
Back to top |
|
 |
CHF |
Posted: Fri May 28, 2004 7:44 am Post subject: |
|
|
 Master
Joined: 16 Dec 2003 Posts: 297
|
Thanks Ratan
CHF  |
|
Back to top |
|
 |
jmac |
Posted: Sat May 29, 2004 3:39 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Just a reminder to all.. with V 3.5 you can query activity instances... when this thread started 3.5 was not yet available... it is now. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
manoj |
Posted: Sun May 30, 2004 7:39 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
Thanks John,
This is great news for us _________________ -manoj |
|
Back to top |
|
 |
|