Elastic Path Commerce Development

Enabling State Policy awareness in a UI plugin

Enabling State Policy awareness in a UI plugin

A UI Plugin's Dialogs, Editors, Wizards, and Actions can all be made state policies aware. The basic process for this is as follows:

  1. Create a Creating a State Policy extension point and add it to the plugin.xml of the plugin that needs to support State Policies.
  2. Create a State Policy aware Creating a State Policy aware UI plugin class.
  3. Create State Policy aware Creating a State Policy aware dialog and Creating a State Policy aware action.
  4. In your dialogs, Adding State Policy aware UI controls.
  5. Create Creating a State Policy Contribution to map your State Policies to State Policy Targets.