Appendix E: Integrating with Existing Enterprise System Management : vCloud Director Notifications and Blocking Tasks Messages : Extension : Blocking Tasks and Notifications Use Cases
   
Blocking Tasks and Notifications Use Cases
This section covers the messages published during the use case: App Author adds a vApp from catalog. Notifications and blocking task for “Instantiate vApp from vApp Template” are enabled.
*Notification message: vApp creation requested. (true.#.com.vmware.vcloud.event.vapp.create_request - # is used as a placeholder)
*Notification message: VM creation requested a scaffold object is created and resources are locked (true.#.com.vmware.vcloud.event.vm.create_request)
*Notification message: A task to instantiate a vApp is created. (true.#.com.vmware.vcloud.event.task.create.vdcInstantiateVapp)
*Blocking tasks message: vApp instantiation has been blocked. (true.#.com.vmware.vcloud.event.blockingtask.create.vdcInstantiateVapp)
*vCloud Director User Interface shows the task as “Pending processing …”
Case 1: System admin calls abort on the blocked task.
*Blocking tasks message: The blocking task has been aborted. (true.#.com.vmware.vcloud.event.blockingtask.abort.vdcInstantiateVapp)
*Notification message: The vApp is modified as per the next operation. (true.#.com.vmware.vcloud.event.vapp.modify)
*Notification message: The scaffold object is deleted. Resources are unlocked. (true.#.com.vmware.vcloud.event.vm.delete)
*Notification message: The vApp instantiation is aborted. (true.#.com.vmware.vcloud.event.task.abort.vdcInstantiateVapp)
*The newly created object is no longer displayed from vCloud Director user interface. The task can be seen in Logs/Tasks.
Case 2: System admin fails the blocked task.
*Blocking tasks message: The blocking task has been failed. (true.#.com.vmware.vcloud.event.blockingtask.fail.vdcInstantiateVapp)
*Notification message: The VM is not created (false.#.com.vmware.vcloud.event.vm.create)
*Notification message: The vApp instantiation task has been failed (true.#.com.vmware.vcloud.event.task.fail.vdcInstantiateVapp)
*vCloud Director User Interface shows the task is having an error on object grid and in Logs/Tasks.
Case 3: System admin resumes the task.
*Blocking tasks message: The blocking task has been resumed. (true.#.com.vmware.vcloud.event.blockingtask.resume.vdcInstantiateVapp)
*Notification message: The vApp is instantiated. (true.#.com.vmware.vcloud.event.task.start.vdcInstantiateVapp)
*Notification message: The vApp is created. (true.#.com.vmware.vcloud.event.vapp.create)
*Notification message: The VM is created. (true.#.com.vmware.vcloud.event.vm.create)
Case 3a: The vApp instantiation is successful or aborted. (true.#.com.vmware.vcloud.event.task.complete.vdcInstantiateVapp)
Case 3b: The vApp instantiation fails. (false.#.com.vmware.vcloud.event.task.complete.vdcInstantiateVapp)