-
1. Re: Custom WorkItemHandler - variables being converted to String
annah Mar 20, 2013 8:20 AM (in response to vtatai)Hi,
I had the same problem, and it seems to me that this is a bug. See my post (and the solution I used) here: https://community.jboss.org/message/733820#733820
-
2. Re: Custom WorkItemHandler - variables being converted to String
vtatai Mar 20, 2013 9:21 AM (in response to annah)Hey thanks, but I guess your workaround won't work for me - I don't know the types before hand, so I actually can't serialize.
If this is actually a bug I'll open a ticket in Jira, it would be nice to get some confirmation though from the powers that be that this is the case.
-
3. Re: Custom WorkItemHandler - variables being converted to String
vtatai Mar 21, 2013 7:14 AM (in response to vtatai)Ok I created a pull request for this:
https://github.com/droolsjbpm/jbpm/pull/157
Hopefully one of the devs will be able to take a look at it, but the pull request queue looks rather stale (2 years for the oldest pull request?).
-
4. Re: Custom WorkItemHandler - variables being converted to String
swiderski.maciej Mar 25, 2013 5:17 AM (in response to vtatai)Victor, is there already jira opened for this? If not could you please create one and assign it to me, I'll take a look at the pull request.
Thanks a lot!
-
5. Re: Custom WorkItemHandler - variables being converted to String
vtatai Mar 25, 2013 9:33 AM (in response to swiderski.maciej)Hey Maciej, thanks for looking into this - I've just noticed though in JIRA that there are no further releases in the 5.x line, does that mean I should have any changes into 6.0?
In git I branched off 5.4.x, so perhaps I'll need to create a new pull request if that is the case.
Thanks!
-
6. Re: Custom WorkItemHandler - variables being converted to String
swiderski.maciej Mar 25, 2013 9:36 AM (in response to vtatai)yes, please provide pull request for 6.0 (master in git) as this is where all changes are applied now. Could you please include test case for it as well?
Thanks
-
7. Re: Custom WorkItemHandler - variables being converted to String
vtatai Mar 25, 2013 1:58 PM (in response to swiderski.maciej)Ok I'll set everything up and let you know once it is all ready for review.
Thanks!
-
8. Re: Custom WorkItemHandler - variables being converted to String
george_bogdan Feb 10, 2015 5:30 PM (in response to vtatai)Hi Maciej, Victor,
I am hitting this exact same problem in version 6.1.0.Final, has this been changed or fixed since this post? Is there a way to get the original Map (and not a String) using expression language?
Any help with this is appreciated.
Best regards,
George Bogdan
-
9. Re: Custom WorkItemHandler - variables being converted to String
swiderski.maciej Feb 11, 2015 1:26 AM (in response to george_bogdan)George,
it's perfectly valid (and it does work) to pass any object instance into a work item handler. Just make sure whenever you create data mapping for that activity you will use mapped to type of assignment instead of equals to. That way it can simply copy variable into task data input.
HTH