Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Using Listen andDelay Shape
- This topic has 1 reply, 1 voice, and was last updated 9 years, 6 months ago by
community-content.
-
AuthorPosts
-
-
February 5, 2007 at 1:40 AM #17556
Hi,
I am new to BizTalk and .Net.
I am trying to develop a Batching scenario, using correlations. Here I have a Loop in which I have a delay shape.Loop(till flag == true)
Listen Shape——————————————–
| |
| |
| |1. Receive 1. Delay Shape
Subsequent Orders
2. Append Nodes to 2. Set flag = false
create an Envelope
Nodes.
3. Do some other
operations
| |
——————————————–
|
Send Batched MessageI am having a problem in setting values for Delay Shape. It allows me TimeSpan/DateTime.
I would want to set a condition Collect all the Orders till 9 pm everyday and batch them.I have been trying to set values using datetime(,,,) , but unsuccessful as I am not able to ignore the years(0-is invalid input),months etc component.
And I wouldnt prefer using TimeSpan (1day,0,0,0) as I assume delay is the delay time after the Orchestration is initiated –
Reason for my concern is in case of Day 1 – i get the orders and batch them. But on Day 2 from 9 pm to 9:30 pm no order is received
and if I receive the first order at 9:30pm, my delay shape would lead to the orchestration running till 9:30 pm on day 3
(please correct me if i am wrong).Please suggest me a way as I way I could put the condition in the delay shape to wait only till 9 pm (x hrs y min).
Or another method I could use is by using the DECIDE shape and check for the condition (datetime.now.hours == 9 )
and the same steps to be followed.
But I am not sure if its a very efficient method as I am checking for the condition every time the loop executes.Please suggest me the right approach. Thanks in advance.
-
March 7, 2007 at 5:24 AM #17872
Besides using a DateTime object (which should work fine), why don't you use the Service Window properties on your Receive Location. This makes modifications to the service window configurable, so you don't need to redeploy your orchestration when the service window changes.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.