VMware Cloud Community
Subnet88
Enthusiast
Enthusiast

AnswerWorkflowInput format

What is the format that vco is expecting when recieving the AnswerWorkflowInput operation from a API call? I cant seem to find this documented in the api guide.

The only description I have is here, but this doesnt answer if my input must be "Approve vApp" or "Decline vApp"  nothing I enter into the api call seems to make a difference.

Reply
0 Kudos
1 Reply
igorstoyanov
VMware Employee
VMware Employee

I think this document is the right one. Bascially explaining that it is the same as when you execute a workflow with inputs. From the doc examples:

          WorkflowTokenAttribute[] inputParameters = new WorkflowTokenAttribute[2];
           // example string param
           inputParameters[0] = new WorkflowTokenAttribute();
           inputParameters[0].setName("exampleParamName");
           inputParameters[0].setType("string");
           inputParameters[0].setValue("Actual Value I want to pass in");

          //example boolean param that could be used for approved/decline a request

           inputParameters[1] = new WorkflowTokenAttribute();

           inputParameters[1].setName("approved");
           inputParameters[1].setType("boolean");
           inputParameters[1].setValue(true);

More information about the WorkflowTokenAttribute: http://pubs.vmware.com/vsphere-50/topic/com.vmware.vsphere.vco_develop_web_services.doc_42/GUID375CB...

Examples of how the API is used from Java client: http://pubs.vmware.com/vsphere-51/topic/com.vmware.ICbase/PDF/vco-samples-510-2725.zip

Hope this helps.

Thanks,

Igor.

Visit http://blogs.vmware.com/orchestrator for the latest in Cloud Orchestration.
Reply
0 Kudos