import org.argeo.slc.execution.ExecutionSpecAttribute;
public class MapExecutionContext implements ExecutionContext {
+
private final static Log log = LogFactory.getLog(MapExecutionContext.class);
private final Stack<ExecutionFlowRuntime> stack = new Stack<ExecutionFlowRuntime>();
public MapExecutionContext() {
uuid = UUID.randomUUID().toString();
- if (log.isDebugEnabled())
- log.debug("Execution context #" + uuid + " instantiated.");
+ variables.put(VAR_EXECUTION_CONTEXT_ID, uuid);
}
public void addVariables(
public void enterFlow(ExecutionFlow executionFlow) {
ExecutionFlowRuntime runtime = new ExecutionFlowRuntime(executionFlow);
stack.push(runtime);
+ variables.put(VAR_FLOW_ID, runtime.getUuid());
+ variables.put(VAR_FLOW_NAME, runtime.getExecutionFlow().getName());
if (log.isDebugEnabled())
log.debug(depthSpaces(stack.size()) + "=> " + executionFlow + " #"