Skip to content

Tag Archives: task info

How to Assign Task Description

In one of comments the following code did not set a task description (shown in vSphere Client in Details column): LocalizableMessage lm = new LocalizableMessage(); lm.setMessage(“Hello World”); myTask.getTaskInfo().setDescription(lm); The problem is in missing key property of the newly created LocalizableMessage: it must be assigned from the task itself. This is how it’s suppose to be [...]

How to Retrieve Task Info

This is how to retrieve a task info in you have the task MOR: ObjectContent[] objs = connection.Service.RetrieveProperties( connection.ServiceContent.propertyCollector, new PropertyFilterSpec[] { new PropertyFilterSpec() { objectSet = new ObjectSpec[] { new ObjectSpec() { obj = taskMOR } }, propSet = new PropertySpec[] { new PropertySpec() { all = false, allSpecified = true, type = “Task”, [...]

Soft & Virt is Digg proof thanks to caching by WP Super Cache