I have imported JAR file in my dell boomi process library, i have inserted the same JAR file in my custom library,still i am unable to use JAR classes in my custom groovy script.
Getting <classname> not defined error.
Hi ashutosh singh
With the release of the Custom Library functionality, it is no longer necessary to manually place jars on atoms.
You are right !! There is no need to place manually JARs in the library as we are using Cloud Atom, so what i did i in Account Library>Import Jar, i imported JARs, after that i created a custom library where i included the imported JAR from account library and saved it, which was even successful, then i deployed that JAR along with the process in which its getting use. Even then i am using that JAR>Class Method (as i have imported in custom library as earlier) its showing the <ClassName> can not be resolved, which means boomi is unable to find that class. Please help in this case !!!
And Atom can't be restarted because we using cloud atom rather local atom..
Presumably, you marked this custom library for "custom scripting" so that the jars are deployed to the right location. You deployed that custom library to your atom. And you are importing the relevant classes at the top of your custom script?
Dear James; For Your reference i am narrating whole issue in details, as i want to generate signature using timestamp and few other parameters, i am able to generate Timestamp by importing Simple text.SimpleDateFormat Jar. Fine..
Now for generating signature i have to use the javax.crypto.jar file and its Mac class i need to use.. ok..I did the same thing for it which i am telling you in below mentioned steps:
Step 1: Setup>Managed Account library>Imported the JAR from my system(which i had downloaded javax.crypto.jar)
Step:2:Created a custom library,inserted the same downloaded file from Managed account library(which i was able to see from drop down option) in select Jar files to add.. ok..and saved the same..
Step 3: Created a data process shape, selected custom scripting>By default Groovy. Started writing script imported the same file in custom script:
Used Mac class methods in my code, i am getting error where ever i used Mac class.in my script. Besides it same JAR file i used to Test locally on Groovy console/Eclipse its running fine. Its mean i guess its unable to find the JAR file
Please provide resolution to it..
For Outbound requests, Boomi offers signature with timestamps.
For Inbound Requests, Boomi doesn't offer signature yet.
There is an idea for it, consider voting:
Enable SOAP signature validation feature for inbound requests
We did it by hand with a Groovy script as you are attempting.
And we found standard Java to be enough (no other libraries). You will find documentation and sample code here:
Java XML Digital Signature API
We created a duplicate KeyStore, placed it on the file system and accessed it from the Groovy code.
If anyone knows how to access the Boomi KeyStore from Groovy code, I would appreciate suggestions.
I recommend writing the whole code in Netbeans and testing it before placing it in Boomi.
You will need to get the Entire Soap Envelope in the process to Validate and Create Signatures.
This can be done if you are using API management:
"javax.crypto.Mac" is part of the standard jdk, there are no extra libraries necessary. Your problem must be something else in your script.
Thanks James !! If it will the issue..how i am able to get desired o/p at groovy console...can u pls comment...
Retrieving data ...