Class WorkflowRunner

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

public class WorkflowRunner extends Object
Main class to run a workflow.

Arguments:

  • Workflow configuration filename.
  • an optional ProgressMonitor
  • optional runtime properties that override those in workflow files
  • Constructor Details

    • WorkflowRunner

      public WorkflowRunner()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Starts a workflow.
      Parameters:
      args - Program arguments. See class documentation.
      Throws:
      Exception
    • run

      @Deprecated public boolean run(String workFlowFile, ProgressMonitor theMonitor, Map<String,String> theParams, Map<String,?> externalSlotContents)
      Deprecated.
    • doRun

      public boolean doRun(String[] progArgs, boolean debugMode, int port) throws Exception
      Throws:
      Exception
    • doRun

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

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

      protected Map<String,String> resolveParams(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:
      line -