Back Forward Property form
Completing the General tab — Value modes

About Property rules

 zzz Show all 

Use this topic to complete General tab fields that appear when you create a property of mode Single Value, Value List or Value Group. For information on choosing a property mode, see Completing the General tab — Choosing a mode.

 zzz Selecting the Property Type

The Property Type determines the kind of data that values of the property represent, and can affect the format and allowable characters in the value.

NoteChoose the Property Type carefully. After save a property rule, you cannot later change the Type except in a few special cases, even if no instances or pages have a value for the property. See More about Properties.

Type

Description

Text

Select Text to allow the property to hold text strings that can contain tabs, carriage returns, and line feeds.

When you use an activity or an HTML form to set the value of the property, the value can contain any graphic characters in addition to tabs, carriage returns, and line feeds.

Use the TextProperty Type if a user may enter the value in a text area of an HTML form.

Identifier

Select Identifier to allow the property to hold text strings that form a Java identifier. Identifiers cannot contain tabs, carriage returns, and line feeds. See How to enter an identifier.

When you use an activity or an HTML form to set the value of the property, the value can consist only of legal graphic characters.

Password

Select Password to allow the property to hold a password.

The values of properties with this Property Type are always encrypted when stored in the database. When on the clipboard, the values may appear as clear text (not encrypted), until the page containing the property is validated.

The value can contain only legal graphic characters. Tabs, carriage returns, and line feed characters are not allowed.

NoteDon't confuse the Password type with the TextEncrypted type, which has encrypted values even when on the clipboard; clear text values are visible only if a Rule-Access-When rule evaluates to true. See Implementing and using the TextEncrypted type.

NoteYou can prevent any text field from echoing when typed into an HTML form using the PASSWORD input type:

<INPUT TYPE="PASSWORD" NAME=...>

This HTML does not cause any encryption. This native HTML feature is not related to the Password Type.

Integer

Select Integer to allow the property to hold an integer.

When you specify the value in your later configuration, use any sequence of digits for the value. You can precede the digits with a plus sign (+12) or a minus sign (-12).

Double

Select Double to allow the property to hold a 64-bit floating point value.

Decimal

Select Decimal to allow the property to hold a decimal quantity.

Your property rule can reference the standard property qualifier named pyDecimalPrecision to fix the number of digits the system keeps after the decimal position in values of this property.

DateTime

Select DateTime to allow the property to hold a UTC (Coordinated Universal Time) value. The value is essentially the same as Greenwich Mean Time (GMT), used for the synchronization of computers on the Internet.

Internally, a DateTime value is stored in the format YYYYMMDDTHHMMSS.QQQ GMT where T and GMT are literal characters, YYYY represents a year, MM is a month, DD is a day, HH is an hour value between 00 to 23, MM is a minute value between 00 and 59, SS is a second value between 00 and 59, and QQQ is a millisecond value between 000 and 999. See Understanding the Date, Time of Day, and DateTime property types for more about this type.

Users need not enter DateTime values in this format, as shortcuts and alternative entry formats are available.

Date

Select Date to allow the property to hold a calendar date. Internally, a date is stored as an eight-digit text value, in the format YYYYMMDD. For example 20071123 represents November 23, 2007. No time zone is implicitly associated with a Date.

Application users are not required to enter Date values in this format, as many shortcuts and alternative entry formats are available.

TipAs a best practice, use DateTime rather than Date for properties that are part of work objects, assignments, or other persistent objects in your application. Avoid using Date property types in persistent objects, such as work objects or assignments, even if your application is used in only a single time zone, unless a time zone value is also stored in another property of the object. See Understanding the Date, Time of Day, and DateTime property types for more about this type.

TimeofDay

Select TimeOfDay to allow the property to hold a time of day at the seconds level, not associated with a time zone.

Internally, a Time of Day value is stored as six digits in the format HHMMSS, with two digits for the hour, two digits for the minute, and two digits for the second.

For example, 000000 represents midnight and 120000 identifies noon. The value 235959 identifies the second before midnight.

Application users are not required to enter TimeOfDay values in this format, as shortcuts and alternative entry formats are available.

TipAs a best practice, use DateTime rather than TimeOfDay for properties that are part of work objects, assignments, or other persistent objects in your application. See Understanding the Date, TimeOfDay, and DateTime property types for more about this type.

TrueorFalse

Select TrueorFalse to allow the property to hold values representing true or false. When you specify the value in your later configuration, you can enter true, false, or any of these values:

  • 1, -1 or Y for true
  • 0 or N for false

A TrueorFalse property with a null value ("") can be saved into the PegaRULES database, but this is not a desirable practice. To avoid possible confusion and errors, choose a value "true" or "false" when initializing a TrueorFalse property in a model or through other means, as appropriate to the business situation.

TextEncrypted

Select this type to implement encryption for the value. See Implementing and using the TextEncrypted type.

NoteDon't confuse the TextEncrypted type with the Password type. For TextEncrypted values, clear-text values are visible only if a Rule-Access-When rule evaluates to true.

 zzzCompleting the HTML Property fields

These fields determine the presentation of the property when it appears on an HTML form. (By definition, the read-write mode is never used for special properties; only the read-only mode is relevant.)

Field

Description

HTML Property

SmartPromptOptional. For Single Value properties, identify an HTML Property rule to control the read-only presentation and read-write presentation of this property. Dozens of standard HTML Property rules are available:

  • If you leave this blank, the system uses the HTML property rule named Default.
  • Choose Default-NonNLS to use default presentations that do not reflect operator locale settings.
  • Choose PromptSelect (for a drop-down list) or RadioButtons (for a rectangular array of radio buttons) in most cases if you have completed the Table Edit area with Remote List, Local List or Prompt List as the Type of Table.
  • Choose PromptFieldValue if you have completed the Table Edit area with Field Value as the Type of Table.
  • Choose ShowTextEncryptedPropertyValue if the property Type is TextEncrypted.
  • Do not choose SmartLabel, StartSmartField, SmartInfoBehavior, SmartInfo, ListView, ListToList or Chart; these are pseudo-HTML Property rules with special, restricted use.
  • See Atlas — Standard HTML Property rules for information on selected popular choices that do not require parameters.

NoteThis field is not meaningful for Value List or Value Group properties. Leave blank.

Search

If the HTML Property rule requires parameters and you want to specify them in this Property form, click the magnifying glass icon and enter values as prompted.

When completing a Field panel (for a cell in a harness, section, or flow action rule), you can override the parameter values entered here with values that apply to that cell only.

For a list of selected popular formats that use parameters, see Atlas — Standard HTML Property rules with parameters.

 zzzCompleting the Table fields

Use the table field to define optional table edits for Single Value, Value List and Value Group properties by enumerating the values that the property can assume, or identifying a place where a list of values is available at runtime. You cannot use this tab for properties of any other modes.

After you complete this tab:

1. Set the Display Property field to

to activate the Table Edit operations.

2. Save the Property form and click the Preview toolbar button (Preview) to test the presentation and values of the property.

Table editing is part of property and page validation. If an input value for a property doesn't match the table edits, the property name and the invalid value remain on the clipboard, but during validation the system adds a message and error text to the clipboard page that contains the property. The presence of the message ordinarily prevents the system from saving the clipboard page (which contains invalid data) into the database. The message does not prevent an activity from reading or using the (invalid) property value.

zzzTable comparisons require an exact text match except for case. Use Table carefully if the Type of the property is not Identifier or Text. For example, a value of 23.0 does not match a list entry of 23.

zzzAlthough the value is compared with the table elements a case-insensitive way, the system corrects the case. For example, if the values recorded in a Local List on this tab are all lowercase, a user can enter at runtime the value in uppercase, mixed case, or lowercase letters. The system accepts a matching value but converts it to lowercase.

Field

Description

Table Type

Select None, Local List, Field Value, Class Key Value, Remote List or Prompt List:

 zzz Using the Preview toolbar button

For Single Value properties, you can preview the presentation and other aspects of the property.

Click the Preview toolbar button (Preview) to see an approximate presentation of the property as it will appear in both input and display at runtime. For properties not marked as Special, you can preview the representation of a specific value:

  1. Type or select the value in the Input: area.
  2. Click  Show output   to see the resulting display-only representation, in the Output: area.

NoteThe preview presentation does not reflect the pyMinimumLength property qualifier (when referenced on the Qualifiers tab) unless the Edit Input field contains pyMinimumLength-Enforce.

NoteYou can't preview a TextEncrypted property if your system does not include a cipher algorithm.

zzz About Property rules