From 1884e6e77967345cea1d5e4681ea808bc931a879 Mon Sep 17 00:00:00 2001 From: Oleksandr Moliavko Date: Thu, 3 Oct 2019 13:37:29 +0300 Subject: Removed unused private method getProcessInstanceId() to prevent static analyzer warning Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko Change-Id: Iab8cba14eb519f8c36f4f3ddd3fde2e50ac7147b --- .../src/test/java/org/onap/so/bpmn/common/BPMNUtil.java | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'bpmn/mso-infrastructure-bpmn/src/test/java/org') diff --git a/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/BPMNUtil.java b/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/BPMNUtil.java index a94713e9e0..7a50e5f9d3 100644 --- a/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/BPMNUtil.java +++ b/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/BPMNUtil.java @@ -155,24 +155,11 @@ public class BPMNUtil { } } - private static String getProcessInstanceId(HistoryService historyService, String processDefinitionID) { - List historyList = historyService.createHistoricProcessInstanceQuery().list(); - String pID = null; - for (HistoricProcessInstance hInstance : historyList) { - if (hInstance.getProcessDefinitionKey().equals(processDefinitionID)) { - pID = hInstance.getId(); - break; - } - } - return pID; - } - public static boolean isProcessInstanceFinished(ProcessEngineServices processEngineServices, String pid) { return processEngineServices.getHistoryService().createHistoricProcessInstanceQuery().processInstanceId(pid) .finished().count() == 1 ? true : false; } - private static void buildVariable(String key, String value, Map variableValueType) { Map host = new HashMap<>(); host.put("value", value); -- cgit 1.2.3-korg