# Missing Documentation about how to enrich custom rule

**URL:** <https://forum.shopware.com/t/missing-documentation-about-how-to-enrich-custom-rule/101130>\
**Category:** Shopware 6 (English)\
**Created:** [4. September 2023 um 13:34 UTC](https://forum.shopware.com/t/missing-documentation-about-how-to-enrich-custom-rule/101130 "2023-09-04T13:34:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.schulze1](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m.schulze1/32/21711_2.png) [@m.schulze1](https://forum.shopware.com/u/m.schulze1)\
**Post date:** [4. September 2023 um 13:34 UTC](https://forum.shopware.com/t/missing-documentation-about-how-to-enrich-custom-rule/101130/1 "2023-09-04T13:34:23Z")

</div>

Hi,  
I created a custom rule just like in this guide explained: [Add custom rules - Shopware Developer](https://developer.shopware.com/docs/guides/plugins/plugins/framework/rule/add-custom-rules) . The Rule is functioning fine but its missing its data. The rule is ran everytime inside of a flow to which its related to the „offer status change“ flow-event(coming from B2BSuite plugin).  
On this page it is (more or less) explained how to enrich the rule evauluation but there is no actual documentation about how to do so. Page here [Preparing data for rule evaluation - Shopware Developer](https://developer.shopware.com/docs/resources/references/adr/2021-11-02-preparing-data-for-rule-evaluation)

Does anyone know how to create such indexer/updater and how to access them inside of the „match()“ method inside of my rule?
