Comment on page


This example Data Stream demonstrates how to use the Context Provider to return contextual business data from a MongoDB database.
Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the MongoDB Context Provider onto the canvas and link the output endpoint to the printer. Rename the Agent and save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure. In this case, keep the default Collection and polling interval.

Step 3: Configure Server

Enter the Authentication details of the MongoDB database to which you want to connect: server, port number, and authentication type. In this case, leave the authentication type as Anonymous.

Step 4: Configure Database

Select the database. In this case, appdb.
Select the table or collection. In this case, business.

Step 5: Configure Filtering & Sorting

No limit, filter, or sort is applied in this example. Refer to the configuration for further details on these properties.

Step 6: Results

Apply the changes, save the Data Stream, and publish it.
Click the Live Data View button. Observe that all rows from the MongoDB table, the business certificates, are printed.


Security Key
Data Stream
MongoDB Context Provider Example.xuc
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.