This task is called to execute a Microflow from another
Microflow. Only flows launched using an
org.openemcee.microflow.frontend.MicroflowRunner created
by an org.openemcee.microflow.frontend.MicroflowFactory can
use this task.
Please see this example task config:
"subflow_name" is required to determine which flow to execute.
The Microflow XML is assumed to be relative to the URL which
was used to create the MicroflowRunner which launched the parent flow.
A comma separated list of MicroflowData names is required
to pass information between Microflows. All data is considered
"in-out".
If the Microflow executes successfully, the last outcome of the
last task is assumed to be the outcome of this class. If the
microflow fails, the following will be the outcome.
|--------------------------|-------------------------------------------
| OUTCOME_NAME | REASON
|--------------------------|-------------------------------------------
| illegal_sys_state | Microflow internal state was invalid
| microflow_not_found | Microflow XML was not found
| data_integrity_exception | Subflow terminated with a data integrity exception.
| microflow_failure | The Microflow failed due to config problems, or unchecked exceptions.
| ANYTHING ELSE | The last task terminated with this outcome.
|--------------------------|--------------------------------------------
If any of the above errors occur, the source exception chain will
be available in the Microflow data under
"org.openemcee.microflow.impl.MicroflowExecutor.SUBFLOW_EXCEPTION_KEY"
Author:
Scott Schenkein
Field Summary
Fields inherited from interface org.openemcee.microflow.usercore.MicroflowTask
This method is called once, and only once, prior to calling
execute task. It provides access to the parameters specified
in the task definition in the Microflow job defintion XML
document.
If the initialization fails, the executeTask will not be called,
and the calling Microflow will fail.