Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Property-Map-DecisionTable method

Updated on August 16, 2022

Use the Property-Map-DecisionTable method to evaluate a decision table and save the result as the value of a property.

In the Diagram tab of a flow rule, a decision shape can reference a decision table.

Parameters

This method has three parameters:

ParameterDescription
PropertyName Optional. Select or enter a target property to contain the results of the decision table evaluation. Enter a property name or property reference to a single value. (You can't use a local variable.)

Leave blank when the Allowed to Return Values check box on the Decision Table form is not checked, because such decision tables do not return a result value.

DecisionTableNameEnter the name of a decision table, the second key part of a Rule-Declare-DecisionTable instance.
AllowMissingPropertiesIf selected, the system attempts to evaluate the rule even when one or more properties referenced in the rule are not present on the clipboard.

Results

The system forms a decision table key using the second parameter and the class of the step page or primary page. It uses rule resolution to locate the appropriate decision table to evaluate.

The system then evaluates the decision table, in the context of current property values, and stores the results in the property identified in the PropertyName parameter.

If you specify a PropertyName property but the decision table does not return any value, the property is set to an empty string value.

Trapping not-found conditions

If the AllowMissingProperties parameter is not selected and a needed property is not on the clipboard, the Property-Map-DecisionTable method places an output parameter DecisionTableInvalidProperty on the parameter page of the current activity. This output parameter identifies the name and class of the missing property.

This capability can be useful in situations where a user can be prompted for the missing property.

Checking the method status

This method updates the pxMethodStatus property. See How to test method results using a transition.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us