How to implement a relative duration

The general steps for implementing a relative duration.

  1. Create the cmn_relative_duration table.
  2. Create the DurationCalculator script include.
  3. Create a sample relative duration entry (for example, "Next business day by 4pm").
  4. Add the needed fields to SLA tables to support relative durations.
  5. Modify duration calculation for SLAs.
  6. Modify SLA Percentage timer calculation for SLAs (this must use work_seconds).
  7. Add schedule fields to the Workflow: Schedule and Timezone (selected based on the field from workflow table).
  8. Add duration support fields to the Workflow Task activity.
  9. Implement duration calculation script for the task activity.