1. How does one access the flowscript objects from a site map? In my pipeline I use a selector to check my request parameter and branch to appropriate logic for serializing into certain formats. ie. normal pages(with navigations), pop-ups(w/o navigations), pdfs and printer version I want to replace the request parameter usage with a flow parameter. Is it possible? What is the usage format?
2. Now, here is why I need it ...
If I have multiple pipelines initiated as a result of a single user URL request(ie. Wizard style forms) as in:
URL: /A/B/Action-1?VER=POP --> Pipelines:Form1, Form2 and Form-Finished
I've noticed that the request queryString from the original URL request is not available to the pipeline processing the form 'Form-Finished'(the Form2's continuation became the URL for the Form-Finished pipeline). So the solution I resorted to was to extract the queryString in my flow and allow it to be accessed from the site map.
TIA
-Yatin


<map:pipeline internal-only="true">

     <!-- This is used for non-popup cocoon forms (like login) -->
     <map:match pattern="XMLcollector" >
        <map:generate type="jx" src="cocoon:/custom-jxt/XMLcollector.jxt"/>

        <!-- I Want to use the flow parameter here in the selector.
              Currently request parameter VER=POP|PRT|PDF|XML is used.
           -->
        <map:select type="request-parameter">
           <map:parameter name="parameter-name" value="VER"/>

<map:when test="POP" >
<map:transform src="cocoon:/custom-xsl/popup_xml2html.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="queryString" value="{request:queryString}"/>
<map:parameter name="requestURI" value="{request:requestURI}"/>
</map:transform>
<map:serialize/>
</map:when>


<map:when test="PRT" >
<map:transform src="cocoon:/custom-xsl/printer_xml2html.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="queryString" value="{request:queryString}"/>
<map:parameter name="requestURI" value="{request:requestURI}"/>
</map:transform>
<map:serialize/>
</map:when>


<map:when test="PDF" >
<map:transform src="cocoon:/custom-xsl/xml2fo.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="queryString" value="{request:queryString}"/>
<map:parameter name="requestURI" value="{request:requestURI}"/>
</map:transform>
<map:serialize type="fo2pdf"/>
</map:when>


           <map:when test="XML" >
              <map:serialize type="xml"/>
           </map:when>

<map:otherwise>
<!-- map:when test="normal" -->
<map:transform src="cocoon:/custom-xsl/normal_xml2html.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="queryString" value="{request:queryString}"/>
<map:parameter name="requestURI" value="{request:requestURI}"/>
<map:parameter name="serverName" value="{request:serverName}"/>
</map:transform>
<map:serialize/>
</map:otherwise>
</map:select>


</map:match>

--
Yatin Shah, President                       mailto:[EMAIL PROTECTED]
Kripa Inc.                                  http://www.kripa.com
Dayton, New Jersey USA                      phone:  732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications



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



Reply via email to