|
Home > Archive > BizTalk Server Orchestration > August 2005 > Posible Bug with sample: 'Msg1': message has not been initialized in construct stateme
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 |
Posible Bug with sample: 'Msg1': message has not been initialized in construct stateme
|
|
| G. Tarazi 2004-05-05, 7:37 pm |
| Look at the attached project, logically there is no error in the orchestration, the map is initializing the Msg1 and then its used by the last shape, but it can't compile :-(
How many times I should initialize Msg1?
Thanks
G. Tarazi
http://www.LiveTechnologies.ca
| |
| Matt Milner 2004-05-05, 11:35 pm |
| Move the message assignment shape into the same construct block with the transform shape. You are trying to construct the message twice, but what you want is to construct it once but in a two step process.
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:e2$pJUvMEHA.2468@TK2MSFTNGP11.phx.gbl...
Look at the attached project, logically there is no error in the orchestration, the map is initializing the Msg1 and then its used by the last shape, but it can't compile :-(
How many times I should initialize Msg1?
Thanks
G. Tarazi
http://www.LiveTechnologies.ca
| |
| G. Tarazi 2004-05-06, 12:39 pm |
| Thank you, it worked after the changes, but how can I change the value of a message in 2 different places in the orchestration?
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message news:%23yA6GUxMEHA.2488@TK2MSFTNGP10.phx.gbl...
Move the message assignment shape into the same construct block with the transform shape. You are trying to construct the message twice, but what you want is to construct it once but in a two step process.
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:e2$pJUvMEHA.2468@TK2MSFTNGP11.phx.gbl...
Look at the attached project, logically there is no error in the orchestration, the map is initializing the Msg1 and then its used by the last shape, but it can't compile :-(
How many times I should initialize Msg1?
Thanks
G. Tarazi
http://www.LiveTechnologies.ca
| |
| Matt Milner 2004-05-07, 8:41 am |
| Messages are immutable, so you create a message once and then use it. If you need to change the message, you create a new message of the same type. You can easily use an assignment shape to assign msg1 to msg2, then modify msg2 in that same construct shape (using a message assignment shape).
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:OFVGhd4MEHA.3052@TK2MSFTNGP12.phx.gbl...
Thank you, it worked after the changes, but how can I change the value of a message in 2 different places in the orchestration?
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message news:%23yA6GUxMEHA.2488@TK2MSFTNGP10.phx.gbl...
Move the message assignment shape into the same construct block with the transform shape. You are trying to construct the message twice, but what you want is to construct it once but in a two step process.
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:e2$pJUvMEHA.2468@TK2MSFTNGP11.phx.gbl...
Look at the attached project, logically there is no error in the orchestration, the map is initializing the Msg1 and then its used by the last shape, but it can't compile :-(
How many times I should initialize Msg1?
Thanks
G. Tarazi
http://www.LiveTechnologies.ca
| |
| G. Tarazi 2004-05-11, 8:21 pm |
| Actually I have no problem with that, my only concern is if I have message1 that is 10 to 20 MB, and I would like to modify one of it's parameters, I will assign it to message2 and modify message2, now is the assignment of message1 to message2 is referencing, or entire copy of the 10 MB from msg1 to msg2?
Thank you
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message news:%23IMMT3CNEHA.2676@TK2MSFTNGP12.phx.gbl...
Messages are immutable, so you create a message once and then use it. If you need to change the message, you create a new message of the same type. You can easily use an assignment shape to assign msg1 to msg2, then modify msg2 in that same construct shape (using a message assignment shape).
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:OFVGhd4MEHA.3052@TK2MSFTNGP12.phx.gbl...
Thank you, it worked after the changes, but how can I change the value of a message in 2 different places in the orchestration?
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message news:%23yA6GUxMEHA.2488@TK2MSFTNGP10.phx.gbl...
Move the message assignment shape into the same construct block with the transform shape. You are trying to construct the message twice, but what you want is to construct it once but in a two step process.
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:e2$pJUvMEHA.2468@TK2MSFTNGP11.phx.gbl...
Look at the attached project, logically there is no error in the orchestration, the map is initializing the Msg1 and then its used by the last shape, but it can't compile :-(
How many times I should initialize Msg1?
Thanks
G. Tarazi
http://www.LiveTechnologies.ca
| |
| Matt Milner 2004-05-11, 8:21 pm |
| I believe it is a copy, but don't know that 100%.
Your best bet might be to look at doing this in a pipeline component if it makes sense so you can take advantage of the streaming capabilities there.
If you are doing it in orchestration, then you might also want to try and work your orchestration so that you have the values you need to construct the message once instead of twice. I realize this might not be feasible since you might need to change msg1, send it out to get more data, then create the msg2 with that new data and the original.
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:OVPn6yDNEHA.3452@TK2MSFTNGP10.phx.gbl...
Actually I have no problem with that, my only concern is if I have message1 that is 10 to 20 MB, and I would like to modify one of it's parameters, I will assign it to message2 and modify message2, now is the assignment of message1 to message2 is referencing, or entire copy of the 10 MB from msg1 to msg2?
Thank you
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message news:%23IMMT3CNEHA.2676@TK2MSFTNGP12.phx.gbl...
Messages are immutable, so you create a message once and then use it. If you need to change the message, you create a new message of the same type. You can easily use an assignment shape to assign msg1 to msg2, then modify msg2 in that same construct shape (using a message assignment shape).
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:OFVGhd4MEHA.3052@TK2MSFTNGP12.phx.gbl...
Thank you, it worked after the changes, but how can I change the value of a message in 2 different places in the orchestration?
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message news:%23yA6GUxMEHA.2488@TK2MSFTNGP10.phx.gbl...
Move the message assignment shape into the same construct block with the transform shape. You are trying to construct the message twice, but what you want is to construct it once but in a two step process.
Matt
"G. Tarazi" <Tarazi@LiveTechnologies.ca> wrote in message news:e2$pJUvMEHA.2468@TK2MSFTNGP11.phx.gbl...
Look at the attached project, logically there is no error in the orchestration, the map is initializing the Msg1 and then its used by the last shape, but it can't compile :-(
How many times I should initialize Msg1?
Thanks
G. Tarazi
http://www.LiveTechnologies.ca
| |
| phuhn 2005-08-30, 12:18 pm |
| quote: Originally posted by G. Tarazi
Look at the attached project, logically there is no error in the orchestration, the map is initializing the Msg1 and then its used by the last shape, but it can't compile :-(
How many times I should initialize Msg1?
Thanks
G. Tarazi
http://www.LiveTechnologies.ca
|
|
|
|
|