I am learning vRO and I'm stuck trying to get a REST request to successfully complete a particular workflow. I followed the tutorial here (http://www.vcoteam.info/articles/learn-vco/268-how-to-use-the-rest-api-to-start-a-workflow.html) to successfully submit a REST request to my vRO server. I would now like to take it a step further and use the REST api to kick off one of the included workflows (Get VM Uuid).
Following the same steps outlined in the tutorial listed above, I can start the (Get VM Uuid) workflow via a REST call. However, it fails with the following error:
Workflow:Get VM Uuid / Get VM Uuid (item1) : java.lang.RuntimeException: ch.dunes.model.type.ConvertorException: Cannot convert to object , reason : finder not found for type : null
Now, based on my research I believe I need to convert/wrap the JSON data into an appropriate output/input format for the "Get VM Uuid" script but I am not sure how to do it. Any help would be greatly appreciated.
Thanks.
PS. here is the JSON data I am sending over:
{
"parameters":
[
{
"value":{"string":{"value": "testvm"}},
"type": "VC:VirtualMachine",
"name": "vm",
"scope": "local"
}
]
}
PPS. any book recommendations would also be appreciated.