We have a requirement to built our own custom class and use it through java node. How can we implement the same and which additional jars are required to built our custom code.
Thanks in Advance.
There are some sample .java files under the aveksa.ear/aveksa.war/WEB-INF/plug-ins/JavaNode/src.
I attached the ones from my lab, but I would suggest you extract them from your current version to be safe.
As far as I remember, you need to add the following 3 Jar files to your dependencies. You should be able to find them under aveksa.ear/APP-INF/lib of your current version:
Once you finish your code, create a jar file with all the required dependencies except the above 3 jar files (it is very important to not include the above 3 jars in your JavaNode jar file so as not to cause any class loading conflicts). Then place your jar file under aveksa.ear/aveksa.war/WEB-INF/plug-ins/JavaNode/lib.
You should find detailed steps on how to customize the aveksa.ear and add your new JavaNode jar file under "Customize RSA Identity Governance and Lifecycle” in the Install Guide document for your current version.
Please note that:
Note that applications running in a Java node will run under the version of Java used by the WildFly application server. Similarly if you have library requirements specific to your application they also run under the same instance. As a developer you are responsible for ensuring these libraries are installed correctly and do not conflict with existing libraries and versions of libraries used by RSA IG&L.
And to reiterate Mostafa Helmy 's warning. You can do anything you want in a Java node; but just because you can, does not mean you should. Be aware of performance issues.
I have tried to create my own custom code and I had placed the jar in the required folder. After uploading the jar when I am trying to use/call my method(defined in Java code) in the Java Node, the changes are not being saved. When I save the changes made in workflow, it doesn't takes the same and it is being changed again and again to the default settings.
Can someone please guide on the same, what can be the issue.
I don't fully understand your issue. Are you saying that you are having a problem saving a workflow?
Yes, when changes are done in the Java Node and I am trying to save the same in the workflow it is not being saved.
What version are you using? This might be an old bug in the workflow editor.
We are using Version 7.0.1
That's a very old version which is out of support. I know for a fact that v7.0.x had many issues with the workflow editor not saving changes properly.
You should upgrade to v7.2.x where these workflow editor issues do not exist.
As Mostafa Helmy mentioned, the workflow editor has changed in latest versions of IGL. See the following KB article for a known issue with older workflow editor (perhaps it applies to your situation):
000032283 - Workflow edits and new Workflows cannot be saved when using Internet Explorer (IE) in version 7.0.0 or lower of RSA Identity Governance & Lifecycle
Retrieving data ...