Does Discovery bypass Business rules on cmdb_rel_ci table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2019 12:47 AM
Hello Community,
We tried to amend some discovered MS SQL DBs on the fly by copying Version from the parent MSFT SQL Instance. We tried to achieve this by a Business Rule triggered when the relationship between the two is created. When creating relationships manually the BR runs but it does not seem to trigger when Discovery creates them. I then tested on very generic BR triggering on ANY cmdb_rel_ci insert and apparently this does not trigger either.
Does Discovery switches off/bypass BR (when creating relationships specifically)?
I am very fresh in ServiceNow development area so I might have missed some obvious thing...
Thanks in advance!
- Labels:
-
Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2019 02:11 AM
Hi,
The gr.setWorkflow(false) switches off the BR for the first relationship (type 1a9cb166f1571100a92eb60da2bce5c5) but has no effect on the second relationship (type 25242fb2377a9200738d021a54990e88). This was intentional to check how setWorkflow(false) works.
But my original query was about Discovery and BR not triggering when it creates relationships. Despite I did not find any code specifically switching off workflow (setWorkflow(false)) in the Discovery+relationships context I cannot see a trace of my simple BR in the system logs so I believe Discovery somehow bypass my BR.
If you could check in your PDI and confirm/correct my findings it would be great!
Thank you!
Marek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2021 02:34 PM
Hi Marek,
I am also facing similar issue. The business rule created on Relationship table (cmdb_rel_ci) does not gets triggered during the discovery run.
Were you able to find fix this issue. Appreciate if you could help.
Thanks and Regards,
Anil Kumar M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2021 09:24 AM
Hi Anil Kumar,
No, I used some workaournd to do what I wanted then but did not implement Discovery since Madrid.
Best regards,
Marek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2021 02:36 PM
Hi Marek,
Were you able to fix?
Thanks and Regards,
Anil Kumar M