Delay shape
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Delay shape




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Delay shape  
pez


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-14-05 12:48 PM

Hi

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





[ Post a follow-up to this message ]



    RE: Delay shape  
pez


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-14-05 10: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?





[ Post a follow-up to this message ]



    Re: Delay shape  
Jason Agostoni


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-15-05 12:53 PM

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






[ Post a follow-up to this message ]



    Re: Delay shape  
Greg Forsythe


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-26-05 01:49 AM

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:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:09 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register