org.openarchitectureware.workflow
Class WorkflowRunner
java.lang.Object
org.openarchitectureware.workflow.WorkflowRunner
public class WorkflowRunner
- extends java.lang.Object
Main class to run a workflow.
Arguments:
- Workflow configuration filename.
- an optional ProgressMonitor
- optional runtime properties that override those in workflow files
- Since:
- 4.0
- Author:
- Sven Efftinge (http://www.efftinge.de), Clemens Kadura (zAJKa) - adapted for debugger handling (since 4.2)
Method Summary |
boolean |
executeWorkflow(java.util.Map<?,?> externalSlotContents,
Issues issues)
|
WorkflowContext |
getContext()
|
protected java.util.Map<java.lang.Class<?>,Converter> |
getCustomConverters()
Returns a map of custom Converter implementations used for the injection process. |
static void |
main(java.lang.String... args)
Starts a workflow. |
boolean |
prepare(java.lang.String workFlowFile,
ProgressMonitor theMonitor,
java.util.Map<java.lang.String,java.lang.String> theParams)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowRunner
public WorkflowRunner()
main
public static void main(java.lang.String... args)
- Starts a workflow.
- Parameters:
args
- Program arguments. See class documentation.
run
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)
- Parameters:
workFlowFile
- monitor
- logger
- params
-
prepare
public boolean prepare(java.lang.String workFlowFile,
ProgressMonitor theMonitor,
java.util.Map<java.lang.String,java.lang.String> theParams)
getCustomConverters
protected java.util.Map<java.lang.Class<?>,Converter> getCustomConverters()
- Returns a map of custom Converter implementations used for the injection process.
If the result is
null
the default Converter implementations are used.
It's not necessary to provide custom Converter implementations for the default
types since they will be added if they're missing (f.e. it might be useful to
support lists which are splitted using other characters than a comma).
- Returns:
- A map of custom Converter implementations. Maybe
null
.
executeWorkflow
public boolean executeWorkflow(java.util.Map<?,?> externalSlotContents,
Issues issues)
getContext
public WorkflowContext getContext()