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

        // update inlong group status
        String operator = context.getOperator();
        groupService.updateStatus(groupId, GroupStatus.CONFIG_FAILED.getCode(), operator);

        // update inlong stream status
        streamService.updateStatus(groupId, null, StreamStatus.CONFIG_FAILED.getCode(), operator);

        log.info("success to execute InitGroupFailedListener for groupId={}", groupId);
        return ListenerResult.success();
    }
After the process of creating InlongGroup resources is completed,
modify the status of related InlongGroup and all InlongStream to [Failed]
<p/>
{@link InitGroupCompleteListener#listen}
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/listener/group/InitGroupFailedListener.java