Highlighted
Valued Contributor.. Valued Contributor..
Valued Contributor..
426 views

How to delete old link by enrichment rule ?

Hi,

I try to automate links between Node and Organization (as owner). My Node has Ownercode that filling by third system. And I can create rule to link Node and Organization. But when Ownercode changed it create second relation. And I am stack - how to delete previous relation in that case ?

0 Likes
2 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: How to delete old link by enrichment rule ?

Hello Alexey,

I think there is no way to do such automatization in just one enrichment rule. You have to create additional enrichment rule to find wrong relations and delete them. I understand that this solution looks like a workaround, if you need more pretty solution you can use UCMDB API to do what you need within one iteration.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: How to delete old link by enrichment rule ?

I agree with Dmitry.

We did many of such enrichments in the past. One important thing with enrichments:
make sure after the enrichment took place it should not meet the requirements to enter the same enrichment again..
Otherwise your ucmd lacks in performance.

For overcoming this we always add additional CI attribute (stringlist) "enrichment_state".
Then we add a value in the enrichment "link added" and exclude from enrichment query..

Hope this is clear.. 😉
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.