Command to create file group scenarios

Using the new Create File Group Scenario command, you can now create scenarios from custom task panes or ribbon tabs, or schedule the scenario creation for server-side processing via Scheduler. This command provides greater flexibility to control the presentation and timing of scenario creation.

The new command works just like the option on the file group menu to create a scenario for the file group. When setting up the command, you specify the following:

  • The file group for which to create a scenario
  • The name of the scenario
  • The table suffix to apply to scenario tables
  • Optional values for file group variables to apply to the scenario (such as variables that define driver values to change in the scenario)

Example command to create a file group scenario

When using the command in a custom task pane or ribbon tab, you can optionally leave the scenario name blank to open the Create Scenario dialog. If the scenario name is specified in the command, then the dialog does not display and the scenario creation starts automatically when the command is used.

To use the command in Scheduler, add an Execute Command Adapter task to the job and then configure it to run the Create File Group Scenario command. When the job is run, the scenario is created using server-side processing, which is preferable if the scenario creation involves creating a lot of tables. Scheduler job variables can also be used to set values for the scenario name, table suffix, and file group variables.

Example Scheduler job to create a scenario

For example, you could create an Axiom form that gathers user inputs such as the scenario name, table suffix, and key drivers to change for the scenario. The form could use a RunEvent command to trigger a Scheduler job to create the scenario, and pass in the user inputs from the form to the Scheduler job variables. The scenario is created using server-side processing, so the current user can move on to other tasks instead of waiting for a potentially lengthy and resource-intensive process to complete.