This disclosure provides a model-driven
software generation method, apparatus, electronic device, and storage medium, relating to the field of
software development technology. It involves model file acquisition and execution environment cleanup, static detection of model specifications, automatic conversion of the model into
source code, static scanning of code specifications, and code integration and compilation. The entire process, including the upload of detection results and the target
software artifact to the cloud, terminates the process and generates a defect report if the detection fails. Therefore, it can solve the problems in existing technologies caused by non-standardized
model development, non-standardized
code generation and detection, lack of automated control over the development process, delayed defect discovery, lack of process sharing and
traceability, and low team
collaboration efficiency. It achieves the technical effects of
fully automated development process, standardized models and code, early defect interception, traceable process, improved
software quality and development efficiency, and reduced
rework costs.