---
sourceDocument: Brazil Employee Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/employee-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Lifecycle Events triggers and workflow reference

# Lifecycle Events triggers and workflow reference {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Lifecycle Events triggers and workflow reference

This content explains how Lifecycle Events triggers and workflows operate within ServiceNow Human Resources (HR) Lifecycle Events.
It focuses on how activity sets are managed, triggered, and evaluated when lifecycle event cases change state, specifically when moving to the Ready or Work in Progress states.
Understanding these triggers and workflows helps ServiceNow customers optimize timing and control of HR-related activities.
Show full answer Show less  

## HR Activity Launcher Flow and Activity Sets

* When a lifecycle event case changes to the Ready state, all related activity sets run through the HR Activity Launcher flow.
* Activities within each set are not triggered immediately; instead, trigger conditions for the activity set are evaluated.
* If trigger conditions are unmet, the system waits and re-evaluates based on a timer (default every four hours).
* The evaluation interval controlling this wait time is stored in the **evaluationinterval** field in the `snhrleactivityset` table and can be customized to reduce delays.
* Reducing the evaluation interval increases trigger frequency but may cause activity sets to cancel prematurely if updates are too frequent, so caution is advised.

## Alternative Triggering Option: Condition with Event BR (Demo) Activity Set

* An optional triggering method involves using the Condition with Event BR (Demo) activity set included with demo data.
* This activity set uses a server-side business rule to broadcast a **checkactivitysettrigger** event when the lifecycle event case state changes to Work in Progress.
* This event triggers the HR Activity Set Trigger Check workflow to immediately evaluate activity set trigger conditions.
* To use this, the Human Resources Scoped App: Lifecycle Events for Enterprise plugin must be activated.
* The approach can be customized by modifying the included activity set, email activity, and business rule to fit specific customer requirements.

## HR Activity Set Trigger Check Workflow

* This workflow is integrated into the HR Activity Launcher to regularly check if activity set trigger conditions are met.
* It does not itself trigger workflows but signals when conditions become true.
* When the **checkactivitysettrigger** event is fired, the trigger conditions are evaluated immediately, bypassing the wait timer.

## Using the checkactivitysettrigger Workflow Event

* Customers can use the **checkactivitysettrigger** event in server-side scripts (such as business rules or scheduled jobs) to prompt immediate re-evaluation of trigger conditions.
* This helps avoid delays caused by the default evaluation interval and is preferable to simply reducing the timer frequency.
* It works only for activity sets triggered by conditions, not for those triggered immediately or exclusively by other activity sets.
* Implementation requires identifying where trigger criteria should be checked in the server-side logic and adding a script snippet that broadcasts the event to running HR Activity Set Trigger Check workflows.

## Practical Considerations

* Adjusting the evaluation interval can shorten delays but risks causing premature activity set cancellations if too frequent.
* Using the Condition with Event BR (Demo) or the **checkactivitysettrigger** event provides more responsive and customizable triggering mechanisms.
* Customers should carefully customize the included demo components and implement server-side logic aligned with their HR lifecycle event processes.  
Information about Lifecycle Events triggers and workflow.

## HR Activity launcher flow {#le-eval-interval-trigger-workflow-info__section_mdj_tvz_nsb}

When a lifecycle event case is changed to the Ready state, all activity sets run through
the HR Activity Launcher flow. The activities in each activity set aren't triggered. When an
activity set isn't dependent on other activity sets to trigger activities, the trigger
conditions are analyzed.

If the trigger condition hasn't been met, it waits for the Wait to reevaluate the Trigger
Script timer to run (default is every four hours).

If the trigger condition is met, but after the evaluation interval runs, it has to wait
another four hours before the activities set is reevaluated. Waiting for reevaluation can
cause delays in an activity set to trigger.

The Wait to reevaluate Trigger Script timer uses the
evaluation_interval in the
sn_hr_le_activity_set table. The default value is four hours. You
can reduce the value in the evaluation_interval field to launch the
activity set sooner, see [Change the evaluation interval default wait time](https://www.servicenow.com/docs/moInKdqmrp7f6_FGDIEkcQ "As an administrator, you can change the default time that an activity set waits before the activity set is evaluated.").  
Note:  
Use caution if you decide to change the default value. Frequent updates trigger more events and can cause your lifecycle event activity sets to cancel before it can complete. For more information, see [Lifecycle event properties](https://www.servicenow.com/docs/OlQtzzIQBq0TrfiKDV029A "Lifecycle event properties control the behavior of lifecycle events. You can set the duration of the activity set closure time in hours.").

## Condition with Event BR (Demo) activity set {#le-eval-interval-trigger-workflow-info__section_gd5_1wz_nsb}

An alternative to using the Evaluation interval field to trigger an activity set is to use the Condition with Event BR (Demo) activity set that is included with the demo data as an example of what you can use. Using the Condition with Event BR (Demo) is an optional solution, but you can create and use server-side code (business rule, event script, scheduled job, and the like) that triggers the check_activity_set_trigger event into the HR Activity Set Trigger Check workflow. Any activity set can be triggered using the check_activity_set_trigger event from the server side except for activity sets that are triggered immediately or only by other activity sets.  
Note:  
To access the Condition with Event BR (Demo) activity set, activate the Human Resources Scoped App: Lifecycle Events for Enterprise (com.sn_hr_lifecycle_ent) plugin. This is an optional method that can be used instead of the values in the Evaluation interval field.

* The trigger type for the activity set must be set to Condition.
* The Condition with Event BR (Demo) activity set triggers when the state of primary lifecycle event case moves to Work in progress.
* The Email - Condition with Event BR (Demo) activity is included with the Condition with Event BR (Demo) activity set.
* The Condition with Event BR (Demo) activity set includes the HR Activity Launcher workflow. It also includes the Condition with Event BR (Demo) business rule.
  * The Condition with Event BR (Demo) business rule runs after the state of an LE case changes to Work in Progress.
  * It then looks for the workflows that are running for the LE case until it finds the HR Activity Set Trigger Check workflow and broadcasts the check_activity_set_trigger event to that workflow.
  {#le-eval-interval-trigger-workflow-info__ul_jbp_lpz_3sb}
* You can change the Condition with Event BR (Demo) activity set, Email - Condition with Event BR (Demo) activity, and Condition with Event BR (Demo) business rule to fit your requirements.  
  Note:  
  For more information, see [Lifecycle Events workflows](https://www.servicenow.com/docs/VhGDg3ynVm5WmVHsgmZrOA "The HR Activity Set Launcher workflow drives the entire lifecycle event process. Associated workflows drive each of the activity sets within a lifecycle event.") and [Business rules](https://www.servicenow.com/docs/access?context=c_BusinessRules&version=brazil&pubname=brazil-build-workflows&ft:locale=en-US).
{#le-eval-interval-trigger-workflow-info__ul_jtl_sjq_grb}

## HR Activity Set Trigger Check workflow {#le-eval-interval-trigger-workflow-info__section_byt_lwz_nsb}

The HR Activity Set Trigger Check workflow was added to the HR Activity Launcher workflow so that any server-side script can notify the workflow to see if the activity set is ready to trigger. The HR Activity Set Trigger Check workflow evaluates conditions. It doesn't directly trigger any workflows.

* The HR Activity Set Trigger Check workflow is called when an activity set isn't dependent on other activity sets.
* It regularly checks if the trigger condition for an activity set has been met.
* If the trigger conditions haven't been met, it still waits for the evaluation interval to run.
* If the check_activity_set_trigger event fires, the Activity set trigger conditions are checked immediately.
{#le-eval-interval-trigger-workflow-info__ul_lwx_3j1_jsb}

## Check activity set trigger workflow event {#le-eval-interval-trigger-workflow-info__section_yr2_fyw_fwb}

Use the check_activity_set_trigger workflow event in a server-side script (business rule, event script, scheduled job, and the like) to shortcut the Wait to reevaluate the Trigger Script timer and evaluate an activity set's trigger just-in-time. If you're considering using a more frequent Evaluation interval to avoid a long timer wait, use this option instead.  
Note:  
The check_activity_set_trigger event doesn't work with activity sets that are triggered immediately or triggered only by other activity sets.  
When preparing to use the check_activity_set_trigger workflow event, first determine when the activity set's trigger criteria could be checked. For example, if using a "Condition" trigger type, a business rule with the same condition may be a good place to check if the condition is true. If using an "Advanced" trigger, determine what server-side business logic caused the Advanced script to return true. For example:

* script include
* scheduled job
* import script
.

After you've determined the server-side location to check the trigger criteria, add the
following script to it:

    (function executeRule(current, previous /*null when async*/) {
    	var wf = new global.Workflow().getRunningFlows(current);
    	while (wf.next()) {
    		if (wf.getValue('name') !== 'HR Activity Set Trigger Check')
    			continue;
    		new global.Workflow().broadcastEvent(wf.sys_id, 'check_activity_set_trigger');
    	}
    })(current, previous);


