VMware Cloud Community
StefanxNil
Contributor
Contributor

vRealize 8.2 OGNL equivalent

Hello,

In vRealize 7.x, we used the OGNL expressions on vRO workflows/XaaS blueprints to avoid calling actions in case some values were not ready yet. For example if we wanted to call myAction only when vpc is not empty and Create is selected from drop down, we would use:

#actionType == "Create" && #vpc not in {null,""} ? GetAction("com.example","myAction").call( #vpc, #actionType) : [""]

 Is there any equivalent for this in vRA 8.2? If not, is it planned to introduce this at some point or is there any way to achieve the same effect?

 

1 Reply
adamflaig1
Enthusiast
Enthusiast

I was using OGNL that called a action to pull in a list of pre-defined answers based upon Configuration Elements.

Old...

GetAction("com.path.to.action.folder","action").call( #variabeToPassToAction)
My variable to pass to action was a Configuration element category that I had stored as a variable in the workflow.

New...

Input Form Select the field 

Select Values

Value Source Select External Source.

Search for the name of your action.  (my action was imported from a 7.x environment.  Before I could find the action I increased the version of the action.) You don't want path.to.action/Action.  Just the name of the action

Then the input fields should appear below.

 

Good luck

Adam Flaig
Reply
0 Kudos