How to print form property in script task

cancel
Showing results for 
Search instead for 
Did you mean: 
vigneswaran
Active Member

How to print form property in script task

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
vigneswaran
Active Member

Re: How to print form property in script task

Forgot to mention: Activiti version 6.0.0

amruta_w
Senior Member

Re: How to print form property in script task

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

vigneswaran
Active Member

Re: How to print form property in script task

Thank you!!Let me try.

amruta_w
Senior Member

Re: How to print form property in script task

To print form properties

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

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