From 397a084e1698816d34180ba404ee0452529dab90 Mon Sep 17 00:00:00 2001 From: Ramanjaneya-Huawei Date: Tue, 17 Oct 2017 14:16:01 +0530 Subject: Remove unused import and Rename local Variables Change-Id: I35267602e813852d43ef84c691a05bc49133082b Issue-id: SO-224 Signed-off-by: Ramanjaneya-Huawei --- .../urnmap/resources/ProcessInstanceResource.java | 23 ++++++++++------------ 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'bpmn/MSOURN-plugin/src') diff --git a/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/ProcessInstanceResource.java b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/ProcessInstanceResource.java index 5cf6f6ca05..484981c99d 100644 --- a/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/ProcessInstanceResource.java +++ b/bpmn/MSOURN-plugin/src/main/java/org/openecomp/camunda/bpmn/plugin/urnmap/resources/ProcessInstanceResource.java @@ -32,7 +32,6 @@ import org.slf4j.LoggerFactory; import org.camunda.bpm.cockpit.db.QueryParameters; import org.camunda.bpm.cockpit.plugin.resource.AbstractPluginResource; -import org.camunda.bpm.cockpit.db.CommandExecutor; import org.openecomp.camunda.bpmn.plugin.urnmap.db.*; public class ProcessInstanceResource extends AbstractPluginResource { @@ -61,25 +60,25 @@ public class ProcessInstanceResource extends AbstractPluginResource { } @PUT - //public void insertNewRow(String key_, String value_) + //public void insertNewRow(String key, String value) public void insertNewRow(String temp) { log.info("AddNewRow: XXXXXXXXXXXXXXXXX ---> " + temp); StringTokenizer st = new StringTokenizer(temp, "|"); - String key_ = ""; - String value_ = ""; + String key = ""; + String value = ""; while(st.hasMoreTokens()) { - key_ = st.nextToken(); - value_ = st.nextToken(); - System.out.println(key_ + "\t" + value_); + key = st.nextToken(); + value = st.nextToken(); + log.info(key + "\t" + value); } - log.info("AddNewRow: XXXXXXXXXXXXXXXXX ---> key: " + key_ + " , Value: " + value_); + log.info("AddNewRow: XXXXXXXXXXXXXXXXX ---> key: " + key + " , Value: " + value); URNData nRow = new URNData(); nRow.setVer_("1"); - nRow.setURNName(key_); - nRow.setURNValue(value_); + nRow.setURNName(key); + nRow.setURNValue(value); getQueryService().executeQuery("cockpit.urnMap.insertNewRow", nRow, URNData.class); @@ -87,14 +86,12 @@ public class ProcessInstanceResource extends AbstractPluginResource { } @POST - // public void getPersistData(List myList) { public void getPersistData(URNData d) { log.info("getPersistData: UrnName: " + d.getURNName() + " , URNValue: " + d.getURNValue() ); getQueryService().executeQuery("cockpit.urnMap.persistURNData", d, URNData.class); - //getQueryService().executeQuery("cockpit.sample.persistURNData", d, ProcessInstanceCountDto.class); - + log.info("XXXXXXXXXX - END - XXXXXXXXXXXXXXX"); } -- cgit 1.2.3-korg