The Designer supports MongoDB - a NoSQL and document oriented database. MongoDB support is native and you do not need to install any client tools or drivers. Also, your PAS system comes with a MongoDB scheer-mongo pre-installed.
To use the MongoDB adapter it is helpful if you are familiar with the concepts of MongoDB.
As opposed to standard JSON, with MongoDB the order of keys does matter. Action script statement classToJSON() Operation, however, does not guarantee to preserve the order presented in the class. In many cases that will work but it may behave unexpectedly wrong.
The example on the left shows how to add a MongoDB adapter operation to an BPMN execution diagram.
Configuring the MongoDB Adapter Operation
Once an operation has been added to a diagram, it needs to be configured as a MongoDB adapter.
Select the newly added MongoDB adapter operation and switch to the Attributes panel. Depending on the diagram type you can see the following information (example BPMN execution diagram):
Attribute
Description
Allowed Values / Example
Name
The name of the MongoDB adapter operation.
insert
Type
The path to the operation within the data model.
Base Components.Add Ons.MongoDB.MongoDB
Symbol Type
Operations added to an execution diagram are execution steps.
Execution Step
All this is predefined and cannot be changed.
Click Add Stereotype to define the selected operation as to bea MongoDB adapter.
Select MongoDB Adapter from the list of available adapter stereotypes. Click Save.
The Attributes panel now shows the added adapter stereotype. Now you still need to configure the adapter.
Expand the stereotype by clicking the arrow on the right.
A MongoDB adapter is configured via its alias. Additionally, you can change the database and the collection.
The adapter action derives from the used operation. Do not configure this.
You can select an existing alias from a drop-down list by clicking the text Select alias.
If you want to remove an added alias, select None from the drop-down list:
You can also create and add a new alias by clicking the correspondingicon.
Refer to Aliases for more information on how to create a new alias.
A new dialog opens where you can name and configure the new alias.
Refer to MongoDB Adapter Reference for more information on the configuration options of this adapter.
To add a database or a collection, click on the corresponding icon icon and enter the respective name.
You can remove an added database or collection by clicking on the corresponding symbol.
On this Page:
MongoDBAdapter_CustomerData_Example
Click the icon to download a simple example model that shows the usage of the MongoDB adapter in Scheer PASDesigner.