Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

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.