Table of Contents

Missing event key property

During the creation of an Event Strategy rule, the following error is displayed:

Invalid event key. Please choose from available properties.

Cause

The event strategy is created in the class that contains inherited properties only or that does not contain any properties.

Event keys in Event Strategy

Event keys in Event Strategy rules

Solution

You can choose the event key only from the properties of the event strategy class, without the inherited properties. Therefore, each time you create a class for event strategies, you must create at least one property in that class to eliminate this error. Perform the following steps to create a property that you can select as the event key for your event strategy class.

  1. In the Applications Explorer, navigate to the data class that contains the event strategy for which you want to add a property that will be your event key.
  2. Expand the Data Model list.
  3. Right-click Property and click +Create.
  4. Specify the Label, Identifier, and the context of the property rule.
  5. Click Create and open.
  6. Configure the Property form to define the format and type of data that is stored in the property. For more information, see Properties: Completing the Create, Save As, or Specialization form.
  7. Click Save.
Suggest Edit

100% found this useful


Related Content

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.