diff options
author | Rob Daugherty <rd472p@att.com> | 2018-12-10 18:55:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-12-10 18:55:12 +0000 |
commit | 533311a4934838b67ffd0ca49d7958f69059bccd (patch) | |
tree | e612a590f1e6529f64d35193858958fa14a20edf /bpmn/mso-infrastructure-bpmn | |
parent | e1fe1050b70e04eb35f10782ff2a655d0c3b882e (diff) | |
parent | b3897d1aba740d95185f3c2c7016b7d674f12711 (diff) |
Merge "requestid retrieval and validation in bpmn"
Diffstat (limited to 'bpmn/mso-infrastructure-bpmn')
-rw-r--r-- | bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/WorkflowTest.java | 3 |
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); |