| Author |
correlation not working
|
|
|
| My orchestration is exposed as a webservice and a form submits to it. After
some initial logic the form gets sent for approval. I store the data in a
databse and am trying to use the rowid for the message correlation - I have a
string in the schema to store this. I am using a dynamic send port which is
different than the receive port to email the form for approval. Everything
works fine until the approver approves the form and it submits back. This
keeps starting a new orchestration instead of routing the message to the
running one. I can't figure out why this happens - I tracked the approved
mesage to confirm that the rowid field is correctly getting passed with the
message. The Send shape is set to initialize the correlation and a receive
shape right after it follows the correlation. I did a quick promotion from
the rowid field to create the property schema.
Can anyone shed some light on this? I can't figure out what I'm doing wrong.
Ryan
| |
| Sujesh 2006-06-26, 1:17 am |
| Ryan,
Are you using XMLReceive and XMLTransmit pipelines in the ports?
If you are not then properties wont get promoted for correlation.
"Ryan" wrote:
> My orchestration is exposed as a webservice and a form submits to it. After
> some initial logic the form gets sent for approval. I store the data in a
> databse and am trying to use the rowid for the message correlation - I have a
> string in the schema to store this. I am using a dynamic send port which is
> different than the receive port to email the form for approval. Everything
> works fine until the approver approves the form and it submits back. This
> keeps starting a new orchestration instead of routing the message to the
> running one. I can't figure out why this happens - I tracked the approved
> mesage to confirm that the rowid field is correctly getting passed with the
> message. The Send shape is set to initialize the correlation and a receive
> shape right after it follows the correlation. I did a quick promotion from
> the rowid field to create the property schema.
>
> Can anyone shed some light on this? I can't figure out what I'm doing wrong.
> Ryan
| |
| Jay Kinker 2006-06-26, 7:25 am |
| Hi Ryan,
Use "Show Promotion" instead of Quick Promotion.
Regards,
Jay Kinker__
"Ryan" wrote:
> My orchestration is exposed as a webservice and a form submits to it. After
> some initial logic the form gets sent for approval. I store the data in a
> databse and am trying to use the rowid for the message correlation - I have a
> string in the schema to store this. I am using a dynamic send port which is
> different than the receive port to email the form for approval. Everything
> works fine until the approver approves the form and it submits back. This
> keeps starting a new orchestration instead of routing the message to the
> running one. I can't figure out why this happens - I tracked the approved
> mesage to confirm that the rowid field is correctly getting passed with the
> message. The Send shape is set to initialize the correlation and a receive
> shape right after it follows the correlation. I did a quick promotion from
> the rowid field to create the property schema.
>
> Can anyone shed some light on this? I can't figure out what I'm doing wrong.
> Ryan
| |
|
| Thanks for the reply. Once I changed it to XMLReceive that seemed to make
the correlation work (the send poort uses a custom pipeline with an xml
asembler so no problem there). But then I ran into a different problem. I
don't use a loop shape but I am getting an infinite looping orchestration.
My approval send is inside of a decide shape nested in other decide shapes.
I opened the orchestration debugger and when the approval message is received
it seems to backtrack out of all the decide shapes and in doing this performs
all those actions again - including creating another service instance. And
the message is sent out again for approval. After the approval message is
approved and received, a notification goes out and the orchestration is just
supposed to end, but this is where it "backtracks" through the orchestration.
If you have any other thoughts that would be great.
Thanks,
Ryan
"Sujesh" wrote:
[vbcol=seagreen]
> Ryan,
>
> Are you using XMLReceive and XMLTransmit pipelines in the ports?
>
> If you are not then properties wont get promoted for correlation.
>
> "Ryan" wrote:
>
|
|
|
|