Creating User ID custom transformation types
Perform the following tasks to create custom transformation IDs:
- Task 1: Verify the prerequisites are met
- Task 2: Create a new transformation plugin
- Task 3: Incorporate code changes
- Task 4: Build and deploy the new plugin
- Task 5: Verify the new transformation option is deployed to the Remedy SSO server
Task 1: Verify the prerequisites are met
Before creating a new plugin, ensure the following prerequisites are met:
- You must have JDK (not JRE) installed on the Remedy SSO server.
- The JAVA_HOME variable must point to the directory where the JDK is located.
On the Remedy SSO server, download the Apache Maven tool archive.
Task 2: Create a new transformation plugin
- Unpack the Apache Maven tool archive to <maven_dir>.
- Add the PATH system variable path to the <maven dir>/bin directory.
To check version, run the following command:
mvn –version- Unpack the to CustomTransformationTemplate.
Locate the
Remedy SSO
libraries folder.
Usually, it can be found in <RSSO Tomcat>/webapps/RSSO/WEB-INF/lib.- Find the sdk-plugins-<version>.jar file inside the path, and copy it into the CustomTransformationTemplate folder.
- Ensure that you have the correct dependencies set:
- In the CustomTransformationTemplate/pom.xml file, check the <version > value inside the <dependency> element. If required, correct it according to the <version> part of the sdk-plugins-<version>.jar file.
- In the CustomTransformationTemplate/build.cmd file, check the –Dversion argument in the first line and change it if required.
Task 3: Incorporate code changes
- Go to the CustomTransformationTemplate\java\src\main\java\com\bmc\rsso\plugins\transformation\custom folder.
- Create a copy of the TransformationTemplate.java file.
- Open this file and change the class name accordingly.
- Open CustomTransformationTemplate\ src\main\resources\META-INF\services\com.bmc.rsso.plugins.transformation.spi.UserIdTransformation file, and change the class name inside it accordingly.
- Open the .java file and make changes to the following functions:
- Content of the transform () function
- Returned value of the getStrategyName() function.
The return value is what you see in the console. Do not use any white spaces or special characters in the name. - (Optional) Content of the getDescription() function.
This only leaves a comment when getDescription argument is used with Java. It does not change anything in the console or functionality.
Task 4: Build and deploy the new plugin
- Run the CustomTransformationTemplate/build.bat file.
The newly created .jar file is located in CustomTransformationTemplate/target. Copy the .jar file into <RSSO Tomcat>/webapps/RSSO/WEB-INF/lib.
- Restart the Remedy SSO server.
Task 5: Verify the new transformation option is deployed to the Remedy SSO server
- Log in to the Remedy SSO Admin Console.
- Navigate to the Realm tab, and open any available authentication method for editing.
- Verify the newly configured entry in available in the User ID Transformation list.