I have now simplified the setup.
I have a workflow with only one Scriptable Task.
The Scriptable Task takes two inputs:
vcacHost, Type = vCAC:VCACHost (I only have one vCAC:VCACHost, so can't have selected the wrong one)
theBlueprint, Type = vCAC:Blueprint
The script of the Scriptable Task is:
var entity = System.getModule("com.vmware.library.vcac").getBluePrintEntity(vcacHost,theBlueprint); var links = entity.getLinks(vcacHost); var properties = { virtualMachineTemplateDescription : "Testing Description" }; var headers = { }; var hostId = entity.hostId; var modelName = entity.modelName; var setName = entity.entitySetName; var keyString = entity.keyString; vCACEntityManager.updateModelEntityBySerializedKey(hostId, modelName, setName, keyString, properties, links, headers);
When I run this workflow, it fails with the following exception:
java.lang.NullPointerException (Workflow:Update a vCAC Blueprint Entity / Scriptable task (item1)#19)