Moogsoft Docs

between

A Workflow Engine function that returns true if the object creation date falls between two times. Optionally between times on specific days.

This function is available for alert, enrichment, and Situation workflows.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function between takes the following arguments:

Name

Required

Type

Description

from

Yes

String

Start time in hh:mm:ss 24hr format.

to

Yes

String

End time in hh:mm:ss 24hr format.

days

Yes

Object

Optional array of days in short form: "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat".

Use a blank array for all days.

Example

The following example demonstrates typical use of Workflow Engine function between. If you want to check for objects created at any time on Monday or on Friday, set the following:

  • from: 00:00:00

  • to: 24:00:00

  • days: ["Mon","Fri"]

The UI translates your settings to the following JSON:

{"from":"00:00:00","to":"24:00:00","days":["Mon","Fri"]}