Temporary scenarios are created and used only within the current session. Their metadata is not persisted in the platform and will be deleted if the user ends the current session (on Workshop, for example). These scenarios are useful for quick, ad-hoc "what-if" analyses where you do not need to collaborate or share the results. They allow you to experiment with different actions without affecting the state of your Ontology or cluttering your workspace with unnecessary saved scenarios.
In this tutorial, you will walk through building a basic Workshop application supporting temporary scenarios.
From the body of the module, add an Object Table widget.
You can use any object set to populate the table, but we recommend starting with an object type that already has at least one associated action configured.
Now, add some properties to display in the table.
Below the properties, enable the option to Load Data from Scenario into this widget. This option effectively makes the Object Table widget scenario-aware.
Select the scenario array variable produced by the Scenario Manager widget. This will cause the data in the Object Table widget to reflect any modifications to scenarios in the Scenario Manager widget rather than the raw Ontology.
To preview the changes you will be making on the scenario, add the Scenario Summary widget to your module.
In the widget configuration, connect to the active scenario variable generated by the Scenario Manager widget.
At this point, no modifications have been applied to the scenario; the data should be the same.
Add a Button Group widget to configure an action to apply to your scenarios.
Select an action that modifies the object types in your table.
To apply this action to a scenario instead of the Ontology, enable the Apply to Scenario option and select the active scenario variable from the menu.
Using the newly configured action, try changing the property of any object in the table to a new value.
Before applying the action, create a new scenario in the Scenario Manager widget by selecting Create.
In the example below, the Year for a flight in the table is being updated. You should see the Object Table widget refresh with the new data.
A record will appear in the Scenario Summary widget indicating the change in data. This action has not been applied to the Ontology and exists only within the scenario.
The Chart: XY widget supports an arbitrary number of scenarios, and different scenarios can be configured in different layers.
2. Try exploring the various layer types to see how multiple scenarios are visualized in them.
Now that you have created your first scenario, we recommend experimenting with various configurations and layouts of the scenario-specific Workshop widgets used in our tutorial.
If you determine that you do want to persist this scenario's metadata, follow the guidance in our persisted scenarios documentation.