Activity triggering in HRSD lifecycle event

harry_paul
Tera Contributor

HI,

 

Is there a way I can set triggers for an activity in an activity set? I want the activity to trigger only if another activity in the same activity set gets completed. For example, the Issue Contract activity should only trigger of the Sign NDA Task gets completed. Both are in the same update set of a lifecycle event.

harry_paul_0-1701952954297.png

 

If any one knows the way around please help. Thanks

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@harry_paul we faced the same scenario when we were implementing the onboarding lifecycle event for the first time. We reached out to ServiceNow and they informed as that there is no way to trigger an activity conditionally for now.

 

They instead asked us to create a separate activity set and set the trigger type of that activity set as as advanced, and trigger it when needed via the script. Since we had many such conditional activities in our lifecycle event, it didn't make any sense to have separate activity set for all of them.

 

We decided to trigger those activities during the launch of the activity set and kept the state of corresponding HR Tasks as Draft (HR Task with Draft state do not appear on the Service Portal). Based on evaluation of the previous activities we either set the state of the HR Task to Ready or Cancelled via the onAfter update business rule which ran on the HR Task table (Business rule defined on HR Task table for HR Task corresponding to different activities in the lifecycle event). 

 

Hope this helps.

 

View solution in original post

4 REPLIES 4

Sandeep Rajput
Tera Patron
Tera Patron

@harry_paul we faced the same scenario when we were implementing the onboarding lifecycle event for the first time. We reached out to ServiceNow and they informed as that there is no way to trigger an activity conditionally for now.

 

They instead asked us to create a separate activity set and set the trigger type of that activity set as as advanced, and trigger it when needed via the script. Since we had many such conditional activities in our lifecycle event, it didn't make any sense to have separate activity set for all of them.

 

We decided to trigger those activities during the launch of the activity set and kept the state of corresponding HR Tasks as Draft (HR Task with Draft state do not appear on the Service Portal). Based on evaluation of the previous activities we either set the state of the HR Task to Ready or Cancelled via the onAfter update business rule which ran on the HR Task table (Business rule defined on HR Task table for HR Task corresponding to different activities in the lifecycle event). 

 

Hope this helps.

 

harry_paul
Tera Contributor

Thank you, we have created multiple activity sets to trigger activities. @Sandeep Rajput Do you know any reason why the submission of the record producer won't create a new user?

 

Hello Harry, thanks for marking the answer correct and helpful. Could you please elaborate on the record producer issue on a separate thread with more details. I will answer the question based on the details shared.

 

Thanks,

Simran321
Tera Expert

Hi Harry,

 

You can use the Activity container and place all the activities in the container and have them trigger sequentially