version = SvcLogicExpressionResolver.evaluate(moduleExpr, node, ctx);
}
+ String parentGraph = ctx.getAttribute("currentGraph");
+ ctx.setAttribute("parentGraph", parentGraph);
SvcLogicStore store = SvcLogicActivator.getStore();
- LOG.debug("Calling ["+module+","+rpc+","+version+","+mode+"]");
-
- if (store != null)
- {
+ if (store != null) {
SvcLogicGraph calledGraph = store.fetch(module, rpc, version, mode);
-
- if (calledGraph != null)
- {
+ LOG.debug("Parent " + parentGraph + " is calling child " + calledGraph.toString());
+ ctx.setAttribute("currentGraph", calledGraph.toString());
+ if (calledGraph != null) {
svc.execute(calledGraph, ctx);
outValue = ctx.getStatus();
- }
- else
- {
- LOG.debug("Could not find service logic for ["+module+","+rpc+","+version+","+mode+"]");
+ } else {
+ LOG.error("Could not find service logic for [" + module + "," + rpc + "," + version + "," + mode + "]");
}
}
else
if (LOG.isDebugEnabled()) {
LOG.debug("about to execute " + outValue + " branch");
}
+ ctx.setAttribute("currentGraph", parentGraph);
return (nextNode);
}
LOG.debug("no " + outValue + " or Other branch found");
}
}
+ ctx.setAttribute("currentGraph", parentGraph);
+ ctx.setAttribute("parentGraph", null);
+
return (nextNode);
}