Creating a rule engine extension project

Use the MDM Workbench to create a new development project for your rule engine extension.

Procedure

  1. From the MDM Development view of your MDM Workbench installation, right-click in the Package Explorer window and select New > Development Project.
  2. Give your project an appropriately descriptive name, and name your base Java package whatever you would like.
    For example, an addPerson validation rule project might be named PersonAddValidationBE and the base Java package name might be com.ibm.odm.
    Creating a rules extension
  3. Click Next, then provide a name for the composite project bundle, such as PersonAddValidation.cba.
  4. Click Finish.
    The panel shows an overview of your new development module.
  5. Click on the Model tab, then right-click on the folder named for your new development project and select New > Behavior Extension.
  6. Provide a descriptive name for your behavior extension, such as PersonAddValidation and press tab to save the change.
  7. Right-click on the new behavior extension, then select New > Transaction Event.
  8. Name the new transaction event (such as PersonAdd), select Pre, and then choose the transaction that you wish to add an event to (such as Party > Core Party > addPerson).
    Defining a transaction event
  9. Right-click on your new behavior extension and select New > Error Reason. Provide an appropriate name, message, and error type.
  10. Save your changes, then click on the Generate code link to populate your project.

What to do next

The next step in creating your rule engine extension is to add dependencies to the project.