Posted: Thu Sep 22, 2005 3:35 am Post subject: workItem Id from processInstance Id
Apprentice
Joined: 20 Jul 2004 Posts: 31
Dear All,
Is there any way to get workItem persistence Id from processInstance persistence Id?
Because I need to get current workitem through processInstance Id.
Thanks .
Posted: Thu Sep 22, 2005 4:52 am Post subject: Re: workItem Id from processInstance Id
Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
aghallab wrote:
Dear All,
Is there any way to get workItem persistence Id from processInstance persistence Id?
Because I need to get current workitem through processInstance Id.
Thanks .
Well you will have to do a query... but assuming you are on 3.6 you could do a queryActivityInstances using the process name and READY state. You will have to come up with a creative way to deal with the fact that there could be multiple workitems in that instance in a READY state.
Prior to V3.6 you need to get the InstanceMonitor for the process which will get you the array of ActivityInstance objects, then you have to work thru them to find the READY activities.
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