org.ow2.bonita.pvm.activity
Interface ExternalActivity

All Superinterfaces:
Activity, java.io.Serializable

public interface ExternalActivity
extends Activity

extends Activity for handling external triggers after a wait state.

Process languages will provide a set of these node implementations. But languages like jPDL even allow users to provide their own node behaviour with this interface.

Author:
Tom Baeyens

Method Summary
 void signal(ActivityExecution execution, java.lang.String signalName, java.util.Map<java.lang.String,java.lang.Object> parameters)
          handles an external trigger.
 
Methods inherited from interface org.ow2.bonita.pvm.activity.Activity
execute
 

Method Detail

signal

void signal(ActivityExecution execution,
            java.lang.String signalName,
            java.util.Map<java.lang.String,java.lang.Object> parameters)
            throws java.lang.Exception
handles an external trigger.

An external trigger that comes into an execution through one of the Execution#signal() methods, will be delegated to the node in which the execution is positioned when it receives the external trigger.

The signal method implements how the node will react on that signal. For example, the outgoing transition could be taken that corresponds with the given signal.

Parameters:
execution - the Execution for which the signal is given
signalName - is an abstract text that can be associated with a signal. this corresponds to e.g. a method name in a java class interface. The implementation can decide e.g. to use the signal to identify the outgoing transition.
parameters - is extra information that can be provided with a signal. In this way, it is somewhat similar to the parameters that can be fed into a method invocation through reflection.
Throws:
java.lang.Exception - to indicate any kind of failure. Note that exceptions are considered non recoverable. After an Exception, the execution should not be used any more and if this is during a transaction, the transaction should be rolled back.


Copyright © 2009 OW2 Consortium. All Rights Reserved.