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]Activity Expiration..

Post new topic  Reply to topic
 [SOLVED]Activity Expiration.. « View previous topic :: View next topic » 
Author Message
surabhi
PostPosted: Mon Feb 12, 2007 6:13 am    Post subject: [SOLVED]Activity Expiration.. Reply with quote

Newbie

Joined: 25 Aug 2005
Posts: 7

Hi All,

We have a requirement in our project to checkin , a checked out acitivity when a session expires in our front end.

We are using the JAVA API to implement this activity..

I know one way of doing this would be to have a deamon application that would cancle checkout the workitems after a specified time.. but i wanted to know if it would be possible to implement this requirement by using either expiration time or duration of activity..

All help is highly appreciated.

Thanks,
Surabhi


Last edited by surabhi on Tue Feb 13, 2007 2:17 am; edited 1 time in total
Back to top
View user's profile Send private message
jmac
PostPosted: Mon Feb 12, 2007 6:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

You could not use expiration time because that would change the state of the activity to Expired.

You could use the notification facility to do what you are asking.
_________________
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
surabhi
PostPosted: Mon Feb 12, 2007 6:53 am    Post subject: Reply with quote

Newbie

Joined: 25 Aug 2005
Posts: 7

Hi John,

Thanks for your reply.

With Notification I would need to set the notification timer same as the session time out time and may be send this workitem to some other user.

Well my requirement is that the workitem must remain in the users (original users) worklist in ready state...

Would that be possible to achieve with some modeling techniques ?

Thanks again,
Surabhi
Back to top
View user's profile Send private message
jmac
PostPosted: Mon Feb 12, 2007 7:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

I am still not sure I get exactly what it is you are trying to do. If the item is in a "checked out" state the only way to get it back into a Ready state is to either do a Cancel Checkout, or a Force Restart. The choice between the two would revolve around whose worklist do you want the ready item to reside in.

Assuming that you do not have to go directly from the CheckedOut state to the Ready state, then perhaps you can use an Expiration. It seems to me that this is what you are wanting to do. If the activity is not allowed to enter the Expired state, there is NO way you can accomplish this.

For the sake of this discussion I will assume that you don't care if the activity is in the Expired state for a short time. Put the activity in a Block, put an expiration on the activity If the activity Expired have the Block repeat.

One other thing, is there a possibility of using an exit that would get fired when the application session expires? Then you could go directly from Checked Out to Ready.
_________________
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
surabhi
PostPosted: Mon Feb 12, 2007 7:48 am    Post subject: Reply with quote

Newbie

Joined: 25 Aug 2005
Posts: 7

Thanks John.

Appreciate the help. The requirement is to move a item from the checked out state to ready state in the same users worklist , whenever a session time out occurs.

I am aware that this requirement is not an out of the box supplied feature of the product but just wanted to check from the gurus here if such a thing could be possible with a workaround.

Thanks for the suggestion using the block... appreciate it..

Thanks again.

Cheers,
Surabhi
Back to top
View user's profile Send private message
vijaycr
PostPosted: Mon Feb 12, 2007 11:22 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Oct 2006
Posts: 62
Location: Singapore

You have said you are using JAVA API? is that a web application?
Back to top
View user's profile Send private message
tsrisudh
PostPosted: Tue Feb 13, 2007 12:46 am    Post subject: Reply with quote

Centurion

Joined: 11 Aug 2005
Posts: 113

Surabhi, you can try other options but still the best way to accomplish what you said is using the JAVA API, we too have done the same thing, On session expiry we check if there are checkout items by the logged in user and if yes then we do a cancelCheckout on each of the work item.
_________________
Srisudhir Tadepalli
Back to top
View user's profile Send private message Yahoo Messenger
vijaycr
PostPosted: Tue Feb 13, 2007 1:33 am    Post subject: Reply with quote

Acolyte

Joined: 11 Oct 2006
Posts: 62
Location: Singapore

I guess Srisudhir is talking about the HttpSesssion expiry..Thats why i asked is it a web application or a stanalone Java application.

If it is a webapp once the HttpSession has expired the workflow session wont have any meaning so u can write your code on HttpSession expiry
Back to top
View user's profile Send private message
surabhi
PostPosted: Tue Feb 13, 2007 2:16 am    Post subject: Reply with quote

Newbie

Joined: 25 Aug 2005
Posts: 7

Thanks Vijay and Srisudhir ..

We are going to do exaclty the way you ppl have suggested.

Thanks.
Back to top
View user's profile Send private message
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]Activity Expiration..
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.