How to handle invalid rule name or determine if rule is accessible without calling it
I have need to call an Activity dynamically based on having a string of the name of the Activity you want to call. I'm aware you can do this using a function via doActivity or pxExecuteAnActivity.
Here's the problem, we need to build a list of Activity name strings before those Activities are actually created to avoid a dozen devs constantly conflicting with one another to update the same rule to add their Activity name to the list (it's a Decision Table). The process that runs is automated to run every Activity in the list but the problem is Pega does not gracefully handle attempting to invoke a non-existent rule. It does not trigger StepStatusFail nor does it detect an exception. It simply terminates the currently running rule and ends the process, robbing you of the ability to handle the error and continue.
There is an ugly work-around of creating a dedicated Activity that only does the dynamic invocation and then whatever calls that can detect an exception on it. I'm hoping the Pega platform has something more graceful than this though.
Alternatively, is there anything we can call to determine if a given Activity exists and is accessible (as determined by proper rule resolution... not merely finding an instance of the rule in the rules DB as some functions do)?