[jboss-user] [jBPM] - Re: Problem about define domain specific processes with enum parameter
Nick Risaro
do-not-reply at jboss.com
Wed Oct 10 17:15:25 EDT 2012
Nick Risaro [https://community.jboss.org/people/nickrisaro] created the discussion
"Re: Problem about define domain specific processes with enum parameter"
To view the discussion, visit: https://community.jboss.org/message/764196#764196
--------------------------------------------------------------
I have the same issue, I reimplemented the EnumDataType, it has a bug (at least I think so) in the line where it loads the enum, the original code says:
{code}Class<?> clazz = Class.forName(className);{code}
And Mine is
{code}Class<?> clazz = this.getClass().forName(className);{code}
Now I can pass enums to my handler, and the best part is that the editor "validates" the enum and don't let you type a value that is not listed in your enum :)
Hope that helps!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/764196#764196]
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/20121010/4a32214d/attachment.html
More information about the jboss-user
mailing list