VMware Cloud 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 tasks. 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
1 Reply
carllaird
Contributor
Contributor

Sorry, wrong forum ... I've posted this in the web services sdk forum.

0 Kudos