Adding Scenarios and Folders
Scenarios can be:
-
Imported and exported using Docker commands to restore the Data Service PostgreSQL data volumes, and therefore, all the scenarios in the application database. For more details, please refer to the official Docker documentation.
Note:-
Restoring a Docker volume overwrites the database, i.e. the new elements are not added to the ones in the application but they replace them.
-
One must have access to the corresponding files as, by default, the information about Docker containers and volumes is located in the
db-gene/deployment
folder. -
It is key that the backup/restore of both the Data and Scenario Services happens at the same time to ensure that the content databases remain synchronized, even though the two Docker volumes are processed separately.
-
-
Added, imported and exported using the web client:
-
From the Topbar Tasks option Import from File. For more details, please refer to Section Understanding the Topbar Tasks Menu;
-
From the Scenario List widget toolbar option New Scenario. From the widget toolbar, users can also add folders using the option New Folder. Scenarios can then be dragged and dropped into the folders to be organized as needed. For more details, please refer to Section Using the Scenario List Widget; and
-
From the Scenario List widget, users can add folders using the option New Folder in the widget toolbar. Scenarios can then be dragged and dropped into the folders to be organized as needed.
-
From the Scenario Selector option New Scenario. For more details, please refer to Section Understanding the Scenario Selector;
A dedicated dialog allows importing a file to generate a single scenario for a simple data model or as many scenarios as needed for a composite data model. For more details, please refer to Chapter Defining the Data Model.
Importing a Scenario in a Simple Data Model Application
When adding a scenario in a composite data model application, the dialog allows selecting the type of scenario, its name and potential referenced scenarios. Not selecting a file adds an empty scenario with the right entities.
An option also allows to Create a new scenario from the same file instead of selecting an existing one.
In a composite data model application, when adding a scenario that references other scenarios, it is possible to select a scenario link or a normal scenario. Once the scenario is added, a permission rule is also created to make the referenced scenario accessible to everyone. This is required, in case it is moved into another workspace for instance, to prevent losing ACCESS to the new scenario which, itself, also requires ACCESS to the referenced scenario. For more details, please refer to Section Understanding Operations.
Importing a Scenario in a Composite Data Model Application
-