1 Reply · Latest reply on Jan 12, 2018 2:26 PM by Sanjiv Meher

    Business rule triggering a workflow only running once.

      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.


      Advanced script:

      //workflow context sys_id

      var wfid = ('17e735ba4f3e8700196cd0af0310c793');



      function startWorkflow(wfid){

      var wt = new Workflow();

      wt.startflow(id,current, current.update);


      //set last non-compliant date

      current.u_date_last_noncompliant = gs.nowDateTime();