Author |
Message
|
elvis_gn |
Posted: Sat Apr 09, 2005 5:34 am Post subject: [Solved] transfer workItem ??? |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi,
I have three users "A" and "B" and "C".
All three have authority over a workItem and all have admin privilages.
Suppose "A" does a checkOut of the workItem, the state for "B" and "C" is disabled.
This is fine.
There can be a scenario in my application that the user loses the connection or some system issues and the workItem remains in checked Out state.
I am trying to get this workItem back into Ready state.
I tried the workItem.transfer("C") but the workItem cannot be in checkedOut state to successfully transfer.
Any suggestions ???
P.S: I cannot do a login as "A" to free the workItem.
Last edited by elvis_gn on Mon Apr 11, 2005 5:18 am; edited 1 time in total |
|
Back to top |
|
 |
jmac |
Posted: Sat Apr 09, 2005 5:40 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Again, you desperately need to do some reading.
There is a state chart in the programming guide that will show you what transitions are possible. The answer to your question is you must Force Restart by an authorized user, or Cancel Checkout from the user who did the checkin. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
elvis_gn |
Posted: Sat Apr 09, 2005 5:56 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
I wouldn't have asked this question if what is supposed to work was working....
The authorized user is not able to transfer it because the workItem is in "CHECKED_OUT" state.
***Tha API says that workItems in this state cannot be transferred.***
Secondly i am not able to do a force restart as i am not authorized ( to authorize myself i must transfer the item to myself in the first place)
Thirdly the user who checked it out cannot checkIn because he has lost the session (WSAD) on browser close. So next time he logs in i am only querying for Ready state items.
My web application will become slow if i go and checkIn all checkedOut workItems.....This is why I am trying to run a schedular program. |
|
Back to top |
|
 |
jmac |
Posted: Sat Apr 09, 2005 6:09 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
elvis_gn wrote: |
I wouldn't have asked this question if what is supposed to work was working.... |
This is working as designed... Learn what an Activity instance is, and then you should be able to solve your problem. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon Apr 11, 2005 5:17 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Yes the workflow is working as its supposed to...
What I was expecting was a work around.
Anyway, the only other option was to delete the processInstance and create it again with the admin login....but this is definitely not a good practice.
So i am identifying the user of the checked out workItem and logging in as the same and checking In the workItem.
The only drawback is that I have to login as every user to checkIn his workItems. |
|
Back to top |
|
 |
Ratan |
Posted: Mon Apr 11, 2005 10:37 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Quote: |
Thirdly the user who checked it out cannot checkIn because he has lost the session (WSAD) on browser close. So next time he logs in i am only querying for Ready state items.
|
You should do a query for checkout Items and the user should be able to see his checkout workitems.
Losing a session should not cause any problems. The problem is with your queries.
Or as John suggested look at activity instance for the checked out workitem. you should be able to Force Restart the activity Instance. _________________ -Ratan |
|
Back to top |
|
 |
|