Customization of amPushMapping for new Model Hierarchy Data push
We have requirement where we need to introduce a new model hierarchy during the AM Push from uCMDB.
Currently the AMPushMapping is pushing model and its Parent Model where in Model has operation type as operation-type="insert_else_reference" and Parent Model has operation-type="reference-only". Which mean AM Push can create the model if doesn't exists but Parent Model should exists and this value is hard coded in AM Push groovy function.
Now we need to push model with 3 level hierarchy.
While pushing the model, AMPush can create Model and Model.Parent but it can only reference the Model.Parent.Parent
Model.Parent.Parent values are hardcoded in AMPush groovy and they exists in Asset Manager.
Model - insert or reference
Model.Parent - insert or referfence
Model.Parent.Parent - reference
While with the changes, when we push the 3 level Model data to AM, we are getting circular dependency error.
Can anyone suggest how to push 3 level model hierarchy from uCMDB to Asset Manager.
Below are the AMPush configuration for 3 level Model Hierarchy.