diff options
author | Christophe Closset <cc697w@intl.att.com> | 2017-06-03 09:40:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-06-03 09:40:03 +0000 |
commit | debc28e9bb840cdb1008c78a6c82c6bd1a6415ce (patch) | |
tree | 0150d2ee0063cce6f612f9ae40917d1d048e110a /bpmn/MSOInfrastructureBPMN | |
parent | d8a7aef31a7ff027505072ae75169a8674533caf (diff) | |
parent | a4ade73cdb768ee15bc8dd032904743f84326ee2 (diff) |
Merge "Refactor WorkflowAsyncResource"
Diffstat (limited to 'bpmn/MSOInfrastructureBPMN')
-rw-r--r-- | bpmn/MSOInfrastructureBPMN/src/main/java/org/openecomp/mso/bpmn/infrastructure/workflow/service/WorkflowAsyncInfrastructureResource.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/bpmn/MSOInfrastructureBPMN/src/main/java/org/openecomp/mso/bpmn/infrastructure/workflow/service/WorkflowAsyncInfrastructureResource.java b/bpmn/MSOInfrastructureBPMN/src/main/java/org/openecomp/mso/bpmn/infrastructure/workflow/service/WorkflowAsyncInfrastructureResource.java index 09454f0876..0cc81bf0c6 100644 --- a/bpmn/MSOInfrastructureBPMN/src/main/java/org/openecomp/mso/bpmn/infrastructure/workflow/service/WorkflowAsyncInfrastructureResource.java +++ b/bpmn/MSOInfrastructureBPMN/src/main/java/org/openecomp/mso/bpmn/infrastructure/workflow/service/WorkflowAsyncInfrastructureResource.java @@ -40,11 +40,7 @@ import org.openecomp.mso.bpmn.common.workflow.service.WorkflowAsyncResource; @Path("/async")
public class WorkflowAsyncInfrastructureResource extends WorkflowAsyncResource {
- protected ProcessEngineServices getProcessEngineServices() {
- if (pes4junit == null) {
- return ProcessEngines.getProcessEngine("infrastructure");
- } else {
- return pes4junit;
- }
- }
+ protected ProcessEngineServices getProcessEngineServices() {
+ return pes4junit.orElse(ProcessEngines.getProcessEngine("infrastructure"));
+ }
}
|