JbpmService should be careful about it's return values
------------------------------------------------------

                 Key: NXP-4244
                 URL: http://jira.nuxeo.org/browse/NXP-4244
             Project: Nuxeo Enterprise Platform
          Issue Type: Improvement
            Reporter: Ian Smith
            Assignee: Thierry Delprat


Currently JbpmService returns objects to the caller that may not be fully 
loaded (hibernate).  This means that for a caller to work correctly, it must 
create a new JbpmContext to fetch any objects that are lazy and not in memory 
yet.  This implies, typcially, COPYING the code from the JbpmService.

JbpmService is documented to note that this can occur, but this is not a 
solution.  A correct solution should be one that either forces calls to 
JbpmService to do so in the correct context (so the caller deals with the 
problem) or one in which JbpmService never gives back "half baked" objects to 
the caller.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to