Business rule is not triggering for new records in scoped application as vulnerability response.

ArpitN
Tera Contributor

Initial Condition for Business rule to trigger :  (current.active == true && (current.cmdb_ci.changes() || current.source_risk_score.changes() || previous.active != true || ((new sn_vul.vulUtils())).shouldRefershRiskScore(current))))

 

Updated Condition : (current.isNewRecord() || (current.active == true && (current.cmdb_ci.changes() || current.source_risk_score.changes() || previous.active != true || ((new sn_vul.vulUtils())).shouldRefershRiskScore(current))))

 

In the updated condition I have added (current.isNewRecord() so that business rules also triggers for New records. This business rule is designed on Insert and Updated (After).

 

Question : Why this business rule is not triggering for new records despite adding the condition as (current.isNewRecord()

1 REPLY 1

Bert_c1
Kilo Patron

Seems you need to provide sufficient details on your BR definition for some of us here to provide assistance. Post screen shots.