Builds a business object based on the information in an event from the event store.
Syntax
public CWConnectorBusObj getBO(CWConnectorEvent eventObject); public CWConnectorBusObj getBO(CWConnectorEvent eventObject, int status);
Parameters
Return values
A CWConnectorBusObj object containing a new business object based on information retrieved from the application's database. If the method was unable to retrieve the eventObject event object, it returns null.
Exceptions
Notes
The getBO() method returns a business object that contains information for an application entity that the eventObject event object describes.
The default implementation of this method performs the following actions:
If the verb is Create or Update, populate the CWConnectorBusObj object with the data that doVerbFor() has retrieved. It handles the following conditions that the doVerbFor() method might generate:
As described above, the default implementation of getBO() has several ways to indicate to the calling method that certain error or exception conditions occur. However, if you need to return a particular internal status value (such as the status attribute of a thrown exception) to the calling method, you can override this default implementation. For your implementation of getBO(), use the second form of this method's signature, which provides a status argument. Within getBO(), assign some status value to this argument before you exit getBO(). From the calling method, pass in the uninitialized status value and, after the call to getBO(), access the initialized status value.
See also
doVerbFor(),, getTerminate(), pollForEvents(), setTerminate()