package org.argeo.slc.execution;
import java.util.List;
+import java.util.Map;
import org.argeo.slc.deploy.ModulesManager;
import org.argeo.slc.process.RealizedFlow;
-import org.argeo.slc.process.SlcExecution;
/** Provides access to the execution modules */
public interface ExecutionModulesManager extends ModulesManager {
+ /** Used to filter event notified to an execution notifier. */
+ public static String SLC_PROCESS_ID = "slc.process.id";
+
/** @return a full fledged module descriptor. */
public ExecutionModuleDescriptor getExecutionModuleDescriptor(
String moduleName, String version);
*/
public List<ExecutionModuleDescriptor> listExecutionModules();
- /** Asynchronously prepare and executes an {@link SlcExecution} */
- public void process(SlcExecution slcExecution);
-
/** Synchronously finds and executes an {@link ExecutionFlow}. */
public void execute(RealizedFlow realizedFlow);
+
+ /** Notify of a status update status of the {@link ExecutionProcess} */
+ public void dispatchUpdateStatus(ExecutionProcess process,
+ String oldStatus, String newStatus);
+
+ /** Notify that a step was added in an {@link ExecutionProcess} */
+ public void dispatchAddSteps(ExecutionProcess process,
+ List<ExecutionStep> steps);
+
+ /**
+ * Register a notifier which will be notified based on the provided
+ * properties.
+ */
+ public void registerProcessNotifier(ExecutionProcessNotifier notifier,
+ Map<String, String> properties);
+
+ /** Unregisters a notifier */
+ public void unregisterProcessNotifier(ExecutionProcessNotifier notifier,
+ Map<String, String> properties);
}