Example
Last updated
Last updated
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.
Drag the MongoDB Context Provider onto the canvas and link the output endpoint to the printer. Rename the Agent and save the Data Stream.
Select the Agent and click Configure. In this case, keep the default Collection and polling interval.
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.
Select the database. In this case, appdb.
Select the table or collection. In this case, business.
No limit, filter, or sort is applied in this example. Refer to the configuration for further details on these properties.
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.
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Data Stream
C0mp|ex123