Lotus Notes Adapter 6.0 | webMethods Lotus Notes Adapter Documentation | webMethods Lotus Notes Adapter Installation and User’s Documentation | Adapter Services | Using Lotus Notes Adapter Services | Example Lotus Notes Operation
 
Example Lotus Notes Operation
This example shows the steps necessary to use the Lotus Notes Adapter to configure an adapter connection and the necessary adapter services that, when called from a flow service, create a database on the Domino Server:
1. In Designer, create a new package, for example, LotusTest.
2. In the Integration Server Administrator, configure a new Lotus Notes connection in the package you created, for example, ConnectionTest. Be sure to enable the connection.
3. In Designer, create a folder for new adapter services, for example, Services.
4. In Designer, configure the following new adapter services using the Domino Operation template and the connection you created in step 2:
a. An adapter service that creates the session object on the Domino Server, for example, createSessionService. In the adapter service template, select lotus.domino.session as the class, and createSession as the method.
b. An adapter service that creates a getDbDirectory object on the Domino Server, for example, getDbDirObject. In the adapter service template, select lotus.domino.session as the class, and getDbDirectory as the method.
c. An adapter service that creates a new, blank database, for example, createDB. In the adapter service template, select the lotus.domino.DbDirectory class, and the createDatabase method.
5. Create a new empty flow service (for example, CreateDbFlow) and call the adapter services you created in step 4 in the following sequence:
createSessionService
getDbDirObject
createDB
6. As the last step in flow service, call the wm.ln.authentication:logout adapter service. For information about this adapter service, see Freeing Resources After Processing.
7. In the flow service, map the fields in the pipeline.
Using the example adapter services created in step 4, the mapping is as follows:
*createSessionService. Inputs are user and password (default reads from the connection or a different user and password can be provided). Output is session.
*getDbDirObject. Inputs are server and session (leave the server field blank and map the session from the CreateSessionService service). Output is dbDirectory.
*createDB. Inputs are dbDirectory and dbfile (map the dbDirectory field from the getDbDirObject service and provide the name you want for the database in the dbfile field). Output is database.
8. Run the CreateDbFlow flow service to create a database on the Domino Server with the name specified in the dbfile field.