Active IQ Unified Manager Discussions

how to get the returnWFAParameters out Parameter to VCO

Omid
3,095 Views

using VCO to call WFA workflows. struggling to get the returnWFAParameters out Parameter to populate using NetApp WFA Workflow object.

 

WFA Version 2.2.0.2.6

 

WFA returns the parameter then I am returning some parameters to VCO. I am not able to get them into a variable in VCO, Can not get a the return parameters into variables.

 

2 REPLIES 2

mcleod
3,068 Views

Are you attempting to setup a vCO/vRO workflow to call WFA?  Have you run the "Get WFA Workflow Inputs" against the WFA workflow in order to find the needed inputs?  

 

Also, go to http://www.mccloudoncloud.com/2014/03/26/software-defined-storage-with-netapp-and-vmware-part-3-create-workflow-integration-with-vco-and-wfa/ for a detailed step by step guide for setting up a vCO workflow to call WFA. 

 

-Jack

asulliva
3,062 Views

When executing a WFA workflow from vRO/vCO using the "vCO Package for WFA Integration" the output of the "NetApp WFA Workflow execution" task will include a parameter named "returnWFAParameters".  This is a Properties object (meaning it is a series of key->value pairs) which contain any returned values from WFA.

 

To access them, you can use a script object to access individual properties.  For example:

 

// if you know the name of the WFA return parameter
System.debug("Returned value " + returnWFAParameters.get("someProperty") + " for parameter someProperty");

// if you want to enumerate all of the returned values
for (var key in returnWFAParameters.keys) {
  System.debug("Returned parameter " + key + " equals " + returnWFAParameters.get(key));
}

 Hope this helps.

 

Andrew 

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public