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 » [Solved] transfer workItem ???

Post new topic  Reply to topic
 [Solved] transfer workItem ??? « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Sat Apr 09, 2005 5:34 am    Post subject: [Solved] transfer workItem ??? Reply with quote

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
View user's profile Send private message Send e-mail
jmac
PostPosted: Sat Apr 09, 2005 5:40 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
elvis_gn
PostPosted: Sat Apr 09, 2005 5:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jmac
PostPosted: Sat Apr 09, 2005 6:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
elvis_gn
PostPosted: Mon Apr 11, 2005 5:17 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Ratan
PostPosted: Mon Apr 11, 2005 10:37 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
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 » [Solved] transfer 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.