Is it possible to pass "variable" in to Results filter ? (224 Views)
Reply
Advisor
Posts: 34
Registered: ‎02-12-2013
Message 1 of 5 (224 Views)

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

Trusted Contributor
Posts: 89
Registered: ‎10-01-2012
Message 2 of 5 (214 Views)

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

 

Advisor
Posts: 34
Registered: ‎02-12-2013
Message 3 of 5 (201 Views)

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
Posts: 89
Registered: ‎10-01-2012
Message 4 of 5 (197 Views)

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 :)

Advisor
Posts: 34
Registered: ‎02-12-2013
Message 5 of 5 (192 Views)

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

Hello.

 

No worries ;)

 

And Scriptlets are always good :)

 

Cheers :)

WD

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.