Claro!!


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

>
> Hi Tom,
>
> On Jan 10, 2008 8:36 PM, Tomaso Tosolini <[EMAIL PROTECTED]>
> wrote:
> > Hi guys,
> >
> > in this days I'm procceding on an app that takes enormous advantage from
> > OpenWFEru,
> > and it's extension to enable db storage persistence, ...ooh... thanks to
> the
> > one that wrote it!! :)
>
> Yes, many thanks to you :)
>
>
> > I was wondering if was reasonable a simplification of the workitems
> storage
> > mechanism.
> >
> > (...)
> >
> > Why don't we remove completely the Field element and store (the yamlized
> > version of ) wi.attributes directly into the workitems table???? It gets
> > simpler to dump and load...
> >
> > Can I change this?
>
> I agree with you entirely, but, there is a catch : it's not that bad
> to have the fields in their own column, it allows for queries on them
> like "return me all the workitems for which the field 'customer_name'
> is set to 'Amerigo Vespucci'"...


[...mumbling....]
ok this is right, in the case of field name based search, but tends to
become
equally slow in the case of "google search", as implemented in the actual
ActiveP.
A possible solution is to implement a db treeization of the attributes, but,
if every time
i think to a simplification, this is the result we are at risk.... :)



>
>
> But your use case makes sense as well. So why don't we decide at
> initialization time how the ActiveParticipant should deal with its
> workitems ? Maybe the current behaviour should be the default and your
> more straightforward behaviour could be enabled via something like :
>
>    engine.register_participant "Amerigo", ActiveParticipant.new
> :compact_workitems => true
>
> and then this parameter (we should find a decent name for it), would
> be passed to the Workitem instances each time a workitem is consumed /
> proceeded by the participant.
>
> Having an empty "field" table should not be a big deal.


This is good for me.

Two cases:

1. AP is able to handle at the same time workitems that were saved in the
two ways.

2. AP, once started, can handle a single shape.

if 1 then this info must be saved in the wi( as attribute inflow, and as
special field in table, perhaps )
if 2 this info is set at registration time in the ActiveP and the wis
shouldn't be affected( am i wrong? )

I like 1 best, you?

Tom


>
>
>
> What do you think ? Let's agree on something and then please do it.
>
> Very good idea.
>
>
> --
> 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