How to Prevent CMDB CI Business Application relationships being created where there is a Parent?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi, I want to prevent a relationship from being created when either the upstream OR downstream business application is a parent.
The relationships I want to prevent from being created are:
- Critically dependent on::Critically used by
- Non-critically dependent on::Non-critically used by
How can this be achieved?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Greetings @Kiran_25.
This sounds like you will need a Business Rule created for any Insert operation on the CI Relationships table [cmdb_rel_ci]. Are those out-of-the-box Relationship types? When I open my Personal Developer Instance (PDI), I do NOT see either of those options as available.
When to run:
Please note that even those the top two lines in the Condition Builder say "Class", they are separate conditions with one being "Parent.Class" and the other being "Child.Class". If at first you are NOT able to dot-walk in these fields, type in "Show Related Fields" then try dot-walking again. Since I was NOT able to locate the Types that you provided above, I am using two random Types in my example below. Please replace with the ones that meet your need.
Actions:
Here you will have two options. You can set a custom message to display whenever this relationship type is attempted and, most importantly, you can abort the save operation when "Abort action" is checked.
As always, I hope this information is useful and always interested in hearing what others have to say. A word of caution that it may be unwise to create new Business Rules on this table given how many records are usually active at any given time for an organization and this could lead to performance issues.