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 » Holidays/non working days in workflow

Post new topic  Reply to topic
 Holidays/non working days in workflow « View previous topic :: View next topic » 
Author Message
workflowdude
PostPosted: Wed Jan 28, 2004 8:55 am    Post subject: Holidays/non working days in workflow Reply with quote

Novice

Joined: 17 Nov 2003
Posts: 24
Location: US

Hello All,
We are using notifications for workitems that expire. The expiration time is 2 days.. How do I take care of Weekend days in workflow, cause all the workitems that were created on Friday would expire by Monday...
Is there any way in workflow where i can specify the Holidays/Non working days.. if not, how do I achieve this?
Back to top
View user's profile Send private message
Ratan
PostPosted: Wed Jan 28, 2004 10:04 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

You cant do it directly in WF. You can ofccourse specify the expiration time from container, in which you can calculate your holidays and weekends.
_________________
-Ratan
Back to top
View user's profile Send private message Send e-mail
workflowdude
PostPosted: Wed Jan 28, 2004 10:27 am    Post subject: Reply with quote

Novice

Joined: 17 Nov 2003
Posts: 24
Location: US

How do you do that?
can you please elaborate on this?
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Jan 28, 2004 10:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

A -> B -> C
B should expire after 2 biz days.
Your process should be

A -. TCalc -> B -> C
After A is finished TCalc is a UPES activity. Get the creation time of TCalc, calculate the time for 2 biz days in seconds. Supply that as a data member in the output container of the TCalc UPES activity.

B should be defined in such a way that it expires after the time interval From container.

In the Exit tab of an activity, in the expiration block, From container is the third one. Specify the container member in which you calculated the time in the TCalc activity.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
workflowdude
PostPosted: Wed Jan 28, 2004 3:07 pm    Post subject: Reply with quote

Novice

Joined: 17 Nov 2003
Posts: 24
Location: US

Oh you mean UPES activity sending a message on a queue and some component calculating the time and sending it back on the input queue??

Please clarify a bit more.

Thanks
Purav
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Jan 29, 2004 5:52 am    Post subject: Reply with quote

Jedi Knight

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

Activity A runs

TCalc is a UPES activity that runs and in its input container it has the data needed to calculate the "business Date" of the expiration/notification.

TCalc sets the "Business Date" into its Output container.

Activity B is modeled to get the Expiration/Notification "From Container"
_________________
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
workflowdude
PostPosted: Thu Jan 29, 2004 10:12 am    Post subject: Reply with quote

Novice

Joined: 17 Nov 2003
Posts: 24
Location: US

So who performs the calculation in the TCalc UPES activity?
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Jan 29, 2004 11:17 am    Post subject: Reply with quote

Jedi Knight

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

The code you write for this UPES!
_________________
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
workflowdude
PostPosted: Thu Jan 29, 2004 2:02 pm    Post subject: Reply with quote

Novice

Joined: 17 Nov 2003
Posts: 24
Location: US

and thats outside workflow in a component listening to the UPES Queue...right?
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Jan 29, 2004 2:18 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

right
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jmac
PostPosted: Thu Jan 29, 2004 2:18 pm    Post subject: Reply with quote

Jedi Knight

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

Yes
_________________
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
workflowdude
PostPosted: Thu Jan 29, 2004 4:32 pm    Post subject: Reply with quote

Novice

Joined: 17 Nov 2003
Posts: 24
Location: US

That means that If I have to change the expiration time for my activities, i have to go and change the component code... thats kindda buidling a dependency.. I was thinking if it was any way to do it through workflow, so that it can easily be changed in the future...
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Jan 29, 2004 5:00 pm    Post subject: Reply with quote

Jedi Knight

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

Sorry, but I believe that is the only way it can be done
_________________
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 » Holidays/non working days in workflow
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.