We have configured a business rule for CMDB table. How to check whether it is working ?

Sofiya1
Tera Contributor

Hi Experts,

I have configured a business rule for CMDB to set the status value as In Service when the discovery date is last one month in test environment. currently, there is no data for the applied filter conditions but I need to check whether it works or not. Shall we manually change the values and test it ? will it work? please suggest a solution for this.

Thanks and Regards,
Sofiya.

3 REPLIES 3

SebastianKunzke
Kilo Sage
Kilo Sage

Hi Sofiya,

If I understand you correctly, you want to change the operation status, when the device was not discovered within the last month. Therefor a business rule will probably not work, because a business rule runs on update or insert. In case you didn't discover the device, it will not be updated.

To fulfill that requirement I would create a scheduled flow or job, that is triggered regularly and will set the status.

You could test it with modifying the discovery date or with reducing the parameter. And afterwards you start the scheduled job.

Hope it helps, regards

Sebastian

Hi Sebastian,

Thanks for your time for looking into my question. Let me brief my requirement.

Business rules is configured with below conditions, If an entry is inserted or updated- if most recent discovery is last 60 days and current status is not found and class is computer then the status values must be automatically set to In Service.

Why do business rules will not work here? If we need to Create a scheduled flow or job for this condition what are the steps? It would be great if you please help me to sort out this issue.

Thanks in Advance,

Thanks and Regards,
Sofiya Perumal.

Hi Sofiya,

I guess we have a clear misunderstanding. 

I understood your first post, that you want to change the status, when it was not found in the last 60 days.

So your way to go for your requirement is correct. I would test it with a device, which you could discover over your test system. Set the status to not found. In this case the business rule should run and set the status back. If you can not discover a device on your environment just set the date and the status to the condition of your business rule.

Hope that helps, please forget about my first answer. It was more the solution to set the status to not found 😉

Kind regards

Sebastian