Initialize Correlation Set without a Send?

Home Page Forums BizTalk 2004 – BizTalk 2010 Initialize Correlation Set without a Send? Initialize Correlation Set without a Send?

#12860

I’ll try to upload a picture later. I create a demo orch just to see what is possible…

1) Receive TestOrderIn (activating receive)
2) Map to TestOrderReq
3) Under an Decide statement I send TestOrderReq
The decide is based on x > 1, and x is initialized to 10.
I initialize correlation set on the send.
4) I have a second Decide statement, same critieria x> 1.
I use the following correlation set on the receive.

The compiler is trying to \”help\” me, and giving me error:
error X2279: uninitialized correlation ‘TestCorrelationInit.TestCorrInitOrch.Correlation_1’

Of course, I know it is initialized because I know that my if statement is always true. So this gets back to my question in previous posts, is there a way to initialize correlation other than sending a message?

It seems like one get around would be to send a dummy message.

I know you can also initialize correlation on a receive, but might want to generate a GUID to use for the value of the correlation.

This gets back to something else I’ve been trying to figure out.
When is the subscription written to the database?
I.e. when you use the subscription viewer, it is show us entries in a subscription table.

Is the subscript set up:
1) On the initialize correlation
2) When a receive is encountered
3) Send
4) Other

Here’s another case – what about the scatter gather model?
If you send out 10 messages, then receive 10 messages in a loop?
What happens if the one of the 10 messages results in a return message before the last of the 10 messages is sent? This makes me think that the subscription must be entered on the Send?

Thanks again – lost in correlation and parallel shape land.

Neal Walters
http://Biztalk-Training.com