Lifecycle Events activity set progress optimization
Summarize
Summary of Lifecycle Events Activity Set Progress Optimization
This content explains how to ensure thatLifecycle Events activity setsprogress smoothly to completion once their trigger conditions are met within ServiceNow. Activity sets represent stages in a lifecycle event process and are activated based on configured trigger types and audience criteria. Proper configuration and monitoring are essential to prevent stagnation or delays in activity progression.
Show less
Key Concepts
- Activity Sets: Groups of activities representing stages in lifecycle events, triggered based on defined conditions.
- Trigger Conditions: Determined by the Trigger type and Audience fields, which control when an activity set moves from "Awaiting Trigger" to "Running Activities".
- Activity Set Context State: Tracks the progress of an activity set, with states such as Awaiting Trigger, Running Activities, Skipped, Error, or Canceled.
Common Issues and Solutions
Several factors can cause activity sets to stagnate despite meeting trigger conditions. Understanding these helps ServiceNow customers maintain smooth lifecycle event workflows:
- Configuration Changes: Modifying activity set configurations (e.g., changing Audience, Trigger type, adding/moving activities) while cases are active can cause stagnation because existing cases do not adopt new configurations once an activity set has triggered or activities have been generated/completed.
- Solution: Perform configuration changes in a non-production instance first. If stagnation occurs, change the Activity Set Context state to Error and resume the Lifecycle Events case, ensuring no activities/tasks are completed or created yet. This is a workaround, not the intended use of resume functionality.
- Misconfiguration: Invalid dependencies, such as an activity set relying on a deactivated preceding set, can prevent progress.
- Solution: Review and correct activity set dependencies and configurations to ensure validity.
- Customization Issues: Problems with custom workflows or script includes, especially with invalid restricted caller access (RCA) records, can disrupt activity execution.
- Solution: Verify and correct RCA records related to modified script includes to restore proper access.
- Evaluation Interval: The frequency of the activity set evaluation process affects performance. Reducing the default four-hour interval increases processing load and may cause workflows to cancel.
- Solution: Avoid reducing the evaluation interval below default; instead, consider using the "Condition with Event BR (Demo)" activity set as an alternative to control evaluation frequency.
- Audience Criteria: If the subject person does not meet audience criteria for an activity, the corresponding activity set is skipped.
- Solution: Check the Activity Set Contexts table for skipped records and adjust audience criteria if necessary.
Practical Recommendations for ServiceNow Customers
- Make configuration changes cautiously and preferably in a test environment before applying them to active cases.
- Regularly review activity set dependencies and audience criteria to ensure configurations remain valid and applicable.
- Monitor workflow context states to identify and address canceled workflows promptly.
- Investigate and resolve any customization issues related to script includes and access controls to maintain workflow integrity.
- Use provided workarounds carefully and validate their effects in non-production instances prior to production use.
Ensure that the activity sets you have defined for Lifecycle Events progress seamlessly through completion when they meet the conditions to be triggered for a Lifecycle Events case.
Activity sets are created or modified to define a group of activities. Activity sets represent different stages in the life cycle event process and have conditions under which they’re triggered. The trigger conditions for an activity set depend on the values defined in the Trigger type and Audience fields in the Activity Set record. When an activity set is created, the State field in the corresponding Activity Set Context record is set to Awaiting Trigger. Once an activity set meets the trigger conditions that are defined for it, the value in the State field is changed to Running Activities.
| Issue | Description | Solution |
|---|---|---|
| Configuration changes | Activity set configuration changes performed while you have existing Lifecycle Events cases that are dependent on a previous activity set configuration. | You must use caution when changing the configuration of an activity set that is defined and active, specifically the following components:
Existing Lifecycle Events cases don't use the configuration changes you made to an activity set when any of the following conditions are true:
These configuration changes should be performed in a non-production instance to validate whether the changes produce any adverse effects. Tip:
If an activity set becomes stagnant due to a configuration change, you can perform the following steps to resume progress:
|
| Misconfiguration | An erroneous activity set configuration that causes unintended behavior and adversely affects the progression of activities within an activity set. | Review the activity sets you have defined to confirm whether they’re correctly configured. For example, you defined a new activity set, activity set 2 (AS2), and set the Trigger type field to Other Activity Sets so that AS2 is triggered after the completion of activity set 1 (AS1). However, if AS1 is deactivated, your configuration for AS2 becomes invalid. Since AS1 is deactivated,the configuration for AS2 must be changed to remove its dependency from AS1. |
| Customization | Issues associated with custom Lifecycle Events workflows or their related script includes that are used to manage and run activities. | Confirm whether there are any restricted caller access (RCA) records that have become invalidated from modifying a script include. If there are invalid RCA records related to a modified script include, review each
record and allow access accordingly. Also, confirm whether there are any RCA records with an error regarding the inability to call or access a script include, like hr_ActivitySet. |
| Evaluation interval | Reducing the interval of time that must transpire between each cycle of the activity set evaluation process. The activity set evaluation process determines whether activity sets with the State field set to Awaiting Trigger in the corresponding Activity Set Context record meet the trigger conditions that are defined for them. | Use caution if you decide to reduce the time interval between each cycle of the activity set evaluation process to less than the default value (four hours). Reducing the wait time between each cycle of the activity set evaluation process increases the frequency at which the activity set evaluation process runs. Consequently, this modification increases the number of workflow activities that run simultaneously. If the number of activities running reaches the capacity of activities that can be processed by the workflow, the workflow is canceled during its next attempt to run. Review the Workflow contexts table to confirm whether there are any records associated with a Lifecycle Events workflow that have been canceled. The State field in the corresponding Workflow context record is set to Canceled for workflows that have been canceled. Tip:
Use the Condition with Event BR (Demo) activity set in lieu of modifying the evaluation interval. See Lifecycle Events evaluation interval for more information about the evaluation interval and the Condition with Event BR (Demo) activity set. |
| Audience criteria | The subject person doesn't meet the audience criteria defined for an activity that is intended for a target audience. The corresponding activity set is skipped during the evaluation process. | Review the Activity Set Contexts table to confirm whether there are any records that have been skipped. The State field in the corresponding Activity Set Context record is set to Skipped for activity sets that have been skipped. |