Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Bharath38
Giga Sage

If you've worked with Flow Designer long enough, you've probably run into the same challenge during testing:

You submit a request, trigger the flow, and then... wait.

 

Maybe the flow contains a 30-minute timer. Maybe it's waiting a few hours before moving to the next stage. Regardless of the duration, waiting for timers to expire can significantly slow development and testing efforts.

 

To solve this problem, I created a simple UI Action that allows administrators to instantly expire timers from the Flow Engine Context record, eliminating unnecessary wait time during sub-production testing.

 

The Challenge

Many flows contain timer activities used for:

  • Escalations
  • Reminders
  • Delayed notifications
  • Approval follow-ups
  • Scheduled processing
  • Waiting periods between activities

During development and testing, these timers create unnecessary delays.

Developers often resort to:

  • Modifying timer values temporarily
  • Creating test-specific versions of flows
  • Waiting for timers to expire naturally
  • Manually repeating tests after configuration updates

Not only does this slow validation, but it also introduces additional testing complexity.

 

The Solution

The solution is an Admin-only UI Action available directly on the Flow Engine Context record.

When the flow is paused in a waiting state, administrators can click Expire Timers to immediately complete active timer activities and move the flow to the next execution stage.

Example

In the screenshot below, the flow is currently in a Waiting state.

Once the Expire Timers button is selected, the active timer is completed and flow execution continues automatically.

 

 

How It Works

Step 1: Open Flow Engine Context

Navigate to the Flow Engine Context record associated with the running flow.

 

Step 2: Identify Waiting Flow

If the flow is currently paused by a Timer Flow Logic action, the context record displays:

 

Step 3: Click Expire Timers

Select the Expire Timers UI Action.

 

Bharath38_0-1789245485037.png

 

 

The UI Action locates active timer records associated with the flow context and immediately expires them.

 

Step 4: Continue Validation

The flow resumes processing without waiting for the configured timer duration.

 

Benefits

Faster Development

Developers can validate timer-based logic immediately rather than waiting minutes or hours.


Faster Testing Cycles

QA and testing teams can complete end-to-end validation much more quickly.

 

No Flow Changes Required

Timer values remain unchanged.

The production configuration remains intact while test environments can leverage the UI Action.


Reduced Rework

No need to:

  • Clone flows
  • Modify wait conditions
  • Update timers for testing
  • Revert timer values afterward

Improved Developer Experience

Simple tools like this remove friction from day-to-day development and make Flow Designer testing more efficient.


Recommended Usage

Development environments

Personal developer instances

QA environments

UAT testing

⚠️ Use caution in production environments and ensure appropriate administrative controls are in place.

 

Download

I've made the solution available as an update set for the ServiceNow community.

After committing the update set:

  1. Open a Flow Engine Context record.
  2. Locate a flow in a Waiting state.
  3. Click Expire Timers.
  4. The timer is completed.
  5. The flow advances to the next stage automatically.

Follow me on LinkedIn for more ServiceNow architecture and automation tips, and download ServiceNow Daily Tips for bite-sized insights you can apply immediately to your platform.

 

Happy automating!

Bharath Manne

Version history
Last update:
2 hours ago
Updated by: