On Thu, Feb 10, 2011 at 02:20:45PM +0900, John Mettraux wrote:
> 
> On Mon, Feb 07, 2011 at 05:52:10PM -0800, Raphael Simon wrote:
> > 
> > This definitely fits the bill. I'm looking forward to the filter attribute
> > as this is probably going to be how we will be mostly using filters (in the
> > spirit of mapping 'inputs' and 'outputs' to the workitem). I'm thinking the
> > standalone expression is great to do validation (e.g. at the beginning of
> > the workflow and all sub-workflows) while the attribute is what to use to do
> > the mapping for each participant that needs it.
> 
> sorry for the late reply : the :filter attribute is in.
> 
>   
> https://github.com/jmettraux/ruote/blob/e5952b53957642b443327761203f949015710398/test/functional/ft_56_filter.rb
> 
> It only understands filter passed via variables for now (I'll add filter 
> participants) later.
> 
> Please tell me if it fits your bill and how I could improve it.
> 
> > I also like the fact that the filter mechanism is easy to use (via
> > Ruote::Filter) since I'm thinking our participants will use this directly to
> > validate the incoming workitem (don't know if it's overkill but at some
> > level this is nicely independent of everything else and could even live in
> > its own gem, rufus-validate anyone?)
> 
> +1 for using Ruote::Filter from your participants.
> 
> rufus-validate : why not, thinking about it, maybe after I release ruote 2.2.0

Hello,

I've added participants as valid filters for the :filter attribute

  
https://github.com/jmettraux/ruote/commit/ceae194e14447ce857bce996fcac7913adb9b30c
  
https://github.com/jmettraux/ruote/commit/4e31fb648e963893389351f0fa7aa3e328bdbf8e

I think I'm done with the filters (expression and attribute) for now.

It's documented at

  http://ruote.rubyforge.org/exp/filter.html
  http://ruote.rubyforge.org/common_attributes.html#filter

I haven't implemented the 'record' feature found in the 'filter' expression for 
the :filter attribute. It doesn't seem necessary, in other words, validation 
filters are probably not necessary for filtered sections.

I hope to release 2.2.0 very soon.


Best regards,

-- 
John Mettraux - http://jmettraux.wordpress.com

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to