The following is the vCO Workflow Script to Create a vCloud Event Log Entry.
var objVclEvent; objVclEvent = new VclEvent(); objVclEvent.type = "Task"; objVclEvent.typeFull = strErrorMessage; objVclEvent.serviceNamespace = "com.vcoflow"; objVclEvent.success = true; objVclEvent.owner = objVclUser.getReference(); objVclEvent.user = objVclUser.getReference(); var objVclAdminOrganization; objVclAdminOrganization = objVclOrganization.toAdminObject(); objVclAdminOrganization.createEvent(objVclEvent);