## 4 Fine-Grained Service Orchestration for EIS  
Cloud-edge intelligence is implemented based on the micro-service framework. Services can be called through RESTful or RPC, with the characteristics of business decoupling, decentralization, and \"self-service\". The EIS at the core layer completes the data acquisition and monitoring of heterogeneous devices southbound, and realizes cloud connection and intelligent device management northbound, which with open standard architecture follows MQTT protocol and docker container technology as the basic framework. Edge interface provides customers with the development application of RESTful API, MQTT communication, and NodeRED data stream. Data infrastructure services provide database and data network services. The data analysis framework integrates a variety of machine learning function libraries and back-end distributed computing resources. The system supports data security (SSL/TSL protocol communication), application security (container deployment) and platform security (based on RBAC, UAA, SSO, and JSON tokens). WISE-PaaS [42] has functional modules, such as security management, SCADA (Supervisory Control and Data Acquisition), HMI (human and machine interface), AIFS, etc.,for end devices to provide comprehensive development tools and standard protocol SDKs with various IoT connectivity. The sensor network connection at the bottom layer of the architecture is responsible for collecting data, managing the sensor hub, converting the sensor protocol into MQTT, and then transmitting the data to the MQTT server or proxy. The management and interface layer uses Webmin for configuration. Whether the service is deployed on edge devices or in the cloud, SSL/TLS communication security features are configured. Cloud-edge intelligent services support elastic capacity expansion to manage complex platform environments and resource expansion. It has the 'pemness' ability, enabling users to quickly create, deploy, and manage cloud applications. More software modules can be flexibly added through WISE-PaaS Marketplace to help build, implement, and start cloud-edge intelligent innovative applications, and provide users with vertical industry SRP (solution-ready package) and DFSI (domain focus system integrator). The model based on service orchestration supports the visual presentation of model business processes through model definitions, such as architecture, interface, functions, and requirements, to generate executable specifications in the form of multi-language version code/script. The edge computing domain model is integrated with the vertical industry domain model through the development platform and toolchain to support model library version management. Service orchestration is based on a three-layer architecture. 1 The orchestration service located in the cloud defines business organization processes, provides visual workflow tools, supports CRUD operations, and develops a service framework based on reuse. 2 The strategy controller deployed on edge realizes the local nearby control to ensure the real-time performance of business scheduling. In order to better integrate the requirements of edge computing and vertical industry, high-quality and efficient service templates and policy templates can be predefined. 3 The strategy executor module built in each edge computing node is responsible for translating the strategy into the device command and scheduling the execution locally. The strategy focuses on high-level service requirements, and the specific intelligent algorithm realizes fine-grained control of edge computing nodes. The event with tokens fire state transition in CPN, representing different service behaviors.