How can I check if a work item has been accepted
Once a WorkItem has been accepted, it no longer is returned by ListWorkItems. I'm not sure if there is any change in status or not.
Could you elaborate on what it is you're trying to do? How are you retrieving the WorkItem?
Thanks,
Scott
Hi,
I'm populating a grid with workitems returned from LL for a particular group. Users will select an item from the list and it will assigned to them. I needed to find out if one was already accepted before trying to assign a workitem to someone else.
thanks
Hi, Zakariah.
It looks like the Activty's Status (as retreived through GetProcessStatus) might change after the WorkItem has been accepted. Of course the WorkItem will also no longer be retrieved using ListWorkItems after it has been accepted by another user. Another option might be to simply handle the exception that is thrown if the WorkItem has been accepted by another user.