Update Shift Last Used Callout in Shift Configuration and update MR reprocessing logic

This callout changes the Shift Last Used date in the Shift Configuration screen to the current date.

  1. In System administrator > Scriptable extensions > Extension Script, configure the callout.
    1. Create a new extension script by selecting mvs-callout-shiftlastuseddate as the Script Type.
    2. After creating the script, configure the script to Extension Script Callouts.
    3. Update Shift Last Used Date Callout and select the Script Name that you previously created.
  2. To view Shift used on date that has been changed to the current date, navigate to the Shift Configuration screen and specify any shift which is already plotted.

    You can now change the Shift Definition starting from the current date plus one day onwards.

Java Callout for managing shift configuration changes upon republishing MR/OTS

This callout is used to handle the MR republish task, updating the shift definition changes made for the shifts.

  1. Introduce a new registry parameter, MR_REPUBLISH_SVC, which must be configured with the callout bean.
  2. After configuring the registry parameter, and upon republishing the MR for the correct period, all shifts falling under the changed shift period should have their shift details updated with the new changes.

Disclaimer:

When the callout is enabled, it will only process unpublished shifts. This means that any changes in the shift definition will apply exclusively to unpublished rotational shifts. Similarly, adjustments to labor metrics will only affect unpublished rotational shifts. Changes to published shifts must be made manually.

If there are no unpublished rotational shifts during reprocessing, no changes will be made to any shift.