]
Alejandro Guizar resolved JBPM-2791.
------------------------------------
Assignee: Alejandro Guizar
Resolution: Rejected
Oracle treats a zero length string as NULL. That is a well known "feature" of
Oracle; jBPM is innocent.
jBPM variable mapping does not map correctly an empty String.
-------------------------------------------------------------
Key: JBPM-2791
URL:
https://jira.jboss.org/browse/JBPM-2791
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 3.2.7, jBPM 3.2.9
Environment: DATABASE: Oracle10g
Reporter: Marek Baluch
Assignee: Alejandro Guizar
If I define the following variable mapping between ESB and jBPM (code bellow) and the
mapped value (e.g. from ESB to jBPM) is an empty String then the result is null.
<bpmToEsbVars>
<mapping bpm="theBody" esb="BODY_CONTENT"/>
</bpmToEsbVars>
<esbToBpmVars>
<mapping esb="BODY_CONTENT" bpm="theBody"/>
</esbToBpmVars>
The problem may lie in hibernate
(
http://opensource.atlassian.com/projects/hibernate/browse/HV-13). Also my test has shown
that if I persist an object with some field set to an empty String then the object
returned from the oracle10g database has the field value equal to null.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: