Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Printing something in workflow

varunpuri
Regular Contributor
Regular Contributor

Hi,

Is it possible to print a variable value or any constant value in the logs through any of the available components of a workflow. If yes, kindly share the way to achieve it too.

Best Regards,
Varun

4 REPLIES 4

nimitdave
Saviynt Employee
Saviynt Employee

Please explain what you want to achieve with printing a variable in the logs ? 

varunpuri
Regular Contributor
Regular Contributor

Hello @nimitdave ,

Just for debugging purpose, trying to print an object, or variables within an object to see whether the expected values are there in those objects or not.

Best Regards,
Varun

rushikeshvartak
All-Star
All-Star

Its not possible. Check logs for variables & documentation


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

nimitdave
Saviynt Employee
Saviynt Employee

Its not possible , but you can use a email attached in the approval workflow task and then print details in that email for all variables that are part of workflow and also exposed in email. Below expression will print all exposed variable in the email:

${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}

Also saviynt logs provide details on how the request flows as per the workflow defined.