Validation and execution
On successful validation and execution of the macro, the selected scenarios are deleted.
The scenario must be available, and the status can be anything other than
Published.
These are the execution rules:
- If the Scenarios parameter is not populated, all scenarios with
Unpublished status are deleted.Note: Cycle Periods are checked to ensure that status of one scenario is set to Published. Else, scenarios are not deleted from the Cycle Period and an error message is logged in the audit log.
- If the Cycle Period is not populated, all relevant scenarios of the Cycle Period with Completed status are deleted.
- If the scenario parameter is populated, all scenarios with that name, within the context
of the specified Cycle, Cycle Period and Module are selected for deletion.Note: If the status of the selected scenarios for deletion is set to Published, the macro execution fails.
- If the scenario parameter is not populated, all scenarios with
Unpublished status are deleted.Note: If the status of all scenarios are set to Published, a warning message is logged indicating that no scenarios are deleted.
- The macro execution fails, if any of the selected scenarios for deletion are not available.
This table describes the status of cycle period and scenario that supports the macro
execution:
Cycle Period Status | Scenario Status | Can Execute? |
---|---|---|
Pending | N/A | No |
Running | Any | Yes |
Paused | Any | No |
Aborted | Stopped | No |
Archived | Any | No |
Completed | Unpublished | Yes |
Completed | Published | No |