The following example creates and registers a conditional event named plugin.magento.catalog.model.resource_model.product.save_low_stock_event. Its parent is plugin.magento.catalog.model.resource_model.product.save. It defines rules that trigger when all of the conditions are true:

These fields are present and declared in the parent event.