issue #22155: Add ability to dynamically handle activity actions.