In Java Pet Store Application there is some mention about workflow .Why can't we just follow it  ?
Here is what they do ? from requestMapping.xml ( similar to our struts-config.xml input mapping)
 
<request-mappings>
<screen definitions  .../>           
 <url-mapping url="/verifysignin" screen="SIGN_IN_SUCCESS" useRequestHandler="true" useFlowHandler="true">
            <request-handler-class>com.sun.j2ee.blueprints.petstore.control.web.handlers.SigninHandler</request-handler-class>   
                <flow-handler class="com.sun.j2ee.blueprints.petstore.control.web.handlers.SigninFlowHandler">
                    <handler-result result="2" screen="SIGN_IN_ERROR"/>
                    <handler-result result="1" screen="SIGN_IN_SUCCESS"/>
            </flow-handler>
</url-mapping>
 
</request-mapping.
       

Then use the DOM parser to parse it . I have not seen how in struts the work-flow is handled ? Or is it similar to above :-)
 
Suhas
 
----- Original Message -----
Sent: Tuesday, July 24, 2001 5:54 AM
Subject: Workflow impasse? New ideas.

Hello all.  I just got back and was reading the e-mails about workflows.  By the tone and lack of dialog I think that we are not sure how we really want to design workflows still.  So lets have more discussion on the subject.  When its clearer we will better know what we want to do.
 
Here are some ideas I thought could break down the problem a little more.  I was thinking that a workflow can be described in the following ways:
 
1) It has a specific order
2) It DOES'NT having a specific order
3) It has a combination of tasks, some of which need to be executed in order, and others that do not
4) All of its tasks must be finished at the end
5) It May be made up of other worklflows
 
Therefore, you would get a workflow with the characteristics you want.  At the end you would make sure all tasks have been done in order it to be considered a completed workflow.  For items that need order we can use the struts config file to put an entry in for
<workflows>
     <flow name="createAccount" class="com.brooksbrothers.workflows.Account_WF">
          <step ordered="yes" number="1" class="com.brooksbrothers.workflows.AccountPersonal_ITEM">
          <step ordered="yes" number="2" class="com.brooksbrothers.workflows.AccountCreditCheck_ITEM">
          <step ordered="no" class="com.brooksbrothers.workflows.AccountDisplayTotal_ITEM">
     </flow>
</workflows>
 
anyone want to add....

Reply via email to