X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=cms%2Forg.argeo.slc.api%2Fsrc%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionContext.java;fp=cms%2Forg.argeo.slc.api%2Fsrc%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionContext.java;h=46c448f41291fe6ad4468f1bc55b37fcc66bcd46;hb=ecc22e604e47533c79de9cecdcdeacbc752cbff1;hp=0000000000000000000000000000000000000000;hpb=e07ded4632e53f8b8869763bc1f1f4091361e76e;p=gpl%2Fargeo-slc.git diff --git a/cms/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionContext.java b/cms/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionContext.java new file mode 100644 index 000000000..46c448f41 --- /dev/null +++ b/cms/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionContext.java @@ -0,0 +1,20 @@ +package org.argeo.slc.execution; + +/** Variables or references attached to an execution (typically thread bounded).*/ +public interface ExecutionContext { + public final static String VAR_EXECUTION_CONTEXT_ID = "slcVar.executionContext.id"; + public final static String VAR_EXECUTION_CONTEXT_CREATION_DATE = "slcVar.executionContext.creationDate"; + public final static String VAR_FLOW_ID = "slcVar.flow.id"; + public final static String VAR_FLOW_NAME = "slcVar.flow.name"; + + public String getUuid(); + + /** @return the variable value, or null if not found. */ + public Object getVariable(String key); + + public void setVariable(String key, Object value); + + public void beforeFlow(ExecutionFlow executionFlow); + + public void afterFlow(ExecutionFlow executionFlow); +}