Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Need help with create CI in 2 different table using single pattern and classifier

kunalsmhatr
Tera Expert

A single Java process hosts both:

  • Oracle WebLogic Server
  • Oracle Coherence (embedded)

WebLogic CI gets created in cmdb_ci_app_server_weblogic .
i created pattern extension to create oracle coherence in generic table.

Current Behavior

When the hosting Java/WebLogic process is stopped:

  • The WebLogic CI is correctly marked as Absent.
  • The Oracle Coherence Generic Application CI remains Installed/Operational and is not marked Absent.

When the process is started again and Discovery is rerun:

  • The WebLogic CI returns to Installed status as expected.
  • The Coherence CI is rediscovered and updated (Last Discovered timestamp changes), but since it never became Absent, it remains Installed throughout the process.

    Is there any additional configuration, relationship, attribute, process linkage, correlation field, classifier, or lifecycle mechanism required for a custom Generic Application CI (cmdb_ci_appl_generic) created from a pattern extension to participate in the same absence/lifecycle handling as the parent WebLogic CI?

    Specifically, what determines whether a Generic Application CI is marked Absent when the backing discovery process is no longer present?

    Any guidance on recommended modeling or lifecycle best practices for custom application CIs created through pattern extensions would be appreciated.

    Thank you.

1 ACCEPTED SOLUTION

kunalsmhatr
Tera Expert

Thank you will try this and let you know.

View solution in original post

2 REPLIES 2

Kieran Anson
Kilo Patron

Have you configured a delete strategy?

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2493703 

 

https://www.servicenow.com/docs/r/it-operations-management/discovery/set-deletion-strategy.html

 

Although labeled as a delete strategy, an option is to mark the related CI as absent. This'll mean your extension generic CI is correctly marked as absent, but updated when rediscovered 

kunalsmhatr
Tera Expert

Thank you will try this and let you know.