summaryrefslogtreecommitdiffstats
path: root/bpmn/mso-infrastructure-bpmn/src/test
diff options
context:
space:
mode:
authorKalkere Ramesh, Sharan (sk720x) <sk720x@att.com>2018-12-10 12:00:37 -0500
committerKalkere Ramesh, Sharan (sk720x) <sk720x@att.com>2018-12-10 12:02:08 -0500
commitb3897d1aba740d95185f3c2c7016b7d674f12711 (patch)
tree3089940a04fb41b20d71eb9accb75161d4cc4507 /bpmn/mso-infrastructure-bpmn/src/test
parenta578bc0b7df6ec2de62bc1fbd29dea387977b97a (diff)
requestid retrieval and validation in bpmn
Change-Id: I4d30a784eed5dd68f9ee7c2b6833d72cbf0eccfa Issue-ID: SO-1311 Signed-off-by: Kalkere Ramesh, Sharan (sk720x) <sk720x@att.com>
Diffstat (limited to 'bpmn/mso-infrastructure-bpmn/src/test')
-rw-r--r--bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/WorkflowTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/WorkflowTest.java b/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/WorkflowTest.java
index 4e45aafc9e..d24e953196 100644
--- a/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/WorkflowTest.java
+++ b/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/WorkflowTest.java
@@ -892,7 +892,7 @@ public abstract class WorkflowTest {
.processDefinitionKey(processKey);
}
- if(processInstanceQuery.count() <= 1){
+ if(processInstanceQuery.count() == 1 || processInstanceQuery.count() == 0){
processInstance = processInstanceQuery.singleResult();
}else{
//TODO There shouldnt be more than one in the list but seems to be happening, need to figure out why happening and best way to get correct one from list
@@ -901,6 +901,7 @@ public abstract class WorkflowTest {
processInstance = processList.get((processList.size() - 1));
}
+
if (processInstance != null) {
value = runtimeService
.getVariable(processInstance.getId(), variable);