When does the Advanced scripting for an Activity Set trigger get evaluated?

Shawn
Giga Contributor

Hello,

We have a requirement to fire/skip an activity set based on values in the previous activity set. While doing some initial leg work in preparation, i found an older article in the community about the Advanced script for triggering being evaluated as soon as the parent LE case is created. Is that still accurate?

I realize we can mark activities as optional, but the visual representation of that on the portal is totally confusing, making it seem like many of the optional activities have been completed even though they haven't. In the case where an activity set has no mandatory activities, it becomes a muddled mess of what's happening.

Surely we are not the only folks with a requirement like this. Does anyone have any advice they can share on how they handled this?

Much thanks in advance,

Shawn Baar

3 REPLIES 3

michaelj_sherid
ServiceNow Employee
ServiceNow Employee

@Shawn The Advance Script gets evaluated every 4 hours. This is based on the value in the Evaluation Interval field on the activity set. It is NOT recommended to decrease this value to a lower value due to the Parallel processing of the Activity Set Launcher. It is a common practice to use Audiences on the activities to dictate what should or should not be tasked to the user based on those conditions.

Regards,

Mike

Shawn
Giga Contributor

Good morning Michael,

 

Thank you as always for your insight into the HRSD application. I do have a follow up question if you don't mind. I have created scripts for the Advanced trigger to conditionally fire activity sets, and even after the 4 hour waiting period before evaluating the script again, it still does not fire. The workflow shows the evaluation happened, but it still didn't activate. The script is returning true when I run the LE as a single activity set so I feel good about it.

Is there something else of which I should be aware in the Advanced trigger? Are there certain configurations I should keep in mind when applying the HR Task templates?

Thanks again,

Shawn

@Shawn If the advanced trigger is evaluated as true, it should trigger the tasks within. As for your question on configurations for HR Task Templates.... I see you have New York Listed, but the current release (Orlando) allows you to use Activity Containers which can help to streamline your configurations. In some cases the Activity Containers can eliminate the need for Advanced Triggers since we can order the activities within the Activity Set using this new feature. I hope this helps, but let me know if yo have any additional questions. We are always happy to assist here.

Regards,

Mike