You are here: Designer Studio > How to... > How to enter a Java identifier

  How to enter a Java identifier

Use the following guidelines when you type a Java identifier into a rule form, user form, or other form:

Pega 7 Platform uses Java identifiers in generated Java code. Java identifiers in Pega 7 Platform are similar to traditional Java language identifiers, except that Java identifiers that are key parts of an object are limited to 128 characters, or less.

Even though in some cases other formats might be accepted, follow these guidelines to avoid problems. Pega 7 Platform converts any characters other than letters and numbers to an underscore character, which might cause unintended duplicates.

The following features require Java identifiers:

Activities (Rule-Obj-Activity)

Collections (Rule-Declare-Collection)

Connect rules (Rule-Connect-*)

Data transform rules (Rule-Obj-Model)

Edit input rules (Rule-Edit-Input)

Edit validate rules (Rule-Edit-Validate)

Rule types derived from Rule-Stream, including HTML, HTML fragment, XML, Harness, Section, Property, Paragraph and Flow Action

Function rules (Rule-Utility-Function)

Libraries (Rule-Utility-Library)

Map values (Rule-Obj-MapValue)

Sections (Rule-HTML-Section)

Service rules (Rule-Service-*)

Property values

To restrict a Single Value property to hold only Java identifier values:

Standard function

In an expression, call the standard function rule ValidateJavaIdentifier( ) to test whether a property contains a valid Java identifier.

Related topics Choosing good rule and data instance names

Technical category