How pengovbr/mod-wssei works
WSSEI is a PHP module that exposes SEI capabilities as REST endpoints for integrations, including the SEI app. The principal workflow is a client request entering the web-service controller, being handled by versioned service logic, and accessing SEI functionality. The source tree also shows distinct process, document, activity, identity, and notification domains. Most implementation files were not sampled, so internal dispatch and persistence relationships are shown only as unverified dashed links; the README supports the module’s REST role and its dependency on SEI.
Main entry points: MdWsSeiServicosV2.php Version 2 services · controlador_ws.php REST controller · MdWsSeiRest.php Module registration · controlador_editor_externo.php External editor
Components 19
REST API
- REST controller
src/controlador_ws.php - External editor
src/controlador_editor_externo.php - Version 2 services
src/versao/v2/MdWsSeiServicosV2.php - Service versions
src/versao/MdWsSeiVersaoServicos.php - Module registration
src/MdWsSeiRest.php
Process and Documents
- Procedures
src/rn/MdWsSeiProcedimentoRN.php - Procedures v1
src/rn/MdWsSeiProcedimento_V1_RN.php - Documents
src/rn/MdWsSeiDocumentoRN.php - Documents v1
src/rn/MdWsSeiDocumento_V1_RN.php - Protocol search
src/dto/MdWsSeiPesquisaProtocoloSolrDTO.php
Activities and Tracking
- Activities
src/rn/MdWsSeiAtividadeRN.php - Tracking
src/rn/MdWsSeiAcompanhamentoRN.php - Scheduled returns
src/rn/MdWsSeiRetornoProgramadoRN.php - Notifications
src/rn/MdWsSeiNotificacaoRN.php
Identity and Setup
- Users
src/rn/MdWsSeiUsuarioRN.php - Units
src/rn/MdWsSeiUnidadeRN.php - Module configuration
src/config/ConfiguracaoMdWSSEI.php
Other components
- API client
- SEI system
Connections 17
- API client → REST controller: sends request
README.md - REST controller → Version 2 services: dispatches to
- External editor → Version 2 services: uses services
- Module registration → Service versions: registers services
- Version 2 services → Procedures: delegates to
- Version 2 services → Procedures v1: delegates to
- Version 2 services → Documents: delegates to
- Version 2 services → Documents v1: delegates to
- Version 2 services → Protocol search: uses data shape
- Version 2 services → Activities: delegates to
- Version 2 services → Tracking: delegates to
- Version 2 services → Scheduled returns: delegates to
- Version 2 services → Notifications: delegates to
- Version 2 services → Users: delegates to
- Version 2 services → Units: delegates to
- Module configuration → Module registration: configures
- Version 2 services → SEI system: accesses