Monday, December 01, 2008  Fluent Process API
RuleFlowProcessFactory factory = // header // nodes //
connections .connection(1, 2) .connection(2, 3); RuleFlowProcess
process = factory.validate().getProcess();       1. I wouldn't
call this api fluent just because it's chainable. A fluent api
should read more like english.      I believe a "connectedTo"
operation to connect nodes during creation instead of an
explicit connection(id,id) would help a lot. In the example it
could/should replace done() - nodes with multiples in/out are
probably a problem.    2. True, we didn't really try hard to
make readable English sentences. But this api is still targeted
towards normal java developers, so then the question would be:
what would the people who use this api prefer?      Regarding
the connections, we tried to find a simple solution that
supports all use cases. But the good thing is we could support
multiple ways. Could you give a more concrete example on how you
would like it to work?