Author |
Message
|
anuppc |
Posted: Wed Jan 19, 2005 10:34 am Post subject: ForceFinish a checkedout workitem |
|
|
 Voyager
Joined: 22 Oct 2002 Posts: 93 Location: Montreal
|
When i try to forcefinish a checkedout workitem it says the workitem is not in appropriate state. "FMC00120E State does not allow this action"
i am the owner and have Process Admin Auth. According to javadocs this should be possible.
Quote -"A work item implemented by a program must be in the states Ready, Running,
Executed, CheckedOut, InError, Terminating, or Terminated. A work item
implemented by a process must be in the states Ready, Executed, InError, or
Terminated. The associated process instance must be in the states Running,
Suspending, Suspended, or Terminating."
Does workitem implemented by process mean a process activity?? _________________ BlowFish |
|
Back to top |
|
 |
anuppc |
Posted: Wed Jan 19, 2005 10:39 am Post subject: |
|
|
 Voyager
Joined: 22 Oct 2002 Posts: 93 Location: Montreal
|
forcefinish2 is the method i am trying to use.
How do admin users manage workitems that are checked out by other users? How do they forcefinish them....? Does the admin have to log in as the user who checked out the workitem and checkit in?
forcefinish says you have to be the owner...and also have the necessary auth to do force finish. _________________ BlowFish |
|
Back to top |
|
 |
jmac |
Posted: Wed Jan 19, 2005 11:53 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
I believe what you want to do is forcefinish the Activity Instance right? _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
anuppc |
Posted: Wed Jan 19, 2005 4:56 pm Post subject: |
|
|
 Voyager
Joined: 22 Oct 2002 Posts: 93 Location: Montreal
|
I want to force finish the activity. so should i forcefinish the activity instance?
Let us say i have an activity which would be assigned to the admin and a plain vanilla user (with no auth of any sort).
The user checksout the workitem and goes for vacation. The admin user gets a workitem but that is disabled since it is already checkedout by the user.
How can admin forcefinish the activity and proceed in the flow...?
This could be one of the scenario. I do see a forcefinish on the workitem object in the api... but when i issue it says the above error...
Should i get the handle to the workitem's activity instance and issue forcefinish? _________________ BlowFish |
|
Back to top |
|
 |
jmac |
Posted: Wed Jan 19, 2005 5:09 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Admin should be able to do the force finish on the activity instance. This can be done directly using the WebClient monitor. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
anuppc |
Posted: Wed Jan 19, 2005 6:27 pm Post subject: |
|
|
 Voyager
Joined: 22 Oct 2002 Posts: 93 Location: Montreal
|
Thanks jmac....
Yes im implementing my own client... so i guess forcefinishing the activity instance is fine rather than trying to use the workitem's forcefinish method.
By using the activity instance's force finish i dont have to worry about if the authorized user is a workitem owner. i just find the handle to the activity instance and issue forcefinish.... _________________ BlowFish |
|
Back to top |
|
 |
jmac |
Posted: Thu Jan 20, 2005 7:53 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Anupp:
An added bonus if you are using V3.5 is that there is now a queryActivityInstances() method. _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
|