var data2 = {}; data2["routeName"] = “送******”; data2["opinion"] = "同意(超时)"; var taskid = "dddddddddd"; processingTask(taskid,data2); //按路由id自动流转 function processingTask(taskid,data){ var string = JSON.stringify(data); var serviceRoot = "x_processplatform_assemble_surface"; var path = "task/"+taskid+"/processing"; var resp = applications.putQuery( serviceRoot, path , string); var json = JSON.parse( resp.toString() ); if(json.type=="success"){ print("自动流转成功!"); }else{ print("自动流转失败!"); } }