org.eclipse.emf.mwe.core
Class WorkflowRunner

java.lang.Object
  extended by org.eclipse.emf.mwe.core.WorkflowRunner

public class WorkflowRunner
extends java.lang.Object

Main class to run a workflow.

Arguments:


Constructor Summary
WorkflowRunner()
           
 
Method Summary
 boolean doRun(org.apache.commons.cli.CommandLine line, java.lang.String[] args)
           
protected static org.apache.commons.cli.CommandLine getCommandLine(java.lang.String[] args)
           
static void main(java.lang.String[] args)
          Starts a workflow.
protected  java.util.Map<java.lang.String,java.lang.String> resolveParams(java.lang.String[] args)
          Convert type line arguments into a hashmap.
 boolean run(java.lang.String workFlowFile, ProgressMonitor theMonitor, java.util.Map<java.lang.String,java.lang.String> theParams, java.util.Map<java.lang.String,?> externalSlotContents)
          Deprecated. 
protected  void wrongCall(org.apache.commons.cli.CommandLine line)
          Print usage information and terminate the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowRunner

public WorkflowRunner()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Starts a workflow.

Parameters:
args - Program arguments. See class documentation.
Throws:
java.lang.Exception

run

@Deprecated
public boolean run(java.lang.String workFlowFile,
                              ProgressMonitor theMonitor,
                              java.util.Map<java.lang.String,java.lang.String> theParams,
                              java.util.Map<java.lang.String,?> externalSlotContents)
Deprecated. 


doRun

public boolean doRun(org.apache.commons.cli.CommandLine line,
                     java.lang.String[] args)
              throws java.lang.Exception
Throws:
java.lang.Exception

getCommandLine

protected static org.apache.commons.cli.CommandLine getCommandLine(java.lang.String[] args)
                                                            throws org.apache.commons.cli.ParseException
Throws:
org.apache.commons.cli.ParseException

resolveParams

protected java.util.Map<java.lang.String,java.lang.String> resolveParams(java.lang.String[] args)
Convert type line arguments into a hashmap. Each parameter is expected in format -pkey=value

Parameters:
args - Program arguments
Returns:
A map containing all identified parameters

wrongCall

protected void wrongCall(org.apache.commons.cli.CommandLine line)
Print usage information and terminate the program.

Parameters:
options -