Working with the Sample Projects

The MongoDB plug-in installer includes a sample project, which shows how TIBCO ActiveMatrix BusinessWorks Plug-in for MongoDB works.

After installing the plug-in, you can locate the sample project in the TIBCO_HOME/bw/palettes/mongodb/version/samples directory. This sample project contains the following projects that include different processes, and each process corresponds to a task.

  • Event_Sample
    • EventCleanDocument

      This subprocess demonstrates how to use the plug-in to clean documents in a specified collection.

    • EventInsertDocument

      This subprocess demonstrates how to use the plug-in to insert documents in a specified collection.

    • EventUpdateDocument

      This subprocess demonstrates how to use the plug-in to update documents in a specified collection.

    • EventListener

      This process demonstrates how to use the plug-in to listen for write operations in a specified collection.

    • OperationProcess

      This process demonstrates how to use the plug-in to insert, update, or delete documents in a specified collection.

    • WaitForEvent

      This process demonstrates how to use the plug-in to wait and listen for write operations in a specified collection.

  • Hierarchical_Aggregation
    • MapReduceAggregate

      This process demonstrates how to use the plug-in to perform map-reduce operations in a specified collection.

    • QueryAggregate

      This process demonstrates how to use the plug-in to perform an aggregation query from a specified collection.

    • CleanDocument

      This subprocess demonstrates how to use the plug-in to delete all documents from a specified collection.

    • InsertDocumentv

      This subprocess demonstrates how to use the plug-in to insert a group of documents in a specified collection.

    • QueryDocuments

      This process demonstrates how to use the plug-in to query multiple documents from a specified collection.

  • Metadata_and_Asset_Management
    • CreateDocument

      This subprocess demonstrates how to use the plug-in to insert a group of documents in a specified collection.

    • CreateGridFSFile

      This subprocess demonstrates how to use the plug-in to insert a file in a specified bucket.

    • DeleteDocument

      This subprocess demonstrates how to use the plug-in to delete all documents from a specified collection.

    • DeletePhotoDeletePhoto

      This subprocess demonstrates how to use the plug-in to delete a file from a specified bucket.

    • QueryDocument

      This subprocess demonstrates how to use the plug-in to query a document from a specified collection.

    • QueryDocumentbyIndex

      This subprocess demonstrates how to use the plug-in to query a document by index from a specified collection.

    • DropIndex

      This subprocess demonstrates how to use the plug-in to delete all indexes from a specified collection.

    • UpdateDocument

      This subprocess demonstrates how to use the plug-in to update a document in a specified collection.

    • GridFSPhotoOperatev

      This process demonstrates how to use the plug-in to insert, query, or delete a file from a specified bucket.

    • QuerybyIndex

      This process demonstrates how to use the plug-in to query documents from a specified collection using a newly created index.

    • QueryJSONtoXML

      This process demonstrates how to use the plug-in to parse JSON documents into XML documents.

    • SaveXMLtoMongoDB

      This process demonstrates how to use the plug-in to save XML documents into MongoDB.