Commit f3fa21b5 by guo_minglei@163.com

修改传递参数

parent 2a9f1517
...@@ -268,9 +268,13 @@ public class JobUtils { ...@@ -268,9 +268,13 @@ public class JobUtils {
* @param runId * @param runId
* @return * @return
*/ */
public static ResponseResult killFlow(String runId){ public static ResponseResult killFlow(String runId, String flowName, String workspaceName){
Map<String,String> map = new HashMap<>(5);
map.put("runId", runId);
map.put("flowName", flowName);
map.put("workspaceName", workspaceName);
//发送请求 添加任务 //发送请求 添加任务
String response = createHttpRequest(REQUEST_FLOW_KILL_FLOW, "runId=" + runId); String response = createHttpRequest(REQUEST_FLOW_KILL_FLOW, "param="+JSON.toJSONString(map,WriteClassName));
log.info("--------------------杀死工作流接口调用成功,结果为:{}------------------------",response); log.info("--------------------杀死工作流接口调用成功,结果为:{}------------------------",response);
return JSON.parseObject(response, ResponseResult.class); return JSON.parseObject(response, ResponseResult.class);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment