X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.support.equinox%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fequinox%2FExecutionCommandProvider.java;h=a63708286ce9bad66d75d4bab8b7679c5a49fecd;hb=6c05406b172b751251acca37f37e2bb3a62ff03f;hp=ca49e8fdc6b8db7370f79ed26d0343b2d215c5c3;hpb=ae98a7536a842021e433a43427db79a18abf3a6c;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/equinox/ExecutionCommandProvider.java b/runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/equinox/ExecutionCommandProvider.java index ca49e8fdc..a63708286 100644 --- a/runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/equinox/ExecutionCommandProvider.java +++ b/runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/equinox/ExecutionCommandProvider.java @@ -2,8 +2,8 @@ package org.argeo.slc.equinox; import java.util.List; +import org.argeo.slc.execution.ExecutionFlowDescriptor; import org.argeo.slc.execution.ExecutionModule; -import org.argeo.slc.process.SlcExecution; import org.eclipse.osgi.framework.console.CommandInterpreter; import org.eclipse.osgi.framework.console.CommandProvider; @@ -14,9 +14,6 @@ public class ExecutionCommandProvider implements CommandProvider { String moduleName = ci.nextArgument(); String executionName = ci.nextArgument(); - SlcExecution slcExecution = new SlcExecution(); - slcExecution.getAttributes().put("slc.flows", executionName); - ExecutionModule module = null; for (ExecutionModule moduleT : executionModules) { if(moduleT.getName().equals(moduleName)){ @@ -26,8 +23,10 @@ public class ExecutionCommandProvider implements CommandProvider { } } + ExecutionFlowDescriptor descriptor = new ExecutionFlowDescriptor(); + descriptor.setName(executionName); if(module!=null) - module.execute(slcExecution); + module.execute(descriptor); return null; }