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

Run script does not clear action queues

SA-46650

Summary



Run script does not clear action queues.


Error Messages



Not Available


Steps to Reproduce



Configure a button with the following actions:
  1. Run Activity - To set a value to a property
  2. Run Script - To clear the queue (pega.control.actionSequencer.ClearQueue()) with a parameter value set in the activity
  3. Local Action


Root Cause



An issue in the custom application code or rules.

Typo (casing issue) in the API used.



Resolution



Perform the following local-change:

Modify the below

pega.control.actionSequencer.ClearQueue()

to


pega.control.actionSequencer.clearQueue()

Side-effects of using the API:
  • Stop some default actions already in the pipeline
  • Memory leaks


Alternatively, perform the following:

  1. Mark the property '.p1' as Hidden text. This property is used in the When condition during the design time.


  1. On click of button, use the below actions:
  1. Set Value to set the property value.
  2. Local action with a When condition.




Published March 22, 2018 - Updated October 8, 2020

Was this useful?

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