Quantcast
Viewing all articles
Browse latest Browse all 175326

Getting the task object from a blocking task for vdcRecomposeVapp (create a new VM)

Hi,

 

I have a workflow that gets a blocking task message from AMQP and attempts to get the actual task details.  The code looks like:-

 

task = document..EntityLink.(@type == "vcloud:task").@id;
System.log("task: "+task);
var taskObject = vcdHost.getEntityById(VclFinderType.TASK,task);

 

This works fine when deleting a VM from a vApp and when copying a VM to a vApp.  However, when i create a new VM in a vApp, it fails to get the task object.  I have checned that the task reference retrived from teh message is the same as the task reference shown in vDC blocking tasks.

 

Am i doing somethng wrong, or for a create do i have to do something different?

 

Thanks

 

Ian...


Viewing all articles
Browse latest Browse all 175326

Trending Articles



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