Creating Custom Transformers
AccuRev includes a Java project you can use to create a custom transformer, which you can use to manipulate field mapping data as your needs require. The custom transformer Java project is installed to the
userTransformersSampleProject directory where you installed
AccuSync (c:\Program Files (x86)\AccuSync\userTransformersSampleProject\, for example).
- In Eclipse, import the userTransformersSampleProject.
- Write the code needed for your custom transformer.
The installation includes sample Java programs you can use to model your custom transformer. The programs are in userTransformersSampleProject\src\com\accurev\its\bridge\ where you installed AccuSync.
- Compile the code.
- When the code compiles successfully, build the project from the command line using
build.xml. This file is in the
userTransformersSampleProject directory where you installed
AccuSync.
The build process creates a .jar file in the userTransformersSampleProject\build directory where you installed AccuSync.
- Copy the .jar file to the
transformers directory where you installed
AccuSync.
The custom transformer is now available and appears in the Transformer drop-down list box on the Field Mapping dialog box.