JBoss Community

Re: Using Object in Designer

created by Sadiroveski S in jBPM - View the full discussion

Hello again,

 

I upload a Jar file contains User Class (Pojo), include a default value to the only variable in the User class which is Firstname = "Mike".

 

On the process variable, I added a User_info with custom object type and "User" under "Custom_Type".

On the User Task variables, I created in DataInputSet a variable User_in with Custom type object related to User. Also, I mapped the variable in the assginment between process and task for the object.

In the task-Form-Template I added ${User_in.getFirstname}

I go to the console -> run the process -> go to personal task -> select task and click on view and get the below error:

 

freemarker.template.TemplateException: Expected hash. User_in evaluated instead to freemarker.template.SimpleScalar on line 230, column 4 in ApplyJob.

 

Regards,

Reply to this message by going to Community

Start a new discussion in jBPM at Community