Script Helper
ELG-001 Free Test before use
Active employees only
Only employees with an Active employment status can enroll.
Engine › On EligibleEngineOnEligibleBeginner
Test before use. This script hasn't been tested by Catalyst Workflow yet. Run it in a non-production case first.
JScript.NET
1// EngineOnEligible — Active employees only2// EmployeeStatusID: 0 Active, 1 LeaveOfAbsence, 2 InActive, 3 Terminated, 4 COBRA, 5 Retired3Event.Value = (Event.Employee.EmployeeStatusID == 0);Highlighted lines are marked CHANGE — swap in your own values before using.
How it works
Compares the employee's status enum to 0 (Active). Event.Value = true allows enrollment; false hides/blocks the plan.
Values to change
- Add other allowed statuses with || (e.g. 1 for leave of absence).