JBoss Community

How to access complex variable attribute in FTL(inside Human Task)

created by Ashutosh Kumar in jBPM - View the full discussion

I am trying to explore the option of passing/accessing a complex structure in my UI.

 

Let's say i have employee class with attribute like

Employee

     --->fName

     --->lName

     -->DOB

 

Before action of Human Task

map = new java.util.HashMap();

map.put("somevar", somevar);

map.put("employee", employee);

 

Now in my FTL if i am doing ${somevar} it works well

but if i do ${employee.fName} or

${employee.getFName()} it throws error

 

Any resolution on this will be welcome

 

Thanks

Ashutosh

Reply to this message by going to Community

Start a new discussion in jBPM at Community