@Override
    public Event doExecuteInternal(final RequestContext requestContext) {
        this.task.accept(requestContext);
        return StringUtils.isNotBlank(this.eventId) ? eventFactory.event(this, this.eventId) : null;
    }
Consumer action that populates the flow scope with the current event attributes.
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/ConsumerExecutionAction.java