/*
- * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ * Copyright (C) 2007-2012 Argeo GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
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();
}