Incremental flow chart conversion method, device and equipment

Through the high concurrent incremental flowchart conversion method based on multi-process technology, the monitoring flowchart in the C/S architecture mode is converted into a flowchart in the B/S architecture mode, which solves the problem of cumbersome installation and deployment of the traditional C/S architecture mode, and realizes convenient monitoring operations and efficient flowchart conversion.

CN113870381BActive Publication Date: 2025-04-01SUPCON TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111171076.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-08
Publication Date
2025-04-01
Estimated Expiration
2041-10-08

AI Technical Summary

Technical Problem

The traditional C/S architecture model is cumbersome to install and deploy during the monitoring process, and it is difficult to meet the needs of managers, producers and operators for convenient monitoring.

Method used

Using a high concurrent incremental flowchart conversion method based on multi-process technology, the monitoring flowchart in the C/S architecture mode is converted into a flowchart that is recognizable by the B/S architecture mode, and displayed through the browser.

Benefits of technology

The flowchart conversion from C/S architecture to B/S architecture is realized, simplifying the monitoring operations of managers, producers and operators, and improving the convenience and efficiency of monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113870381B_ABST
    Figure CN113870381B_ABST
Patent Text Reader

Abstract

The present invention provides an incremental flow chart conversion method, device and equipment, which are applied to a distributed integrated monitoring system. The scheme includes: obtaining a first monitoring flow chart generated in a monitoring process using a C / S architecture mode; converting the first monitoring flow chart into a second monitoring flow chart recognizable by a B / S architecture mode; and displaying the second monitoring flow chart through a browser. The scheme is convenient for managers, producers and operators to use by displaying monitoring flow charts of different architecture modes to different objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a high-concurrency incremental flowchart conversion method, device and equipment based on multi-process technology. Background Art

[0002] Traditional distributed integrated monitoring software is mainly based on the C / S architecture model. This architecture model requires the installation of corresponding SCADA software on both the client and server sides, which is troublesome to install and deploy. With the development of software technology, more and more external demands have proposed supporting the B / S architecture that is more convenient to install and deploy, and realizing convenient and fast monitoring of various production information through the browser.

[0003] The traditional C / S architecture has certain advantages for actual producers and operators, but for managers, the B / S architecture is more convenient, and managers can directly view the real-time production information of the production line through the browser.

[0004] Therefore, based on a comprehensive monitoring solution that is easy for managers, producers and operators to use. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a high-concurrency incremental flowchart conversion method, device and equipment based on multi-process technology to provide a comprehensive monitoring solution that is convenient for managers, producers and operators to use.

[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0007] An incremental flow chart conversion method, applied in a distributed integrated monitoring system, comprises:

[0008] Acquire a first monitoring flow chart generated in a monitoring process using a C / S architecture mode;

[0009] Converting the first monitoring flow chart into a second monitoring flow chart recognizable by the B / S architecture model;

[0010] The second monitoring flowchart is displayed through a browser.

[0011] Optionally, in the incremental flowchart conversion method, converting the first monitoring flowchart into a second monitoring flowchart recognizable by the B / S architecture model includes:

[0012] Acquire an incremental conversion task through a master control process, wherein the incremental conversion task is a conversion task for converting the first monitoring flowchart into the second monitoring flowchart;

[0013] Determine whether the number of tasks M corresponding to the incremental conversion task is greater than a preset maximum number of execution processes N;

[0014] When the number of tasks M is less than the preset maximum number of execution processes N, M execution processes are created; when the number of tasks M is greater than the preset maximum number of execution processes N, N execution processes are created;

[0015] Sending the incremental conversion task to the created idle execution process, executing the incremental conversion task through the idle execution process, and feeding back the execution result to the main control process;

[0016] The main control process determines whether there is an unprocessed incremental conversion task, and when there is an unprocessed incremental conversion task, sends the unprocessed incremental conversion task to the idle execution process for processing.

[0017] Optionally, the above incremental flow chart conversion method further includes:

[0018] When there is no unprocessed incremental conversion task, it is determined whether the execution results of all the incremental conversion tasks are obtained. If so, it indicates that the incremental conversion task is completed, and the created idle execution process is controlled to be destroyed automatically.

[0019] Optionally, in the above incremental flow chart conversion method, before the idle execution process created by the control is destroyed by itself, it also includes:

[0020] When the incremental conversion task is completed, determine whether a new incremental conversion task is obtained within the preset time length, and if so, determine whether the task quantity X corresponding to the new incremental conversion task is greater than the preset maximum execution process number N;

[0021] When the number of tasks X is less than the preset maximum number of execution processes N, determine whether the number of tasks X is greater than the number of idle execution processes Y that have been created. If so, create X minus Y idle execution processes.

[0022] The incremental conversion task is processed using an idle execution process.

[0023] Optionally, in the incremental flowchart conversion method, the control of self-destruction of the created idle execution process includes:

[0024] When no new incremental conversion task is obtained within a preset time period after the incremental conversion task is executed, the created idle execution process is destroyed.

[0025] An incremental flow chart conversion device, applied in a distributed integrated monitoring system, comprises:

[0026] A flowchart acquisition unit, which acquires a first monitoring flowchart generated in a monitoring process using a C / S architecture mode;

[0027] A flowchart conversion unit, configured to convert the first monitoring flowchart into a second monitoring flowchart recognizable by a B / S architecture model;

[0028] A flowchart display unit is used to display the second monitoring flowchart through a browser.

[0029] Optionally, in the above-mentioned incremental flowchart conversion device, when the flowchart conversion unit converts the first monitoring flowchart into a second monitoring flowchart recognizable by the B / S architecture mode, it is specifically used to:

[0030] Acquire an incremental conversion task through a master control process, wherein the incremental conversion task is a conversion task for converting the first monitoring flowchart into the second monitoring flowchart;

[0031] Determine whether the number of tasks M corresponding to the incremental conversion task is greater than a preset maximum number of execution processes N;

[0032] When the number of tasks M is less than the preset maximum number of execution processes N, M execution processes are created; when the number of tasks M is greater than the preset maximum number of execution processes N, N execution processes are created;

[0033] Sending the incremental conversion task to the created idle execution process, executing the incremental conversion task through the idle execution process, and feeding back the execution result to the main control process;

[0034] The main control process determines whether there is an unprocessed incremental conversion task, and when there is an unprocessed incremental conversion task, sends the unprocessed incremental conversion task to the idle execution process for processing.

[0035] Optionally, the above incremental flow chart conversion device further includes:

[0036] The process destruction unit is used to determine whether the execution results of all incremental conversion tasks are obtained when there are no unprocessed incremental conversion tasks. If so, it indicates that the incremental conversion tasks are completed, and the created idle execution process is controlled to be destroyed automatically.

[0037] Optionally, in the above-mentioned incremental flowchart conversion device, before the process destruction unit controls the created idle execution process to destroy itself, the flowchart acquisition unit is further used to:

[0038] When the incremental conversion task is completed, it is determined whether a new incremental conversion task is acquired within a preset time period, and if so, the flowchart conversion unit is triggered;

[0039] The flowchart conversion unit determines whether the task number X corresponding to the new incremental conversion task is greater than the preset maximum execution process number N; when the task number X is less than the preset maximum execution process number N, determines whether the task number X is greater than the number of idle execution processes Y that have been created, and when greater than, creates X minus Y idle execution processes; and uses the idle execution process to process the incremental conversion task.

[0040] An incremental flow chart conversion device includes a memory and a processor;

[0041] The memory is used to store programs;

[0042] The processor is used to execute the program to implement each step of the incremental flowchart conversion method as described in any one of the above items.

[0043] Based on the above technical solution, in the above solution provided by the embodiment of the present invention, monitoring flowcharts of different architecture modes can be displayed to different objects, which is convenient for managers, producers and operators to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0045] Figure 1 A schematic diagram of a flow chart of an incremental flow chart conversion method disclosed in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of a flow chart of an incremental flow chart conversion method disclosed in another embodiment of the present application;

[0047] Figure 3 It is a flow chart of data interaction between the main control process and the execution process;

[0048] Figure 4 A schematic diagram of a flow chart of an incremental flow chart conversion method disclosed in another embodiment of the present application;

[0049] Figure 5 It is a structural schematic diagram of the incremental flow chart conversion device disclosed in the embodiment of the present application;

[0050] Figure 6 A hardware structure diagram of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] The two modes of B / S architecture + C / S architecture each have their own advantages and disadvantages. Therefore, this application integrates the advantages of the two modes by adopting the B / S architecture + C / S architecture, so that the combined technical solution can be convenient for managers, producers and operators to use.

[0053] Of course, in order to achieve the consistency of the display information of the flowchart on the B side (C / S architecture side) and the flowchart on the C side (B / S architecture side), and only require one configuration process, the C-side configuration flowchart needs to be converted into a flowchart file that can be recognized by the B side. Therefore, the flowchart conversion tool is an essential tool for implementing this solution. The type and specific configuration format of the conversion tool can be configured as needed by technical personnel in this field, as long as the basic function of converting the B-side flowchart to the C-side flowchart can be achieved.

[0054] Next, combine with Figure 1 The process of the incremental flow chart conversion method of the present application is introduced. The method can be applied to the distributed integrated monitoring system. Figure 1 The method includes: step S101 to step S103.

[0055] Step S101: Acquire a first monitoring flow chart generated during a monitoring process using a C / S architecture mode.

[0056] In this solution, the C / S architecture model is used at the producer and operator end to display the generated first monitoring flowchart, and the first monitoring flowchart is transmitted to the terminal device applying this method by active sending or passive acquisition. In one embodiment disclosed in the present application, the terminal device can be a computer, mobile phone, PC or other electronic terminal.

[0057] Step S102: converting the first monitoring flowchart into a second monitoring flowchart recognizable by the B / S architecture model.

[0058] In this step, the flowchart obtained by the terminal device applying this method is a flowchart of the B / S architecture model. In order to facilitate the terminal device to display the flowchart, the first monitoring flowchart can be converted into a second monitoring flowchart that can be recognized by the B / S architecture model through a pre-loaded conversion tool. At this time, the second monitoring flowchart can be directly displayed through the browser without the need to install cumbersome SCADA software at the terminal device.

[0059] Step S103: displaying the second monitoring flowchart through a browser.

[0060] At this time, the manager can obtain the monitoring flowchart through the browser. It can be seen that this solution is convenient for managers, producers and operators to use by displaying monitoring flowcharts of different architectural modes to different objects.

[0061] The conversion process of monitoring flowcharts is essentially a data processing process. In the existing data processing process, a single-process conversion method is generally used, which has slow data processing speed, poor conversion performance, and low conversion efficiency. When the amount of data to be processed is large, the processing time required is long. If this solution is used to process monitoring flowcharts, when the number of flowcharts is large, it cannot meet the requirements of fast flowchart conversion, and when the conversion fails, it is not easy to track and locate.

[0062] For example, a small or medium-sized SCADA field configuration flowchart may have dozens or even hundreds of flowcharts. The conversion of so many flowcharts takes a long time and there is a possibility of conversion failure during the process. Therefore, it is necessary to improve the flowchart conversion speed and solve the problem of abnormal conversion of subsequent flowcharts caused by the failure of conversion of individual flowcharts. It is also better to record the names of the flowcharts that failed to be converted, so that the staff can carry out targeted processing on the flowcharts that failed to be converted.

[0063] In order to overcome the drawbacks of existing data processing solutions, the above solution provided by this application can realize high-concurrency incremental flowchart conversion based on multi-process technology, and can complete the flowchart conversion work quickly and efficiently. Figure 2 In the incremental flowchart conversion method disclosed in the embodiment of the present application, converting the first monitoring flowchart into a second monitoring flowchart recognizable by the B / S architecture model may include steps S201 to S207.

[0064] Step S201: obtaining an incremental conversion task through a main control process, wherein the incremental conversion task is a conversion task for converting the first monitoring flowchart into the second monitoring flowchart.

[0065] In this scheme, the conversion strategy for converting the first monitoring flowchart into the second monitoring flowchart can be loaded into a preset processor, and the main process of the processor obtains an incremental conversion task, which is a conversion task for converting the first monitoring flowchart into the second monitoring flowchart, that is, the conversion task of all flowcharts provided by the C / S architecture.

[0066] Step S202: Determine whether the task quantity M corresponding to the incremental conversion task is greater than a preset maximum execution process number N.

[0067] In this solution, in order to improve the conversion speed of the flowchart, multiple execution processes can be used to simultaneously obtain multiple incremental conversion tasks for processing, and each process can process one conversion task at the same time. In this solution, before creating an execution process, it is necessary to identify and compare the number of incremental conversion tasks. Specifically, it is determined whether the number of tasks M corresponding to the incremental conversion tasks is greater than the preset maximum number of execution processes N, wherein the number of tasks M corresponding to the incremental conversion tasks actually refers to the number of monitoring flowcharts that need to be converted, and the preset maximum number of execution processes N is the maximum number of execution processes allowed to run simultaneously by the conversion tool using this method.

[0068] Step S203: When the number of tasks M is less than the preset maximum number of execution processes N, M execution processes are created.

[0069] In this step, when the number of tasks M (the number of first monitoring flowcharts to be converted) is less than the preset maximum number of execution processes N (the maximum number of execution processes allowed to run simultaneously by the conversion tool), M idle execution processes are created, through which the conversion from the first monitoring flowchart to the second monitoring flowchart is realized.

[0070] Step S204: When the number of tasks M is greater than the preset maximum number of execution processes N, N execution processes are created.

[0071] In this step, when the number of tasks M (the number of the first monitoring flowcharts to be converted) is greater than or equal to the preset maximum number of execution processes N (the maximum number of execution processes allowed to run simultaneously by the conversion tool), N idle execution processes are created, through which the conversion from the first monitoring flowchart to the second monitoring flowchart is realized.

[0072] Step S205: Send the incremental conversion task to the idle execution process that has been created, execute the incremental conversion task through the idle execution process, and feed back the execution result to the main control process.

[0073] In this step, the acquired incremental conversion task can be sent to the idle execution process that has been created and is in an idle state based on a preset sending logic (for example, a first-in-first-out logic), and these idle execution processes are used to implement the conversion from the first monitoring flowchart to the second monitoring flowchart, and the execution result (conversion result) is fed back to the main control process, wherein the feedback result may include the second monitoring flowchart that has been successfully converted, and may also include the reason for the conversion failure, as well as the identification information of the first monitoring flowchart that has failed to convert, thereby achieving the tracking and positioning of the monitoring flowchart that has failed to convert.

[0074] Step S206: The main control process determines whether there is any unprocessed incremental conversion task.

[0075] In this step, when the main control process obtains the execution result, it indicates that an execution process has entered an idle state. At this time, it is determined whether there are any unprocessed incremental conversion tasks. If so, execute step S207. If there are no incremental conversion tasks waiting to be processed, execute step S103.

[0076] Step S207: When there are unprocessed incremental conversion tasks, the unprocessed incremental conversion tasks are sent to the idle execution process for processing.

[0077] In this step, when it is detected that an execution process enters an idle state and there are unprocessed incremental conversion tasks, the unprocessed incremental conversion tasks are sent to the execution process in the idle state for flowchart conversion.

[0078] When all incremental conversion tasks are completed, step S103 is executed.

[0079] In a specific example disclosed in this application, the data interaction flow chart between the master process and the execution process can be found in Figure 3 The master control process dispatches conversion tasks to the execution process, and the execution process feeds back the conversion task execution results to the master control process.

[0080] It can be seen from the technical solutions disclosed in the above embodiments that the present application converts the acquired first monitoring flowchart by adopting an incremental multi-process data processing solution instead of the single-process data processing solution in the prior art, thereby improving the conversion speed of the first monitoring flowchart in the case of multi-tasking.

[0081] In the technical solution disclosed in this embodiment, when there are no unprocessed incremental conversion tasks, it indicates that all incremental conversion tasks have been processed or are being processed, and it is determined whether the execution results of all incremental conversion tasks are obtained. If so, it indicates that all incremental conversion tasks have been executed. At this time, all execution processes are in an idle state. At this time, the created idle execution process can be controlled to destroy itself.

[0082] In the technical solution disclosed in this embodiment, if a new incremental conversion task is obtained in a short time after the incremental conversion task is processed, the created incremental conversion task can continue to be used to process the new incremental conversion task. Figure 4 In the above scheme, before the idle execution process created by the control is destroyed by itself, it also includes:

[0083] Step S301: when the incremental conversion task is completed, it is determined whether a new incremental conversion task is obtained within a preset time period, and if so, step S302 is executed.

[0084] In this step, when the previous incremental conversion task is completed, if a new incremental conversion task is obtained within a short time, step S302 is executed.

[0085] Step S302: Determine whether the task quantity X corresponding to the new incremental conversion task is greater than the preset maximum execution process number N.

[0086] In this step, the task number corresponding to the new incremental conversion task is recorded as X, and it is determined whether the task number X is greater than the maximum number of execution processes N.

[0087] Step S303: When the task number X is less than the preset maximum execution process number N, determine whether the task number X is greater than the number of idle execution processes Y that have been created. If so, execute step S304; otherwise, no new execution process is created and execute step S305.

[0088] In this step, when the number of tasks X is less than the preset maximum number of execution processes N, it is determined whether the number of tasks X is greater than the number of idle execution processes Y that have been created. If it is less than the number of idle execution processes Y that have been created, there is no need to create a new execution process. If X is greater than Y, a new execution process needs to be created. At this time, step S304 is executed.

[0089] Step S304: Create X minus Y idle execution processes.

[0090] In this step, when X is greater than Y, Z idle processes are created, and Z=SY.

[0091] Step S305: using an idle execution process to process the incremental conversion task.

[0092] In this solution, when X is greater than N, NM execution processes are directly created.

[0093] In a technical solution disclosed in another embodiment of the present application, when no new incremental conversion task is obtained within a preset time after the incremental conversion task is executed, it indicates that the user does not need to perform flowchart conversion in a short period of time. At this time, the created idle execution process is destroyed.

[0094] This embodiment discloses an incremental flow chart conversion device. For the specific working contents of each unit in the device, please refer to the contents of the above method embodiment.

[0095] The incremental flowchart conversion device provided by an embodiment of the present invention is described below. The incremental flowchart conversion device described below and the incremental flowchart conversion method described above can be referred to each other.

[0096] Specifically, the incremental flow chart conversion device disclosed in the embodiment of the present application can be applied to a distributed integrated monitoring system, see Figure 5 The device may include: a flowchart acquisition unit A, a flowchart conversion unit B and a flowchart display unit C.

[0097] The flowchart acquisition unit A corresponds to step S101 in the above method, and acquires a first monitoring flowchart generated in the monitoring process using the C / S architecture mode;

[0098] The flowchart conversion unit corresponds to step S102 in the above method, and is used to convert the first monitoring flowchart into a second monitoring flowchart that can be recognized by the B / S architecture model;

[0099] The flowchart display unit corresponds to step S103 in the above method, and is used to display the second monitoring flowchart through a browser.

[0100] In the above method, when the flowchart conversion unit B converts the first monitoring flowchart into a second monitoring flowchart recognizable by the B / S architecture model, it is specifically used to:

[0101] Acquire an incremental conversion task through a master control process, wherein the incremental conversion task is a conversion task for converting the first monitoring flowchart into the second monitoring flowchart;

[0102] Determine whether the number of tasks M corresponding to the incremental conversion task is greater than a preset maximum number of execution processes N;

[0103] When the number of tasks M is less than the preset maximum number of execution processes N, M execution processes are created; when the number of tasks M is greater than the preset maximum number of execution processes N, N execution processes are created;

[0104] Sending the incremental conversion task to the created idle execution process, executing the incremental conversion task through the idle execution process, and feeding back the execution result to the main control process;

[0105] The main control process determines whether there is an unprocessed incremental conversion task, and when there is an unprocessed incremental conversion task, sends the unprocessed incremental conversion task to the idle execution process for processing.

[0106] In the above method, the above device may further include:

[0107] The process destroying unit D is used to determine whether the execution results of all the incremental conversion tasks are obtained when there is no unprocessed incremental conversion task. If so, it indicates that the incremental conversion task is completed, and the created idle execution process is controlled to be destroyed automatically.

[0108] In the above method, before the idle execution process created by the process destruction unit is controlled to destroy itself, the flowchart collection unit is further used to:

[0109] When the incremental conversion task is completed, it is determined whether a new incremental conversion task is acquired within a preset time period, and if so, the flowchart conversion unit is triggered;

[0110] The flowchart conversion unit determines whether the task number X corresponding to the new incremental conversion task is greater than the preset maximum execution process number N; when the task number X is less than the preset maximum execution process number N, determines whether the task number X is greater than the number of idle execution processes Y that have been created, and when greater than, creates X minus Y idle execution processes; and uses the idle execution process to process the incremental conversion task.

[0111] Figure 6 For a hardware structure diagram of the server provided in the embodiment of the present invention, see Figure 6 As shown, it includes: it may include: at least one processor 100, at least one communication interface 200, at least one memory 300 and at least one communication bus 400;

[0112] In the embodiment of the present invention, the number of the processor 100, the communication interface 200, the memory 300, and the communication bus 400 is at least one, and the processor 100, the communication interface 200, and the memory 300 communicate with each other through the communication bus 400; obviously, Figure 6 The communication connections shown for the processor 100, the communication interface 200, the memory 300, and the communication bus 400 are merely optional;

[0113] Optionally, the communication interface 200 may be an interface of a communication module, such as an interface of a GSM module;

[0114] The processor 100 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.

[0115] The memory 300 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0116] The processor 100 is specifically configured to:

[0117] Acquire a first monitoring flow chart generated in a monitoring process using a C / S architecture mode;

[0118] Converting the first monitoring flow chart into a second monitoring flow chart recognizable by the B / S architecture model;

[0119] The second monitoring flowchart is displayed through a browser.

[0120] In addition, the above-mentioned processor 100 is also used to execute other processes in the incremental flowchart conversion method disclosed in the above-mentioned embodiment of the present application.

[0121] For the convenience of description, the above system is described by dividing it into various modules according to its functions. Of course, when implementing the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0122] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0123] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0124] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0125] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0126] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An incremental flow chart conversion method, characterized in that: Applied in distributed integrated monitoring systems, including: Acquire a first monitoring flow chart generated in a monitoring process using a C / S architecture mode; Converting the first monitoring flow chart into a second monitoring flow chart recognizable by the B / S architecture model; Displaying the second monitoring flowchart through a browser; The step of converting the first monitoring flowchart into a second monitoring flowchart recognizable by the B / S architecture model includes: Acquire an incremental conversion task through a master control process, wherein the incremental conversion task is a conversion task for converting the first monitoring flowchart into the second monitoring flowchart; Determine whether the number of tasks M corresponding to the incremental conversion task is greater than a preset maximum number of execution processes N; When the number of tasks M is less than the preset maximum number of execution processes N, M execution processes are created; when the number of tasks M is greater than the preset maximum number of execution processes N, N execution processes are created; Sending the incremental conversion task to the created idle execution process, executing the incremental conversion task through the idle execution process, and feeding back the execution result to the main control process; When the main control process obtains the execution result, it determines whether there is an unprocessed incremental conversion task. If there is an unprocessed incremental conversion task, the unprocessed incremental conversion task is sent to the idle execution process for processing.

2. The incremental flow chart conversion method according to claim 1, characterized in that: Also includes: When there is no unprocessed incremental conversion task, it is determined whether the execution results of all the incremental conversion tasks are obtained. If so, it indicates that the incremental conversion task is completed, and the created idle execution process is controlled to be destroyed automatically.

3. The incremental flow chart conversion method according to claim 2, characterized in that: Before the idle execution process created by the control is destroyed by itself, it also includes: When the incremental conversion task is completed, determine whether a new incremental conversion task is obtained within the preset time length, and if so, determine whether the task quantity X corresponding to the new incremental conversion task is greater than the preset maximum execution process number N; When the number of tasks X is less than the preset maximum number of execution processes N, determine whether the number of tasks X is greater than the number of idle execution processes Y that have been created. If so, create X minus Y idle execution processes. The incremental conversion task is processed using an idle execution process.

4. The incremental flow chart conversion method according to claim 3, characterized in that: The idle execution process created by the control is destroyed by itself, including: When no new incremental conversion task is obtained within a preset time period after the incremental conversion task is executed, the created idle execution process is destroyed.

5. An incremental flow chart conversion device, characterized in that: Applied in distributed integrated monitoring systems, including: A flowchart acquisition unit, which acquires a first monitoring flowchart generated in a monitoring process using a C / S architecture mode; A flowchart conversion unit, configured to convert the first monitoring flowchart into a second monitoring flowchart recognizable by a B / S architecture model; A flowchart display unit, used for displaying the second monitoring flowchart through a browser; Wherein, when the flowchart conversion unit converts the first monitoring flowchart into a second monitoring flowchart recognizable by the B / S architecture mode, it is specifically used to: Acquire an incremental conversion task through a master control process, wherein the incremental conversion task is a conversion task for converting the first monitoring flowchart into the second monitoring flowchart; Determine whether the number of tasks M corresponding to the incremental conversion task is greater than a preset maximum number of execution processes N; When the number of tasks M is less than the preset maximum number of execution processes N, M execution processes are created; when the number of tasks M is greater than the preset maximum number of execution processes N, N execution processes are created; Sending the incremental conversion task to the created idle execution process, executing the incremental conversion task through the idle execution process, and feeding back the execution result to the main control process; When the main control process obtains the execution result, it determines whether there is an unprocessed incremental conversion task. If there is an unprocessed incremental conversion task, the unprocessed incremental conversion task is sent to the idle execution process for processing.

6. The incremental flow chart conversion device according to claim 5, characterized in that: Also includes: The process destruction unit is used to determine whether the execution results of all incremental conversion tasks are obtained when there are no unprocessed incremental conversion tasks. If so, it indicates that the incremental conversion tasks are completed, and the created idle execution process is controlled to be destroyed automatically.

7. The incremental flow chart conversion device according to claim 6, characterized in that: Before the idle execution process created by the process destruction unit is controlled to destroy itself, the flowchart collection unit is further used to: When the incremental conversion task is completed, it is determined whether a new incremental conversion task is acquired within a preset time period, and if so, the flowchart conversion unit is triggered; The flowchart conversion unit determines whether the task number X corresponding to the new incremental conversion task is greater than the preset maximum execution process number N; when the task number X is less than the preset maximum execution process number N, determines whether the task number X is greater than the number of idle execution processes Y that have been created, and when greater than, creates X minus Y idle execution processes; and uses the idle execution process to process the incremental conversion task.

8. An incremental flow chart conversion device, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the incremental flowchart conversion method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Data processing method and device based on multi-process concurrence

    CN103970599A