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

When rule not executed in local action

SA-40939

Summary



A Local action configured to be executed on click of a button has a When rule associated.

The When rule is not executed when the button is clicked.


Error Messages



Not Applicable


Steps to Reproduce

  1. Add a button on a section.
  2. Define a local action triggered by click event
  3. Add a When rule to the local action above.
  4. Observe that the When rule is not evaluated on button click.


Root Cause



When rule associated to actions are meant to show the action depending on a condition.

As such the LocalAction is rendered based on the When rule evaluation.

At the time of running of the action, the markup already got generated and thus the When rule is not executed.

Resolution



This is the expected behavior.

The When rule has to be moved to the target activity to achieve the desired result.

Published October 31, 2017 - Updated October 8, 2020

Was this useful?

0% 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