Saved Scenario objects can be loaded into Workshop modules via the variable system. These saved Scenarios can be passed to the Scenario Manager, but can also be passed directly to any other Scenario-enabled widgets as well.
To load a saved Scenario, create a new Scenario array variable and select the “Scenario loaded from object set” option. This will convert an object set of objects that implement the Scenario trait into an array of Scenario objects.
The object set can be populated using a normal object set variable which enables Search Arounds and filtering to access specific sets of Scenarios. In the example below, we find all Scenarios associated with a particular object selected in the application.
If configured correctly, you will be able to preview the loaded Scenarios by name in the current value section of the variable tab.
The Scenario array variable can then be used in any widget that accepts a Scenario array, such as the Scenario manager, and the widget will update to reflect the loaded scenarios as the underlying variables update.
Events and Actions that cause the underlying Scenario Object Set to change will be reflected in the Scenario array variable. This allows for very flexible loading structures based on relationships to other Objects in the application. If you need to select a specific Scenario from the array to use in other widgets you can pass the array into either the Scenario manager or the Scenario selector widgets.