@Override
    public boolean accept(WorkflowContext context) {
        ProcessForm processForm = context.getProcessForm();
        if (!(processForm instanceof GroupResourceProcessForm)) {
            return false;
        }
        GroupResourceProcessForm form = (GroupResourceProcessForm) processForm;
        return form.getGroupOperateType() == GroupOperateType.SUSPEND;
    }
Test class for listen stop sort event.
inlong-manager/manager-service/src/test/java/org/apache/inlong/manager/service/mocks/MockStopSortListener.java