X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.specs%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionFlow.java;h=992a974866ac8a8a101e07f499f79293190d7dde;hb=24d560ee846fda5d7954d44f83cb22ab449dbe61;hp=b27f4efc1328f6ea595666ad906298b4d15ff4b5;hpb=1fdb1b4e7b1d2b0cabb6483238301b857a6392fa;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlow.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlow.java index b27f4efc1..992a97486 100644 --- a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlow.java +++ b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlow.java @@ -16,22 +16,26 @@ package org.argeo.slc.execution; +/** Abstraction of an execution that can be identified and configured. */ public interface ExecutionFlow extends Runnable { + /** Retrieve an immutable parameter */ public Object getParameter(String key); + /** Whether this immutable parameter is set */ public Boolean isSetAsParameter(String key); + /** The specifications of the execution flow. */ public ExecutionSpec getExecutionSpec(); + /** + * The name of this execution flow. Can contains '/' which will be + * interpreted by UIs as a hierarchy; + */ public String getName(); - public String getPath(); - /** - * Actually performs the execution of the Runnable. This method should never - * be called directly. The implementation should provide a reasonable - * default, but it is meant to be intercepted either to analyze what is run - * or to override the default behavior. + * @deprecated will be removed in SLC 2.0, the path should be the part of + * the name with '/' */ - public void doExecuteRunnable(Runnable runnable); + public String getPath(); }