Author |
Message
|
SOLOHERO |
Posted: Thu Apr 05, 2007 4:36 pm Post subject: Environment/LocalEnvironment |
|
|
Centurion
Joined: 01 Feb 2007 Posts: 107
|
Very Urgernt,
How do i copy Body into environment.
I can able to copy the root but not body.
it is a kind of big message.
Thanks _________________ Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 05, 2007 5:55 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Create Field Environment.Variables.MessageBody DOMAIN InputRoot.Properties.MessageDomain;
Set Environment.Variables.MessageBody = InputBody.[>]; _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PrasLearnsWBI |
Posted: Fri Apr 06, 2007 12:06 pm Post subject: |
|
|
 Novice
Joined: 06 Apr 2007 Posts: 13 Location: Budapest, Hungary
|
Thanks Jeff
This is Great !! I was looking for something like this. I used to store the Body in the "usr" of MQRFH2 header. I figured out that it was not a good idea, because some of my large messages were failing when passing through certain Nodes within my message flow.
The way you suggested looks more elegant. Is there any limit to the size of the MessageBody that can be saved in the Environment? Can we save it as a String and not as XML?
Appreciate your help
Thanks
Pras _________________ I wonder that I am around !! |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Apr 06, 2007 4:09 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You'd have to ASBITSTREAM it to save it as "string".
The limit on the size of Environment is directly related to the amount of memory the EG has access to. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
SOLOHERO |
Posted: Mon Apr 09, 2007 3:56 pm Post subject: |
|
|
Centurion
Joined: 01 Feb 2007 Posts: 107
|
Hi Jeff,
Thanks for qucik Reply , but i am trying to implemnet this it is howing following error.
"Syntax error.Valid OPtions Include; AS FROM IDENTITY NAME NAMESPACE PARSE REPEAT TYPE VALUE"
REPLY ASAP Please _________________ Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 09, 2007 4:10 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yeah, I guess I can't use "Field" with the domain clause of create. It was off-the-cuff code, should have mentioned.
Try searching around for other mentions of CREATE... DOMAIN. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|