|
@@ -89,7 +89,7 @@ public class WorkflowServiceImpl {
|
|
map.put("opinion", doAction.getOpinion());
|
|
map.put("opinion", doAction.getOpinion());
|
|
|
|
|
|
HttpEntity<Map> param = new HttpEntity<>(map, headers);
|
|
HttpEntity<Map> param = new HttpEntity<>(map, headers);
|
|
- ResponseEntity<String> responseEntity2 = restTemplate.exchange("http://10.65.78.23:8080/bpm/instance/doAction", HttpMethod.POST, param, String.class);
|
|
|
|
|
|
+ ResponseEntity<String> responseEntity2 = restTemplate.exchange(imaConfig.getFlowUrl() +"/bpm/instance/doAction", HttpMethod.POST, param, String.class);
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
if (200 == responseEntity2.getStatusCodeValue()) {
|
|
if (200 == responseEntity2.getStatusCodeValue()) {
|
|
FlowResult result = JSON.parseObject(responseEntity2.getBody()).toJavaObject(FlowResult.class);
|
|
FlowResult result = JSON.parseObject(responseEntity2.getBody()).toJavaObject(FlowResult.class);
|
|
@@ -124,7 +124,7 @@ public class WorkflowServiceImpl {
|
|
map.put("offset", todoTask.getOffset());
|
|
map.put("offset", todoTask.getOffset());
|
|
map.put("limit", todoTask.getLimit());
|
|
map.put("limit", todoTask.getLimit());
|
|
HttpEntity<Map> param = new HttpEntity<>(map, headers);
|
|
HttpEntity<Map> param = new HttpEntity<>(map, headers);
|
|
- ResponseEntity<String> responseEntity2 = restTemplate.exchange("http://10.65.78.23:8080/bpm/my/todoTaskList", HttpMethod.POST, param, String.class);
|
|
|
|
|
|
+ ResponseEntity<String> responseEntity2 = restTemplate.exchange(imaConfig.getFlowUrl() +"/bpm/my/todoTaskList", HttpMethod.POST, param, String.class);
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
//
|
|
//
|
|
if (200 == responseEntity2.getStatusCodeValue()) {
|
|
if (200 == responseEntity2.getStatusCodeValue()) {
|
|
@@ -165,7 +165,7 @@ public class WorkflowServiceImpl {
|
|
map.put("offset", "");
|
|
map.put("offset", "");
|
|
map.put("limit", "99999");
|
|
map.put("limit", "99999");
|
|
HttpEntity<Map> param = new HttpEntity<>(map, headers);
|
|
HttpEntity<Map> param = new HttpEntity<>(map, headers);
|
|
- ResponseEntity<String> responseEntity2 = restTemplate.exchange("http://10.65.78.23:8080/bpm/my/todoTaskList", HttpMethod.POST, param, String.class);
|
|
|
|
|
|
+ ResponseEntity<String> responseEntity2 = restTemplate.exchange(imaConfig.getFlowUrl() +"/bpm/my/todoTaskList", HttpMethod.POST, param, String.class);
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
//
|
|
//
|
|
if (200 == responseEntity2.getStatusCodeValue()) {
|
|
if (200 == responseEntity2.getStatusCodeValue()) {
|
|
@@ -223,7 +223,7 @@ public class WorkflowServiceImpl {
|
|
map.put("opinion",isOkAction.getOpinion());
|
|
map.put("opinion",isOkAction.getOpinion());
|
|
map.put("iamCode",isOkAction.getIamCode());
|
|
map.put("iamCode",isOkAction.getIamCode());
|
|
HttpEntity<Map> param = new HttpEntity<>(map, headers);
|
|
HttpEntity<Map> param = new HttpEntity<>(map, headers);
|
|
- ResponseEntity<String> responseEntity2 = restTemplate.exchange("http://10.65.78.23:8080/bpm/task/doAction", HttpMethod.POST,param,String.class);
|
|
|
|
|
|
+ ResponseEntity<String> responseEntity2 = restTemplate.exchange(imaConfig.getFlowUrl() +"/bpm/task/doAction", HttpMethod.POST,param,String.class);
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
if(200== responseEntity2.getStatusCodeValue()){
|
|
if(200== responseEntity2.getStatusCodeValue()){
|
|
|
|
|
|
@@ -255,7 +255,7 @@ public class WorkflowServiceImpl {
|
|
headers.add("code", request.getHeader("code"));
|
|
headers.add("code", request.getHeader("code"));
|
|
|
|
|
|
HttpEntity<Map> param = new HttpEntity<>(null, headers);
|
|
HttpEntity<Map> param = new HttpEntity<>(null, headers);
|
|
- ResponseEntity<String> responseEntity2 = restTemplate.postForEntity("http://10.65.78.23:8080/bpm/instance/getInstanceAndChildren?id={1}&iamCode={2}",
|
|
|
|
|
|
+ ResponseEntity<String> responseEntity2 = restTemplate.postForEntity(imaConfig.getFlowUrl() +"/bpm/instance/getInstanceAndChildren?id={1}&iamCode={2}",
|
|
param, String.class, id, iamCode);
|
|
param, String.class, id, iamCode);
|
|
|
|
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
@@ -280,7 +280,7 @@ public class WorkflowServiceImpl {
|
|
headers.add("code", request.getHeader("code"));
|
|
headers.add("code", request.getHeader("code"));
|
|
|
|
|
|
HttpEntity<Map> param = new HttpEntity<>(null, headers);
|
|
HttpEntity<Map> param = new HttpEntity<>(null, headers);
|
|
- ResponseEntity<String> responseEntity2 = restTemplate.postForEntity("http://10.65.78.23:8080/bpm/instance/getOpinion?instId={1}&iamCode={2}",
|
|
|
|
|
|
+ ResponseEntity<String> responseEntity2 = restTemplate.postForEntity(imaConfig.getFlowUrl() +"/bpm/instance/getOpinion?instId={1}&iamCode={2}",
|
|
param, String.class, instId, iamCode);
|
|
param, String.class, instId, iamCode);
|
|
|
|
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|