The invention discloses a method for generating a Lua script dynamic departure engine through a
workflow, and relates to the technical field of Internet of Vehicles and vehicle-mounted
software, and the method comprises the steps: firstly constructing a basic operator through a cloud platform, responding to a user arrangement, generating a
process definition file, converting the
process definition file into a Lua script code, and packaging and uploading the Lua script code after
digital signature; and the vehicle terminal monitors a
system state, downloads an update file when a trigger condition is satisfied, and performs integrity
verification and signature
verification. And after the
verification is passed, the calculation center module starts a Lua
interpreter to run a script, and calls a local
Java operator to execute service logic through a reflection mechanism. According to the method, decoupling of service logic and underlying capability is realized through cloud arrangement and an end-side sandbox execution mechanism, dynamic hot update of the vehicle
machine function is completed under the condition that
firmware OTA flash is not carried out, and meanwhile, the security of script operation is ensured by utilizing
encryption verification and permission isolation.