Store Key/Value pairs

I wrote a DP for this option. Design Pattern: Using Item Metadata as an Alternative to Several DPs

If you are using rule variables, you should be using the storeStates and restoreStates Actions instead of writing the code to pull and restore the Item’s states yourself.