Documentation

bizproc.workflow.terminate

bizproc.workflow.terminate stops an active workflow.

Parameters

Parameter Description
ID ID of the workflow to be stopped
STATUS Status text. (optional)

Example

function terminateWf(id, cb)
{
   var params = {ID: id, STATUS: 'Terminated by rest app.'};

   BX24.callMethod(
      'bizproc.workflow.terminate',
      params,
      function(result)
      {
         if(result.error())
            alert("Error: " + result.error());
         else if (cb)
            cb();
      }
   );
}


© «Bitrix24», 2001-2024
Up