|
@@ -250,8 +250,8 @@ public class TaskWorkNode {
|
|
|
String jsonParam = getRequestParam(conMap);
|
|
|
HttpEntity<String> formEntity = new HttpEntity<String>(jsonParam, headers);
|
|
|
//动态调用接口
|
|
|
- String instructionUrl = DictionaryKey.INSTRUCTION_URL +"/api/"+ conMap.get("method").toString() ;
|
|
|
- returnData = restTemplate.postForObject(instructionUrl, formEntity, String.class);
|
|
|
+ //String instructionUrl = DictionaryKey.INSTRUCTION_URL +"/api/"+ conMap.get("method").toString() ;
|
|
|
+// returnData = restTemplate.postForObject(url, formEntity, String.class);
|
|
|
logger.info("returnData=", returnData);
|
|
|
}
|
|
|
}
|
|
@@ -303,7 +303,7 @@ public class TaskWorkNode {
|
|
|
autoProgramUrl = UrlConfConstant.url;
|
|
|
}
|
|
|
//正式调试的时候注释掉
|
|
|
- //autoProgramUrl = UrlConfConstant.url;
|
|
|
+ autoProgramUrl = UrlConfConstant.url;
|
|
|
return autoProgramUrl;
|
|
|
}
|
|
|
|
|
@@ -363,13 +363,13 @@ public class TaskWorkNode {
|
|
|
String xbkFlag = conMap.get(DemoLineConstant.DEMOLINE_XBKFLAG) == null ? "" : conMap.get(DemoLineConstant.DEMOLINE_XBKFLAG).toString();
|
|
|
bizJsonObject.put(DemoLineConstant.DEMOLINE_XBKFLAG, xbkFlag);
|
|
|
|
|
|
- //业务回调数据,传给接口,接口再返回过来。
|
|
|
- jsonObject.put("bizCallBackData", bizJsonObject.toJSONString());
|
|
|
+ //业务回调数据,传给接口,接口再返回过来。接口不让传多余参数,只能从缓存传
|
|
|
+// jsonObject.put("bizCallBackData", bizJsonObject.toJSONString());
|
|
|
//调试得时候打开
|
|
|
jsonObject.put("code", "1");
|
|
|
logger.info("节点请求参数" + jsonObject.toJSONString());
|
|
|
//临时先把请求参数放出来
|
|
|
- msgUtil.redis_set("testParam", jsonObject.toJSONString(), 1, TimeUnit.DAYS);
|
|
|
+ msgUtil.redis_set(YunjianConstant.YUNJIAN_CALLBACK_PARAM+"_"+taskNode.getId(), bizJsonObject.toJSONString(), 1, TimeUnit.DAYS);
|
|
|
return jsonObject.toJSONString();
|
|
|
}
|
|
|
|