Second Brain

Flows — D2U.NET (01–22)

D2U.NET · Implementacao · Testes · Roadmap · Arquitetura

Estado: código ✅ · testes 388 passTestes · staging cutover ⏳

Legenda estado código

Símbolo Significado
📄 Spec Docs_New/flows/
🖥️ Página Razor funcional
🔌 API / endpoint implementado
⚙️ Lógica de negócio real (EF persistido)
🧪 Testes activos (não Skip)

Fluxos críticos 01–10

# Flow Doc repo UI API Negócio Testes
01 Login e sessão 01-login-sessao.md 🖥️ Login + MFA email ⚙️ cookie + erros 3/4 🧪 4 integration
02 Criar job upload 02-criar-job-upload.md 🖥️ Jobs/Create 🔌 mobile upload ⚙️ JobCreationService + credit gate 🧪 contract + T2
03 Chunks mobile 03-upload-chunks-assembler.md 🔌 chunk-assembler ⚙️ merge bytes 🧪 contract
04 Workflow job 04-workflow-job.md 🖥️ Detail, Workflow, Edit ⚙️ FSM + inbox por role 🧪 FSM + RoleInbox (7)
05 Pagamento conta 05-pagamento-conta.md 🖥️ Account/Checkout 🔌 webhooks ⚙️ IPaymentService 🧪 T4 payment
06 Relatório comprehensive 06-relatorio-comprehensive.md 🖥️ Reports/Comprehensive ⚙️ QuestPDF/ClosedXML 🧪 T4
07 Gestão clientes/staff 07-gestao-clientes.md 🖥️ Users/, Manage/, Contractors 🔌 DWR EF ⚙️ CRUD + policy 🧪 T3
08 Superuser 08-superuser-empresas.md 🖥️ SuperUser/* ⚙️ ISuperUserService 🧪 AC + Flow08
09 FTP e email 09-entrada-ftp-email.md ⚙️ MailReader + FtpScanner 🧪 workers
10 SpeechLive Lexacom 10-speechlive-lexacom.md 🔌 speechlive/* ⚙️ workers 🧪 integration

FSM Job

| Doc | job-state-machine.md | | Código | JobWorkflowEngine, JobWorkflowAction, JobStatusGroups | | Persistido | ✅ IJobWorkflowService + EF |


Fluxos suplementares 11–22

# Flow Doc repo UI API Negócio Testes
11 Registo e activação 11-registo-activacao.md 🖥️ Register, Activate, Forgot ⚙️ IRegistrationService 🧪 unit + Flow11
12 Relatórios (11 tipos) 12-relatorios-geral.md 🖥️ Reports/* (12 páginas) ⚙️ 11 tipos export 🧪 T4
13 Templates 13-templates-documento.md 🖥️ Templates CRUD ⚙️ upload/download 🧪 Flow13
14 Regras atribuição 14-regras-atribuicao.md 🖥️ Manage/Rules 🔌 DWR rules EF ⚙️ IAssignmentRuleService 🧪 T3
15 Documento + XML transcript 15-documento-transcricao.md 🖥️ Transcript, Document/Edit 🔌 document/save, DWR ⚙️ xml_transcript* EF 🧪 Flow15
16 API HTTP / mobile 16-entrada-api-http-mobile.md 🔌 mobile, audio-receiver ⚙️ job create 🧪 5 integration
17 Outside + XML-RPC 17-outside-xmlrpc.md 🖥️ Outside/JobSearch 🔌 xmlrpc wire protocol ⚙️ job.status/submit 🧪 5 integration
18 Mensagens, settings, logs 18-mensagens-settings-logs.md 🖥️ Settings, Messages, Logs ⚙️ audit trail 🧪 Flow18
19 Vendor FTP egress 19-vendor-ftp-egress.md ⚙️ FluentFTP egress 🧪 T5
20 Callbacks pagamento 20-pagamento-callbacks-externos.md 🖥️ ThankYou pages 🔌 webhooks ⚙️ idempotent 🧪 contract
21 SpeechLive SPS créditos 21-speechlive-sps-credit.md 🔌 SPS aliases ⚙️ credit sync 🧪 Flow21
21b BigHand FTP ingress 21-bighand-ftp-ingress.md ⚙️ JobXmlTransferService 🧪 T5
22 Outside report 22-outside-relatorio.md 🖥️ Outside/Report 🔌 Report/Search API ⚙️ token gate 🧪 5 integration

UI (2026-06-11) ✅

~85 PageModels — layout legado (dictate2us), funcionalidade real (zero stubs).

Layout Legado JSP
_MedTransLayout header + navigator + footer
_LoginLayout indexv2.jsp
_SuperUserLayout superuser/includes/*
_OutsideLayout outside-report.jsp

Detalhe: Docs_New/implementation/onda9-paridade-completa.md

Cobertura menu: DASHBOARD · JOBS · USERS · MANAGE · REPORTS · SEARCH + sub-menus + Settings + Downloads.


API externa ✅

Grupo Rotas Flows
/api/dwr/* ~47 EF 07, 14, 15
/api/mobile/* 5 16, 03
/api/integrations/* 7+ 16, 17, 21
/webhooks/* 3 05, 20
Aliases legados /xmlrpc, /SPS*, servlets 17, 21
/data/* company-scoped
/Outside/* UI + POST Search 22

Detalhe: Docs_New/implementation/api-externa-completa.md


Documentação repo (flows)

Doc Conteúdo
README.md Índice 01–22
workflow-coverage-matrix.md Auditoria legado vs .NET
acceptance-checklist.md Critérios aceitação
onda9-paridade-completa.md Paridade 100%

Aceitação

Checklist: acceptance-checklist.mdAC-1..43 automatizados ✅ · validação staging com dados reais ⏳

Próximo (operacional)

  1. ETL staging + validate fase 2
  2. Acceptance checklist manual em staging
  3. staging-scan.ps1 + config produção
  4. Cutover DNS — Migracao-Legado