hr_ActivitySet - Scoped
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The hr_ActivitySet API handles lifecycle event activity set cases.
Lifecycle event activity sets represent different stages in the lifecycle event process. You must define when the activity set is triggered, such as immediately upon creation of the lifecycle event case or after the completion of another activity set. Each activity set is associated with a single lifecycle event.
The hr_ActivitySet API requires the HR Lifecycle Events plugin (com.sn_hr_lifecycle_events) and runs in the sn_hr_le
namespace.
For additional information, see Understanding Enterprise Onboarding and Transitions.
hr_ActivitySet - hr_ActivitySet()
Instantiates an instance of the hr_ActivitySet class.
Name | Type | Description |
---|---|---|
None |
hr_ActivitySet - createLECaseByService(String hrService, Object caseValues)
Creates a lifecycle event case based on a specified HR service.
Type | Description |
---|---|
String | Sys ID of the created case in the HR Lifecycle Events Cases [sn_hr_le_case] table. |
Example
Output includes summary with Operation Table and Row Count columns. Click the link in the row count column adjacent sn_hr_le_case table to view the new case.
Output:
hr_ActivitySet - hasActiveCaseByService(String spUser, String hrService, String jobId)
Checks for a case matching the specified combination of subject person user, HR service, and job.
Name | Type | Description |
---|---|---|
spUser | String | Sys ID of subject person user in the Users [sys_user] table. |
hrService | String | Sys ID of HR service in the HR Services [sn_hr_core_service] table. |
jobId | String | Sys ID of subject user's job title in the HR Services [sn_hr_core_service] table. |
Type | Description |
---|---|
Boolean | True if matching case exists, false otherwise. |
Example
Output: