]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionFlow.java
7dd3a74af51f57fe910936f05b74e8fb80a3fd5d
1 package org
.argeo
.slc
.execution
;
3 import java
.util
.Iterator
;
5 /** Abstraction of an execution that can be identified and configured. */
6 public interface ExecutionFlow
extends Runnable
{
7 /** Retrieve an immutable parameter */
8 public Object
getParameter(String key
);
10 /** Whether this immutable parameter is set */
11 public Boolean
isSetAsParameter(String key
);
13 /** The specifications of the execution flow. */
14 public ExecutionSpec
getExecutionSpec();
17 * List sub-runnables that would be executed if run() method would be
20 public Iterator
<Runnable
> runnables();
23 * If there is one and only one runnable wrapped return it, throw an
24 * exception otherwise.
26 public Runnable
getRunnable();
29 * The name of this execution flow. Can contains '/' which will be
30 * interpreted by UIs as a hierarchy;
32 public String
getName();