Query if action finished executing

I'm looking to determine if a specific action has finished executing using groovy. I know I could theoretically have the action itself write to a value property that is a Boolean and then query that. But I was hoping there was a way to use groovy to have another element determine that by inspection.

I tried using classes from the JavaDoc to get this info, like SimulationExectionListener, SimulationHelper, and SimulationManager. But I couldn't get them to pull out whether a specific behavior has completed simulation.