Add an action getter #2950

This addresses Issue #2950. BTW, we may want to make tasks as MooseEnum in the future.