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:
- Run Activity - To set a value to a property
- Run Script - To clear the queue (pega.control.actionSequencer.ClearQueue()) with a parameter value set in the activity
- 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:
- Mark the property '.p1' as Hidden text. This property is used in the When condition during the design time.
- On click of button, use the below actions:
- Set Value to set the property value.
- Local action with a When condition.
Published March 22, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.