CN117687678A - Linkage data sending method and system, storage medium and electronic equipment - Google Patents

Linkage data sending method and system, storage medium and electronic equipment Download PDF

Info

Publication number
CN117687678A
CN117687678A CN202311714357.1A CN202311714357A CN117687678A CN 117687678 A CN117687678 A CN 117687678A CN 202311714357 A CN202311714357 A CN 202311714357A CN 117687678 A CN117687678 A CN 117687678A
Authority
CN
China
Prior art keywords
event
linkage
model
data
model instance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311714357.1A
Other languages
Chinese (zh)
Inventor
贾晓科
姜国岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hollysys Automation Co Ltd
Original Assignee
Hangzhou Hollysys Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hollysys Automation Co Ltd filed Critical Hangzhou Hollysys Automation Co Ltd
Priority to CN202311714357.1A priority Critical patent/CN117687678A/en
Publication of CN117687678A publication Critical patent/CN117687678A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method and a system for transmitting linkage data, a storage medium and electronic equipment, wherein the method comprises the following steps: generating a first model instance using a predefined first business model and generating a second model instance using a predefined second business model, wherein the first model instance corresponds to a first business object and the second model instance corresponds to a second business object; performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set; and under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, determining linkage data generated when linkage events in the linkage event set are executed, and sending the linkage data to the target object. By adopting the technical scheme, the technical problem of how to automatically process the data aiming at the condition that the data is changed in the software operation process so as to improve the data transmission efficiency is solved.

Description

Linkage data sending method and system, storage medium and electronic equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and a system for transmitting linkage data, a storage medium, and an electronic device.
Background
At present, software products are not broken against increasingly complex business scenes, and clients have higher and higher requirements on software expandability and integration capability. The common software development method needs to establish a data structure under a service requirement scene, process data based on the data structure and then send the data to a user for subsequent work.
While tool software can be used to simplify code writing, for running software, if the data changes, the data structure must be modified, recoded to new software, and the new software used to replace the original software for data processing. That is, the current software development method has complex modification logic for running software, severely lags the data processing process, and reduces the efficiency of transmitting data to the user.
Therefore, in the related art, aiming at the situation that data change in the software operation process, the technical problem of how to automatically process the data so as to improve the data transmission efficiency exists.
Aiming at the technical problems of how to automatically process data to improve the data transmission efficiency under the condition that the data change in the running process of software in the related technology, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the application provides a linkage data sending method and system, a storage medium and electronic equipment, which at least solve the technical problem of how to automatically process data aiming at the condition that data change in the running process of software in the related technology so as to improve the data sending efficiency.
According to an embodiment of the present application, there is provided a method for transmitting linkage data, including: generating a first model instance using a predefined first business model, and generating a second model instance using a predefined second business model, wherein the first model instance corresponds to a first business object and the second model instance corresponds to a second business object; performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked; and under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, determining linkage data generated when linkage events in the linkage event set are executed, and sending the linkage data to the target object.
In an exemplary embodiment, before generating the first model instance using the predefined first business model and the second model instance using the predefined second business model, the method further comprises: determining a service system operated in an operation time environment, and determining a plurality of service objects contained in the service system; determining a service field from service data corresponding to each service object aiming at each service object of the plurality of service objects; mapping the service field into model attributes of an initial service model corresponding to each service object by using a data structure; and configuring the initial business model according to a model method set for the initial business model, wherein the model event and the model attribute set for the initial business model are used for obtaining a predefined business model, and the predefined business model at least comprises the predefined first business object and the predefined second business object.
In an exemplary embodiment, the linkage configuration is performed on the first model instance and the second model instance to obtain a configured linkage event set, which includes: determining a first event list of the first model instance, wherein the first event list at least comprises start and stop events of the first business object; generating a first subscription event for subscribing to the start-stop event, and generating a first event subscription list of the second model instance based on the first subscription event; acquiring a first driving event generated when the first subscription event occurs, and generating a second event list of the second model instance based on the first driving event; and determining the first event list, the second event list and the first event subscription list as the linkage event set.
In an exemplary embodiment, determining the first event list, the second event list, and the first event subscription list as the linked event set includes: for a plurality of second model examples, sequencing the plurality of second model examples according to the linkage sequence among the plurality of second model examples to obtain a sequencing result; determining a first linked second model instance in the sequencing result as a third model instance, and determining a fourth model instance adjacent to the third model instance from the sequencing result, wherein the third model instance is provided with a second event list and a first event subscription list, the fourth model instance is provided with a third event list and a second event subscription list, the second event subscription list is generated based on a second subscription event, the second subscription event is used for subscribing to a first driving event in the second event list, and the third event list is generated based on a second driving event generated when the second subscription event occurs; performing linkage configuration on the third model instance and the fourth model instance to obtain a configuration result; and determining the first event list, the second event list, the first event subscription list and the configuration result as the linkage event set.
In one exemplary embodiment, determining linkage data generated when a linkage event in the linkage event set is performed includes: analyzing the event name of the linkage event to obtain a unique event identifier of the linkage event; acquiring system change data when the linkage event is executed under the condition that the unique event identifier of the linkage event is used for indicating that the linkage event belongs to a system preset event; acquiring model change data when the linkage event is executed under the condition that the unique event identifier of the linkage event is used for indicating that the linkage event belongs to a custom event; and determining the linkage data according to the system change data and the model change data.
In one exemplary embodiment, transmitting the linkage data to the target object includes: establishing a transmission channel between an agent port and a visual interaction interface by calling the agent port connected with the visual interaction interface; and sending the linkage data to the visual interaction interface through the transmission channel, and displaying the linkage data to the target object on the visual interaction interface.
In an exemplary embodiment, after determining linkage data generated when a linkage event in the linkage event set is performed and transmitting the linkage data to the target object, the method further includes: determining a service storage area for storing the first model instance and the second model instance, wherein the service storage area represents a storage area in a running environment; and storing the linkage data into the service storage area, and lasting the linkage data.
According to another embodiment of the present application, there is also provided a system for transmitting linkage data, including: a visual interaction interface and a data processing module; wherein the data processing module is configured to generate a first model instance using a predefined first business model, and generate a second model instance using a predefined second business model, where the first model instance corresponds to a first business object and the second model instance corresponds to a second business object; performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked; and under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, determining linkage data generated when linkage events in the linkage event set are executed, and sending the linkage data to the target object.
In one exemplary embodiment, further comprising: and the visual interaction interface is used for determining an agent port connected with the data processing module, determining a transmission channel between the agent port and the data processing module and displaying the linkage data transmitted through the transmission channel to the target object in a visual mode.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described transmission method of linkage data when executed.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the above-mentioned method for transmitting linkage data through the computer program.
In the embodiment of the application, a first model instance is generated by using a predefined first service model, and a second model instance is generated by using a predefined second service model, wherein the first model instance corresponds to a first service object, and the second model instance corresponds to a second service object; performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance; and under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, determining linkage data generated when linkage events in the linkage event set are executed, and sending the linkage data to the target object. By adopting the technical scheme, the technical problem of how to automatically process the data aiming at the condition that the data is changed in the software operation process so as to improve the data transmission efficiency is solved, and the data transmission efficiency is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of a hardware environment of a method for transmitting linkage data according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of transmitting linkage data according to an embodiment of the present application;
FIG. 3 is an architectural diagram of a method of transmitting linkage data according to an embodiment of the present application;
fig. 4 is a flow chart of a method for transmitting linkage data according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an event configuration according to an embodiment of the present application;
FIG. 6 is a schematic diagram of receiving data over an event bus according to an embodiment of the present application;
fig. 7 is a block diagram of a transmission system of linkage data according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, subsystem, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements that are expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for transmitting linkage data is provided. The transmission method of the linkage data is widely applied to the scenes such as software system operation and the like. Alternatively, in the present embodiment, the above-described transmission method of linkage data may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to intelligent devices such as PCs, mobile phones, tablet computers, and engineering devices such as motors.
In this embodiment, a method for sending linkage data is provided and applied to the server, and fig. 2 is a flowchart of a method for sending linkage data according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, generating a first model instance by using a predefined first service model, and generating a second model instance by using a predefined second service model, wherein the first model instance corresponds to a first service object, and the second model instance corresponds to a second service object;
step S204, carrying out linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked;
step S206, determining linkage data generated when linkage events in the linkage event set are executed under the condition that the online modification instruction of the target object triggers the start-stop event in the first model instance, and transmitting the linkage data to the target object. Determining a first evaluation result corresponding to the received first voice command, and receiving a second evaluation result corresponding to the first voice command sent by other equipment in the multicast network.
The online modification instruction of the target object can be received based on a human-computer interaction interface.
By the steps, a first model instance is generated by using a predefined first service model, and a second model instance is generated by using a predefined second service model, wherein the first model instance corresponds to a first service object, and the second model instance corresponds to a second service object; performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked; under the condition that an on-line modification instruction of a target object triggers a start-stop event in the first model instance, linkage data generated when linkage events in the linkage event set are executed are determined, and the linkage data are sent to the target object, so that the technical problem of how to automatically process the data according to the condition that data change occurs in the software operation process in the related technology is solved, and the data sending efficiency is improved.
In an exemplary embodiment, before executing the technical solution of generating the first model instance using the predefined first service model and generating the second model instance using the predefined second service model in the above step S202, the following steps may be further implemented: step S11, determining a service system operated in an operation time environment, and determining a plurality of service objects contained in the service system; step S12, determining a service field from service data corresponding to each service object aiming at each service object of the plurality of service objects; step S13, mapping the service field into the model attribute of the initial service model corresponding to each service object by using a data structure; step S14, configuring the initial business model according to the model method set for the initial business model, and the model event and the model attribute set for the initial business model, to obtain a predefined business model, where the predefined business model at least includes the predefined first business object and the predefined second business object.
The runtime environment may be, for example, a corresponding environment runtime cluster, including runtime JAVA, runtime c++, and the like.
In an exemplary embodiment, for performing linkage configuration on the first model instance and the second model instance in the step S204, a process for obtaining the configured linkage event set may specifically include: step S21, determining a first event list of the first model instance, wherein the first event list at least comprises start-stop events of the first business object; step S22, generating a first subscription event for subscribing to the start-stop event, and generating a first event subscription list of the second model instance based on the first subscription event; step S23, a first driving event generated when the first subscription event occurs is obtained, and a second event list of the second model instance is generated based on the first driving event; and step S24, determining the first event list, the second event list and the first event subscription list as the linkage event set.
According to the embodiment, all events in the linkage event set are driven and executed according to the event subscription relation among the model instances, so that the automatic updating of the whole service model is realized, and the updating efficiency of the service model is improved.
In an exemplary embodiment, for the implementation process of determining the first event list, the second event list and the first event subscription list as the linkage event set in step S24, the method specifically may include the following steps: step S31, aiming at a plurality of second model examples, sorting the plurality of second model examples according to the linkage sequence among the plurality of second model examples to obtain a sorting result; step S32, determining a first linked second model instance in the sequencing result as a third model instance, and determining a fourth model instance adjacent to the third model instance from the sequencing result, wherein the third model instance is provided with a second event list and the first event subscription list, the fourth model instance is provided with a third event list and a second event subscription list, the second event subscription list is generated based on a second subscription event, the second subscription event is used for subscribing to a first driving event in the second event list, and the third event list is generated based on a second driving event generated when the second subscription event occurs; step S33, carrying out linkage configuration on the third model instance and the fourth model instance to obtain a configuration result; step S34, determining the first event list, the second event list, the first event subscription list and the configuration result as the linkage event set.
According to the embodiment, the linkage event set can be obtained through linkage configuration of the plurality of model instances, namely, the driving relationship among the plurality of model instances is realized, and the event richness of the linkage event set is further improved.
In an exemplary embodiment, for the implementation process of determining linkage data generated when the linkage event in the linkage event set is executed in the step S206, the implementation process specifically includes: step S41, analyzing the event name of the linkage event to obtain a unique event identifier of the linkage event; step S42, acquiring system change data when the linkage event is executed under the condition that the unique event identifier of the linkage event is used for indicating that the linkage event belongs to a system preset event; step S43, obtaining model change data when the linkage event is executed under the condition that the unique event identification of the linkage event is used for indicating that the linkage event belongs to a custom event; and S44, determining the linkage data according to the system change data and the model change data.
Through the embodiment, the model expansion development can be further formed by customizing the event expansion model library, so that the application integration is realized.
In an exemplary embodiment, to better understand the process of sending the linkage data to the target object in the step S206, the following implementation steps are specifically proposed: step S51, a transmission channel between a proxy port and a visual interaction interface is established by calling the proxy port connected with the visual interaction interface; and step S52, transmitting the linkage data to the visual interaction interface through the transmission channel, and displaying the linkage data to the target object on the visual interaction interface.
In an exemplary embodiment, after determining linkage data generated when the linkage event in the linkage event set is executed and transmitting the linkage data to the target object, the following steps may be further executed: step S61, determining a service storage area for storing the first model instance and the second model instance, wherein the service storage area represents a storage area in a running environment; and step S62, storing the linkage data into the service storage area, and lasting the linkage data.
Based on the embodiment, the persistence of the linkage data is realized, an isolated calculation and storage are provided for the storage of the linkage data, and the safety and the stability of the linkage data are improved.
In order to better understand the process of the method for transmitting linkage data, the following describes the flow of the implementation method for transmitting linkage data in combination with the alternative embodiment, but is not limited to the technical solution of the embodiment of the present application.
In this embodiment, an architecture schematic diagram for implementing a method for transmitting linkage data is provided, as shown in fig. 3, a conceptual design is first performed, and the following concepts are proposed: models, model instances, applications.
The model is an information specification expressing a business object, and definition information of the model is stored by using a data structure, and can be understood as Class (Class) in programming concepts.
Model instances represent specific objects in a real scene and can be understood as objects (objects) in a programming concept.
The application program corresponds to an application program model, and the application program model can comprise a plurality of model instances and is a basic unit for service logic execution. Each application model appears as a program running instance in the computing environment.
Then, in the design environment section, definition of model types is completed using a design tool, and stored in the form of data entities. And, the design tool may modify model types online after the system is running. After the system is running, a monitoring tool may be used to monitor the state of the model instance in the computing environment.
The computing environment can be understood as a distributed task scheduling engine system, and provides a running time for the running of model instances, namely the model instances run in the computing system in the form of program processes or threads, and the model instances are driven by an event mechanism.
In a computing environment, real-time computing, flow computing, and model persistence services may be implemented. The real-time calculation shows the change of real-time response data, and carries out operation according to defined logic rules, outputs the changed data and generates events, and drives other model examples to carry out linkage response. The process calculation can realize the process processing in the application and informatization business, and execute condition judgment and data update events, and has low requirement on real-time property. The model persistence service provides an intermediate service layer for isolating the calculation and storage of model data, and ensures that a model instance does not directly interact with the storage device, thereby realizing a decoupled distributed computing scene between the running environment where the model operation is located and the storage environment.
Under the collection environment, data can be collected through different collectors, and after the collected data is stored in the physical equipment in a data structure to form a data entity, the data entity is read and written by using a model persistence service of the computing environment.
The client is provided with a model service agent (corresponding to the agent port) facing the man-machine interface program (corresponding to the visual interaction interface). The human-machine interface program enables interaction of the user with the model instance. The model service agent provides the user with a generic method of accessing model instances through a human-machine interface program, which the user can also customize using design tools. Wherein, if through the fields of the visual database table, the user can modify the field type, number, etc. based on the human interface program.
Wherein the reference relationships of FIG. 3 represent the operating logic of the model instance in a computing environment. Inheritance relationships represent relationships between the concepts described above. The data stream represents the flow direction of the data.
Alternatively, the above conceptual designs, design environments, and computing environments may collectively implement the functionality of the above data processing modules.
Next, a method for transmitting linkage data will be described with reference to fig. 4, and fig. 4 is a schematic flow chart of a method for transmitting linkage data according to an embodiment of the present application, as shown in fig. 4, and the specific flow is as follows:
step 1, performing model definition:
and defining a service model of the service object of the service scene. Wherein the model definition at least comprises: attributes, methods, events. Model definitions may be described in a Json format, which may be custom or may refer to specifications of other organizations. In addition, after the application model is created, the driving relationship between the application model and other model instances can be configured.
Wherein attributes may be defined using a data structure, mapped to fields in a data entity. Or virtual, and need not be in one-to-one correspondence with the entity fields. Methods include names, types and numbers of parameters, including general methods and extension methods. The general method represents the read-write method of the data entity corresponding to the general model, is realized by default by the base class of the model, and can be directly called in the programming process. The expansion method is customized by a user, the logic is realized by a customized script, and the expansion method can be realized by adopting Javascript. The event contains an event name and event data. Event names are expressed as character strings, and event data may include: model class name, model instance identification, event trigger time.
In the step, the self-defined expansion method can expand the model library, so as to form on-line model development and calling logic of an external expansion model, and realize the application integration function.
Step 2, online design of a model:
and installing the defined business object model into a computing environment, wherein each model instance is resident in a memory in the form of a computer process, and can be linked based on events generated by data change. The method for online design of the business model can be flexibly configured according to the business scene, and realizes the online design of business logic.
In this step, a subscription configuration process between model instances is described in connection with fig. 5. As shown in fig. 5, for example, the event list of the application program model instance is subscribed by the event subscription list in the model instance 1, while the event list of the model instance 1 is subscribed by the event subscription list in the model instance 2, that is, when a start event or a stop event in the event list of the application program model instance occurs, the subscription event in the event subscription list in the model instance 1 correspondingly occurs, and then the subscription event in the event subscription list in the model instance 2 also occurs, so that different model instances are driven in linkage until the storage instance sends the finally generated linkage data to the client.
The application model instance may be understood as a first model instance in the above embodiment, and the model instance 1, the model instance 2, and the storage instance may be understood as a second model instance.
Alternatively, the events in FIG. 5 may be, for example, as shown in Table 1 below:
table 1 event instance table
Event name Description of the invention Remarks
SYS_DATACHANGE Data change event System reservation name SYS header
SYS_ALERT Alarm event System reservation name SYS header
SYS_APPLICATION_START Program start event System reservation name SYS header
SYS_APPLICATION_CLOSE Program shutdown event System reservation name SYS header
USER_DEVICE_ALERT Device model alarm event Custom name USER header
USER_DEVICE_UPDATE Device model upgrade event Custom name USER header
Wherein each event is unique and has a specific meaning. Events can be uniformly defined by JSON format so that model instances are parsed in a uniform format.
Step 3, model calculation operation:
as shown in FIG. 6, when the model is running in a computing environment, events and data sent by the event bus are received by a monitor (i.e., the monitoring tool described above). Wherein the data of the event bus is generated by running a model instance in the computing environment. Meanwhile, a data communication interface (not shown in fig. 6) of the computing environment receives model definition data transmitted from a designer (i.e., the above-described design tool), loads model instances, and provides an external monitoring access interface in communication with a monitor for each model instance.
Step 4, data storage: data is collected and stored.
Step 5, man-machine interaction: the method is realized by a man-machine interaction interface, for example, a model service agent of the client is directly called, and interface services provided by the model service agent are used.
Through the steps, the linkage of data change and service update is completed based on the model online definition and the event-driven mechanism, and the service object can be adjusted at any time in the software running process. Because the code does not need to be recompiled in the adjustment process, the programming development of low coding is realized. And the complete flow from data acquisition to business logic processing and man-machine interface interaction is realized, the code quantity is small, the process is simple, and the method is applicable to various complex scenes.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
Fig. 7 is a block diagram of a linkage data transmission system according to an embodiment of the present application, as shown in fig. 7, including:
a data processing module 74 for generating a first model instance using a predefined first business model and a second model instance using a predefined second business model, wherein the first model instance corresponds to a first business object and the second model instance corresponds to a second business object; performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked; and under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, determining linkage data generated when linkage events in the linkage event set are executed, and displaying the linkage data to the target object on the visual interaction interface.
By the system, a first model instance is generated by using a predefined first service model, and a second model instance is generated by using a predefined second service model, wherein the first model instance corresponds to a first service object, and the second model instance corresponds to a second service object; performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked; under the condition that an on-line modification instruction of a target object triggers a start-stop event in the first model instance, linkage data generated when linkage events in the linkage event set are executed are determined, and the linkage data are sent to the target object, so that the technical problem of how to automatically process the data according to the condition that data change occurs in the software operation process in the related technology is solved, and the data sending efficiency is improved.
In an exemplary embodiment, as shown in fig. 7, the above-mentioned linkage data transmission system further includes: and the visual interaction interface 72 is used for determining an agent port connected with the data processing module, determining a transmission channel between the agent port and the data processing module, and displaying the linkage data transmitted through the transmission channel to the target object in a visual mode.
In an exemplary embodiment, the data processing module is further configured to: determining a service system operated in an operation time environment, and determining a plurality of service objects contained in the service system; determining a service field from service data corresponding to each service object aiming at each service object of the plurality of service objects; mapping the service field into model attributes of an initial service model corresponding to each service object by using a data structure; and configuring the initial business model according to a model method set for the initial business model, wherein the model event and the model attribute set for the initial business model are used for obtaining a predefined business model, and the predefined business model at least comprises the predefined first business object and the predefined second business object.
In an exemplary embodiment, the data processing module is further configured to: determining a first event list of the first model instance, wherein the first event list at least comprises start and stop events of the first business object; generating a first subscription event for subscribing to the start-stop event, and generating a first event subscription list of the second model instance based on the first subscription event; acquiring a first driving event generated when the first subscription event occurs, and generating a second event list of the second model instance based on the first driving event; and determining the first event list, the second event list and the first event subscription list as the linkage event set.
In an exemplary embodiment, the data processing module is further configured to: for a plurality of second model examples, sequencing the plurality of second model examples according to the linkage sequence among the plurality of second model examples to obtain a sequencing result; determining a first linked second model instance in the sequencing result as a third model instance, and determining a fourth model instance adjacent to the third model instance from the sequencing result, wherein the third model instance is provided with a second event list and a first event subscription list, the fourth model instance is provided with a third event list and a second event subscription list, the second event subscription list is generated based on a second subscription event, the second subscription event is used for subscribing to a first driving event in the second event list, and the third event list is generated based on a second driving event generated when the second subscription event occurs; performing linkage configuration on the third model instance and the fourth model instance to obtain a configuration result; and determining the first event list, the second event list, the first event subscription list and the configuration result as the linkage event set.
In an exemplary embodiment, the data processing module is further configured to: analyzing the event name of the linkage event to obtain a unique event identifier of the linkage event; acquiring system change data when the linkage event is executed under the condition that the unique event identifier of the linkage event is used for indicating that the linkage event belongs to a system preset event; acquiring model change data when the linkage event is executed under the condition that the unique event identifier of the linkage event is used for indicating that the linkage event belongs to a custom event; and determining the linkage data according to the system change data and the model change data.
In an exemplary embodiment, the data processing module is further configured to: establishing a transmission channel between an agent port and a visual interaction interface by calling the agent port connected with the visual interaction interface; and sending the linkage data to the visual interaction interface through the transmission channel, and displaying the linkage data to the target object on the visual interaction interface.
In an exemplary embodiment, the data processing module is further configured to: after determining linkage data generated when linkage events in the linkage event set are executed and sending the linkage data to the target object, further executing the following steps: determining a service storage area for storing the first model instance and the second model instance, wherein the service storage area represents a storage area in a running environment; and storing the linkage data into the service storage area, and lasting the linkage data.
Embodiments of the present application also provide a storage medium including a stored program, wherein the program performs the method of any one of the above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, generating a first model instance by using a predefined first service model, and generating a second model instance by using a predefined second service model, wherein the first model instance corresponds to a first service object, and the second model instance corresponds to a second service object;
s2, carrying out linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked;
s3, under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, linkage data generated when linkage events in the linkage event set are executed are determined, and the linkage data are sent to the target object.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, generating a first model instance by using a predefined first service model, and generating a second model instance by using a predefined second service model, wherein the first model instance corresponds to a first service object, and the second model instance corresponds to a second service object;
s2, carrying out linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked;
S3, under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, linkage data generated when linkage events in the linkage event set are executed are determined, and the linkage data are sent to the target object.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (11)

1. The method for transmitting the linkage data is characterized by comprising the following steps of:
generating a first model instance using a predefined first business model, and generating a second model instance using a predefined second business model, wherein the first model instance corresponds to a first business object and the second model instance corresponds to a second business object;
performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked;
and under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, determining linkage data generated when linkage events in the linkage event set are executed, and sending the linkage data to the target object.
2. The method of claim 1, wherein prior to generating the first model instance using the predefined first business model and the second model instance using the predefined second business model, the method further comprises:
determining a service system operated in an operation time environment, and determining a plurality of service objects contained in the service system;
determining a service field from service data corresponding to each service object aiming at each service object of the plurality of service objects;
mapping the service field into model attributes of an initial service model corresponding to each service object by using a data structure;
and configuring the initial business model according to a model method set for the initial business model, wherein the model event and the model attribute set for the initial business model are used for obtaining a predefined business model, and the predefined business model at least comprises the predefined first business object and the predefined second business object.
3. The method for transmitting linkage data according to claim 1, wherein the step of performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set includes:
Determining a first event list of the first model instance, wherein the first event list at least comprises start and stop events of the first business object;
generating a first subscription event for subscribing to the start-stop event, and generating a first event subscription list of the second model instance based on the first subscription event;
acquiring a first driving event generated when the first subscription event occurs, and generating a second event list of the second model instance based on the first driving event;
and determining the first event list, the second event list and the first event subscription list as the linkage event set.
4. The method of transmitting linkage data according to claim 3, wherein determining the first event list, the second event list, and the first event subscription list as the linkage event set includes:
for a plurality of second model examples, sequencing the plurality of second model examples according to the linkage sequence among the plurality of second model examples to obtain a sequencing result;
determining a first linked second model instance in the sequencing result as a third model instance, and determining a fourth model instance adjacent to the third model instance from the sequencing result, wherein the third model instance is provided with a second event list and a first event subscription list, the fourth model instance is provided with a third event list and a second event subscription list, the second event subscription list is generated based on a second subscription event, the second subscription event is used for subscribing to a first driving event in the second event list, and the third event list is generated based on a second driving event generated when the second subscription event occurs;
Performing linkage configuration on the third model instance and the fourth model instance to obtain a configuration result; and determining the first event list, the second event list, the first event subscription list and the configuration result as the linkage event set.
5. The linkage data transmission method according to claim 1, wherein determining linkage data generated when a linkage event in the linkage event set is executed includes:
analyzing the event name of the linkage event to obtain a unique event identifier of the linkage event; acquiring system change data when the linkage event is executed under the condition that the unique event identifier of the linkage event is used for indicating that the linkage event belongs to a system preset event;
acquiring model change data when the linkage event is executed under the condition that the unique event identifier of the linkage event is used for indicating that the linkage event belongs to a custom event;
and determining the linkage data according to the system change data and the model change data.
6. The method of transmitting linkage data according to claim 1, wherein transmitting the linkage data to the target object includes:
Establishing a transmission channel between an agent port and a visual interaction interface by calling the agent port connected with the visual interaction interface;
and sending the linkage data to the visual interaction interface through the transmission channel, and displaying the linkage data to the target object on the visual interaction interface.
7. The linkage data transmission method according to claim 1, wherein after determining linkage data generated when a linkage event in the linkage event set is executed and transmitting the linkage data to the target object, the method further comprises:
determining a service storage area for storing the first model instance and the second model instance, wherein the service storage area represents a storage area in a running environment;
and storing the linkage data into the service storage area, and lasting the linkage data.
8. A transmission system of linkage data, comprising:
a data processing module for generating a first model instance using a predefined first business model and a second model instance using a predefined second business model, wherein the first model instance corresponds to a first business object and the second model instance corresponds to a second business object; performing linkage configuration on the first model instance and the second model instance to obtain a configured linkage event set, wherein the linkage event set comprises a first linkage event of the first model instance and a second linkage event of the second model instance, and the first linkage event and the second linkage event are linked; and under the condition that the on-line modification instruction of the target object triggers the start-stop event in the first model instance, determining linkage data generated when linkage events in the linkage event set are executed, and sending the linkage data to the target object.
9. The linkage data transmission system according to claim 8, further comprising:
and the visual interaction interface is used for determining an agent port connected with the data processing module, determining a transmission channel between the agent port and the data processing module and displaying the linkage data transmitted through the transmission channel to the target object in a visual mode.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 7.
11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 7 by means of the computer program.
CN202311714357.1A 2023-12-12 2023-12-12 Linkage data sending method and system, storage medium and electronic equipment Pending CN117687678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311714357.1A CN117687678A (en) 2023-12-12 2023-12-12 Linkage data sending method and system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311714357.1A CN117687678A (en) 2023-12-12 2023-12-12 Linkage data sending method and system, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117687678A true CN117687678A (en) 2024-03-12

Family

ID=90131574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311714357.1A Pending CN117687678A (en) 2023-12-12 2023-12-12 Linkage data sending method and system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117687678A (en)

Similar Documents

Publication Publication Date Title
CN111708557B (en) Method, device and storage medium for updating configuration file
CN113704052B (en) Operation and maintenance system, method, equipment and medium of micro-service architecture
CN111897643B (en) Thread pool configuration system, method, device and storage medium
CN115688715A (en) Report generation method and device and computer readable medium
CN115185434A (en) Vehicle application scene processing method, device, equipment and storage medium
CN113608751A (en) Operation method, device and equipment of reasoning service platform and storage medium
US20130307854A1 (en) Method and System for Visualising a System Model
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
CN112558968A (en) Resource tree view generation method, device, equipment and storage medium
CN116431200A (en) Configuration method, device, equipment and storage medium for application data configuration information
CN108011877B (en) IP address obtaining method and device based on OSGI, computer equipment and storage medium
CN117687678A (en) Linkage data sending method and system, storage medium and electronic equipment
CN115826980A (en) Data processing method, data processing device, storage medium and electronic equipment
CN114675921A (en) Method and device for customizing interface, electronic equipment and storage medium
CN114661274A (en) Method and device for generating intelligent contract
CN114756224A (en) Activity execution method and device
CN108874625B (en) Information processing method and device, electronic equipment and storage medium
CN111142897B (en) Counting method and counting device for multiple application programs, storage medium and electronic equipment
CN111026466A (en) File processing method and device, computer readable storage medium and electronic equipment
CN116521199B (en) Component upgrading method, device, equipment and storage medium
CN113722341B (en) Operation data processing method and related device
CN113806596B (en) Operation data management method and related device
CN111885180B (en) Message issuing method and device
CN113760723B (en) Business process debugging method and device
CN110825992B (en) System theme replacement method based on smart city operation platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination