Back Forward Declare OnChange form
Completing the OnChange Properties tab

About Declare OnChange rules

Define the conditions that will cause this rule to be executed. Specify in an array the properties to be watched for change.

Properties, Conditions, and Action

Field

Description

Properties to Watch

This array identifies the properties that the rule tracks. Order is not significant.

(1, 2, 3...)

SmartPromptEnter the desired property references. Each property entered is monitored for changes. Identify a property on the top-level page (with a dot followed by the page name) or on a page identified by the Page Context field on the Pages & Classes tab.

NoteIf you list more than one property, they must be on the same page, either the top-level page or a common embedded page.

NoteIf you list more than one property, when two or more of the properties change value (for example, within a single step of an activity) this OnChange activity runs only once.

NoteStart each property reference with a dot. You can't reference a property on a page other than the page corresponding to the Applies To key part of the rule or on a page identified by the Page Context field on the Pages & Classes tab. B-17657 MIRAT 7/11/06

Conditions  
When

SmartPromptOptional. Identify a when condition rule to be evaluated at the time a property value changes. B-19720 Resave

The system uses the Page Context value on the Pages & Classes tab (if not blank) as the Applies To key part of the when condition rule. If the Page Context value is blank, the system uses the Applies To key part of this OnChange rule. B-3306

Alternatively, you can enter a simple Boolean expression here, for example in one of these formats:

property = "constant value"
property1 > property2

Don't use a complex Java expression or an expression that calls a function here. STEWSTrue?

When this OnChange rule used to suspend work object processing, this when condition is known as the business exception.

Choose Action...  
Choose Action

SmartPromptSelect: C-2377

On Change Activity and Else Activity

Complete these fields when you select Activity in the Choose Action field.

Field

Description

OnChange Activity  
Activity

SmartPrompt Enter the Activity Name key part of an activity to execute when any of the specified properties change (and the test in the When field evaluates to true). Choose an activity with an Activity Type of OnChange (recorded on the Security tab). If the activity has input parameters, click  Params   to enter literal constant values for them.

The system uses the Page Class value on the Pages & Classes tab (if not blank) as the Applies To key part of the activity. If the Page Context value is blank, the system uses the Applies To key part of this OnChange rule. B-3349, B-3306

See More about Declare OnChange rules for more about the activity.

Else Activity C-2377
Else Activity

SmartPrompt Optional. Enter the Activity Name key part of an activity to execute when any of the specified properties change and the test in the When field evaluates to false. Choose an activity with an Activity Type of OnChangeB-19979 (recorded on the Security tab). If the activity has input parameters, click  Params   to enter literal constant values for them. C-2377

See More about Declare OnChange rules for more about the activity.

Suspend Section

Complete these fields when you select Suspend Work Object in the Choose Action field. C-2377 See Understanding policy overrides and suspended work objects.

Field

Description

Suspend Section  
Policy Override Flow to run

SmartPrompt Enter the Flow Type key part of a flow to execute to support review of the suspended flow. Ensure that the flow meets the requirements listed in How to implement business exception processing with policy overrides.

Error message

SmartPrompt Enter the third key part of a field value rule with first key part @baseclass and second key part pyMessageText, or enter literal text between double quotes to identify this source of policy override reviews.

Up About Declare OnChange rules