cancel
Showing results for 
Search instead for 
Did you mean: 

How to print form property in script task

vigneswaran
Champ on-the-rise
Champ on-the-rise

My user task is associated with 4 form properties. I would like to print these 4 properties in my script task so I can see in on my tomcat console. Could someone please help me on this? Basically, I would need those form properties to be set in a process variable (global by default), so I can access it in parent process.

4 REPLIES 4

vigneswaran
Champ on-the-rise
Champ on-the-rise

Forgot to mention: Activiti version 6.0.0

amruta_w
Star Collaborator
Star Collaborator

You can use the following statement to print on the console

java.lang.System.out.println("Hello world");

In the activiti-app.properties instead of false make true

# Beans whitelisting
beans.whitelisting.enabled=false

Thank you!!Let me try.

To print form properties

var name= execution.getVariable("name");

java.lang.System.out.println("name="+name);