Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 205277

Re: How to pass VM name to Workflow using JavaSDK?

$
0
0

Are you sure the execution has failed? Could you print the value returned by calling execution.getState().value()?

 

The message you are seeing is printed by your code after the execution, when you try to get an output parameter:

 

String nameParamValue = new ParameterExtractor().fromTheOutputOf(execution).extractString("name");
System.out.println("workflow was executed with 'name' input set to" + nameParamValue);

 

Does your custom workflow has output parameter with name 'name' and type 'string' (the stock workflow doesn't)? Are you sure you are populating it correctly?


Viewing all articles
Browse latest Browse all 205277

Trending Articles