SET_CALE - force Calendar calculation

Document ID : KB000094914
Last Modified Date : 18/05/2018
Show Technical Document Details
Issue:
A User wants to fill a calendar via script. After setting the date using functio :SET_CALE, the calendar is not updated automatically. It is not recalculated.
This problem is explicitly referenced in the documentation:
 
No calendar calculation is triggered while this script statement is being processed. Open and store the Calendar object manually to have the calendar recalculated.

You have to manually trigger recalculation by opening and saving the calendar object.
 
Environment:
Affects CA Automic Workload Automation 12.1.1  and older.
Cause:
Missing functionality.
Resolution:
The whole process should function automatically. Therefore, a new function :CALE_CALC will be introduced to trigger the recalculation of the calendar objects by script. As soon as it is released, please install the version including the new function.

Workaround:
  1. Manually trigger recalculation by opening and saving the calendar object.
  2. Use javaAPI functions OpenObject(); SaveObject(); For this, java programming is necessary. Please see the according documentation about Java API.