|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Activity
piece of Java code that is to be included in a process as the runtime node behaviour or as a hidden listener to process events.
Method Summary | |
---|---|
void |
execute(Execution execution)
piece of Java code that is to be included in a process as node behaviour or as a hidden listener to process events. |
Method Detail |
---|
void execute(Execution execution) throws java.lang.Exception
Activities can be used to implement the behaviour of nodes, in which case this behaviour is associated to a graphical node in the diagram, or they can be added as events, in that case, they are being hidden from the diagram.
If an activity is the node behaviour, then it can control the propagation
of execution. Node behaviours can be external activities. That means their
runtime behaviour is a wait state. In that case, ExternalActivity
should be implemented to also handle the external triggers.
If an activity is being used as a listener to process events, the propagation
of the execution can not be controlled in an activity. So following methods
are not to be called during Event
s.
Execution.cancel()
Execution.end()
Execution.end(String)
Execution.end(String, boolean)
Execution.execute(Node)
Execution.move(Node)
Execution.resume()
Execution.signal()
Execution.signal(java.util.Map)
Execution.signal(String)
Execution.signal(String, java.util.Map)
Execution.suspend()
Execution.takeDefaultTransition()
Execution.take(String)
Execution.take(Transition)
Execution.waitForSignal()
If an exception is thrown that is not handled by an
ExceptionHandler
, the exception will be wrapped and propagated
to the original client that performed an operation on the execution.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |