This method saves a failed event and sets its status to STATUS_USER_GENERATED.
Syntax
saveFailedEvent (BusObj busObj)
Parameters
Examples
// Synchronize product information in a batch using wrapper business // object ProductSet. // Create an empty parent bo BusObj parentBo = new BusObj("ProductSet"); // Set the values which are the same as the tringgeringBusObj parentBo.set("ProductSetId", triggeringBusObj.get("ProductSetId")); parentBo.set("CreateDate", triggeringBusObj.get("CreateDate")); // Set Verb to the parent bo parentBo.setVerb(triggeringBusObj.getVerb()); // Add the failed business object to parent bo. Here iterProduct // is the child BO which gets failed during iteration process. parentBo.set("Products", iterProduct); // Call collaboration API to save the failed event saveFailedEvent(parentBo);
Notes
See also