Hi John

On Jan 10, 2008 11:59 PM, John Mettraux <[EMAIL PROTECTED]> wrote:

>
> Hi Tomaso,
>
> On Jan 10, 2008 11:42 PM, Tomaso Tosolini <[EMAIL PROTECTED]>
> wrote:
> >
> > > I like 1 as well, because it allows admins to change their mind later
> > > and choose another behaviour. But that would mean that the Workitem /
> > > Field classes are able to answer to queries, even when having a
> > > heterogeneous set of workitems.
> > >
> >
> > To be able to "wi has a field named x?"  when saving and updating wis,
> we
> > can make this:
> >
> > wi.attributes = ifw.attributes
> > wi.field_keys = (ifw.attributes.keys.collect { |x| x.to_s }).join( " " )
> >      # a supplemetary TEXT column
> >
> > so that
> > select workitems.* from workitems where field_keys LIKE PATTERN
> > should be fine,
> >
> > uses more disk space and it's not one of the best pieces of code ever
> > written but should work ( and further this may be an idea to dump all
> the
> > attributes "key paths" to this suppementary field.... so that one can
> also
> > make "recursive searches" at once)
>
> OK, what about forgetting about queries for the "without field table"
> version ?
>
>
> > > We could use variant 2 and have a rake task to migrate workitems to
> > > the without field version and vice et versa.
> >
> > It's possible, but i don't like this too much.
>
> OK, let's forget it.
>
>
> If I recapitulate :
>
> - the new ActiveParticipant may read both style of stored workitems
> - it can query only the old "with field table" workitems, queries on
> new workitems will return [] (empty array)
> - the integrator/admin/developer decides which version he wants to use
> when instantiating the participant
> - the default is the current behaviour
> - we will learn the rest as we (you) go
>
> Wdyt ?


Ok for me, i'll start writing soon.

Thanks
Tom


>
> --
> John Mettraux   -///-   http://jmettraux.openwfe.org
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to