We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

How to pass variables to JAVA Class Action in the Workflow

LokeshSoundar
New Contributor
New Contributor

Hi Team,

As a part of user onboarding process, we have a requirement where we have send the account password for the new joiner via SMS. We are planning to call the REST API of the SMS gateway server from the Saviynt workflow. There is an option to call the JAVA method by uploading the JAR file into Saviynt. But there is no option to send the variables/properties for the method in the workflow. 

Any inputs on how to achieve this will be much appreciated.

 

Thanks,

Lokesh

3 REPLIES 3

nimitdave
Saviynt Employee
Saviynt Employee

You can have a user update rule with source as user created , action as custom action and method name signature will be public void customMethod(String userJson) where userJson is the representation of user for which rule triggerred. This is only valid for custom action in user update rule.

 

Thanks Nimit for your response. This helps.

Does the UserJSON will contains all the attributes in the user table for that user? 

Can we pass specific attribute of the user? If possible, any help on how to pass it would be great.

nimitdave
Saviynt Employee
Saviynt Employee

UserJSON will have all attributes of the user.

No, specific attributes cannot be passed as of now.