|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openemcee.microflow.frontend.MicroflowRunner
The Microflow runner is a Façade which makes execution of a Microflow more user friendly. It is produced by the MicroflowFactory, also in this package.
Nested Class Summary | |
class |
MicroflowRunner.BusinessException
See documentation for "run()". |
class |
MicroflowRunner.DataIntegrityException
See documentation for "run()". |
class |
MicroflowRunner.MicroflowException
See documentation for "run()". |
class |
MicroflowRunner.MicroflowFailure
See documentation for "run()". |
Field Summary | |
protected MicroflowExecutor |
exec
This is the executor under which this Microflow will be run. |
Constructor Summary | |
MicroflowRunner(JobDescriptor job)
Creates a new instance of MicroflowExecution, given a JobDescriptor instance. |
Method Summary | |
void |
addAttribute(java.lang.String name,
java.lang.Object value)
Add microflow data to the workflow. |
java.lang.Object |
getAttribute(java.lang.String name)
Retrieve a named attribute. |
MicroflowExecutor |
getExec()
Getter for property exec. |
void |
run()
Run the microflow. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected MicroflowExecutor exec
Constructor Detail |
public MicroflowRunner(JobDescriptor job)
job
- The Job which this Runner will execute.Method Detail |
public void run() throws MicroflowRunner.BusinessException, MicroflowRunner.DataIntegrityException, MicroflowRunner.MicroflowFailure
MicroflowRunner.BusinessException
- The workflow completed with an "outcome" that maps to "failure".
MicroflowRunner.DataIntegrityException
- Invalid data was introduced into the workflow.
MicroflowRunner.MicroflowFailure
- The flow was unable to execute, see message and chained exception for more info.public void addAttribute(java.lang.String name, java.lang.Object value)
name
- The name for this attribute.value
- The initial value of the attribute.public java.lang.Object getAttribute(java.lang.String name)
name
- The name of the attribute to retrieve.
public MicroflowExecutor getExec()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |