ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » ForceFinish a checkedout workitem

Post new topic  Reply to topic
 ForceFinish a checkedout workitem « View previous topic :: View next topic » 
Author Message
anuppc
PostPosted: Wed Jan 19, 2005 10:34 am    Post subject: ForceFinish a checkedout workitem Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
anuppc
PostPosted: Wed Jan 19, 2005 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
jmac
PostPosted: Wed Jan 19, 2005 11:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
anuppc
PostPosted: Wed Jan 19, 2005 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
jmac
PostPosted: Wed Jan 19, 2005 5:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
anuppc
PostPosted: Wed Jan 19, 2005 6:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
jmac
PostPosted: Thu Jan 20, 2005 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » ForceFinish a checkedout workitem
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.