I have a simple Java method to return Hello World.Is there any way to invoke this method from Boomi.
Hi Nivea Prasad,
Yes. You can use Groovy script in a Data Process or Map Function which can call native Java classes, either in the Atom's standard Java JRE or your own custom jars. For custom jars, you would need to upload and deploy your JAR as a Custom Library component, and then include the appropriate "import" statement in your script. For example, note the JDOM classes referenced in this example: XML data parsing.
See also Custom scripting
Thanks for the response.I was able to achieve this using Groovy script after adding custom JAR in Boomi. I have one more question,can we call .java class directly from Program command in Boomi instead of adding Jar in custom Library.
Thanks in advance.
The Program Command shape is essentially like a command line, so if your jar is executable from the command line, you should be able to.
However keep in mind the Program Command does not return any value(s) to your process other than success/fail. Also you can pass simple command-line variables but you can't pass the entire current document contents to the script. It's intended to invoke external scripts, wait for them to complete successfully, and then continue in the Boomi process.
Retrieving data ...