|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Enactable
Variant of the Runnable interface.
Method Summary | |
---|---|
java.net.URI |
getId()
Gets the name of this instance. |
void |
run(ProcessContext ctx)
Performs the actual enaction of a process. |
Method Detail |
---|
void run(ProcessContext ctx) throws nextgrid.api.pom.ProcessException, java.lang.InterruptedException
The instance must take into account possible errors, like service unavailability, or execution errors. As long as there are more "valid" candidates for the process, errors should not be propagated to the parent, and the next candidate should be selected and enacted.
A ProcessException as a result of this call means that this process is unable to correctly finish its execution, and that the parent must do something to fix the problem.
ctx
- A process context
java.lang.InterruptedException
- If the thread is interrupted
nextgrid.api.pom.ProcessException
- If an unrecoverable local error occursjava.net.URI getId()
The name type and method name are intentionally the same as in the Process interface, because in most cases, the implementor class for this interface will be a Process implementation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |