Atomic service flow control method, system, local device and storage medium
By enabling the division of circulation management services and logical modules on the local device, the flow of atomized services to the peer device is realized, which solves the problem of slow application transmission and installation in the existing technology, realizes rapid circulation and operation, and improves service convenience.
Patent Information
- Application Number
- CN202410880218.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-07-02
AI Technical Summary
In the prior art, when the target device needs to use the application function of the original device, it is necessary to re-download and install the application or transfer the installation package from the original device, resulting in slow application transmission and slow installation, inconvenient use, and the rapid flow of tasks cannot be achieved quickly.
By pulling up the circulation management service on the local device, popping up the device list and detecting the user's selected counterpart device, the atomized service circulation function is enabled. Get the logical view, divide multiple logical elements according to the logical view, obtain the logical module, and transfer the atomized service to the peer device. If the peer device does not have the service installed and cannot be downloaded in the cloud, the atomized service center will actively distribute local Hap packages for installation.
It realizes the rapid circulation and operation of atomized services between different devices without application installation, improving the convenience of service providers and users to obtain and use services.
Smart Images

Figure CN118740908B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network service technology, and in particular to a control method, system, local device and computer-readable storage medium for atomic service flow. Background Art
[0002] With the advent of the era of the Internet of Everything, the diversity of devices and scenarios, application development has become complex, and application portals have become more abundant. In this context, a new way of providing services is needed to make it easier for service providers and users to obtain and use services. Therefore, atomic services, that is, applications that provide services without installation, came into being; atomic services are a future-oriented service provision method provided by HarmonyOS, which has an independent portal (users can directly trigger it by clicking), is installation-free (no need to display the installation, it can be used after being installed in the background of the system program framework), and can provide users with one or more convenient services. User application form.
[0003] In the prior art, when the target device needs to use the application function of the original device, it needs to re-download and install the application or transfer the installation package from the original device to achieve this, resulting in slow application transmission and installation, inconvenient use, and inability to quickly achieve rapid task flow.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a control method, system, local device and computer-readable storage medium for atomic service flow, aiming to solve the problem that the existing technology cannot quickly realize the rapid flow of tasks.
[0006] To achieve the above object, the present invention provides a method for controlling atomic service flow, the method for controlling atomic service flow comprising the following steps:
[0007] The local device pulls up the flow management service according to the task flow instruction, pops up the device list through the flow management service, and starts the atomic service flow function when it detects that the user selects the opposite device;
[0008] The local device obtains a logical view, divides multiple logical elements into modules according to the logical view to obtain logical modules, and transfers the atomic service flow to the opposite device according to the logical modules.
[0009] Optionally, the control method for atomic service flow, wherein the local device starts a flow management service according to a task flow instruction, specifically includes:
[0010] The local device receives a task transfer instruction clicked by a user on the current page, and launches a transfer management service according to the task transfer instruction;
[0011] Alternatively, the local device receives an operation instruction of the user sliding up with two fingers on the launcher page, and launches the flow management service according to the operation instruction.
[0012] Optionally, in the control method for atomic service flow, the logic module includes an application layer and a system framework layer;
[0013] The application layer includes task flow management service, flow management service and atomic service center;
[0014] The system framework layer includes distributed task scheduling, meta-capabilities, Hap packages, application shared directories, ArkUI components, distributed file services, distributed security authentication and distributed soft buses.
[0015] Optionally, the control method for atomic service flow, wherein the control method for atomic service flow further includes:
[0016] When the service being transferred is not installed on the peer device and cannot be downloaded through the cloud, the atomic service center actively distributes the local Hap package to the peer device;
[0017] The atomic service center is used to manage the application of atomic services and use the entrance of atomic services;
[0018] The local Hap package is a native application package for installation. The atomic service center actively distributes the local Hap package to the peer device for transferring to install the locally installed application to the peer device to achieve free installation.
[0019] Optionally, the control method for atomic service flow, wherein the control method for atomic service flow further includes:
[0020] When data recovery is required, the ArkUI component is used to provide a state management mechanism, bind the data and page state information that need to be migrated to the state variables, and restore them on the migrated peer device.
[0021] Optionally, the control method for atomic service flow, wherein the step of transferring the atomic service flow to the peer device according to the logic module further includes:
[0022] After the opposite-end device restores the migration data through the transfer object application, the migration result is returned to the local-end device through the system framework layer. After receiving the migration result, the local-end device exits the transfer object application of the local-end device.
[0023] Optionally, in the control method for atomic service flow, the distributed task scheduling is used to perform task management across devices;
[0024] The meta-capability represents the Ability operation management subsystem;
[0025] The shared directory of the application is used to share the local Hap package between devices with the help of the distributed file service;
[0026] The distributed file service is used for cross-device file management and file synchronization between multiple devices.
[0027] In addition, to achieve the above-mentioned purpose, the present invention further provides a control system for atomic service flow, wherein the control system for atomic service flow includes:
[0028] The flow start module is used for the local device to pull up the flow management service according to the task flow instruction, pop up the device list through the flow management service, and start the atomic service flow function when it is detected that the user selects the opposite device;
[0029] The service flow module is used for the local device to obtain a logical view, divide multiple logical elements into modules according to the logical view to obtain a logical module, and transfer the atomic service flow to the opposite device according to the logical module.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a local device, wherein the local device includes: a memory, a processor, and a control program for atomic service flow stored in the memory and runnable on the processor, and when the control program for atomic service flow is executed by the processor, the steps of the control method for atomic service flow as described above are implemented.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a control program for atomic service flow, and when the control program for atomic service flow is executed by a processor, the steps of the control method for atomic service flow as described above are implemented.
[0032] In the present invention, the local device pulls up the flow management service according to the task flow instruction, pops up the device list through the flow management service, and turns on the atomic service flow function when it detects that the user selects the opposite device; the local device obtains the logical view, divides the multiple logical elements into modules according to the logical view to obtain the logical module, and transfers the atomic service to the opposite device according to the logical module. The present invention can quickly realize the rapid flow and operation of atomic services between different devices without the need for application installation, making it more convenient for service providers and users to obtain and use services. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flow chart of a preferred embodiment of the control method of atomic service flow of the present invention;
[0034] Figure 2 It is a schematic diagram of pulling up the flow management service by clicking the flow button on the current task page in a preferred embodiment of the control method of atomic service flow of the present invention;
[0035] Figure 3 It is a schematic diagram of pulling up the flow management service by swiping up with two fingers on the launcher page in a preferred embodiment of the control method of atomic service flow of the present invention;
[0036] Figure 4 It is a schematic diagram of a layer 0 logic model in a preferred embodiment of the control method for atomic service flow of the present invention;
[0037] Figure 5 It is a schematic diagram of a layer 1 logic model in a preferred embodiment of the control method for atomic service flow of the present invention;
[0038] Figure 6 It is a structural diagram of a preferred embodiment of the control system for atomic service flow of the present invention;
[0039] Figure 7 This is a structural diagram of a preferred embodiment of the local device of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0041] Atomic services consist of one or more HAP packages, and one HAP package corresponds to one FA or one PA. Each FA or PA can run independently to complete specific functions; one or more functions (corresponding to FA or PA) complete one specific convenient service. Basic information of basic elements of atomic services: Each atomic service has an independent icon, name, description, and snapshot. Basic information will be displayed in the service center, system settings and other interfaces according to the scenario. Service card: In order to provide users with a convenient and intelligent service experience, each atomic service needs to develop at least one service card, and each application can optionally configure a service card. As a lightweight carrier of the service, the card needs to be easy to use, visible, intelligent, optional, and multi-terminal variable.
[0042] Multiple entrances: With the support of the Harmony0S Connect tag, atomic services can be discovered online and offline. Users can also discover and manage atomic services in the device's service center, desktop and other interfaces. Service flow: In Harmony0S, it generally refers to distributed operations involving multiple terminals. The flow capability breaks the boundaries of devices and multiple devices are linked, so that atomic services can be divided, combined and circulated, realizing distributed businesses such as cross-device editing of emails, multi-device collaborative fitness, and multi-screen games. Service sharing: Atomic services support sharing with other users through face-to-face or online channels. Device control: Harmony0S strives to create simple, easy-to-use, and natural and smooth device control functions for users. Users can easily connect and control HarmonyOS devices through their mobile phones, and "touch" the NFC tag of the Harmony0S device with their mobile phones. After identification, the mobile phone will run the corresponding atomic service.
[0043] The control method of atomic service flow described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the control method of the atomic service flow includes the following steps:
[0044] Step S10: The local device starts the flow management service according to the task flow instruction, pops up a device list through the flow management service, and starts the atomic service flow function when it is detected that the user selects the opposite device.
[0045] Specifically, Figure 2 As shown, on the current task page, click the transfer button to pull up the transfer management service, and the transfer management service pops up a device list. The user selects the target device (i.e., the opposite device, such as device 1, device 2, device 3, device 4, device 5) and then transfers the current task (i.e., the atomic service) (the purpose of the transfer is to open the atomic service on other devices and restore the status of the currently open page). That is, the local device receives the task transfer instruction clicked by the user on the current page, and pulls up the flow management service according to the task transfer instruction.
[0046] Or Figure 3 As shown, the local device receives the user's double-finger swipe-up operation instruction on the launcher page, and launches the flow management service according to the operation instruction.
[0047] Step S20: the local device obtains a logical view, divides multiple logical elements into modules according to the logical view to obtain logical modules, and transfers the atomic service flow to the opposite device according to the logical modules.
[0048] Specifically, Figure 4 As shown in the figure, it represents the 0-layer logic model (logical module, each subsystem in kaihongOS). The logical elements can be understood as the functional modules of each subsystem in kaihongOS in the current semantics. The logical elements in the system are divided into modules through the logical view, and the relationship between the logical elements is depicted, so that the logical modules have high cohesion and low coupling, and the logical modules provide service support for task flow.
[0049] Among them, high cohesion means that the elements within a module are related to each other and work together to complete a specific function. High cohesion means that the elements within a module are logically related and work together to complete a single task or goal. The more closely the elements within the module are related, the higher the cohesion of the module. Low coupling means that the dependencies between different modules should be as loose as possible. Low coupling means that there are fewer connections between modules, they are independent of each other, and changes in one module will not have too much impact on other modules. The lower the coupling between modules, the better the flexibility and maintainability of the system. Through the design principle of "high cohesion and low coupling", the software system can be made easier to understand, expand and maintain, reduce the risk of modification, and improve the stability and reliability of the system.
[0050] like Figure 4 As shown, the logic module includes an application layer and a system framework layer (i.e., framework layer, system service layer); the application layer includes task flow management services (i.e., mission: representing a task), flow management services (flow entry provided to third-party users) and an atomic service center (atomic service management center, flow initiation entry); the system framework layer includes distributed task scheduling (task management across devices), meta-capabilities (Ability operation management subsystem), Hap packages, application shared directories, ArkUI components (native UI framework on OpenHarmony), distributed file services (file management across devices, file synchronization between multiple devices), distributed security authentication and distributed soft buses.
[0051] Application layer:
[0052] (1) Develop a transfer management service application, which is responsible for popping up a window for users to select the target device for transfer and transferring through the continueMission interface.
[0053] (2) Atomic service center transformation: When the target device is not equipped with the service being transferred and cannot be downloaded through the cloud, the atomic service center (the application that manages the atomic service and the entry point for using the atomic service) actively distributes the local Hap package to the target device. The Hap package is a native application package that can be used for installation. The purpose of distributing the local Hap package is to install the locally installed application on the target device without the user's awareness, thus achieving installation-free operation.
[0054] System framework layer:
[0055] (1) The distributed scheduling component provides the entry continueMission for initiating migration.
[0056] (2) The Ability (Ability subsystem) runtime component (meta-capability) provides a migration callback interface onContinue. The migrated application can save state data on this interface and restore data on the callback interface onCreate / onNewWant of the target device.
[0057] (3) Data recovery mechanism. The ArkUI component provides a state management mechanism that can bind the data and page status information that need to be migrated to state variables (variables decorated by state decorators, and changes in the value of state variables will cause UI rendering updates) and restore them on the target device for migration.
[0058] (4) The shared directory uses the distributed file service HMDFS to share the local hap package between devices.
[0059] That is to say, when the service being circulated is not installed on the opposite device and cannot be downloaded through the cloud, the atomic service center actively distributes the local Hap package to the opposite device; wherein the atomic service center is used to manage the application of the atomic service and use the entrance of the atomic service; the local Hap package is a native application package for installation, and the atomic service center actively distributes the local Hap package to the opposite device for installing the locally installed application to the opposite device to achieve installation-free.
[0060] When data recovery is required, the ArkUI component is used to provide a state management mechanism, bind the data and page state information that need to be migrated to the state variables, and restore them on the migrated peer device.
[0061] After the opposite-end device restores the migration data through the transfer object application, the migration result is returned to the local-end device through the system framework layer. After receiving the migration result, the local-end device exits the transfer object application of the local-end device.
[0062] Furthermore, if Figure 5 As shown, it represents the 1-layer logic model, which is the expansion of the 0-layer logic model (1 layer is the expansion of each module of the 0-layer, describing in more detail how each module works together).
[0063] For example, Figure 5 Device A is the local device, and device B is the opposite device (target device). The following describes the service flow process between device A and device B.
[0064] Device A:
[0065] 1. Initiate a transfer (continueMission).
[0066] 2.dbms checks whether device B (target device) has the corresponding application installed.
[0067] Already installed: Skip steps 3 and 4 and continue with step 5.
[0068] Not installed: Continue with step 3.
[0069] 3. Device B is not installed, and the target application is an installation-free application and is launched in an installation-free manner.
[0070] 4. Check whether device B can be installed. (Check method: bms sends CONNECT_QUERY_RPCID to the atomic service center, and sends a message to the cloud via http for checking. If there is no cloud, it can be installed by default).
[0071] Yes: Continue the circulation.
[0072] No: End the transfer task and return an error message.
[0073] 5. Initiate a migration command to the transfer target application (the application to be transferred to the other end) of device A (the local device).
[0074] 6. The transfer object application of device A (local device) saves the migration data.
[0075] 7. Initiate a migration command to device B (the peer device).
[0076] Device B:
[0077] Check if it is installation-free migration and the transfer object application has not been installed yet, then perform installation-free first (installation-free method: send CONNECT_SILENT_INSTALL to the atomic service center).
[0078] Installation successful: Continue to step 9.
[0079] Installation failed: returns an error message.
[0080] 9. Send migration instructions to the transfer object application.
[0081] 10. The transfer object application restores the migration data and returns the migration result to device A through the framework layer.
[0082] Device A:
[0083] 11. After receiving the migration result, exit the transfer object application on the local device.
[0084] That is to say, to realize the service flow between two devices, device A (the original device on this end) initiates the flow and checks whether device B (the opposite device) has installed the corresponding application. If device B has not installed it and the flow target application is an installation-free application, it is pulled up in an installation-free manner to check whether the remote end can be installed. If device B has been installed, the flow continues. A migration instruction is initiated to the flow object application of device A. The flow object application of device A saves the migration data and initiates a migration instruction to device B. Device B checks whether it is an installation-free migration and the flow object application has not been installed, so it performs the installation-free first. If the installation is successful, a migration instruction is sent to the flow object application. The flow object application restores the migration data and returns the migration result to device A through the framework layer. After receiving the migration result, device A exits the flow object application of device A.
[0085] The development view mainly describes the code repository location of related subsystems from a development perspective, as well as the dependencies of compilation and build, compilation tool chain, and compilation environment information.
[0086] Develop circulation management services and transform the atomic service center. Make the following transformations to the atomic service center application to support the circulation of installation-free applications when the other end is not installed.
[0087] The atomic service center receives the CONNECT_QUERY_RPCID request:
[0088] Call the shareHap interface to put the corresponding Hap package into the shared directory and return true.
[0089] The atomic service center receives the CONNECT_SILENT_INSTALL request:
[0090] Follow the original logic, download and install from the cloud.
[0091] When the cloud download fails, install Hap in the shared directory.
[0092] Delete the Hap package in the shared directory.
[0093] The present invention aims to solve the problem in the prior art that when the target device needs to use the application function of the original device, it needs to re-download and install the application or transfer the installation package from the original device to achieve this, resulting in slow application transmission and installation, inconvenient use, and inability to quickly realize the rapid flow of tasks. The present invention can quickly realize the rapid flow and operation of tasks (atomic services) between different devices without the need for application installation, making it more convenient for service providers and users to obtain and use services.
[0094] Furthermore, if Figure 6 As shown, based on the above-mentioned control method for atomic service flow, the present invention also provides a control system for atomic service flow, wherein the control system for atomic service flow includes:
[0095] The transfer start module 51 is used for the local device to pull up the transfer management service according to the task transfer instruction, pop up the device list through the transfer management service, and start the atomic service transfer function when it is detected that the user selects the opposite device;
[0096] The service flow module 52 is used for the local device to obtain a logical view, divide multiple logical elements into modules according to the logical view to obtain logical modules, and transfer the atomic service flow to the opposite device according to the logical modules.
[0097] Furthermore, if Figure 7 As shown, based on the above-mentioned control method and system for atomic service flow, the present invention also provides a local device accordingly, and the local device includes a processor 10, a memory 20 and a display 30. Figure 7 Only some components of the local device are shown, but it should be understood that it is not required to implement all the shown components, and more or fewer components may be implemented instead.
[0098] In some embodiments, the memory 20 may be an internal storage unit of the local device, such as a hard disk or memory of the local device. In other embodiments, the memory 20 may also be an external storage device of the local device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the local device. Further, the memory 20 may also include both an internal storage unit of the local device and an external storage device. The memory 20 is used to store application software and various types of data installed on the local device, such as the program code of the local device. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a control program 40 for atomic service flow, and the control program 40 for atomic service flow can be executed by the processor 10, thereby realizing the control method of atomic service flow in the present application.
[0099] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the control method of the atomic service flow.
[0100] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the local device and to display a visual user interface. The components 10-30 of the local device communicate with each other via a system bus.
[0101] In one embodiment, when the processor 10 executes the control program 40 for atomic service flow in the memory 20, the following steps are implemented:
[0102] The local device pulls up the flow management service according to the task flow instruction, pops up the device list through the flow management service, and starts the atomic service flow function when it detects that the user selects the opposite device;
[0103] The local device obtains a logical view, divides multiple logical elements into modules according to the logical view to obtain logical modules, and transfers the atomic service flow to the opposite device according to the logical modules.
[0104] The local device starts the flow management service according to the task flow instruction, which specifically includes:
[0105] The local device receives a task transfer instruction clicked by a user on the current page, and launches a transfer management service according to the task transfer instruction;
[0106] Alternatively, the local device receives an operation instruction of the user sliding up with two fingers on the launcher page, and launches the flow management service according to the operation instruction.
[0107] Wherein, the logic module includes an application layer and a system framework layer;
[0108] The application layer includes task flow management service, flow management service and atomic service center;
[0109] The system framework layer includes distributed task scheduling, meta-capabilities, Hap packages, application shared directories, ArkUI components, distributed file services, distributed security authentication and distributed soft buses.
[0110] The control method of the atomic service flow further includes:
[0111] When the service being transferred is not installed on the peer device and cannot be downloaded through the cloud, the atomic service center actively distributes the local Hap package to the peer device;
[0112] The atomic service center is used to manage the application of atomic services and use the entrance of atomic services;
[0113] The local Hap package is a native application package for installation. The atomic service center actively distributes the local Hap package to the peer device for transferring to install the locally installed application to the peer device to achieve free installation.
[0114] The control method of the atomic service flow further includes:
[0115] When data recovery is required, the ArkUI component is used to provide a state management mechanism, bind the data and page state information that need to be migrated to the state variables, and restore them on the migrated peer device.
[0116] The method further comprises transferring the atomic service flow to the peer device according to the logic module, and then:
[0117] After the opposite-end device restores the migration data through the transfer object application, the migration result is returned to the local-end device through the system framework layer. After receiving the migration result, the local-end device exits the transfer object application of the local-end device.
[0118] Wherein, the distributed task scheduling is used to perform task management across devices;
[0119] The meta-capability represents the Ability operation management subsystem;
[0120] The shared directory of the application is used to share the local Hap package between devices with the help of the distributed file service;
[0121] The distributed file service is used for cross-device file management and file synchronization between multiple devices.
[0122] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a control program for atomic service flow, and when the control program for atomic service flow is executed by a processor, the steps of the control method for atomic service flow as described above are implemented.
[0123] In summary, the present invention provides a control method, system, local device and storage medium for atomic service flow, the method comprising: the local device pulls up the flow management service according to the task flow instruction, pops up the device list through the flow management service, and turns on the atomic service flow function when it detects that the user selects the opposite device; the local device obtains a logical view, divides multiple logical elements into modules according to the logical view to obtain a logical module, and transfers the atomic service to the opposite device according to the logical module. The present invention can quickly realize the rapid flow and operation of atomic services between different devices without the need for application installation, making it more convenient for service providers and users to obtain and use services.
[0124] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or local device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or local device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or local device including the element.
[0125] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0126] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for controlling atomic service flow, characterized in that: The control method of the atomic service flow includes: The local device pulls up the flow management service according to the task flow instruction, pops up the device list through the flow management service, and starts the atomic service flow function when it detects that the user selects the opposite device; The local device acquires a logical view, divides multiple logical elements into modules according to the logical view to obtain logical modules, and transfers the atomic service flow to the opposite device according to the logical modules; The logic module includes an application layer and a system framework layer; The application layer includes task flow management service, flow management service and atomic service center; The system framework layer includes distributed task scheduling, meta-capabilities, Hap packages, application shared directories, ArkUI components, distributed file services, distributed security authentication and distributed soft buses; The control method of atomic service flow also includes: When the service being transferred is not installed on the peer device and cannot be downloaded through the cloud, the atomic service center actively distributes the local Hap package to the peer device; The atomic service center is used to manage the application of atomic services and use the entrance of atomic services; The local Hap package is a native application package for installation. The atomic service center actively distributes the local Hap package to the peer device for transferring to install the locally installed application to the peer device to achieve free installation.
2. The control method for atomic service flow according to claim 1, characterized in that: The local device starts the flow management service according to the task flow instruction, specifically including: The local device receives a task transfer instruction clicked by a user on the current page, and launches a transfer management service according to the task transfer instruction; Alternatively, the local device receives an operation instruction of the user sliding up with two fingers on the launcher page, and launches the flow management service according to the operation instruction.
3. The control method for atomic service flow according to claim 1, characterized in that: The control method of atomic service flow also includes: When data recovery is required, the ArkUI component is used to provide a state management mechanism, bind the data and page state information that need to be migrated to the state variables, and restore them on the migrated peer device.
4. The control method for atomic service flow according to claim 1, characterized in that: The step of transferring the atomic service flow to the opposite-end device according to the logic module further comprises: After the opposite-end device restores the migration data through the transfer object application, the migration result is returned to the local-end device through the system framework layer. After receiving the migration result, the local-end device exits the transfer object application of the local-end device.
5. The control method for atomic service flow according to claim 1, characterized in that: The distributed task scheduling is used to perform task management across devices; The meta-capability represents the Ability operation management subsystem; The shared directory of the application is used to share the local Hap package between devices with the help of the distributed file service; The distributed file service is used for cross-device file management and file synchronization between multiple devices.
6. A control system for atomic service flow, characterized in that: The control system of the atomic service flow includes: The flow start module is used for the local device to pull up the flow management service according to the task flow instruction, pop up the device list through the flow management service, and start the atomic service flow function when it is detected that the user selects the opposite device; A service flow module, used for the local device to obtain a logical view, divide multiple logical elements into modules according to the logical view to obtain logical modules, and transfer the atomic service flow to the opposite device according to the logical modules; The logic module includes an application layer and a system framework layer; The application layer includes task flow management service, flow management service and atomic service center; The system framework layer includes distributed task scheduling, meta-capabilities, Hap packages, application shared directories, ArkUI components, distributed file services, distributed security authentication and distributed soft buses; When the service being transferred is not installed on the peer device and cannot be downloaded through the cloud, the atomic service center actively distributes the local Hap package to the peer device; The atomic service center is used to manage the application of atomic services and use the entrance of atomic services; The local Hap package is a native application package for installation. The atomic service center actively distributes the local Hap package to the peer device for transferring to install the locally installed application to the peer device to achieve free installation.
7. A local device, characterized in that: The local device includes: a memory, a processor, and a control program for atomic service flow stored in the memory and executable on the processor. When the control program for atomic service flow is executed by the processor, the steps of the control method for atomic service flow as described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a control program for atomic service flow, and when the control program for atomic service flow is executed by a processor, the steps of the control method for atomic service flow as described in any one of claims 1-5 are implemented.