Re: Struts & Workflow

2006-10-18 Thread Rahul Akolkar

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




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]



RE: Struts & Workflow

2006-10-18 Thread Dave Newton
From: Jim Reynolds [mailto:[EMAIL PROTECTED]
> If Struts2 is WebWork, is Spring Configured anywhere for its IOC?

Spring is its IoC container...

Have you looked at the documentation pages at all? It talks about all
this stuff like validation, IoC, Spring Actions (if you want to, but
don't need to), auto-wiring, tag libraries, etc. or points to the WW
wiki and the docs there.

The starting links I used the most often were:

http://cwiki.apache.org/S2WIKI/home.html
http://cwiki.apache.org/WW/home.html

The most useful links I used to get a complete application (except for a
Hibernate transaction interceptor) going were:

http://cwiki.apache.org/WW/tutorials.html
http://cwiki.apache.org/WW/guides.html
http://cwiki.apache.org/WW/faqs.html
http://cwiki.apache.org/WW/hello-world.html
http://cwiki.apache.org/WW/ready-set-go.html

In particular the guides were most enlightening.

Dave


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



Re: Struts & Workflow

2006-10-18 Thread Don Brown

Struts 2 has built-in Spring support.  This means if you choose the
spring object factory (by changing struts.properties), your actions
will be autowired by name with Spring.  In addition, you can have your
Action class itself be created and wired by Spring, simply by using
the spring id where you would normally put the full class name in
struts.xml.

For more information, see http://cwiki.apache.org/confluence/display/WW/Spring

Don

On 10/18/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:

If Struts2 is WebWork, is Spring Configured anywhere for its IOC? When
working with it a while back, I really liked the fact that you could
create the datasource, and inject the datasource into DAOs. Or does
WebWork have an IOC that mimicks Spring?

Thanks,

On 10/18/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> From: Jim Reynolds [mailto:[EMAIL PROTECTED]
> > [...] also appears to include WebWork.
>
> Struts2 *is* WebWork.
>
> Dave
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




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



Re: Struts & Workflow

2006-10-18 Thread Don Brown

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

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]
>
>

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




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



Re: Struts & Workflow

2006-10-18 Thread Jim Reynolds

If Struts2 is WebWork, is Spring Configured anywhere for its IOC? When
working with it a while back, I really liked the fact that you could
create the datasource, and inject the datasource into DAOs. Or does
WebWork have an IOC that mimicks Spring?

Thanks,

On 10/18/06, Dave Newton <[EMAIL PROTECTED]> wrote:

From: Jim Reynolds [mailto:[EMAIL PROTECTED]
> [...] also appears to include WebWork.

Struts2 *is* WebWork.

Dave

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




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



RE: Struts & Workflow

2006-10-18 Thread Dave Newton
From: Jim Reynolds [mailto:[EMAIL PROTECTED]
> [...] also appears to include WebWork.

Struts2 *is* WebWork.

Dave

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



Re: Struts & Workflow

2006-10-18 Thread Jim Reynolds

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]




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



RE: [struts workflow extension] Workflow Violation Help

2004-05-21 Thread shirishchandra.sakhare
Hi,
This is the reason for providing the secondary workflow mechanism...

As a single workflow allows you to define a single workflow violation path , and hence 
single point of forward, you can start your own subworkflows(secondary workflows) so 
that the same can be used like bookmarks/savepoints in a workflow.And this is the 
exact situation you are looking for.

Install and have a look at the test application .It will help you to understand how to 
define and use secondary workflows .

I am working on rearchitecting the workflow so that more flexibility is possible to 
define cases like you said...
Hope I get some time to finish it ASAP.

Let me know if you need any more help..

Regards,
Shirish.





-Original Message-
From: Wood, Derek (DIS Contractor) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 6:20 PM
To: '[EMAIL PROTECTED]'
Subject: [struts workflow extension] Workflow Violation Help


I have everything working using the Struts Workflow 
extension except that I am having problems with the 
workflow violation mechanism. 

I have a wizard consisting of 6 pages. The workflow 
through the entire 6 pages is assigned a single primary 
workflow value. So, I made one violation mapping to 
handle violations. 

What I want to happen is when the workflow is violated, 
I want the user to be sent back to the wizard page they 
were currently on (ie. page 4) and have a message on 
that page saying the violation. I can't seem to figure 
out how to get the user back to the page they were on ... 
given that I have only one workflow/violation defined. 

Thank you. 

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



RE: struts workflow extension: help on workflow violation handling

2004-04-11 Thread Satish Kataria
Hi,
There are certain things I wld want to point out:
Lets assume you have page1 ,page2 and page3 as part of wizard. Page1 has
a next button, page2 has next & back and page3 has back & submit button.

I would create a formbean which contains attributes for all the 3 pages
and define the formbean to be session scope.
Also I would create one action class and write methods for all the
actions triggered from wizard screens

Code wld be like this:

Struts-config.xml

  

  
  
  

  
  

  
  

  
  

  
  

  
  

Assuming the actions for next and back on page2 are named page2next and
page2back respectively
similarly the action names for the rest of the pages as well

The action class WizardAction wld have methods
page1next,page2next,page3submit,page2back,page3back

Hope this helps 

Thanks,
Satish
-Original Message-
From: Derek [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 2:14 AM
To: [EMAIL PROTECTED]
Subject: struts workflow extension: help on workflow violation handling


I need some guidance and/or an example of how to achieve this...

I have a multi-page wizard that uses a form bean (in the session) per
page.  "Next" and "Back" buttons submit to the same Action which is
necessary to save all data entered into the form beans.  On a workflow
violation, I want the user to remain on the same wizard page that they
were on and just display a message about the violation.  It seems that
when any violation occurs, no matter which page the user is on, the
violation "handler" is called, the data in the session is removed and
all workflows and states are removed.  When running the demo
application, it seems that the behavior is what I want but I can't seem
to duplicate it in my application. Any help would be greatly
appreciated.  derek


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


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