Launch Conditions Related to Move to Non-scheduled Activities

Once the day ends at midnight, the status of activities can no longer be updated, so what happens to activities that haven't been completed by the end of the workday?

If you've set a value other than 0 in the Overnight Work field on the Business Rules screen, your workday will end at that specified time instead of midnight.

To prevent having to manually create new work orders for activities that are still pending at the end of the day, you can set up a message scenario that runs just before the workday ends. This scenario will automatically mark those activities as non-scheduled using the unschedule_activity action. The activities will stay assigned to the same resource, but they’ll no longer be tied to a specific time or route position.

How it works:

  • The scenario runs shortly before the workday ends.
  • It applies to all activities that are still pending in the day's routes.
  • The trigger (launch condition) for this scenario is Activity is created.
Note: If you're already using the Activity is created condition in another scenario, you won’t be able to create a new one with the same trigger. In that case, simply add the necessary steps to your existing scenario instead. Just open the scenario and start from Step 3 in the configuration process.

Here’s what to do.

  1. Navigate to Configuration and select Message Scenarios. Click + in the left column to add a scenario. Name it, create a label, and define the start date. If you want, add an end date as well. Click OK.
  2. Select the new scenario from the list in the left column.
  3. In Launch Conditions, click Add New, and then select the Activity is created launch condition. Click OK.
  4. In the Scenario Steps section, click the Add New link to add the step that will set pending activities to non-scheduled. The Settings tab opens by default.
    1. Enter a name for the step, for example, Move to non-scheduled.
    2. Select Start in the Type drop-down list.
    3. Select Set Property in the Delivery Channel drop-down list.
    4. Select Use static address in the Recipient field, and then specify the time zone that is set for Overnight Work on the Business Rules screen.
    5. Select day of route for Sending time and leave the days setting at 0.
    6. Define the time in the Start time field at 10:30 p.m., with a Message expiration interval value of 1 hour and 30 minutes. Leave the rest of the settings at their defaults.
      Note: You might consider setting the from time to even closer to the end of the day but be sure there’s enough time to accommodate processing in case there are many activities still in Pending status at that time.

      This screenshot displays the modify scenario step.

  5. Now click the Patterns tab.
    1. Enter action for the Subject and unschedule_activity for the Body. This is the required method used to set a pending activity to non-scheduled.
    2. Select Generate content on message creation.