分步指南

  1. 表单元素选择custom html
  2. 把代码复制进去
  3. 只需要修改三个变量:url、processId、activityDefId
<input id="button1" name="button1" class="waves-button-input" type="button" value="重启流程当前活动" style="background-color:rgba(0,0,0,0);">
<br>
<br>
<br>
<script>
    $(function(){
        $("#button1").click(function(){
            var url = 'allen.cloud.valuprosys.com';
            var processId = '78_test100_test100_approver_process';
            var activityDefId = 'clarification';
            $.post('http://'+url+'/jw/web/json/monitoring/activity/start/'+processId+'/'+activityDefId+'?abortCurrent=true', function(data){
                console.log(data)
                //返回{result: true, processId: "78_test100_test100_approver_process", activityDefId: "clarification"}则是成功
            });
        })
        
    })
    
</script>


 

重启流程参考#6023

相关的文章