Chris
Chris

Reputation: 31

How to define a variable in Oracle Service Bus?

How can I define a variable in a proxy service and what is the scope of a variable?

Upvotes: 0

Views: 7014

Answers (2)

Soumya
Soumya

Reputation: 21

Use "Assign" from "message processing" design palette. In the properties of "Assign", give any name to that variable in the "variable" property and in "expression" property give the expression of where it would reside..suppose i create a variable named x in body, then in expression i'll give $body.

Scope: Scope of this Assign resource is within the pipeline pair in which it is defined.

Upvotes: 2

Jonathon J Howey
Jonathon J Howey

Reputation: 606

You use an Assign action in the Pipeline.

The scope of that variable is for the PipelinePairNode (Request, Response, and Route).

Upvotes: 3

Related Questions