[jboss-user] [jBPM] - CustormWorkItemEditor + ObjectDataType("MyDomainClass"): Always getting String instead of MyDomainClass in WorkItem
sebb
do-not-reply at jboss.com
Tue Jan 31 04:55:52 EST 2012
sebb [https://community.jboss.org/people/sebb] created the discussion
"CustormWorkItemEditor + ObjectDataType("MyDomainClass"): Always getting String instead of MyDomainClass in WorkItem"
To view the discussion, visit: https://community.jboss.org/message/649594#649594
--------------------------------------------------------------
Currently I am working on my own CustomWorkItemEditor. In this editor I create an instance of MyDomainClass and fill its fields with some values from the editors text fields.
In the WorkEditor.updateValue(Object) method I use an instance of WorkImpl and set the parameter by: work.setParameter("myParameter", myDomainClassInstance);
My WorkItemDefinition uses the following type for "myParameter"
"myParameter" : new ObjectDataType("my.package.MyDomainClass"),
When I read the parameter inside my WorkItemHandler I dont get the instance of MyDomainClass, but a String object with the toString() representation of myDomainClassInstance.
How can I get the real object and not the String object?
Thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649594#649594]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120131/fb78ee04/attachment.html
More information about the jboss-user
mailing list