I have written a reusable class and included that in my bot xml using plugin. Now I want to use this class on the RPA node so I created a script within and called it using executeGroovyScript. However, the script gives error that the class is not found. The class can be called properly in the main script class.
Is there anyway to make the class available to executeGroovyScript so that I can run it on RPA node?
Below is the sample code:
<?xml version="1.0" encoding="UTF-8"?> <config xmlns="http://web-harvest.sourceforge.net/schema/1.0/config" scriptlang="groovy"> <include-config code="MyHandler"/> <var-def name="testScript"> <template> <![CDATA[ import MyHandler; //This gives error ]]> </template> </var-def> <robotics-flow > <robot driver="desktop" name="dDriver" close-on-completion="true"> <script><![CDATA[ import MyHandler; This works fine executeGroovyScript(testScript.toString()) ]]></script> </robot> </robotics-flow> <export include-original-data="true"> </export> </config>``` Thanks in advance, Amit