org.jbpm.api.activity
Interface ActivityBehaviour

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

public interface ActivityBehaviour
extends java.io.Serializable

implements the runtime behaviour of an activity.

Author:
Tom Baeyens

Method Summary
 void execute(ActivityExecution execution)
          invoked when an execution arrives in an activity.
 

Method Detail

execute

void execute(ActivityExecution execution)
             throws java.lang.Exception
invoked when an execution arrives in an activity.

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 signals.

Throws:
java.lang.Exception


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