On 9/10/06, John Mettraux <[email protected]> wrote:
On 9/9/06, Philipp Bracher <[email protected]> wrote: > >> > >> Perhaps we should really wait until John was able to make the > >> solution A) working. > > > > I've prepared the code ( > > http://svn.sourceforge.net/viewvc/openwfe/trunk/openwfe/openwfe- > > applic/src/main/java/openwfe/org/util/beancoder/ > > AbstractBeanCoder.java?revision=3241&view=markup > > ) : on monday, Nicolas and I will write its JCR extension based on the > > current XML extension ( > > http://svn.sourceforge.net/viewvc/openwfe/trunk/openwfe/openwfe- > > applic/src/main/java/openwfe/org/util/beancoder/XmlBeanCoder.java? > > revision=3241&view=markup > > ). > > > > We don't mean to bring an absolute solution, if you people come up > > with another, better, solution we'll be glad to support it. > I walked through the code and I think this will work quite well.
Just thought of something : this pair of thread was started by Chris, who simply wanted to unleash the dialog + workitem power. Now we're working on a BeanToJcr (JcrBeanCoder) that turns any java instance that follow the 'bean convention' into a JCR 'branch'. While OpenWFE workitems do follow the 'bean convention', our real requirements are (please correct me if I'm wrong) to have workitem id and payload at hand easily. Maybe the JCR representation the bean coder will produce will be easy to query/modify through JCR methods, maybe we'll need to flatten the workitems a bit (maybe a JcrWorkitem bean yielding a flatter structure than vanilla OpenWFE workitems). But maybe we'll need a custom JCR representation for workitems. Nicolas started the work on the JcrBeanCoder, we'll very soon know what solution will make sense. Nevertheless we'll have a bean to JCR mapping available. Best regards, -- John Mettraux -///- http://jmettraux.openwfe.org ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
