Hi,

When defining a page flow, it seems that at most one action pipeline
is executed (as only the first action with a when-condition yielding
"true" is used).  Is this correct?

What I want to achieve, is to be able to specify a multi-step page
selection.  For example, after a user has submitted a form (page1),
requesting to add an item to a shopping cart, these are the steps:

-  User input is validated.  If invalid, show page1 again.

-  User input is processed (step1).  If the item added is not
   on stock, page2 ("not on stock - proceed or not?") is shown.

-  User input is processed (step2).  The item is on stock and a
   confirmation is given to the user (page3).

I could give more complex examples, with even more choices, but
the above example shows the principle.

If you only can execute one action pipeline, this pipeline has to
implement *all* the conditonal subchoices (like whether the item is
added to the cart or not), and give back the status, so that the
<result when=...> can select the next page.

What is the best way to implement this?  My first guess would be
to let the single action pipelines call subpipelines, as a kind
of subroutines, doing the subprocessing.  One pipeline for stock
checking, one pipeline for adding the item to the shopping cart,
etc., so that the action pipeline itself in fact only implements
the logic.  Is this a proper way to do this?

I first expected that multiple actions could be "executed", which
would enable a <result> with no page attribute to (x)update the
instance, and trigger one of the next actions to be executed in
sequence, but this appears not to be possible (sadly, as I think
it would be a nice feature...).

Thanks,

-- 
--    Jos Vos <[EMAIL PROTECTED]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to