IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > Adapter Toolkit > Implementing code from the IBM WebSphere Adapter Toolkit > Inbound event notification > Possible event store implementations

Function selector

Function selectors map resource adapter events to corresponding SCA export function names.

The WebSphere Adapter component that exposes resource adapters as SCA components requires what is known as a function selector. This selector maps events generated by resource adapters to a SCA export function name.

For example, an adapter may generate an after-image Customer event with top-level verb Update, which the user expects to be published using the function emitCreateAfterImageCustomer.

public interface FunctionSelector {
	  public String generateFunctionName(Object[] argObjects) throws MetadataException;}

The StructuredDataFunctionSelector class looks at metadata within the StructuredRecord to generate a function name. It will create a function name as follows "emit[OperationName]AfterImage[RecordName]", where OperationName is an operation stored in the record as the operationName property, and RecordName is the value stored in the recordName property.

For more information about the FunctionSelector interface, see the Metadata Discovery Specification.

For example, if the StructuredDataFunctionSelector received an event such as CustomerBG with TopLevelVerb Create and containing a business object of type Customer, the WBIFunctionSelector class would generate a function name such as emitCreateAfterImageCustomer. For the same business graph with no TopLevelVerb, the function name emitted might be emitDeltaCustomer.

Possible event store implementations