Package org.eclipse.emf.mwe.core
Class WorkflowRunner
java.lang.Object
org.eclipse.emf.mwe.core.WorkflowRunner
Main class to run a workflow.
Arguments:
- Workflow configuration filename.
- an optional ProgressMonitor
- optional runtime properties that override those in workflow files
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
protected static org.apache.commons.cli.CommandLine
getCommandLine
(String[] args) static void
Starts a workflow.resolveParams
(String[] args) Convert type line arguments into a hashmap.boolean
run
(String workFlowFile, ProgressMonitor theMonitor, Map<String, String> theParams, Map<String, ?> externalSlotContents) Deprecated.protected void
wrongCall
(org.apache.commons.cli.CommandLine line) Print usage information and terminate the program.
-
Constructor Details
-
WorkflowRunner
public WorkflowRunner()
-
-
Method Details
-
main
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
- Throws:
Exception
-
doRun
- 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
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
-
-