Newer Version Available

This content describes an older version of this product. View Latest

Metadata Wizard

The MetadataWizard is designed as a library that can be used to build simple wizard pages that are rendered to the user based on the defined wizard metadata. This document describes the NewPromotionWizardCallable APEX Class created for providing data for the New Promotion Metadata Driven wizard.

Introduction

The MetadataWizard engine reads the wizard configuration metadata. It uses the components defined in it's repository to create the required component instances for user interaction. The MetadataWizard engine handles interactions with the wizard buttons (Submit and Cancel).

MetadataWizard execution consists of the following components:
Components Description
Wizard Metadata The configurable part of the wizard, where the various components are defined. The components are defined to render and also to interact between each other. For more information, see Metadata Definition
Result Object The final object that will be returned by the Metadata wizard after execution. Each component in the wizard sets one or more attributes into this output object. Components define where the values are set in the output object through a metadata property outputProperty.
Component Value The value that the component exposes for the wizard instance is used to achieve communication between components through the use of expressions in their metadata properties. Whenever a component value changes, it notifies the new value to the other components referencing it (using expressions). It then re-renders the values to ensure that the new metadata values are reflected.