aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-04-07 16:34:09 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-04-07 16:34:09 -0700
commit52b45c0fdb16f9fecff227c3c0e3ada4b3cf70fd (patch)
treeb08b06bc6bb25875fe0a88e922bb54b814647fc9
parent75950bf862be183d9a2d64ad0ed4dafe30959184 (diff)
Refactor to remove redundant code
Change-Id: I910c4c168164f8709684729c67c000c190b07618 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rw-r--r--sli/provider/src/main/java/org/openecomp/sdnc/sli/provider/SvcLogicServiceImpl.java18
1 files changed, 1 insertions, 17 deletions
diff --git a/sli/provider/src/main/java/org/openecomp/sdnc/sli/provider/SvcLogicServiceImpl.java b/sli/provider/src/main/java/org/openecomp/sdnc/sli/provider/SvcLogicServiceImpl.java
index 6ee264e..ba929ba 100644
--- a/sli/provider/src/main/java/org/openecomp/sdnc/sli/provider/SvcLogicServiceImpl.java
+++ b/sli/provider/src/main/java/org/openecomp/sdnc/sli/provider/SvcLogicServiceImpl.java
@@ -257,28 +257,12 @@ public class SvcLogicServiceImpl implements SvcLogicService {
}
- if (nodeExecutors == null) {
- LOG.info("Start: registering node executors");
- registerExecutors();
-
- LOG.info("Done: registering node executors");
- }
-
- LOG.info("About to execute graph " + graph.toString());
-
- LOG.info("Executing root node");
SvcLogicContext ctx = new SvcLogicContext(props);
ctx.setAttribute("currentGraph", graph.toString());
ctx.setAttribute("X-ECOMP-RequestID", MDC.get("X-ECOMP-RequestID"));
ctx.setDomDataBroker(domDataBroker);
- SvcLogicNode curNode = graph.getRootNode();
-
- while (curNode != null) {
- LOG.info("About to execute node # "+curNode.getNodeId()+" ("+curNode.getNodeType()+")");
- SvcLogicNode nextNode = executeNode(curNode, ctx);
- curNode = nextNode;
- }
+ execute(graph, ctx);
return(ctx.toProperties());
}