- My View
I have a business rule that is triggering a workflow when a CI becomes non-compliant. It becomes compliant again the workflow ends. When it goes non-compliant again the workflow does not run.
//workflow context sys_id
var wfid = ('17e735ba4f3e8700196cd0af0310c793');
var wt = new Workflow();
//set last non-compliant date
current.u_date_last_noncompliant = gs.nowDateTime();
add gs.addInfoMessage to debug. Also Check Compliant is false or null instead of just false.
If doesnt work, remove the last two condition and try. The bottom two condition could also be causing issue
Please Hit like, Helpful or Correct depending on the impact of the response