Hi all,
Is it possible to access context.state properties from the Http Client Utility?
I couldn't find any documentation, the Help only references Environmental Variables, properties (context, message, etc.).
Thank you
Fabrizio
here's good documentation on it : http://www.neuronesb.com/article/http-utility-json-swagger/
however, yes....I believe the syntax is the same as in the screen shot within the documentation i.e.
{#context(MyProp)}
Thanks Marty.
Does it also applies for context.State properties?
When I try to access a property saved in context.State I get the following error "The process context property, 'em>propertyName>', used in the notation '#context(em>propertyName>)' could not be found."
F.
I wonder if you have to put quotes around the text of the property...I can't remember. I'll ask Manoj though
fyi...the syntax that I sent earlier is for context.state
ok...my bad. that syntax is for context.Properties. it does not currently support context.state properties.
also...you don't have to enclose with double quotes. for instance, if you have this in a C# step:
context.Properties["Neuron-X-AuthenticationHeader"] = credential.Username + ":" + credential.Password;
to access it in the UI, you just need this:
{#context(Neuron-X-AuthenticationHeader)}
ok Marty,
thanks for the explanation.
I will then use a standard C# code to map the additional header from the context.State property.
F.
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by