Author |
Message
|
waleed_elshenawy |
Posted: Sun Jun 20, 2004 5:33 am Post subject: How to contact execution server to set a container value |
|
|
Newbie
Joined: 07 May 2004 Posts: 2
|
Hi all,
would you tell me how i can contact execution server to set a container value for CHECKED_OUT workitem without checkin, as you know setting this container value changes the value in the API cache only. |
|
Back to top |
|
 |
manoj |
Posted: Sun Jun 20, 2004 7:32 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
If you don't want to checkin then look at the "forcerestart2(incontainer)" API _________________ -manoj |
|
Back to top |
|
 |
jmac |
Posted: Sun Jun 20, 2004 7:40 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Not sure I understand the question... but this is what I am hearing: I want to update the container value of a CHECKEDOUT workitem without doing a checkin.
Waleed: It is my opinion that this is not possible.
Manoj: Issueing ForceRestart2() will take the item out of the Checked out state. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
manoj |
Posted: Sun Jun 20, 2004 7:54 am Post subject: |
|
|
 Master
Joined: 30 Jan 2002 Posts: 237 Location: Virgina
|
of course it will ....i thought he's worried about the flow going forword with a checkin...may be i guesses incorrectly _________________ -manoj |
|
Back to top |
|
 |
waleed_elshenawy |
Posted: Mon Jun 21, 2004 12:20 am Post subject: |
|
|
Newbie
Joined: 07 May 2004 Posts: 2
|
Thank you all for the reply,
using forcerestart2(inContainer) will solve this but this raises another problem for that i want to know when i checkout the workitem and when i checkin it for reporting purpose, i will tell you the whole Scenario
1. An Employee checkout a workitem and then do some work related for this work.
2. Employee saves a parameters in the workitem container while doing his job.
3. If Employee finishes his work, he will checkin the workitem, so the container will be updated successfuly
4. If Employee didn't finish his work, he will save his work and the parameters and then leave the application.
5. In Next Day , the employee queries on the workitems and gets the workitem that he was working in the last day, and he want to continue the work, and the parametrs in the container will updated as he left it the last day.
6. The manager want to know how long the employee takes to finish his work, so issuing a forcerestart2(inContainer) for every save will make this period is wrong. |
|
Back to top |
|
 |
jmac |
Posted: Mon Jun 21, 2004 4:54 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Use a checkin, but set an exit condition that Fails. This will put the item back to a ready state.
I really don't understand thought. If you want to know the total working time, you need to look at the audit trail, and even using forceRestart you can still calculate the total working time. If you use Checkout/CheckIn you would use the 21022/21023 records. If you use Checkout/ForceFinish you use the 21022/21013 records. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|