I have created a custom pipeline in a Foundation level Helix module. At the moment it has a single processor which can have multiple parameter configuration elements.
In my project layer, I want to patch this configuration to supply a new set of parameters for the existing pipeline. For some reason only the last parameter is getting patched.
Foundation module config:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<getCustomTaggingPageData>
<processor type="Acme.Foundation.Tagging.Pipelines.GetUserProfileData, Acme.Foundation.Tagging">
<variablesMapping hint="raw:AddMapping">
</variablesMapping>
</processor>
</getCustomTaggingPageData>
<getCustomTaggingEventData>
</getCustomTaggingEventData>
</pipelines>
Project module config:
<configuration
xmlns:patch="http://www.sitecore.net/xmlconfig/"
xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<sitecore>
<settings>
<pipelines>
<getCustomTaggingPageData>
<processor type="Acme.Foundation.Tagging.Pipelines.GetUserProfileData, Acme.Foundation.Tagging">
<variablesMapping hint="raw:AddMapping">
<mapping variableName="[ui:LoggedStatus]" profileProperty="Core:LoggedStatus" />
<mapping variableName="[ui:User]" profileProperty="Core:User" />
<mapping variableName="[ui:Email]" profileProperty="Core:EmailId" />
<mapping variableName="[ui:Gender]" profileProperty="{0AE264FA-8D8F-48BC-8AC3-18B7F54F0DB9}" conditionalValue="mr?m:f" />
<mapping variableName="[ui:PostalCode]" profileProperty="{D6BA91E2-F7E4-45CC-8FBB-25C2193536AE}" />
<mapping variableName="[ui:City]" profileProperty="{05665E10-F5E6-4CD3-8159-B682D7972936}" />
<mapping variableName="[ui:Birthday]" profileProperty="{A465D2A8-3866-4BCC-8352-A106F8C58A92}" dataType="System.DateTime" formatString="yyyy" />
</variablesMapping>
</processor>
</getCustomTaggingPageData>
</pipelines>
</sitecore>
</configuration>
Output from ShowConfig.aspx
<getCustomTaggingPageData patch:source="Foundation.Tagging.config">
<processor type="Acme.Foundation.Tagging.Pipelines.GetUserProfileData, Acme.Foundation.Tagging" patch:source="Sitecore.Project.Overrides.config">
<variablesMapping hint="raw:AddMapping" patch:source="Sitecore.Project.Overrides.config">
<mapping variableName="[ui:Birthday]" profileProperty="{A465D2A8-3866-4BCC-8352-A106F8C58A92}" patch:source="Sitecore.Project.Overrides.config" conditionalValue="mr?m:f" dataType="System.DateTime" formatString="yyyy"/>
</variablesMapping>
</processor>
</getCustomTaggingPageData>