Topic
  • 1 reply
  • Latest Post - ‏2013-02-15T14:22:47Z by SystemAdmin
SystemAdmin
SystemAdmin
6772 Posts

Pinned topic Question about Fan-in / Fan-out

‏2013-02-13T21:51:41Z |
I am trying to figure out the best way to do a fan-in/fan-out. I have to make 2 requests to the same url but calling different operations. I've seen this article but I can't figure out how to call 2 different operations using this solution: Thanks in advance for any help.

<xsl:variable name="resultsList">
<results mode="require-all" multiple-outputs="true">
<url>http://127.0.0.1:3888/test</url>
<url>http://127.0.0.1:3888/test</url>
<url>http://127.0.0.1:3888/test</url>
</results>
</xsl:variable>
<dp:set-variable name="'var://context/uservars/resultURLs'" value="$resultsList"/>

The Results action Destination is then set to var://context/uservars/resultURLs.

In a stylesheet run after the Results action, you can aggregate the Results:

<output>
<xsl:copy-of select="dp:variable('var://context/OUTPUT_1')" />
<xsl:copy-of select="dp:variable('var://context/OUTPUT_2')" />
<xsl:copy-of select="dp:variable('var://context/OUTPUT_3')" />
</output>
Updated on 2013-02-15T14:22:47Z at 2013-02-15T14:22:47Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: Question about Fan-in / Fan-out

    ‏2013-02-15T14:22:47Z  
    I figured it out.