processi

about processes and engines

Archive for the ‘csv’ Category

‘rufus-decision’ csv decision tables

This is the latest episode of my move to Rufus of some of the OpenWFEru subprojects.

The ‘rufus-decision‘ gem contains a Ruby implementation of [CSV] decision tables.

After

sudo gem install -y rufus-decision

given that table :

you can have :

Read the rest of this entry »

Written by John Mettraux

January 28, 2008 at 8:04 am

Posted in csv, decision, ruby, rufus

ruby decision table quickstart

Update : there is a new blog post covering this Ruby decision table subject, with updated information.

The information in this current blog post is a bit out of date.


At first, install the necessary OpenWFEru gems :

sudo gem install openwferu openwferu-extras

Here is the quickstart :

(code here).

It should output something like :

weather : raining, month : december
=> take umbrella ? yes

weather : sunny, month : december
=> take umbrella ? no

weather : cloudy, month : may
=> take umbrella ? yes

If you take a closer look at the code, you’ll see that it taps directly the CSV view of a Google Spreadsheet. Quite handy.

More documentation *soon* on this page about Decision Tables.

Update : Adapted the head of the post, sudo gem install openwferu openwferu-extras will just work.

Written by John Mettraux

August 6, 2007 at 8:35 am

Posted in bpm, csv, openwferu, ruby, rules, workflow