01/27/2023 06:00 PM
Hello Saviynt Expert,
When create a new job to invoke ExternalJARJob, It ask for 3 parameters:
1. full class name with package name,
2. method name
3. argument in Json format
I know how to set first two parameters, but don't understand how to set third parameter in Json format.
For instance, if I have a following class with a method, how should I create the job with a correct argument value? I tried {"arg":"test"} which in in Json format, but the job is failed to execute. any idea please?
package com.external.custom;
public class CustomClazz {
public CustomClazz() {}
public void printArgument(String arg) {
System.out.println("Your input is: " + arg);
}
}
Solved! Go to Solution.
01/27/2023 06:49 PM
Your java code should take input in json format
01/28/2023 06:47 AM
Hello Rushikesh, Thank you very much always answer my question.
Does it looks like below to take JSONObject as argument? if not, could you please give me an example, very simple one is fine.
public void printArgument(JSONObject jsonArg) {
System.out.println("Your input is: " + jsonArg.toString());
}
01/28/2023 11:50 AM - last edited on 04/19/2023 10:36 AM by Tim
Go through code provided by saviynt for sftp (code and jar is attached in end of page)
https://docs.saviyntcloud.com/bundle/AS400-Guide/
Use public static String createAccount(Map<String,String> arg) { }
02/04/2023 10:07 AM
Hello Rushikesh,
Thank you very much for your help! It works!
Best regards,
04/19/2023 06:33 AM
Hello RUshikesh,
I'm looking for similar implementation, the link to the documentation takes to the new portal. Can you provide the reference to the jar code you mentioned.
Thank You!
04/21/2023 10:46 AM
Hi @cdasari -
You can try these links on the new docs portal:
https://docs.saviyntcloud.com/bundle/AS400-Guide/
https://docs.saviyntcloud.com/bundle/JAR-v2020x/page/Content/Understanding-the-JAR-Package-Framework...
If they don't have the answers you are looking for, it will be best to post a new topic with your question.
Best reagrds,
Dave
06/07/2023 01:19 PM
Thank You!