Skip to content

Smart Business-Time Scheduling

Overview

This use case demonstrates how to configure Smart Business-Time Scheduling in MdlWr to handle automated tasks—such as payroll processing—that must run on specific calendar dates (e.g., the 25th of every month) while intelligently adjusting for weekends or public holidays to ensure operations always execute on a valid working day.


Prerequisites & Architecture Workflow

[ Scheduled Trigger ]
│ (Evaluates Date: 25th of Month at 11:00 PM)
[ MdlWr ] ──(1. Checks Business Calendar & Time Segments)
├──(2. Applies Exception Policy)
│      ├── Shifts to Preceding Business Day if Weekend/Holiday
│      └── Skips Non-Working Days Automatically
[ Target API / Flow ] (Payload Executed on Valid Working Day)

Follow the step-by-step implementation guide below to configure this smart schedule within the platform.


Step-by-Step Implementation Guide

Step 1: Establish Business Time & Working Days

Before configuring the trigger, set up the base working calendar structure to define valid operational hours and non-working days:

  1. Create Working Days Time Segment: Define standard operational availability.
  2. Include All-Day Segment: Set an INCLUDE rule for All Day coverage to establish general availability.
  3. Exclude Weekends: Add an EXCLUDE rule for Saturday and Sunday (All Day) to filter out standard non-working days.
  4. Exclude Holidays: Add an EXCLUDE rule for specific dates or national holidays.
  5. Assign Priority: Relate the time segments to your business calendar, giving the INCLUDE segment the lowest priority so exclusion rules (weekends and holidays) correctly override standard availability.

Step 2: Configure Processing & Execution Modes in Logic Flow

Set up the automation rule to target your specific execution date and time.

  1. Navigate to Integration > Logic Flows.
  2. Create logic flow via the (+) button.
  3. Set Processing Mode to Async.
  4. Set Execution Mode to Scheduled.
  5. Under the schedule rule selector, set Schedule Type to Time.
  6. Configure the date/time selector to target the 25th day of the month at 11:00 PM.

Step 3: Bind the Business Calendar & Exception Policy

Configure how the system handles schedule clashes when the target date falls on a non-working day.

  1. Locate the Business Calendar dropdown which appears under the schedule rule settings.
  2. Select your pre-configured business calendar (e.g., Office Hour) from the dropdown options.
  3. Locate the Exception Policy dropdown.
  4. Select Preceding Business Day (Shift to earlier work day) . This ensures that if the 25th falls on a Saturday, Sunday, or holiday, the system automatically shifts execution backward to the closest preceding working day.

Step 4: Validate via Schedule Preview

Verify that your calendar rules and exception policies evaluate correctly before saving.

  1. Click the button located in the footer.
  2. Review the generated upcoming schedule list in the modal popup to ensure future trigger dates correctly skip or shift around weekends and holidays.

Complete the flow configuration by linking your target process and saving the record.

  1. Check the Active option to enable the schedule upon submission.
  2. Fill in remaining metadata such as Name, Path, and Category.
  3. Link your target API integration endpoint (e.g., routing to MDLWR > Sample > Sample - Hello World or your custom processing script via the action editor).
  4. Click Submit to save the scheduled smart flow configuration.