org.jbpm.activity
Interface ActivityBehaviour

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

public interface ActivityBehaviour
extends java.io.Serializable

piece of Java code that is to be included in a process as the runtime activity 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 activity 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 activity behaviour or as a hidden listener to process events.

ActivityBehaviour's can be used to implement the behaviour of activities, in which case this behaviour is associated to a graphical activity in the diagram.

An ActivityBehaviour can control the propagation of execution. ActivityBehaviour's can become external activities when they invoke ActivityExecution.waitForSignal(). That means the activity will become a wait state. In that case, ExternalActivityBehaviour should be implemented to also handle the external triggers.

Throws:
java.lang.Exception


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.