Topic
4 replies Latest Post - ‏2013-02-09T10:14:58Z by SystemAdmin
SystemAdmin
SystemAdmin
6772 Posts
ACCEPTED ANSWER

Pinned topic Result action configuring for parallel Orchestration

‏2013-02-06T12:49:43Z |
Hi ,

I have tried to implement parallel orchestration using result action.In that i am facing a problem ,
That i need to send the specific xml node to back end but i am not able to sent it.
Always null value going to back end.but if i configure in result action input as INPUT whole xml
file going to back end.i below mention my style sheet

<xsl:template match="/">
<xsl:variable name="in1">
<req1>
<xsl:copy-of select="Request/childElement[1]"/>
</req1>
</xsl:variable>
<xsl:variable name="in2">
<req2>
<xsl:copy-of select="Request/childElement[2]"/>
</req2>
</xsl:variable>

<dp:set-variable name="'var://context/myContext/inOne'" value="$in1"/>
<dp:set-variable name="'var://context/myContext/inTwo'" value="$in2"/>

<xsl:variable name="req">
<results mode="require-all" multiple-outputs="true">
<url input="'var://context/myContext/inOne'" >http://115.119.103.38:8027</url>
<url input="'var://context/myContext/inTwo'" >http://115.119.103.38:8027</url>
</results>
</xsl:variable>
<dp:set-variable name="'var://context/myContext/hitBack'" value="$req"/>

</xsl:template>
Updated on 2013-02-09T10:14:58Z at 2013-02-09T10:14:58Z by SystemAdmin
  • kenhygh
    kenhygh
    792 Posts
    ACCEPTED ANSWER

    Re: Result action configuring for parallel Orchestration

    ‏2013-02-06T14:51:33Z  in response to SystemAdmin
    Your stylesheet doesn't actually output anything, so it's not surprising it's sending nothing to the backend.

    Ken
  • chauhan_vin1
    chauhan_vin1
    24 Posts
    ACCEPTED ANSWER

    Re: Result action configuring for parallel Orchestration

    ‏2013-02-06T18:29:01Z  in response to SystemAdmin
    The context variables Datapower uses on the input and output of any action are on the main context level.

    var://context/INPUT
    var://context/OUTPUT.

    The xml you are trying to throw out of the appliance - which I can make out with your context variable name "var://context/myContext/hitBack".
    Try to define that variable on the main context level.

    var://context/hitBack.

    then provide this variable as the input of result action.

    Thanks
    • SystemAdmin
      SystemAdmin
      6772 Posts
      ACCEPTED ANSWER

      Re: Result action configuring for parallel Orchestration

      ‏2013-02-07T06:18:42Z  in response to chauhan_vin1
      I tried that also not working.Did you try this?
    • SystemAdmin
      SystemAdmin
      6772 Posts
      ACCEPTED ANSWER

      Re: Result action configuring for parallel Orchestration

      ‏2013-02-09T10:14:58Z  in response to chauhan_vin1
      No its not taking context value