Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Cannot pass parameters to When rule

SA-25008

Summary



The visible When condition using a parameterized When rule does not show the parameters in the dialog.



Error Messages



Not Applicable.


Steps to Reproduce

  1. Make a When rule that use parameters.
  2. Add parameters in the parameters page of the When rule and Save.
  3. Try to use the When rule on a visibility of a UI. No parameter fields will appear to fill them.


Root Cause



When rules do not have context sensitive parameter configuration (when the parameters appear automatically when it is configured in the UI).  Instead you need to set the parameter values in advance through a data transform. 

This is mentioned in the following help topic:
 
https://pdn.pega.com/sites/pdn.pega.com/files/help_v72/procomhelpmain.htm#rule-/rule-obj-/rule-obj-when/parameters.htm
 
Complete this optional tab to refer to parameters (using the syntax param.name) as inputs on the Advanced tab.

If used as a source of values, the parameter values must be set (for example, using a data transform) before the when condition runs.

Resolution



Use a "Before this action" Data Transform or Activity on the flow action to set parameter values using the param.paramname syntax.
 

 

Published July 4, 2016 - Updated October 8, 2020

Was this useful?

33% found this useful

Have a question? Get answers now.

Visit the Collaboration 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 Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us