displayState in ECMAScript rule

Hi,

I want to get access to an item’s displayState within a rule. Is there an API for this?

item.getStateDescription().getOptions()

… gives at least all mappings defined. With this one can filter the right mapping and apply it.