I am experimenting with customizing a vApp and my goal is to have the vApp user wait while I am making these changes to the vApp. It seems like adding a custom task to the vApp's TaskList would be the best way to do this. The user can wait on this task and then use the vApp when I indicate that the task is done.
1) How do I add a task to a vApp's task list?
2) What is the correct way to signal that the task is done? i.e., the user unblocks from a waitForTask() on that task
For adding the task, I've tried something like:
// Add a new task to the list
TaskType myTaskType = new TaskType();
myTaskType.setDescription("My Test Task");
myTaskType.setName("my test description");
myTaskType.setOperation("my test operation");
myTaskType.setOwner(myVapp.getReference());
TasksInProgressType tasksInProgressType = new TasksInProgressType();
tasksInProgressType.getTask().add(myTaskType);
Vapp.getVappByReference(vcloudClient, myVapp.getReference()).getResource().setTasks(tasksInProgressType);
But I think I am on the wrong track here.
Any pointer would be much appreciated.
Thanks!