This Merge Request contains enhancements transformation for WKS relationship.
Raw records maintain relationships with other entity records using relationship blocks. This relationship should also be maintained for WKS records. We expect relationship block to have standard schema as defined in wks\wks-core\src\main\resources\schema\OneToManyRelationship.json and wks\wks-core\src\main\resources\schema\OneToOneRelationship.json.
If WKS record not found for related raw record id then pending status will be maintained in datastore.
This datastore will be in user tenant.
WKS Status Store:
Datastore columns for maintaining pending status for relationship
|Id of raw record that is being transformed
|version of raw record
|MappingId used for transformation
|Id of generated WKS record
|Relationship mapping pending
|comma separated list of entities for which relationship is pending
|comma separated list of raw ids for which relationship is pending
|Date at which relationship mapping last attempted
Please check flow diagram for WKS relationship block transformation