Adapter Development Kit 6.5 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Adapter Services | Adapter Service Classes
 
Adapter Service Classes
 
Registering Adapter Service Templates in Connection Factories
You create an adapter service template by extending the base class WmAdapterService. Because most adapters include several adapter service template classes, it is common to place them in their own package.
The following figure shows the classes provided by the ADK to support adapter service templates. It also shows the WmAdapterService implementation class MockDbUpdate.
ADK adapter service classes and the implementation class MockDbUpdate
In your WmAdapterService implementation class, override the following methods:
Method
Description
execute
Receives a WmManagedConnection object from the adapter implementation, and a WmRecord containing the pipeline data.
Note:
This method is abstract in the base class, so failing to override it will produce a compilation error.
For more information, see Adapter Service Execution.
fillWmTemplateDescriptor
Serves to modify how metadata parameters are handled during data entry. Failing to override fillWmTemplateDescriptor results in a run-time error. For more information, see The WmTemplateDescriptor Interface.
metadataVersion
Returns the current version of the metadata.
Note:
Override this method if the template has multiple metadata versions.
fieldsToIgnoreInMetadataDefinition
Uses metadata version as input and returns an array of the fields that are not applicable to the metadata version provided.
Note:
Override this method if the template has multiple metadata versions. Failing to override fieldsToIgnoreInMetadataDefinition results in breaking old services.