This page explains the MongoDB Adapter in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to MongoDB Adapter in the Designer guide.

The following figure shows a component diagram that features a MongoDB database.

The <<MongoDBAlias>> CustomerDB connects the xUML service to the MongoDB. Each <<MongoDBAdapter>> referencing the same alias connects to the same database.

Dynamic Database and Collection Access

You can specify the database and collection you want to use in three locations. These locations are treated by the xUML Runtime in the following hierarchy:

RankingLocationDescription
1adapter actionUse the action parameters database and collation if provided.
2<<MongoDBAdapter>>Use database and collation specified on the adapter if not provided via parameter.
3<<MongoDBAlias>>Use database and collation from the alias if not provided for this dedicated action.