JBoss Community

CustormWorkItemEditor + ObjectDataType("MyDomainClass"): Always getting String instead of MyDomainClass in WorkItem

created by sebb in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community