<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Setting grouping dynamically for general splitter in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaa-p/12175712#M4553349</link>
    <description>&lt;P&gt;Hi Bram,&lt;/P&gt;&lt;P&gt;You cannot use a property in grouping field of Splitter, that means you can not set the grouping dynamically.&lt;/P&gt;&lt;P&gt;But yes you can externalize or parameterize the grouping field but that doesn't make it dynamic.&lt;/P&gt;&lt;P&gt;You can try out the following approach but please do test it properly for perfromance:&lt;/P&gt;&lt;P&gt;1. Add a property with name &lt;STRONG&gt;grouping_number&lt;/STRONG&gt; in content modifier and take its value from the payload during runtime.&lt;/P&gt;&lt;P&gt;2. Add multiple copies of Splitter where you hardcode the grouping numbers like &lt;STRONG&gt;Splitter1 with grouping 2, Splitter2 with grouping 4, etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. Add a &lt;STRONG&gt;Router &lt;/STRONG&gt;before your Splitters and based on the &lt;STRONG&gt;grouping_number&lt;/STRONG&gt; property value direct it to the appropriate Splitter path. &lt;STRONG&gt;For Example&lt;/STRONG&gt; if grouping_number = 2 then a router should execue the path of Spliterr1 where grouping is 2, if grouping_number = 4 then a router should execute the path of Spliterr2 where grouping is 4, so on and so forth.&lt;/P&gt;&lt;P&gt; Please let me know if this works.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2020 21:36:04 GMT</pubDate>
    <dc:creator>sunny_kapoor</dc:creator>
    <dc:date>2020-04-10T21:36:04Z</dc:date>
    <item>
      <title>Setting grouping dynamically for general splitter</title>
      <link>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaq-p/12175711</link>
      <description>&lt;P&gt;I have an integration in which I want to divide the incoming message load to max. 10 groupings and process them in in parallel. Currently, I'm looking at the general splitter parallel processing options. What I want to do is to set the grouping parameter dynamically so that we always end up with max. 10 groupings of messages.&lt;/P&gt;
  &lt;P&gt;My question is whether it is possible to parameterize the grouping parameter of the general splitter. I cannot find information in the documentation. &lt;/P&gt;
  &lt;P&gt;If there's an alternative solution for this please let me know as well.&lt;/P&gt;
  &lt;P&gt;Thanks in advance!&lt;/P&gt;
  &lt;P&gt;Bram&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 08:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaq-p/12175711</guid>
      <dc:creator>former_member537554</dc:creator>
      <dc:date>2020-04-10T08:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setting grouping dynamically for general splitter</title>
      <link>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaa-p/12175712#M4553349</link>
      <description>&lt;P&gt;Hi Bram,&lt;/P&gt;&lt;P&gt;You cannot use a property in grouping field of Splitter, that means you can not set the grouping dynamically.&lt;/P&gt;&lt;P&gt;But yes you can externalize or parameterize the grouping field but that doesn't make it dynamic.&lt;/P&gt;&lt;P&gt;You can try out the following approach but please do test it properly for perfromance:&lt;/P&gt;&lt;P&gt;1. Add a property with name &lt;STRONG&gt;grouping_number&lt;/STRONG&gt; in content modifier and take its value from the payload during runtime.&lt;/P&gt;&lt;P&gt;2. Add multiple copies of Splitter where you hardcode the grouping numbers like &lt;STRONG&gt;Splitter1 with grouping 2, Splitter2 with grouping 4, etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. Add a &lt;STRONG&gt;Router &lt;/STRONG&gt;before your Splitters and based on the &lt;STRONG&gt;grouping_number&lt;/STRONG&gt; property value direct it to the appropriate Splitter path. &lt;STRONG&gt;For Example&lt;/STRONG&gt; if grouping_number = 2 then a router should execue the path of Spliterr1 where grouping is 2, if grouping_number = 4 then a router should execute the path of Spliterr2 where grouping is 4, so on and so forth.&lt;/P&gt;&lt;P&gt; Please let me know if this works.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaa-p/12175712#M4553349</guid>
      <dc:creator>sunny_kapoor</dc:creator>
      <dc:date>2020-04-10T21:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting grouping dynamically for general splitter</title>
      <link>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaa-p/12175713#M4553350</link>
      <description>&lt;P&gt;Hi Sunny Kapoor,&lt;/P&gt;&lt;P&gt;Thanks for your answer! I decided to write a groovy script to be able to dynamically change the number of groups. This solution gives more flexibility in tuning processing. I shared my solution in &lt;A href="https://blogs.sap.com/2020/05/15/improve-parallel-processing-by-splitting-messages-on-number-of-groups"&gt;this blog&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Thank you for helping out!&lt;/P&gt;&lt;P&gt;Bram&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 07:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaa-p/12175713#M4553350</guid>
      <dc:creator>former_member537554</dc:creator>
      <dc:date>2020-05-15T07:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting grouping dynamically for general splitter</title>
      <link>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaa-p/12175714#M4553351</link>
      <description>&lt;P&gt;Thank you Bram for the update and sharing your knowldege in the blog post.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 07:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/setting-grouping-dynamically-for-general-splitter/qaa-p/12175714#M4553351</guid>
      <dc:creator>sunny_kapoor</dc:creator>
      <dc:date>2020-05-15T07:46:44Z</dc:date>
    </item>
  </channel>
</rss>

