|
Home > Archive > BizTalk Server Orchestration > July 2005 > Delay shape configuration in run time
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 configuration in run time
|
|
| Shagun 2005-07-27, 5:52 pm |
| Hi All,
My requirement is to configure Delay shape (System.TimeSpan) at run time .
for example : If I want my orcestration to wait for 10 minutes. and I send
this through xml. then in expression box what expression should I write?
Shagun
| |
| Stephen W. Thomas 2005-07-27, 5:52 pm |
| Hello.
You can use a variable when you define your TimeSpan for the minute value.
Set the variable to an integer type and read it out of your xml message using
a distinguished field.
Expression shape would look like this:
nMinutes = YourMessage.Something.Minutes
Delay shape would look like this:
new System.TimeSpan(0,nMinutes,0);
Hope this helps.
Stephen W. Thomas
http://www.biztalkgurus.com
"Shagun" wrote:
> Hi All,
>
> My requirement is to configure Delay shape (System.TimeSpan) at run time .
> for example : If I want my orcestration to wait for 10 minutes. and I send
> this through xml. then in expression box what expression should I write?
>
> Shagun
| |
| Shagun 2005-07-28, 7:49 am |
| Hi Stephen,
Thanks alot.
Its working ......
Thanks and regards
Shagun
"Stephen W. Thomas" wrote:
[vbcol=seagreen]
> Hello.
>
> You can use a variable when you define your TimeSpan for the minute value.
> Set the variable to an integer type and read it out of your xml message using
> a distinguished field.
>
> Expression shape would look like this:
> nMinutes = YourMessage.Something.Minutes
>
> Delay shape would look like this:
> new System.TimeSpan(0,nMinutes,0);
>
> Hope this helps.
>
> Stephen W. Thomas
> http://www.biztalkgurus.com
>
>
> "Shagun" wrote:
>
|
|
|
|
|