Validation and execution

On successful validation and execution of the macro, a new Cycle Period is created for the selected Cycle based on the Cycle Period parameter or by the Next Period value of the Cycle. The status of the new Cycle Period is set to Pending.

These are the execution rules:

  • If the Cycle Period parameter is not defined, a new cycle period is created based on the Next Period defined in the Cycle definition.
    • The Cycle Period is defined as the Cycle.Next Period based on the Calendar Level of the Cycle to store values.
    • The Cycle.Next Period is subsequently updated to Cycle.Next Period +1.
      • If the Next Period +1 cannot be determined, the value for Cycle.Next Period field is cleared out.
    • If the Cycle.Next Period is not populated the macro execution fails.
  • If the Cycle Period parameter is defined, a new cycle period is created based on the value specified. This must be at the Cycle.Periodicity level. Else, the macro execution fails.
    • The Cycle.Next Period is not updated when Cycle Period parameter is defined.