com.filenet.api.engine
Interface EventActionHandler


public interface EventActionHandler

An interface to be implemented as a Java event action handler and set as an event action in a Subscription object. If any subscribed events are triggered on the target object set in the subscription, then the handler executes. An EventActionHandler implementation runs on the server.

When implementing an event action handler, consider the following points:

For restrictions and best practices on implementing action handlers, see Implementation Concepts.

See Also:
Working with Subscriptions

Method Summary
 void onEvent(ObjectChangeEvent event, Id subscriptionId)
          Invoked when a subscribed event occurs on a target object set in a subscription.
 

Method Detail

onEvent

void onEvent(ObjectChangeEvent event,
             Id subscriptionId)
             throws EngineRuntimeException
Invoked when a subscribed event occurs on a target object set in a subscription. Implement this method with the actions to be taken when the event is triggered.

Parameters:
event - An event of type ObjectChangeEvent or subclass.
subscriptionId - An Id value that represents the GUID of the subscription that defines the triggered event. You can use this value to retrieve the Subscription object with which this handler is associated.
Throws:
EngineRuntimeException


© Copyright IBM Corporation 2006, 2009. All rights reserved.