FileNet P8 Platform, Version 5.2            

Events and subscriptions

Events provide a mechanism for initiating actions that are invoked when objects are created and modified in, and deleted from, an object store. For example, creating a document in an object store triggers a create event, which launches a workflow that approves the new document and posts the approved content to a website.

A subscription is the association of a particular event trigger with an event action. In the previous example, the event trigger is the document creation and the event action is the workflow launch. Many different subscriptions can be associated with a particular event trigger. The following diagram illustrates how several events might be triggered when a loan application document is created in an object store.

Diagram showing events that are triggered when a new loan application document is created in an object store

FileNet® P8 comes with predefined event actions, including launching a workflow. In addition, events can be developed as a Java™ class.

Subscriptions can be associated with a class so that they apply to the class itself or to all instances or all objects of the class type. Or, subscriptions can be associated with individual objects.

Event subscriptions can be run synchronously or asynchronously. When set to run synchronously, the object operation (for example, create or update) and the operations of the event actions are completed as a single transaction; failure in either results in rollback of both operations. For example, a synchronous event might be applied to a Claim folder class that returns an error if a document that does not belong to the Claim Document class is filed in the folder. When set to run asynchronously, the object operation and the event action operation run as separate transactions; in this case, the object operation can succeed independently of the event action operation.

In addition to synchronous and asynchronous event actions, you can create a user-implemented action called a change preprocessor. A change preprocessor runs synchronously during a transaction before database updates occur. By using this feature you can make source object modifications that are difficult or impossible to achieve with synchronous or asynchronous event actions.



Feedback

Last updated: October 2013
p8sov006.htm

© Copyright IBM Corporation 2014.
This information center is powered by Eclipse technology. (http://www.eclipse.org)