[jboss-user] [jBPM] - Re: CustormWorkItemEditor + ObjectDataType("MyDomainClass"): Always getting String instead of MyDomainClass in WorkItem

sebb do-not-reply at jboss.com
Tue Jan 31 07:04:18 EST 2012


sebb [https://community.jboss.org/people/sebb] created the discussion

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

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

--------------------------------------------------------------
I just figured, that the problem does not start in the WorkItemHandler:

See the code part with the comment: "//get current value from node"?
There it happens also while editing my process. If I press OK to save my ServiceTask I cant open it again, because I dont get myDomainClassInstance, but a String object with the toString() representation of myDomainClassInstance...

> protected Control createDialogArea(Composite parent) {
> [...]
> //get current value from node
> MyDomainClass mdc = (MyDomainClass) work.getParameter("myParameter");
> [...]
This code results to a ClassCastException because work.getParameter("myParameter") returns the above mentioned String.
--------------------------------------------------------------

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

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/9239c904/attachment.html 


More information about the jboss-user mailing list