|
@@ -1,5 +1,6 @@
|
|
package com.zjugis.z_workflow.service;
|
|
package com.zjugis.z_workflow.service;
|
|
|
|
|
|
|
|
+import cn.hutool.http.HttpUtil;
|
|
import com.alibaba.fastjson2.JSON;
|
|
import com.alibaba.fastjson2.JSON;
|
|
import com.alibaba.fastjson2.JSONArray;
|
|
import com.alibaba.fastjson2.JSONArray;
|
|
import com.alibaba.fastjson2.JSONException;
|
|
import com.alibaba.fastjson2.JSONException;
|
|
@@ -1913,7 +1914,7 @@ public class ProcessEngineService {
|
|
try {
|
|
try {
|
|
Map params = buildEventApiParam(conditionEvent, triggerPosition, apiParams);
|
|
Map params = buildEventApiParam(conditionEvent, triggerPosition, apiParams);
|
|
retMap.put("postParam", JSON.toJSONString(params));
|
|
retMap.put("postParam", JSON.toJSONString(params));
|
|
- retVal = ServiceApiUtils.getDataFromServiceApi(conditionEvent.getRestfulUrl(), params);
|
|
|
|
|
|
+ retVal = HttpUtil.post(conditionEvent.getRestfulUrl(), params);
|
|
JSONObject retJson = JSON.parseObject(retVal);
|
|
JSONObject retJson = JSON.parseObject(retVal);
|
|
if (Objects.isNull(retJson)) {
|
|
if (Objects.isNull(retJson)) {
|
|
retMap.put("result", true);
|
|
retMap.put("result", true);
|