Topic
No replies
SystemAdmin
SystemAdmin
6772 Posts
ACCEPTED ANSWER

Pinned topic Datapower Fan-In Fan-out

‏2013-02-12T22:03:39Z |
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:

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