Discussion:
[jboss-user] [jBPM] - Re: Using Object in Designer
Sadiroveski S
2013-02-20 14:16:40 UTC
Permalink
Sadiroveski S [https://community.jboss.org/people/sadiroveski] created the discussion

"Re: Using Object in Designer"

To view the discussion, visit: https://community.jboss.org/message/798588#798588

--------------------------------------------------------------
I found a similar thread, but still no olne has reply to it:

https://community.jboss.org/message/744959#744959#744959 https://community.jboss.org/message/744959#744959

Regards,
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/798588#798588]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Sadiroveski S
2013-02-21 21:07:30 UTC
Permalink
Sadiroveski S [https://community.jboss.org/people/sadiroveski] created the discussion

"Re: Using Object in Designer"

To view the discussion, visit: https://community.jboss.org/message/798963#798963

--------------------------------------------------------------
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
[https://community.jboss.org/message/798963#798963]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...