BizTalk Server Orchestration - Delay shape

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > November 2005 > Delay shape





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Delay shape
pez

2005-11-14, 7:48 am

Hi

Guessing this i pretty simple. I want to use a delay until a specified
year,date,time. How do I do that?
pez

2005-11-14, 5:53 pm

Sorry for double posting... Think I might need to explain some more. I have
an orchestration where I need to be able to schedule certain events. I
thought I should be able to use for example "new
System.DateTime(2005,11,14,16,25,0);" and then Biztalk would wait until that
date was reached. Am I wrong?

Thanks

"pez" wrote:

> Hi
>
> Guessing this i pretty simple. I want to use a delay until a specified
> year,date,time. How do I do that?

Jason Agostoni

2005-11-15, 7:53 am

I believe that you need to return a new System.TimeSpan() object and
not an actual DatTime. What you can do is use an Expression shape with
a TimeSpan variable or a .Net class to perform some date arithmetic.
Just calculate the difference between your target date and the current
date and your result should be a TimeSpan.

Sorry for the lac of a code sample, I have one foot out the door right
now. Let me know if you need that and I'll catch up later.

Jason Agostoni
..Net Architect
CEI (www.ceiamerica.com)
http://jason.agostoni.net

Greg Forsythe

2005-11-25, 8:49 pm

Yes you are right, you can return a System.Datetime.
The only problem with your example, it will only work once. It will fire on
at 4:25pm on the 14 November 2005 and never again.

Check out my scheduled task adapter at
http://www.gotdotnet.com/Community/...C9-84BF4E783728
It has a Calendar.Schedule assembly, with objects that can be used within
Delay shapes - see the docs
You set the Delay shape for 4:25pm every Monday or even the 2nd Monday of
November at 4:25pm


Greg




"pez" <pez@discussions.microsoft.com> wrote in message
news:C403865C-6B41-4C60-A700-F65FDF8A2D60@microsoft.com...[vbcol=seagreen]
> Sorry for double posting... Think I might need to explain some more. I
> have
> an orchestration where I need to be able to schedule certain events. I
> thought I should be able to use for example "new
> System.DateTime(2005,11,14,16,25,0);" and then Biztalk would wait until
> that
> date was reached. Am I wrong?
>
> Thanks
>
> "pez" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com