]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/DefaultAgent.java
Remove runtime packages
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / DefaultAgent.java
index e69b1cf7af749771d7fa4aaab10dc47479db24a2..e892b1d14dea025c0a49433d5ce47cce9838e0d6 100644 (file)
@@ -31,9 +31,9 @@ import org.argeo.slc.execution.ExecutionModulesManager;
 import org.argeo.slc.execution.ExecutionProcess;
 import org.argeo.slc.execution.ExecutionProcessNotifier;
 import org.argeo.slc.execution.ExecutionStep;
+import org.argeo.slc.execution.SlcAgent;
+import org.argeo.slc.execution.SlcAgentDescriptor;
 import org.argeo.slc.process.SlcExecution;
-import org.argeo.slc.runtime.SlcAgent;
-import org.argeo.slc.runtime.SlcAgentDescriptor;
 
 /** Implements the base methods of an SLC agent. */
 @SuppressWarnings("deprecation")
@@ -64,6 +64,20 @@ public class DefaultAgent implements SlcAgent, ExecutionProcessNotifier {
                                + agentDescriptor.getUuid());
                modulesManager.registerProcessNotifier(this,
                                new HashMap<String, String>());
+
+               // final String module = System
+               // .getProperty(ExecutionModulesManager.UNIQUE_LAUNCH_MODULE_PROPERTY);
+               // final String flow = System
+               // .getProperty(ExecutionModulesManager.UNIQUE_LAUNCH_FLOW_PROPERTY);
+               // if (module != null) {
+               // // launch a flow and stops
+               // new Thread("Unique Flow") {
+               // @Override
+               // public void run() {
+               // executeFlowAndExit(module, null, flow);
+               // }
+               // }.start();
+               // }
        }
 
        /** Clean up (needs to be called by overriding method) */
@@ -80,6 +94,13 @@ public class DefaultAgent implements SlcAgent, ExecutionProcessNotifier {
                return UUID.randomUUID().toString();
        }
 
+       /*
+        * UNIQUE FLOW
+        */
+       // protected void executeFlowAndExit(final String module,
+       // final String version, final String flow) {
+       // }
+
        /*
         * SLC AGENT
         */