Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Finding Presentation Input Parameter Properties

$
0
0

I am using the VCO SDK with orchestrator 5.1.0 build 2725.  I am needing to access the Presentation Properties.  In particular I am looking for the Default value for each presentation item.  I use my workflow to retreive my a presentation object. From it I retreive the input parameters but for every input parameter the properties attribute is null.  Should this be populated with the property values for the presentation item?

 

Here is a piece of code I am using to try to look at the properties:

 

private static void checkPresentation(Workflow wf) {
        PresentationService ps = new PresentationService(session);
        Presentation pres = ps.getPresentation(wf);
        com.vmware.o11n.sdk.rest.client.stubs.Presentation.InputParameters ip = pres
                .getInputParameters();
        List<Parameter> parmList = ip.getParameter();
        for (Parameter parm : parmList) {
            com.vmware.o11n.sdk.rest.client.stubs.Properties parmProperties = parm
                    .getProperties();
            if (parmProperties != null) {
                List<KeyValuePair> propList = parmProperties.getProperty();
                for (KeyValuePair aProp : propList) {
                    System.out.println("Input Parameters Key: "
                            + aProp.getKey());

 

                }
            }

 

        }
    }


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>