com.filenet.api.engine

Interface DocumentLifecycleActionHandler



  • public interface DocumentLifecycleActionHandler
    An interface to be implemented to handle state changes for documents assigned a lifecycle policy. A DocumentLifecycleActionHandler implementation runs on the server.

    Implement the methods of this interface with applicable actions for state changes defined in the document's lifecycle policy. The state of a document is changed when its changeState method is called with the flag parameter set to the appropriate LifecycleChangeFlags constant.

    When implementing a lifecycle action handler, consider the following points:

    • A lifecycle action handler runs synchronously.
    • An exception thrown by the handler will return to the client and the transaction will be rolled back.
    • You cannot update the source object passed to a lifecycle action handler. It is not supported.
    • You can implement a lifecycle action handler as a Java or JavaScript component. You can check in a Java lifecycle action handler as a CodeModule object, or you can specify the action handler in the classpath of the application server where the Content Engine is running.
    See Also:
    DocumentLifecyclePolicy, DocumentLifecycleAction, changeState, Lifecycle Policy Concepts, Action Handlers: Restrictions and Best Practices

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