private static String convertActionToString(final Action action) {
        if (action instanceof final EvaluateAction evaluateAction) {
            return convertEvaluateActionToString(evaluateAction);
        }
        if (action instanceof final AnnotatedAction eval) {
            if (eval.getTargetAction() instanceof final EvaluateAction evaluateAction) {
                return convertEvaluateActionToString(evaluateAction);
            }
            return eval.getTargetAction().toString();
        }
        if (action instanceof SetAction) {
            val expF = ReflectionUtils.findField(action.getClass(), "nameExpression");
            val resultExpF = ReflectionUtils.findField(action.getClass(), "valueExpression");
            return "set " + stringifyActionField(action, expF) + " = " + stringifyActionField(action, resultExpF);
        }
        if (action instanceof final NamedObject namedObject) {
            return namedObject.getName();
        }
        return action.toString();
    }
This is {@link SpringWebflowEndpoint}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/SpringWebflowEndpoint.java