saveFailedEvent()

This method saves a failed event and sets its status to STATUS_USER_GENERATED.

Syntax

saveFailedEvent (BusObj busObj)

Parameters

busObj
BusObj is the business object to be saved. The saved business object has an identical structure to the original failing event and your structure should be defined before calling the method. The eventStatus of the failing event becomes STATUS_USER_GENERATED.

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

queryFailedEvents()

Copyright IBM Corp. 2004, 2005