How To Write a Custom Audit

Part 1: Creating the Audit Project

Audits are built from Java files. This first part of the tutorial explains how to create an appropriate Java modeling project for developing the audit.

  1. Create a new project within Together. From the main menu, choose File > New > Project.

  2. In the resulting dialog, choose Together > Java Modeling Project. Click Next.

  3. In the Project name field, enter CustomAudit as shown below. Click Next.

    New project page

  4. Do not change the Modeling Settings. Click Next.

  5. On the Java Settings page, add the necessary libraries to use the audit API that comes with Together.

    1. Click the Libraries tab.

    2. Click Add External Jars. Browse your Together installation for the following JAR, located in the Together installation directory.

      $Together_home$\eclipse\plugins\com.togethersoft.sapient.core\plugin.jar

    3. Click Open to add the library to your project.

    4. Repeat the process to add one remaining JAR needed for the custom audit:

      $Together_home$\eclipse\plugins\com.togethersoft.sapient.audit\audit.jar


  6. In the Build output folder field, enter CustomAudit. Your Java Settings page should be similar to the one shown below.


    Java settings


  7. Click Finish to create the project.

Part 2: Creating the Audit Class