# Additional key/value attributes field for GenericItem

**URL:** <https://community.openhab.org/t/additional-key-value-attributes-field-for-genericitem/48037>\
**Category:** Runtime\
**Created:** [July 19, 2018, 2:47am UTC](https://community.openhab.org/t/additional-key-value-attributes-field-for-genericitem/48037 "2018-07-19T02:47:10Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![5iver](https://community.openhab.org/user_avatar/community.openhab.org/5iver/32/21201_2.png) [@5iver](https://community.openhab.org/u/5iver)\
**Post date:** [October 16, 2018, 1:37am UTC](https://community.openhab.org/t/additional-key-value-attributes-field-for-genericitem/48037/11 "2018-10-16T01:37:12Z")

</div>

> [@yfaway](#):
>
> I am finding that as the rules get more complicated, the lack of code re-usability support in Xtend really hinders the development effort

If you haven’t you may want to take a look at this…

> [@Simplified Jython rule definition (similar to Rules DSL) using a universal decorator](https://community.openhab.org/t/jsr223-jython-simplified-rule-definition-similar-to-rules-dsl-and-universal-decorator/53252):
>
> I’ve pushed a major update to the [openhab-scripters](https://github.com/openhab-scripters/openhab-helper-libraries) repo, with a number of changes to the openhab.triggers module, openhab.rules module, and updated the documentation. The biggest changes are a new rule decorator and a single unified trigger decorator that will work for (almost) all of the triggers available in the Rules DSL, and the trigger definitions should look familiar… from openhab.rules import rule from openhab.triggers import when @rule("This is the name of a test rule") @when("Item Te…

---

_[View the full topic](https://community.openhab.org/t/additional-key-value-attributes-field-for-genericitem/48037)._
