Operations Orchestration Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Is it possible to pass "variable" in to Results filter ?

Frequent Advisor

Is it possible to pass "variable" in to Results filter ?

Hi.

 

Is it possibe to pass ${flowName} in to filters of operation Results ?

 

flowName will be inputs of operation. Constant or passed from "global" inputs.

 

http://img191.imageshack.us/img191/7588/20130308screenhunter021.jpg

 

My LAB shows thats it's not possible...

 

Cheers

 

WD

4 REPLIES
Trusted Contributor

Re: Is it possible to pass "variable" in to Results filter ?

Unfortunately you cannot use a variable name in the filter inputs.

 

You can access a flow variable from within a scriptlet filter though.

 

scriptletContext.getLocal("varName"); // Get local OO var
scriptletContext.get("varName"); // Get global OO var

 

Frequent Advisor

Re: Is it possible to pass "variable" in to Results filter ?

I think it's possible.

 

I have positiv results in "Http Client Detailed Return"

 

I've add global input for example: "flowName"

 

Than i've insert ${flowName} in to filters  and results are good as expected:

 

 

 

But for example in operation "Set Flow Variable" it wasn't working

 

:)

Trusted Contributor

Re: Is it possible to pass "variable" in to Results filter ?

Well I'll be; I could have sworn I'd tried to do this over a year ago and it didn't work. Obviously I must have been doing something wrong because it is working.

 

Even on the 'Set Flow Variable' it is working for me. Sorry for the wrong information, but hopefully the scriptlet commands will be of use to you someday :)

Frequent Advisor

Re: Is it possible to pass "variable" in to Results filter ?

Hello.

 

No worries ;)

 

And Scriptlets are always good :)

 

Cheers :)

WD