Author |
Message
|
workflowdude |
Posted: Wed Jan 28, 2004 8:55 am Post subject: Holidays/non working days in workflow |
|
|
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 |
|
 |
Ratan |
Posted: Wed Jan 28, 2004 10:04 am Post subject: |
|
|
 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 |
|
 |
workflowdude |
Posted: Wed Jan 28, 2004 10:27 am Post subject: |
|
|
Novice
Joined: 17 Nov 2003 Posts: 24 Location: US
|
How do you do that?
can you please elaborate on this? |
|
Back to top |
|
 |
vennela |
Posted: Wed Jan 28, 2004 10:49 am Post subject: |
|
|
 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 |
|
 |
workflowdude |
Posted: Wed Jan 28, 2004 3:07 pm Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Thu Jan 29, 2004 5:52 am Post subject: |
|
|
 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 |
|
 |
workflowdude |
Posted: Thu Jan 29, 2004 10:12 am Post subject: |
|
|
Novice
Joined: 17 Nov 2003 Posts: 24 Location: US
|
So who performs the calculation in the TCalc UPES activity? |
|
Back to top |
|
 |
jmac |
Posted: Thu Jan 29, 2004 11:17 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
The code you write for this UPES! _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
workflowdude |
Posted: Thu Jan 29, 2004 2:02 pm Post subject: |
|
|
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 |
|
 |
vennela |
Posted: Thu Jan 29, 2004 2:18 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
jmac |
Posted: Thu Jan 29, 2004 2:18 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
Yes _________________ John McDonald
RETIRED |
|
Back to top |
|
 |
workflowdude |
Posted: Thu Jan 29, 2004 4:32 pm Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Thu Jan 29, 2004 5:00 pm Post subject: |
|
|
 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 |
|
 |
|