Validation and execution

The selected Cycle Period is archived and the status is changed from Completed or Aborted to Archived on successful validation and execution of the macro. Also, the related scenario values and history is moved to a separate archive table.

These are the execution rules:

  • If the Cycle Period parameter is not populated, the most recent Cycle Period with status Completed is archived.
    • If the Cycle Period with status Completed is not available, the macro execution fails.
  • If the Cycle Period parameter is populated, the status of the Cycle Period must be Completed or Aborted, else the macro execution fails.

This table lists the status of the supported cycle period and scenarios for which the macro can be executed:

Cycle Period Status Scenario Status Can Execute?
Pending N/A No
Running Any No
Paused Any No
Aborted Stopped Yes
Archived Any No
Completed Any Yes