When adding a condition trigger to an assessment (survey converted to assessment), the conditions listed in the trigger are moved to the condition field of the auto-created business rule.

If the condition trigger has many conditions, the business rule will truncate the condition string to 254 characters, causing the business rule to fail every time the assessment is triggered.

Steps to Reproduce

  1. Navigate to Survey Management > Administration.
  2. Click Trigger Conditions.
  3. Create a new trigger condition.
  4. Select the assessment you want to use, or create a new one.
  5. Assign the table to which this will be related (for example, Incident).
  6. Select the user you want the survey to be sent to.
  7. Add four or more conditions.
  8. Save the record and review the xml to view the condition built there.
  9. Navigate to System Definition > Business Rule.
    • Note that the condition is truncated to 254 characters.
  10. Try to force the Assessment to trigger.
    • Note that the business rule fails.


Edit the generated business rule, remove the broken condition expression, and have the corresponding logic in the script field.

if ((new AssessmentUtils().conditionCheck(current, 'condition-string')))
 (new SNC.AssessmentCreation()).conditionTrigger(current, 'trigger-condition-sys-id');

The 'condition-string' should be the encoded condition that is specified in the trigger condition. The trigger-condition-sys-id is the sys-id of the trigger condition defined to send the survey/assessments.

Related Problem: PRB609029

Seen In

Eureka Patch 1
Eureka Patch 10
Eureka Patch 11
Eureka Patch 2
Eureka Patch 4
Eureka Patch 4 Hot Fix 1
Eureka Patch 6 Hot Fix 2
Eureka Patch 7
Eureka Patch 8

Fixed In

Eureka Patch 11

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2015-12-11 14:31:16