org.ow2.bonita.pvm.activity
Interface Activity

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ExternalActivity

public interface Activity
extends java.io.Serializable

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.

Author:
Tom Baeyens

Method Summary
 void execute(ActivityExecution 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

execute

void execute(ActivityExecution execution)
             throws java.lang.Exception
piece of Java code that is to be included in a process as node behaviour or as a hidden listener to process events.

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.

Throws:
java.lang.Exception


Copyright © 2009 OW2 Consortium. All Rights Reserved.