@Override
    public ListenerResult listen(WorkflowContext context) throws WorkflowListenerException {
        GroupResourceProcessForm form = (GroupResourceProcessForm) context.getProcessForm();
        String groupId = form.getInlongGroupId();
        log.info("begin to execute InitGroupListener for groupId={}", groupId);

        InlongGroupInfo groupInfo = form.getGroupInfo();
        if (groupInfo == null) {
            throw new WorkflowListenerException("inlong group info cannot be null for init group process");
        }
        groupService.updateStatus(groupId, GroupStatus.CONFIG_ING.getCode(), context.getOperator());

        log.info("success to execute InitGroupListener for groupId={}", groupId);
        return ListenerResult.success();
    }
Begin to execute the InlongGroup workflow, init the workflow context, and update other info if needed.
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/listener/group/InitGroupListener.java