def METHOD_NAME(config, filing_id: int, event_filing_data_dict: Dict, filing_data: Dict, db: any):
    """Render the filings contained in the submission.
    Start the migration to using core/Filing
    """
    filing_submission = Filing.find_by_id(filing_id)
    filing_core_submission = FilingCore.find_by_id(filing_id)
    if not filing_core_submission:
        raise Exception('not filing_core_submission')
    filing_submission = filing_core_submission.storage
    if filing_core_submission.status == Filing.Status.COMPLETED:
        print(f"""QueueFiler: Attempting to reprocess business.id={filing_submission.business_id}, 
                  filing.id={filing_submission.id}""")
        return None, None
    # convenience flag to set that the envelope is a correction
    is_correction = (filing_core_submission.filing_type == FilingCore.FilingTypes.CORRECTION)
    if legal_filings := filing_core_submission.legal_filings():
        uow = versioning_manager.unit_of_work(db.session)
        transaction = uow.create_transaction(db.session)
        business = Business.find_by_internal_id(filing_submission.business_id)
        filing_meta = FilingMeta(application_date=filing_submission.effective_date,
                                 legal_filings=[item for sublist in
                                                [list(x.keys()) for x in legal_filings]
                                                for item in sublist])
        if is_correction:
            filing_meta.correction = {}
        for filing in legal_filings:
            if filing.get('incorporationApplication'):
                business, filing_submission, filing_meta = incorporation_filing.process(business,
                                                                                        filing_core_submission.json,
                                                                                        filing_submission,
                                                                                        filing_meta,
                                                                                        filing_data)
            elif filing.get('annualReport'):
                annual_report.process(business,
                                      filing,
                                      filing_submission,
                                      filing_meta)
            elif filing.get('dissolution'):
                dissolution.process(business,
                                    filing,
                                    filing_submission,
                                    filing_meta,
                                    filing_data)
            elif filing.get('putBackOn'):
                put_back_on.process(business, filing, filing_submission)
            elif filing.get('correction'):
                filing_submission = correction.process(filing_submission, filing, filing_meta, business)
        update_filing_user(filing_submission, filing_data)
        filing_submission.transaction_id = transaction.id
        filing_submission._status = Filing.Status.COMPLETED.value
        business_type = business.legal_type if business else filing_submission['business']['legal_type']
        filing_submission.set_processed(business_type)
        event_type_cd = filing_data['e_event_type_cd']
        filing_type_cd = filing_data['f_filing_type_cd']
        filing_meta.colin_filing_info = {
            'eventType': event_type_cd,
            'filingType': filing_type_cd
        }
        filing_submission._meta_data = json.loads(  # pylint: disable=W0212
            json.dumps(filing_meta.asjson, default=json_serial)
        )
        colin_event_id = ColinEventId()
        colin_event_id.colin_event_id = int(filing_data['e_event_id'])
        filing_submission.colin_event_ids.append(colin_event_id)
        db.session.add(business)
        db.session.add(filing_submission)
        db.session.commit()
        if any('incorporationApplication' in x for x in legal_filings):
            filing_submission.business_id = business.id
            db.session.add(filing_submission)
            comments = create_comments(business, event_filing_data_dict)
            for comment in comments:
                comment.save_to_session()
            db.session.commit()
            if config.UPDATE_ENTITY:
                incorporation_filing.update_affiliation(config, business, filing_submission)
                incorporation_filing.post_process(business, filing_submission)
        # post filing changes to other services
        if config.UPDATE_ENTITY and any('dissolution' in x for x in legal_filings):
            AccountService.update_entity(
                business_registration=business.identifier,
                business_name=business.legal_name,
                corp_type_code=business.legal_type,
                state=Business.State.HISTORICAL.name
            )
        if config.UPDATE_ENTITY and any('putBackOn' in x for x in legal_filings):
            AccountService.update_entity(
                business_registration=business.identifier,
                business_name=business.legal_name,
                corp_type_code=business.legal_type,
                state=Business.State.ACTIVE.name
            )
        return business