Configuring custom plug-ins

You can write your own code that WSRR calls automatically during standard processing. You implement your code in a Java™ class referred to as a WSRR custom plug-in.

About this task

Custom plug-ins are called whenever any of the following actions take place:
  • Creating an object
  • Updating an object
  • Deleting an object
  • Transitioning an object from one lifecycle state to another
  • Making an object governable
  • Removing governance from an object

The following plug-in types can be installed in WSRR:

The following sequence diagram shows the order in which custom plug-ins are called when any client initiates an action:

Plug-in sequence diagram

Note that the entire sequence described in the diagram takes place in a single transaction.

If you configure two or more plug-ins of the same type, they are called in the order in which they are listed in the corresponding plug-in properties file, reading from left to right.

If your modification plug-in initiates another action, the creation of a new object for example, this will trigger a nested plug-in calling sequence. For example, you configure the following plug-ins:
Plug-in Plug-in type Description
StoreValidationDate Validation Adds a property to a new object, or updates a property on an existing object, whose value is the date and time at which the validation occurs.
CreateBusinessObject Modification If the action is the creation of a new WSDL document object, this plug-in creates a new business object that has a relationship referencing the WSDL document. For any other action, the plug-in does nothing.
LogActivity Notification Records the action in an activity log file.
If a client then loads a new WSDL document into WSRR, the following sequence occurs:
  1. StoreValidationDate is called; this adds a property to the WSDL document object.
  2. CreateBusinessObject is called. This creates a new business object, with a relationship to the WSDL document. The creation of the new object triggers a nested plug-in calling sequence as follows:
    1. StoreValidationDate is called; this adds a property to the business object.
    2. CreateBusinessObject is called; this does nothing.
    3. LogActivity is called; this logs the creation of the business object.
  3. LogActivity is called; this logs the creation of the WSDL document object.

There are two stages in implementing a WSRR plug-in:

Procedure

  1. Write the plug-in class. This is described in Developing plug-ins by using the System Programming Interfaces.
  2. Deploy the plug-in. This is described in the following subtopics: