Processing Reverse Relationships (Optional Step)

By default, the workflows are set up to process forward relationships (for example: A contains B, B contains C, C contains D).

In case you have reverse relationship hierarchies (for example, A contained by B, B contained by C, and so on), you need to make some changes to process reverse relationships so that data is propagated correctly from BrandOwner to Marketplace and Bottlers.

Procedure

  1. Change to the wfin26cim2cimsyncV1.xml Workflow. You can use this workflow for CIM to CIM synchronization.
    1. Open the $MQ_COMMON_DIR/standard/workflow/wfin26cim2cimsyncV1.xml file.
      Search for the following section:
<!--  Sample transition to flip the root of bundles --> 
 <!-- Transition    FromActivity="HandleRecordCollectionForFlipDecision"    ToActivity="ManageRecordCollectionForFlip">
     <Description>If the Rulebase Selection Business Process Rule      is set, only then transition to ApplySynchRuleBase and Spawn      Publish Workflow</Description>
       <Rule>
         <Parameter name="Rulebase" type="string" eval="rule"          source="Rulebase Selection"                    direction="in">inDoc</Parameter>
                <Parameter name="result" type="boolean" direction="out"/>
                  <Condition format="bsh"><![CDATA[
                      result =  (Rulebase != null && !Rulebase.equals(""));
                  </Condition>
             </Rule>
        </Transition>
        <Transition FromActivity="ManageRecordCollectionForFlip"  ToActivity="ApplySynchRuleBase"/
        -->
    2. Uncomment this section (commented out by default) to process reverse relationships.
  2. Change to the wfin26catsourceimportv2.xml Workflow. You can use this workflow for import/load and import events.
    1. Open the $MQ_COMMON_DIR/standard/workflow/wfin26catsourceimportv2.xml file.
    2. Search for:
<Activity Name="ManageRecordCollection">
    3. Search for the RelationshipName parameter:
<Parameter direction="in" name="RelationshipName" type="string" eval="constant">Contains</Parameter>
    4. Change this from Contains to ContainedBy to process reverse relationships.
  3. Change to the wfin26catsourcev5.xml Workflow. You can use this workflow for datasource loads and import of records.
    1. Open the $MQ_COMMON_DIR/standard/workflow/wfin26catsourcev5.xml file.
    2. Search for:
<Activity Name="ManageRecordCollection">
    3. Search for the RelationshipName parameter:
<Parameter direction="in" name="RelationshipName" type="string" eval="constant">Contains</Parameter>
    4. Change this from Contains to ContainedBy to process reverse relationships.
  4. Change to the wfin26prodnotifprocessv2.xml Workflow. You can use this workflow to process the incoming record messages and to save data.
    1. Open the $MQ_COMMON_DIR/standard/workflow/wfin26prodnotifprocessv2.xml file.
    2. Search for the following activities:
      • <Activity Name="GetProductInfo">
      • <Activity Name="GetProductInfo2">
    3. Add the following parameter:

      <Parameter direction="in" name="RelationshipName" type="string" eval="constant">Contains</Parameter>.