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&...]