262 WebSphere Business Integration Adapters
16.3 Performing the verb operation
Most verb operations involve obtaining information from the request business
object. This section provides information about the steps that our doVerbFor()
method takes to process the request business object for each active verb.
16.3.1 Accessing the business object
As part of the Java connector, the doVerbFor() method receives the request
business object as an instance of the CWConnectorBusObj class. To begin verb
processing, the doVerbFor() method needs information from the business object
definition. The CWConnectorBusObj class provides access to the business
object, its business object definition, and attributes. Therefore, a Java
doVerbFor() method does not need to instantiate a separate object for the
business object definition. It can obtain information about the business object
definition directly from the CWConnectorBusObj object passed into doVerbFor().
A business object handler typically uses the business object definition to get
information about its attributes or to get the application-specific information from
the business object definition, attribute, or verb.
Note: For metadata-driven verb processing, the application-specific
information for the verb contains metadata, which provides processing
instructions for the request business object when that particular verb is active.
The getVerbAppText() method is provided by the CWConnectorBusObj class
to obtain application-specific information for the verb of a business object.
Tip: The verb application-specific information can contain the name of the
method to call to process the request business object for that particular verb.
In this case, the doVerbFor() method does not need to branch off the value of
the active verb because the processing information resides in the
application-specific information.
Important: These steps assume that your connector is designed to be
metadata-driven. That is, they describe how to extract application-specific
information from the business object definition and attributes to obtain the
location within the application associated with each attribute. If your connector
is not metadata-driven, you do not need to perform any steps that extract
application-specific information.