| ||
![]() |
Flow Process | |
|
This article explains the order the various elements of Flow are called.
Process1. Entry Pipeline calls JS function 2. (optional) JS function loads data 3. JS function calls DisplayForm pipeline 4. DisplayForm Pipeline sends page to visitor 5. Visitor submits page 6. Continuation Pipeline returns to JS 7. JS validation, loop to #3 if necessary 8. JS saves data 9. JS calls Exit Pipeline 10. Exit Pipeline sends confirmation to visitor XMAPResource for finishing forms: <map:resource name="form-finish">
- FormFixer is available here. - forms-samples-styling.xsl is from Cocoon's Forms Block. Copy the Where is JavaScript code: <map:flow language="javascript">
Continuation Pipeline <map:match pattern="**/*_*.more">
Entry pipeline: <map:call function="myFunction"/>
DisplayForm pipeline: <map:match pattern="displayform">
Exit pipeline <map:match pattern="success">
JavaScript "code.js"cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
|