Super Contributor.. wdomerac Super Contributor..
Super Contributor..
596 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

Labels (1)
0 Likes
4 Replies
Absent Member.. Steve_Drummond Absent Member..
Absent Member..

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

 

0 Likes
Super Contributor.. wdomerac Super Contributor..
Super Contributor..

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

 

🙂

0 Likes
Absent Member.. Steve_Drummond Absent Member..
Absent Member..

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 🙂

0 Likes
Super Contributor.. wdomerac Super Contributor..
Super Contributor..

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

Hello.

 

No worries 😉

 

And Scriptlets are always good 🙂

 

Cheers 🙂

WD

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.