On 10/18/06, Don Brown <[EMAIL PROTECTED]> wrote:
Struts 2 doesn't have a specific workflow engine built in, per se, but
you do have several options:
 1. Spring's Web Flow
 2. Continuations

<snip/>

And then there is Commons SCXML [1], which is a generic state machine
/ workflow engine that can tie into many environments (though there is
nothing ATM in the Struts1/2 space, AFAIK).

One of the benefits is leveraging a W3C standard (in the making, so it
has a decent chance of paying off in the long run from various
standpoints -- tooling, runtimes, multiple impls to choose from).

Its possible to pick the expression language for expressions within
the workflow definition (JSP 2.0 EL, Commons JEXL are supported, there
is concrete evidence of ability to use pnuts and ECMA, and anecdotal
evidence for using XPath via the tiger APIs).

Its also possible to add domain-specific XML vocabularies (namespaces)
that allows the Commons SCXML engine to carry out domain-specific
actions.

One of the working examples is an impl for Shale dialogs [2] (which
were mentioned below).

-Rahul

[1] http://jakarta.apache.org/commons/scxml/
[2] http://shale.apache.org/shale-dialog/


For point 2, Struts 2 has built in support for RIFE's continuations
library.  A good example can be found in the showcase.  It basically
lets you code a workflow in a single method, adding 'pause'  calls for
when a page should be sent back to the user.  Use with care, however,
as this is still in an experimental stage.

Another framework to look at is Apache Shale - http://shale.apache.org
- which builds on JSF and adds a "Dialog" scope framework for this
sort of thing.

Don

On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:
> Hello Roger,
>
> I know for sure that Spring has a wizard-like approach for
> multi-screen data entry. I believe it is called Spring Web Flow. Now,
> I am getting a feeling that  Struts2 supports portions of Spring
> (Still trying to figure this out) and also appears to include WebWork.
> So to the point of your question .... if someone on this list knows if
> Web Flow is part of Struts2, then this would be a valid solution if
> you do not want to use Spring. I know there is no work-flow in Struts
> 1.x unless you roll your own.
>
> HTH
>
>
>
> On 10/18/06, Roger Varley <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > I'm looking at the possibilty of using Struts for my next project,
> > which is to replace an internal intranet application that uses an
> > applet with a servlet based framework. Among the many "challenges" is
> > the need, because the applet is basically a multi-screen data entry
> > program, to have absolute control over the sequence flow of the
> > application - ignore browser back/forward, bookmarking etc and I
> > probably need some way of telling if a user navigates away/closes the
> > browser mid-session.
> >
> > Can I do this with Struts (and if so, how) or do I need a more generic
> > "worklfow" type of framework?
> >
> > Sorry if this all sounds a bit vague, but I'm just at the start of
> > trying to sort all this out.
> >
> > Regards
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to