Overview
Use the Wait Until step to pause a workflow until a specific date/time is reached, like an employee’s Start Date. This is useful when your workflow triggers as soon as an identity/account is detected, but downstream actions must happen on or relative to a given date (e.g., employee start date).Why This Matters
In many environments, HRIS sync timing and identity creation timing vary. If you use a static wait like “wait 7 days,” the same workflow can run too early or too late depending on when it triggered. Wait Until solves this by waiting until a computed timestamp such as:- Start Date (exact)
- Start Date minus X days (pre-provisioning)
- Start Date plus X days (post-start cleanup)
How It Works
- The workflow reaches the Wait Until step.
- Lumos evaluates the configured date/time (Start Date plus any offsets).
- The workflow pauses until that moment.
- When the timestamp is reached, the workflow resumes and continues to the next step.
Configure the Wait Until Step
Step 1: Add the Step
In your workflow builder, add a step named Wait Until.Step 2: Choose the Base Date Attribute
Set the desired date found for the target identity.Step 3: (Optional) Add an Expression (LEL)
Use Lumos Expression Language (LEL) to add offsets and calculations.Supported date arithmetic functions:
Notes:
- Date functions are null-safe: if the input is missing (
None), the result isNone. - The first argument must be a datetime value.
- Negative values are supported (e.g.,
add_days(start_date, -3)is equivalent tosubtract_days(start_date, 3)). - Your expression must be valid to save the step configuration.
Common examples:
Error Handling
If the workflow cannot compute a valid wait timestamp (for example, the Start Date is missing), Lumos will create an Error Task. When the Error Task is created, configure what should happen next:- Cancel — Cancel the workflow
- OK — Skip the Wait Until step and continue
Example Scenarios
MFA Security-Question Window
Goal: On Okta account creation, wait until the employee start date to provision an Okta group enabling security-question MFA, then remove that group 3 days after start date. Workflow structure:- Okta account created
- Wait Until:
start_date - Provision Okta group: “Security Questions MFA”
- Wait Until:
add_days(start_date, 3) - Deprovision Okta group
Split Onboarding Process (Immediate + Start-Date-Relative)
Goal: Create some accounts immediately when the identity is created, then provision other apps X days before start date. Workflow structure:- Identity created
- Create ServiceNow account (immediate)
- Wait Until:
subtract_days(start_date, X) - Provision other applications