]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionFlow.java
Flows automatically registered in JCR
[gpl/argeo-slc.git] / runtime / org.argeo.slc.specs / src / main / java / org / argeo / slc / execution / ExecutionFlow.java
index b27f4efc1328f6ea595666ad906298b4d15ff4b5..992a974866ac8a8a101e07f499f79293190d7dde 100644 (file)
 
 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();
 }