- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply.
Actually, I want to call workflow from Java code and pass Input as VM (VC:VirtualMachine) object, i tried with below code,
SdkObject obj = new SdkObject();
obj.setType("VC:VirtualMachine");
obj.setId("VCIP/vm-744");
context = new ExecutionContextBuilder().addParam("vm",obj).build();
WorkflowExecution execution = executionService.execute(workflow, context);
but it is pass null to VM input parameter in vCO workflow.
So i thought to pass Vm name as string and within workflow script i will convert that into VC:VirtualMachine object type. but i'm not able to do this.
Can anyone help me resolve this issue or on the workaround?