Add custom business rules to Service Level Agreement (SLA)
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- Service Level Management
You can add custom business rules to your SLAs.
Before you begin
Role required: admin
Procedure
Select one of the following methods to add custom business rules.
Option | Description |
---|---|
Use setWorkflow(false) | Prior to updating your task, add a call to
setWorkflow(false) on the GlideRecord object for
the task within the business rule that is updating the task. This
prevents the business rules from being processed.Note: The
setWorkflow(false) disables processing of all engines and the update
does not appear in the audit history of the task.
For
example, a script that copies the breach time to a custom field on
the task.
|
Create a sys_trigger (Schedule job) to update the task | In your custom business rule, use the Script
field to generate a scheduled job to update the task. To ensure that the
scheduled job is queued for processing immediately, it must be of type
Run once, and have next action time of Now. Note: The
ScheduleOnce script include includes functions
to specify the target record and when to run the scheduled job. This
enables you to specify the script to be executed and call another
function to create the appropriate record in the
sys_trigger table.For example, a
script to create a scheduled job that copies the breach time from
the task SLA to a custom field on the task.
|