Neuron ESB User Network

The Service Bus for the Connected Business

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

Tags: REST, client, endpoint, http, service, utility

Views: 428

Reply to This

Replies to This Discussion

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.

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service