VMware {code} Community
carllaird
Contributor
Contributor

How to set Details field of a Task under Recent Tasks in vSphere client using java api?

Does anyone know how to populate the details field of the tasks under Recent Tasks in the vSphere client using the java api?

I've tried setting a summary when I register my extension's task types. It picks up the label, but doesn't seem to pick up the summary:

KeyValue label = new KeyValue();

label.setKey(taskTypeId + ".label");

label.setValue(taskTypeResource.getLabel());

KeyValue summary = new KeyValue();

summary.setKey(taskTypeId + ".summary");

summary.setValue(taskTypeResource.getSummary());

Have also tried setting setting a fault and a result on task.setTaskState().

Thanks in advance ...

0 Kudos
2 Replies
tos2k
Expert
Expert

Hi!

This is what I found out so long: http://communities.vmware.com/message/1287961

HTH, Tos2k

0 Kudos
carllaird
Contributor
Contributor

Thanks for your response. I did see that thread and used the code samples when I originally implemented the task type registration. The registration of both the task types and the tasks are working, but I never see the text I specify in the .summary value displayed. Not sure if they are supposed to be displayed in the Details column or somewhere else ... Are your summaries displayed anywhere?

0 Kudos