Skip to Content
0
Former Member
Oct 15, 2014 at 09:21 AM

Using Include atom

170 Views

Hi everybody

I wanted to create something like a sub-process within my bizflow using Include atom. As far as I'm concerned no special preparation should be made to neither my 'outer' nor to 'inner' scenario steps. But... what is the proper way to configure inbound channel for included step? I managed to use it when I set Void and Timer to some strange and unlikely date (like year 3000).

The other problem that I encountered was an error after the execution of the 'outer' flow: "Error in scenario step: Multiple receiver segments". Again I found a workaround but it's rather quick-and-dirty: I added a new transformation atom right after Include and the modified default part of the template of this atom to remove 'R' payload, i.e. receiver segment from my 'inner' step:

<xsl:template match="/">
    <Msg xmlns="urn:com.sap.b1i.vplatform:entity">
      <xsl:copy-of select="/vpf:Msg/@*"></xsl:copy-of>
      <xsl:copy-of select="/vpf:Msg/vpf:Header"></xsl:copy-of>
      <Body>
        <xsl:copy-of select="/vpf:Msg/vpf:Body/*[not(self::vpf:Payload[./@Role=&apos;R&apos;])]"></xsl:copy-of>
        <Payload Role="X" id="{$atom}">
          <xsl:call-template name="transform"></xsl:call-template>
        </Payload>
      </Body>
    </Msg>
  </xsl:template>


I guess that's not the best solution but the only one that I got so far.

Unfortunately I couldn't find anything about it on the Internet and in B1iF's docs.

Kind regards,

Radek