David Ward created SWITCHYARD-717:
-------------------------------------
Summary: Objects need to be re-set into TaskContent for serialization
Key: SWITCHYARD-717
URL:
https://issues.jboss.org/browse/SWITCHYARD-717
Project: SwitchYard
Issue Type: Bug
Components: component-bpm
Affects Versions: 0.4
Reporter: David Ward
Assignee: David Ward
Fix For: 0.5
The following is an idea that needs to be INVESTIGATED for validity before done (I just
didn't want to forget about it, thus the jira):
The BaseTaskContent class serializes objects when set is called, and deserializes them
when get is called. The underlying jBPM implementation uses the bytes when sent across
the wire from the taskclient to the taskserver. Doing the de/serialization on get/set
means that if a developer modifies his/her domain object, he/she HAS to RE-SET that object
back into the TaskContent before it is sent to the taskserver. If he/she forgets to do
this, mutations to the domain object won't be "remembered". Instead,
BaseTaskClient should hold onto the domain object in a transient field, and only on
read/writeExternal should it be de/serialized into the jBPM implementation.
If the above is done, then the "Note" in the "Getting and setting task
content" section of this doc page should be updated:
https://docs.jboss.org/author/display/SWITCHYARD/BPM+Human+Task+API
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira