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
- Change to the wfin26cim2cimsyncV1.xml Workflow. You can use this workflow for CIM to CIM synchronization.
- 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"/ -->
- Uncomment this section (commented out by default) to process reverse relationships.
- Open the
$MQ_COMMON_DIR/standard/workflow/wfin26cim2cimsyncV1.xml file.
- Change to the wfin26catsourceimportv2.xml Workflow. You can use this workflow for import/load and import events.
- Open the $MQ_COMMON_DIR/standard/workflow/wfin26catsourceimportv2.xml file.
- Search for: <Activity Name="ManageRecordCollection">
- Search for the RelationshipName parameter: <Parameter direction="in" name="RelationshipName" type="string" eval="constant">Contains</Parameter>
- Change this from Contains to ContainedBy to process reverse relationships.
- Change to the wfin26catsourcev5.xml Workflow. You can use this workflow for datasource loads and import of records.
- Open the $MQ_COMMON_DIR/standard/workflow/wfin26catsourcev5.xml file.
- Search for: <Activity Name="ManageRecordCollection">
- Search for the RelationshipName parameter: <Parameter direction="in" name="RelationshipName" type="string" eval="constant">Contains</Parameter>
- Change this from Contains to ContainedBy to process reverse relationships.
- Change to the wfin26prodnotifprocessv2.xml Workflow. You can use this workflow to process the incoming record messages and to save data.
- Open the $MQ_COMMON_DIR/standard/workflow/wfin26prodnotifprocessv2.xml file.
- Search for the following activities:
- <Activity Name="GetProductInfo">
- <Activity Name="GetProductInfo2">
- Add the following parameter:
<Parameter direction="in" name="RelationshipName" type="string" eval="constant">Contains</Parameter>.