CN116071028A - Equipment monitoring flow chart generation method and device, electronic equipment and storage medium - Google Patents

Equipment monitoring flow chart generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116071028A
CN116071028A CN202310207231.9A CN202310207231A CN116071028A CN 116071028 A CN116071028 A CN 116071028A CN 202310207231 A CN202310207231 A CN 202310207231A CN 116071028 A CN116071028 A CN 116071028A
Authority
CN
China
Prior art keywords
node
monitoring
flow chart
monitored
equipment
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.)
Granted
Application number
CN202310207231.9A
Other languages
Chinese (zh)
Other versions
CN116071028B (en
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.)
XCMG Hanyun Technologies Co Ltd
Original Assignee
XCMG Hanyun Technologies 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 XCMG Hanyun Technologies Co Ltd filed Critical XCMG Hanyun Technologies Co Ltd
Priority to CN202310207231.9A priority Critical patent/CN116071028B/en
Publication of CN116071028A publication Critical patent/CN116071028A/en
Application granted granted Critical
Publication of CN116071028B publication Critical patent/CN116071028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • 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)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method, a device, an electronic device and a storage medium for generating a device monitoring flow chart, which are used for monitoring the state change of a device to be monitored and generating or fine-adjusting state nodes in the monitoring flow chart based on the actual state of the device by operating the device to be monitored, so that the monitoring flow chart is consistent with the actual operation condition of the device, and the monitoring flow chart can be synchronously adjusted at any time according to the change of the operation flow of the device under the condition that the change mode of the operation flow of the device cannot be known; a monitoring intervention interface is provided for a user, so that the user can trigger monitoring intervention operation, a monitoring node is generated based on monitoring description information input by the user, and then the monitoring description information is pushed to an Internet of things platform to control the operation of equipment to be monitored, even if how to adjust a monitoring mode for a changed operation flow cannot be known, the monitoring node and the monitoring mode which are adaptive to the current operation flow of the equipment can be generated immediately according to the current operation flow of the equipment, and the accuracy of the generation of a monitoring flow chart is improved.

Description

Equipment monitoring flow chart generation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of flowchart generation technologies, and in particular, to a method and apparatus for generating a device monitoring flowchart, an electronic device, and a storage medium.
Background
With the rapid development of the internet of things technology, how to utilize the internet of things platform to acquire the equipment state information of each equipment connected to the internet of things so as to control the equipment at proper time becomes an important problem of industrial equipment operation monitoring. The monitoring of the industrial equipment generally needs to effectively combine a large number of existing equipment monitoring flowcharts, and the whole working flow of the equipment and the working state of each link can be clearly grasped and the efficient control of the equipment can be realized by utilizing the equipment operation flow contained in the equipment monitoring flowcharts and the control operation interspersed in the equipment operation flow. Thus, the generation of the device monitoring flow chart is a key step in the device monitoring preparation link.
At present, when generating a device monitoring flow chart, an engineer determines a link and a control mode to be controlled in the whole operation flow in advance according to the operation flow of the device to be monitored, and then a flow editing tool such as a BPMN (Business Process Modeling Notation, business flow modeling symbol specification) is used for generating the device monitoring flow chart. However, the operation flow of a single device is not completely fixed, and may change to different degrees due to different reasons of the operation environment at any time, and when the operation flow changes, the original control strategy also needs to change accordingly, so that the currently generated device monitoring flow chart fails. More importantly, the change of the running flow of the equipment may not be predicted, and the mode of making the control strategy adjustment to the running flow with the change may not be preset, so in this scenario, the above-mentioned method of determining the link to be controlled in the whole running flow and the control mode in advance according to the running flow, thereby generating the equipment monitoring flow chart, will not be suitable. In addition, there may be a great difference between the operation flows of different kinds of devices, if the monitoring policy is designed in advance for each device, it is required to know the operation flow of each device so as to design a corresponding monitoring policy, the workload is large and is easy to be inconsistent with the actual situation, so that the accuracy of the generated device monitoring flow chart is poor, and the method is not applicable to industrial control scenes.
Disclosure of Invention
The invention provides a device monitoring flow chart generation method, a device, electronic equipment and a storage medium, which are used for solving the defect that the device monitoring flow chart cannot be accurately generated in the prior art under the conditions that the device type is diversified, the operation flow is not fixed, the change of the operation flow of the device cannot be predicted, and the mode of adjusting the control strategy for the changed operation flow cannot be formulated in advance.
The invention provides a method for generating a device monitoring flow chart, which comprises the following steps:
step 110, after equipment to be monitored starts to operate, if an internet of things platform monitors that the equipment to be monitored has state change, acquiring the real-time state of the equipment to be monitored from the internet of things platform, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into a current monitoring flow chart;
step 120, after a monitoring prompt is sent to a user, responding to a monitoring intervention operation triggered by the user, receiving monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so as to control the operation of the equipment to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node;
And 130, repeatedly executing the step 110 and the step 120 until the operation of the equipment to be monitored is finished, generating an end node, and inserting the end node into the current monitoring flow chart.
According to the method for generating the equipment monitoring flow chart provided by the invention, the monitoring description information input by the user is received, the monitoring node is generated based on the monitoring description information, the monitoring node is inserted into the current monitoring flow chart, and the monitoring description information is pushed to the internet of things platform, and the method specifically comprises the following steps:
if the control type in the monitoring description information is common approval, generating approval nodes based on the name of an approver in the control parameter of the monitoring description information, inserting the approval nodes into a current monitoring flow chart, pushing the monitoring description information to the Internet of things platform, pushing the real-time state of the equipment to be monitored to corresponding approvers for approval, and suspending the operation flow of the equipment to be monitored until approval passes;
if the control type in the monitoring description information is the condition judgment, generating a pair of condition nodes based on the judgment condition in the control parameter of the monitoring description information, inserting the pair of condition nodes into a current monitoring flow chart, pushing the monitoring description information to the Internet of things platform, determining an execution branch based on the real-time state of the equipment to be monitored and the judgment condition, and controlling the operation of the equipment to be monitored based on the execution branch.
According to the method for generating the device monitoring flow chart provided by the invention, if the device to be monitored is not operated for the first time, if the platform of the internet of things monitors that the device to be monitored has a state change, the real-time state of the device to be monitored is obtained from the platform of the internet of things, a current state node is generated based on the real-time state of the device to be monitored, and the current state node is inserted into the current monitoring flow chart, and the method specifically comprises the following steps:
determining a node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart;
inquiring a node array corresponding to the current monitoring flow chart based on the real-time state of the equipment to be monitored, and determining a node inquiring result corresponding to the real-time state of the equipment to be monitored; the node array comprises node description information of all nodes contained in the current monitoring flow chart and father-son node information of each node;
if the node query result corresponding to the real-time state of the equipment to be monitored is null and the child node of the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart is the monitoring node, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into the state of the equipment to be monitored after the child node of the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart; and updating parent-child node information of child nodes of corresponding nodes in the current monitoring flow chart of the previous state of the equipment to be monitored in the node array and the parent-child node information of the nodes in the current state.
According to the method for generating the equipment monitoring flow chart provided by the invention, the method further comprises the following steps:
responding to the flow chart modification operation triggered by the user, and acquiring a click position and a node editing type corresponding to the flow chart modification operation;
determining a node editing position corresponding to the flow chart modification operation based on the clicking position corresponding to the flow chart modification operation;
determining whether the flow diagram modification operation is allowed based on the node edit location and the node edit type; and if the flow chart modification operation is allowed, receiving flow chart modification information input by a user, and modifying the current monitoring flow chart based on the node editing position, the node editing type and the flow chart modification information.
According to the method for generating the device monitoring flow chart provided by the invention, the node editing position corresponding to the flow chart modification operation is determined based on the clicking position corresponding to the flow chart modification operation, and the method specifically comprises the following steps:
determining the distance between the node position of each node in the current monitoring flow chart and the clicking position corresponding to the flow chart modification operation;
if the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is smaller than a preset threshold value, determining the node corresponding to the minimum distance in the current monitoring flow chart as a node to be selected, pushing the node to be selected to the user, and determining the node position of the node to be selected as a node editing position corresponding to the flow chart modification operation after the user triggers the confirmation operation;
And if the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is greater than or equal to a preset threshold value, determining the clicking position corresponding to the flow chart modification operation as the node editing position corresponding to the flow chart modification operation.
According to the method for generating the device monitoring flow chart provided by the invention, the method for determining whether the flow chart modification operation is allowed or not based on the node editing position and the node editing type specifically comprises the following steps:
if the node editing position corresponds to any monitoring node in the current monitoring flow chart and the node editing type is modified or deleted, determining that the flow chart modification operation is allowed;
and if the node editing position corresponds to a blank position after the root node and before the end node in the current monitoring flow chart and the node editing type is newly added, determining that the flow chart modification operation is allowed.
According to the method for generating the equipment monitoring flow chart provided by the invention, the method for generating the equipment monitoring flow chart modifies the current monitoring flow chart based on the node editing position, the node editing type and the flow chart modification information, and specifically comprises the following steps:
If the node editing type is newly added, determining father nodes and child nodes of the nodes to be newly added based on the node editing position and the node positions of all nodes in the current monitoring flow chart, and updating father node information and child node information of the father nodes and child nodes of the nodes to be newly added and father node information and child node information of the newly added monitoring nodes after the monitoring nodes are newly added at the node editing position;
if the node editing type is node information modification, updating node description information of the node corresponding to the node editing position;
if the node editing type is node level modification, responding to the drag operation triggered by the user, acquiring a drag destination position corresponding to the drag operation, determining father nodes and child nodes of the node after the drag based on the drag destination position, updating node description information of the node corresponding to the node editing position based on the drag destination position, and updating father nodes and child nodes of the node after the drag, the node corresponding to the node editing position and father nodes and father child node information of the child nodes of the node corresponding to the node editing position;
if the node editing type is deleting, updating parent node information and child node information of a parent node and a child node of the node corresponding to the node editing position, and deleting node description information and parent-child node information of the node corresponding to the node editing position.
The invention also provides a device monitoring flow chart generating device, which comprises:
the system comprises a state node generating unit, a state monitoring unit and a state control unit, wherein the state node generating unit is used for acquiring the real-time state of equipment to be monitored from the internet of things platform if the internet of things platform monitors that the equipment to be monitored has state change after the equipment to be monitored starts to operate, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into a current monitoring flow chart;
the monitoring node generating unit is used for responding to the monitoring intervention operation triggered by the user after sending the monitoring prompt to the user, receiving the monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so as to control the operation of the equipment to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node;
and the iteration unit is used for repeatedly calling the state node generation unit and the monitoring node generation unit until the equipment to be monitored is operated, generating an ending node, and inserting the ending node into the current monitoring flow chart.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the device monitoring flow chart generation method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a device monitoring flowchart generation method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a device monitoring flowchart generation method as described in any one of the above.
According to the equipment monitoring flow chart generation method, the equipment monitoring flow chart generation device, the electronic equipment and the storage medium, the equipment to be monitored is operated to monitor the state change of the equipment to be monitored, and the state nodes in the monitoring flow chart are generated or finely adjusted based on the actual state of the equipment to enable the monitoring flow chart to be consistent with the actual operation condition of the equipment, and the monitoring flow chart can be synchronously adjusted at any time according to the change of the equipment operation flow chart under the condition that the change mode of the equipment operation flow chart cannot be known, so that the accuracy of the monitoring flow chart is improved; in addition, after the state nodes in the monitoring flow chart are generated or fine-tuned, a monitoring intervention interface is provided for a user, so that the user can trigger monitoring intervention operation, the monitoring nodes are generated based on monitoring description information input by the user, then the monitoring description information is pushed to the Internet of things platform to control the operation of equipment to be monitored, the influence of different control modes on the operation of the equipment is perceived in real time, even if the change mode of the operation flow of the equipment cannot be known and how to adjust the monitoring mode for the changed operation flow cannot be predicted, the monitoring nodes and the monitoring modes adapting to the change mode can be generated immediately according to the current operation flow of the equipment, the adaptability and the flexibility of the monitoring flow chart to the change of the operation flow of the equipment are further enhanced, and the accuracy of the generation of the monitoring flow chart is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow diagram of a method for generating a device monitoring flow chart provided by the invention;
FIG. 2 is a flow chart of a method for fine tuning a device monitoring flow chart provided by the invention;
FIG. 3 is a flow chart of a method for modifying a device monitoring flow chart provided by the invention;
FIG. 4 is a schematic structural diagram of a device for generating a device monitoring flow chart provided by the invention;
fig. 5 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flow chart of a method for generating a device monitoring flow chart, as shown in fig. 1, where the method includes:
step 110, after equipment to be monitored starts to operate, if an internet of things platform monitors that the equipment to be monitored has state change, acquiring the real-time state of the equipment to be monitored from the internet of things platform, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into a current monitoring flow chart;
step 120, after a monitoring prompt is sent to a user, responding to a monitoring intervention operation triggered by the user, receiving monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so as to control the operation of the equipment to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node;
and 130, repeatedly executing the step 110 and the step 120 until the operation of the equipment to be monitored is finished, generating an end node, and inserting the end node into the current monitoring flow chart.
Specifically, after the equipment to be monitored starts to operate, the equipment to be monitored can upload the equipment state representing the operation state of the equipment to be monitored to the internet of things platform in real time based on the internet of things, wherein the uploaded equipment state also changes correspondingly when the operation link of the equipment to be monitored changes in the operation flow, so that if the internet of things platform monitors that the equipment to be monitored changes in state, the real-time state of the current uploading of the equipment to be monitored can be obtained from the internet of things platform, and the current monitoring flow chart is updated based on the real-time state. If the device to be monitored is running for the first time, the current monitoring flow chart is shown to be in a first generation state, so that a current state node can be generated based on the real-time state of the device to be monitored, and the current state node can be inserted into the current monitoring flow chart, specifically after the last node (corresponding to the last device state of the device to be monitored). However, considering that even the same equipment may have different degrees of running processes in different running environments, for example, a new execution branch starts from a certain operation link, and the difference is difficult to be known in advance, in order to improve the accuracy of the equipment monitoring flow chart, the equipment to be monitored may be run for multiple times, so as to automatically fine-tune the current monitoring flow chart, and obtain a more accurate monitoring flow chart. If the device to be monitored is not operated for the first time, it indicates that the current monitoring flow chart is a relatively complete flow chart, and at this time, the flow chart is only required to be finely tuned according to the actual operation flow of the device to be monitored, so that whether the current monitoring flow chart needs to be finely tuned and a specific fine tuning manner can be determined based on node information of each node in the current monitoring flow chart and the real-time state of the device to be monitored.
And then, a monitoring prompt can be sent to the user to remind the user that the state of the equipment to be monitored changes, and the equipment to be monitored is confirmed whether intervention is needed to be controlled in the current link. If the user triggers the monitoring intervention operation, the monitoring intervention operation triggered by the user is responded, monitoring description information input by the user is received, monitoring nodes are generated based on the monitoring description information, the monitoring nodes are inserted into a current monitoring flow chart, and the monitoring description information is pushed to an Internet of things platform so as to control equipment to be monitored to operate based on the monitoring description information. The monitoring description information comprises control types and control parameters, wherein the control types comprise common approval and condition judgment, the control types are used for entering an approval program to wait for approval to pass so as to continue operation, the control types are used for determining the next execution mode of the equipment according to the current real-time state of the equipment to be controlled and preset control conditions, the control parameters comprise various parameters required by the corresponding control types during approval or condition judgment, and the monitoring nodes comprise approval nodes and condition nodes. In addition, the monitoring description information is pushed to the internet of things platform to control the operation of the equipment to be monitored based on the monitoring description information, the influence of different control modes on the operation of the equipment can be fed back in real time, and a user can know whether the control mode corresponding to the monitoring description information is proper or not according to the state of the real-time feedback of the equipment to be monitored in the subsequent operation process, so that whether the monitoring node corresponding to the monitoring description information is adjusted or not after the operation of the round of the equipment to be monitored is finished is determined.
If the user does not trigger the monitoring intervention operation, the equipment to be monitored continues to operate according to the original operation flow. It should be noted that, if the device to be monitored is not operated for the first time, the node corresponding to the current real-time state of the device to be monitored, which is uploaded currently, may have a child node in the current monitoring flowchart, and if the child node is a monitoring node and the user does not trigger the monitoring intervention operation, the device to be monitored is controlled to perform the next operation according to the monitoring node.
And repeatedly executing the steps 110 and 120 until the operation of the equipment to be monitored is finished. If the device to be monitored is running for the first time, an end node can be generated at this time, the end node is inserted into the last of the current monitoring flow chart, and the child nodes of all the leaf nodes (i.e. the nodes without child nodes) are set as the end node. If the device to be monitored is not operated for the first time, the end node exists in the monitoring flow chart at the moment, so that the end node does not need to be regenerated.
In order to clearly show the flow of the device monitoring flow chart generating method provided by the embodiment of the invention, the following description will be given according to the two cases of the first operation and the non-first operation of the device to be monitored respectively.
When the device to be monitored runs for the first time, the device to be monitored uploads the actual state to the internet of things platform in real time, and when the internet of things platform monitors that the state of the device to be monitored changes, a state node can be generated based on the current uploaded real-time state of the device to be monitored and inserted into a node corresponding to the previous state (different from the current uploaded state) of the device to be monitored in the current monitoring flow chart. And then, sending a monitoring prompt to a user to confirm whether a monitoring node needs to be inserted in the link so as to control the equipment to be monitored. If the user triggers the monitoring intervention operation, receiving monitoring description information input by the user, generating a new monitoring node based on the monitoring description information, inserting the monitoring node into a node corresponding to the current real-time state of the equipment to be monitored in the current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so that the Internet of things platform controls the equipment to be monitored to operate based on the monitoring description information. Repeating the steps until the operation of the equipment to be monitored is finished, then generating an end node, and inserting the end node into the current monitoring flow chart.
When the equipment to be monitored runs for the first time, the equipment to be monitored still uploads the real-time state of the equipment to be monitored to the Internet of things platform in real time, and when the Internet of things platform monitors that the state of the equipment to be monitored changes, whether the current monitoring flow chart needs to be finely tuned and a specific fine tuning mode are determined based on the node information of each node in the current monitoring flow chart and the real-time state of the equipment to be monitored, so that the fine tuning of the current monitoring flow chart is realized when necessary, and the actual running flow of the equipment to be monitored is more met. And then, sending a monitoring prompt to a user to confirm whether a monitoring node needs to be inserted in the link so as to control the equipment to be monitored. If the user triggers the monitoring intervention operation, receiving monitoring description information input by the user, generating a new monitoring node based on the monitoring description information, inserting the monitoring node into a node corresponding to the current real-time state of the equipment to be monitored in the current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so that the Internet of things platform controls the equipment to be monitored to operate based on the monitoring description information. Otherwise, the device to be monitored will continue to operate. If the current uploaded real-time state of the equipment to be monitored is the monitoring node, the next operation is performed by controlling the equipment to be monitored according to the monitoring node. Repeating the steps until the operation of the equipment to be monitored is finished.
Therefore, by operating the device to be monitored, the method provided by the embodiment of the invention monitors the state change of the device to be monitored and generates or fine-tunes the state node in the monitoring flow chart based on the real state thereof, so that the monitoring flow chart is consistent with the actual operation condition of the device, and the monitoring flow chart can be adjusted synchronously according to the change of the operation flow of the device at any time under the condition that the change mode of the operation flow of the device cannot be known, thereby improving the accuracy of the monitoring flow chart; in addition, after the state nodes in the monitoring flow chart are generated or fine-tuned, a monitoring intervention interface is provided for a user, so that the user can trigger monitoring intervention operation, the monitoring nodes are generated based on monitoring description information input by the user, then the monitoring description information is pushed to the Internet of things platform to control the operation of equipment to be monitored, the influence of different control modes on the operation of the equipment is perceived in real time, even if the change mode of the operation flow of the equipment cannot be known and how to adjust the monitoring mode for the changed operation flow cannot be predicted, the monitoring nodes and the monitoring modes adapting to the change mode can be generated immediately according to the current operation flow of the equipment, the adaptability and the flexibility of the monitoring flow chart to the change of the operation flow of the equipment are further enhanced, and the accuracy of the generation of the monitoring flow chart is improved.
In addition, the processing of node editing (such as node generation, query, addition, deletion, modification, or verification), display, front-end and back-end data transmission, and the like in the above steps may be implemented based on vue and element-ui components. In addition to improving the accuracy of the monitoring flowchart generation in the manner set forth in the embodiments above, the lifecycle of vue may also be utilized to provide an important basis for the monitoring flowchart generation accuracy. The device running start function may be added to the created hook function of vue, so that after the instance vue is created and the flowchart is prepared for generating, the device to be monitored is started to start running, meanwhile, a timer is set in the data object corresponding to the current instance vue, and the clearing function of the timer is added to the before control hook function of vue. The value of the timer is cleared only when the monitoring flow chart is changed, otherwise, the value is accumulated all the time, and when the value of the timer exceeds a preset threshold value, a vm.$ inhibitor function is called to destroy the current vue instance. By the method, the generation period of the monitoring flow chart can be ensured to be matched with the operation period of the equipment to be monitored, the equipment to be monitored can start to operate after the preparation work of the generation of the monitoring flow chart is finished, and the generation period of the monitoring flow chart can be finished when the equipment to be monitored finishes operating and the user does not trigger the flow chart modification operation, so that the generation of the flow chart is prevented from being wrong due to the fact that the generation periods of the monitoring flow chart and the operation period of the equipment to be monitored are not matched.
Based on the above embodiment, the receiving the monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flowchart, and pushing the monitoring description information to the internet of things platform, specifically includes:
if the control type in the monitoring description information is common approval, generating approval nodes based on the name of an approver in the control parameter of the monitoring description information, inserting the approval nodes into a current monitoring flow chart, pushing the monitoring description information to the Internet of things platform, pushing the real-time state of the equipment to be monitored to corresponding approvers for approval, and suspending the operation flow of the equipment to be monitored until approval passes;
if the control type in the monitoring description information is the condition judgment, generating a pair of condition nodes based on the judgment condition in the control parameter of the monitoring description information, inserting the pair of condition nodes into a current monitoring flow chart, pushing the monitoring description information to the Internet of things platform, determining an execution branch based on the real-time state of the equipment to be monitored and the judgment condition, and controlling the operation of the equipment to be monitored based on the execution branch.
Specifically, when the user triggers the monitoring intervention operation, two modes of controlling the device to be monitored are available, namely, normal approval and condition judgment, wherein the former is used for entering an approval program to wait for approval to pass so as to continue operation, and the latter is used for determining the next execution mode of the device to be controlled according to the current real-time state of the device to be controlled and preset control conditions. Therefore, if the control type in the monitoring description information is a common approval, generating an approval node based on the approval person name contained in the control parameter of the monitoring description information, then inserting the approval node into the current monitoring flow chart, and pushing the monitoring description information to the internet of things platform, so that the internet of things platform can push the real-time state of the equipment to be monitored to the approval person corresponding to the approval person name for approval, and suspending the operation flow of the equipment to be monitored until the approval passes. Here, the approval process at the approver may be automatic approval or manual approval, where the automatic approval may determine whether the approval passes according to a preset approval condition and a real-time state of the device to be monitored.
If the control type in the monitoring description information is a conditional judgment, a pair of conditional nodes may be generated based on the judgment condition in the control parameter of the monitoring description information. If the judging condition is a compound condition, for example, a plurality of logic expressions are included, corresponding paired condition nodes are respectively constructed based on each logic expression included, and the number of the condition nodes is greater than 2. Then, the paired condition nodes are inserted into the current monitoring flow chart, specifically, after the newly added state nodes in the step 110 can be newly added, monitoring description information is pushed to the internet of things platform, so that the internet of things platform can determine an execution branch based on the real-time state of the equipment to be monitored and the judging condition in the control parameters of the monitoring description information, and the operation of the equipment to be monitored is controlled based on the execution branch. Specifically, the control parameters may further include different execution branches corresponding to the judgment conditions, and the internet of things platform can determine which condition branch the device to be monitored accords with based on the real-time state of the device to be monitored and the judgment conditions, so as to determine the execution branch (the execution branch corresponds to the condition branch one by one) corresponding to the device to be monitored, and thus control the operation of the device to be monitored based on the execution branch. It should be noted that, after the platform of the internet of things determines the execution branch, the execution branch and the conditional branch corresponding to the execution branch may also be received, so as to determine the conditional node corresponding to the real-time state of the device to be monitored, and when the state node is newly added next time, the state node will be newly added to the conditional node.
Based on any of the above embodiments, as shown in fig. 2, if the device to be monitored is not running for the first time, if the platform of the internet of things monitors that the device to be monitored has a state change, the real-time state of the device to be monitored is obtained from the platform of the internet of things, a current state node is generated based on the real-time state of the device to be monitored, and the current state node is inserted into a current monitoring flowchart, which specifically includes:
step 210, determining a node corresponding to the previous state of the device to be monitored in the current monitoring flow chart;
step 220, inquiring a node array corresponding to the current monitoring flow chart based on the real-time state of the equipment to be monitored, and determining a node inquiring result corresponding to the real-time state of the equipment to be monitored; the node array comprises node description information of all nodes contained in the current monitoring flow chart and father-son node information of each node;
step 230, if the node query result corresponding to the real-time state of the device to be monitored is null and the child node of the node corresponding to the previous state of the device to be monitored in the current monitoring flowchart is the monitoring node, generating a current state node based on the real-time state of the device to be monitored, and inserting the current state node into the child node of the node corresponding to the previous state of the device to be monitored in the current monitoring flowchart; and updating parent-child node information of child nodes of corresponding nodes in the current monitoring flow chart of the previous state of the equipment to be monitored in the node array and the parent-child node information of the nodes in the current state.
Specifically, by operating the device to be monitored for multiple times, the change of the operation flow of the device to be monitored under different execution environments can be tested, so that even if the monitoring flow chart is finely adjusted according to the change of the operation flow, the accuracy of the monitoring flow chart is improved, wherein the fine adjustment comprises fine adjustment of the state nodes and fine adjustment of the monitoring nodes. When the equipment to be monitored is operated for the second time or more times, if the platform of the internet of things monitors that the equipment to be monitored has state change, the real-time state uploaded by the equipment to be monitored can be obtained from the platform of the internet of things. And determining a node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart, inquiring a node array corresponding to the current monitoring flow chart based on the current uploading real-time state (different from the previous state) of the equipment to be monitored, and determining a node inquiring result corresponding to the real-time state of the equipment to be monitored. The node array comprises node description information of all nodes contained in the current monitoring flow chart and parent-child node information of each node, and the node description information of any node comprises information such as node position, node name, type, icon, color and the like of the corresponding node. If the current monitoring flow chart already contains the state node corresponding to the real-time state, the node query result returns the node description information and the parent-child node information of the state node, and the association relationship between the real-time state and the state node is recorded, otherwise, the node query result is null.
If the node query result corresponding to the real-time state of the device to be monitored is null and the child node of the node corresponding to the previous state of the device to be monitored in the current monitoring flow chart is the monitoring node (namely, the condition node), the state of the device to be monitored does not appear in the previous operation flow, namely, the operation flow of the device to be monitored executes a new branch through the intervention of the monitoring intervention operation, and a new operation mode appears from the previous state. Therefore, a current state node is generated based on the current real-time state of the equipment to be monitored, and the current state node is inserted into a child node of a node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart and is used as a new branch. Because the node in the current monitoring flow chart and the relation between the nodes are changed, the father-son node information of the child node of the corresponding node in the current monitoring flow chart in the previous state of the equipment to be monitored in the node array is required to be updated, the current state node is used as the other child node of the corresponding node in the current monitoring flow chart in the previous state of the equipment to be monitored to be associated, meanwhile, the father-son node information of the current state node is updated, and the association relation between the real-time state and the current state node is recorded.
Under special conditions, a situation that a node query result corresponding to a real-time state of equipment to be monitored is empty, a child node of a node corresponding to a previous state of the equipment to be monitored in a current monitoring flow chart is a state node, namely, the equipment to be monitored is in a new state when not interfered by monitoring intervention operation, at the moment, a user can be asked to determine whether the state of the equipment to be monitored is normal, if the user confirms that the state is normal, the current state node can be generated based on the current real-time state of the equipment to be monitored, the current state node is inserted into the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart, another child node (namely, a new branch) of the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart is updated, father-child node information of the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart is updated, and association relation between the real-time state and the current state node is recorded.
If the node query result corresponding to the real-time state of the device to be monitored is not null, it can be further determined whether the node corresponding to the real-time state and the node corresponding to the previous state of the device to be monitored in the current monitoring flow chart are the relationship between the child node and the father node, if not, alarm information can be generated to prompt the user that the running logic of the device to be monitored may have problems.
Based on any of the above embodiments, as shown in fig. 3, the method further includes:
step 310, responding to the flow chart modification operation triggered by the user, and acquiring a click position and a node editing type corresponding to the flow chart modification operation;
step 320, determining a node editing position corresponding to the flowchart modification operation based on the click position corresponding to the flowchart modification operation;
step 330 of determining whether the flow diagram modification operation is allowed based on the node edit location and the node edit type; and if the flow chart modification operation is allowed, receiving flow chart modification information input by a user, and modifying the current monitoring flow chart based on the node editing position, the node editing type and the flow chart modification information.
Specifically, after the one-round operation flow of the device to be monitored is finished, an additional flow chart modification interface can be provided for the user to adjust the monitoring strategy based on the operation performance of the previous-round operation flow of the device to be monitored. When the user triggers the flow chart modification operation, the click position and the node editing type corresponding to the flow chart modification operation can be obtained. For example, the user may trigger a flowchart modification operation on the page by right clicking with a mouse or double clicking with a finger, etc., and select a node edit type, such as add, modify, delete, etc., in the displayed tab.
And determining the node editing position corresponding to the flow chart modification operation based on the clicking position corresponding to the flow chart modification operation. Here, considering that it may be difficult or inconvenient for the user to precisely select the node or the position to be edited when the flowchart modification operation is triggered, the node editing position where the user actually wants to edit may be determined based on the click position corresponding to the flowchart modification operation and the position of each node in the monitoring flowchart in the page. Then, based on the node editing position and the node editing type, whether the above-mentioned flow chart modification operation is allowed or not is determined by using a preset flow chart editing rule. If the flow chart modification operation is allowed, receiving flow chart modification information input by a user, and modifying the current monitoring flow chart based on the node editing position, the node editing type and the flow chart modification information. The flow chart modification information includes necessary information required by the editing operation corresponding to the node editing type, for example, information such as node name, node type and the like required by the newly added node operation.
Based on any one of the foregoing embodiments, the determining, based on the click position corresponding to the flowchart modification operation, a node editing position corresponding to the flowchart modification operation specifically includes:
Determining the distance between the node position of each node in the current monitoring flow chart and the clicking position corresponding to the flow chart modification operation;
if the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is smaller than a preset threshold value, determining the node corresponding to the minimum distance in the current monitoring flow chart as a node to be selected, pushing the node to be selected to the user, and determining the node position of the node to be selected as a node editing position corresponding to the flow chart modification operation after the user triggers the confirmation operation;
and if the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is greater than or equal to a preset threshold value, determining the clicking position corresponding to the flow chart modification operation as the node editing position corresponding to the flow chart modification operation.
Specifically, based on the node positions included in the node description information of each node in the current monitoring flowchart, the distance between the node position of each node in the page and the click position corresponding to the flowchart modification operation is calculated. And acquiring the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart, namely, the minimum value of the distance between the clicking position and the node position of each node, if the minimum distance is smaller than a preset threshold value, determining the node corresponding to the minimum distance in the current monitoring flow chart as a node to be selected, pushing the node to be selected to a user for confirmation, and determining the node position of the node to be selected as the node editing position corresponding to the flow chart modification operation after the user triggers the confirmation operation. Further, the minimum distance between the node position of each monitoring node in the current monitoring flow chart and the clicking position corresponding to the flow chart modification operation can be determined, and when the minimum distance is smaller than the preset minimum distance, the node position of the monitoring node corresponding to the minimum distance is used as the node editing position corresponding to the flow chart modification operation. If the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is larger than or equal to a preset threshold value, and no node exists near the clicking position corresponding to the table flow chart modification operation, determining the clicking position corresponding to the flow chart modification operation as the node editing position corresponding to the flow chart modification operation.
Based on any of the above embodiments, the determining whether the flowchart modification operation is allowed based on the node editing position and the node editing type specifically includes:
if the node editing position corresponds to any monitoring node in the current monitoring flow chart and the node editing type is modified or deleted, determining that the flow chart modification operation is allowed;
and if the node editing position corresponds to a blank position after the root node and before the end node in the current monitoring flow chart and the node editing type is newly added, determining that the flow chart modification operation is allowed.
Specifically, considering that each state node and the association relationship between the state nodes in the monitoring flowchart are formed according to the actual state of the device to be monitored in the actual running process, the user-triggered flowchart modifying operation can only be generally directed to the monitoring node. Thus, in determining whether a flow diagram modification operation is allowed, it may be determined in conjunction with the node edit location and the node edit type. And if the node editing position corresponds to any monitoring node in the current monitoring flow chart and the node editing type is modified or deleted, determining that the flow chart modification operation is allowed. If the node editing position corresponds to a blank position after the root node and before the end node in the current monitoring flow chart and the node editing type is newly added, determining that the flow chart modification operation is allowed.
Based on any one of the above embodiments, the modifying the current monitoring flowchart based on the node editing position, the node editing type and the flowchart modification information specifically includes:
if the node editing type is newly added, determining father nodes and child nodes of the nodes to be newly added based on the node editing position and the node positions of all nodes in the current monitoring flow chart, and updating father node information and child node information of the father nodes and child nodes of the nodes to be newly added and father node information and child node information of the newly added monitoring nodes after the monitoring nodes are newly added at the node editing position;
if the node editing type is node information modification, updating node description information of the node corresponding to the node editing position;
if the node editing type is node level modification, responding to the drag operation triggered by the user, acquiring a drag destination position corresponding to the drag operation, determining father nodes and child nodes of the node after the drag based on the drag destination position, updating node description information of the node corresponding to the node editing position based on the drag destination position, and updating father nodes and child nodes of the node after the drag, the node corresponding to the node editing position and father nodes and father child node information of the child nodes of the node corresponding to the node editing position;
If the node editing type is deleting, updating parent node information and child node information of a parent node and a child node of the node corresponding to the node editing position, and deleting node description information and parent-child node information of the node corresponding to the node editing position.
Specifically, if the node editing type is newly added, determining a parent node and a child node of the node to be newly added based on the node editing position and the node position of each node in the current monitoring flow chart. The node of the last level closest to the node editing position can be selected as the parent node of the node to be newly added, and the original child node of the parent node is used as the child node of the node to be newly added. And after the monitoring node is newly added at the node editing position, updating the father node information and the son node information of the father node and the son node of the node to be newly added and the father node information and the son node information of the newly added monitoring node. Specifically, the child node pointer of the parent node may be modified to point to the newly added monitoring node, the parent node pointer of the child node may be modified to point to the newly added monitoring node, the parent node pointer of the newly added monitoring node may be modified to point to the parent node, and the child node pointer of the newly added monitoring node may be modified to point to the child node.
If the node editing type is node information modification, updating node description information of the node corresponding to the node editing position based on the flow chart modification information.
If the node editing type is node level modification, when a user triggers a drag operation, tracking the track of a user mouse or a finger and the like in real time, and thus obtaining a drag destination position corresponding to the drag operation. And determining a father node and a child node of the post-drag node based on the drag destination position, wherein the node of the last level closest to the drag destination position can be selected as the father node of the post-drag node, and the original child node of the father node is used as the child node of the post-drag node. Subsequently, the node description information of the node corresponding to the node editing position is updated based on the drag destination position, specifically, the node position of the node is modified. In addition, parent node and child node information of the father node and child node of the dragged node, the node corresponding to the node editing position, and the father node and child node of the node corresponding to the node editing position are updated. Here, the child node pointer of the dragged parent node may be directed to the node corresponding to the node editing position, the parent node pointer of the dragged child node may be directed to the node corresponding to the node editing position, and the parent node pointer of the node corresponding to the node editing position may be directed to the dragged parent node, and the child node pointer may be directed to the dragged child node. For the original parent and child nodes of the node corresponding to the node edit position (i.e., the parent and child nodes before the drag), the child node pointer of the original parent may be modified to point to the original child node, while the parent node pointer of the modified original child node points to the original parent node.
If the node editing type is deleting, directly deleting the node description information and the father-son node information of the node corresponding to the node editing position in the node array, and simultaneously updating the father node of the node corresponding to the node editing position and the father-son node information of the son node of the node corresponding to the node editing position. Wherein the child node pointer of the parent node may be modified to point to the child node and the parent node pointer of the child node may be modified to point to the parent node.
The device monitoring flowchart generating device provided by the invention is described below, and the device monitoring flowchart generating device described below and the device monitoring flowchart generating method described above can be correspondingly referred to each other.
Based on any of the above embodiments, fig. 4 is a schematic structural diagram of an apparatus for generating a device monitoring flowchart according to the present invention, as shown in fig. 4, where the apparatus includes: a state node generation unit 410, a monitoring node generation unit 420, and an iteration unit 430.
The state node generating unit 410 is configured to obtain a real-time state of the device to be monitored from the internet of things platform if the internet of things platform monitors that the device to be monitored has a state change after the device to be monitored starts to operate, generate a current state node based on the real-time state of the device to be monitored, and insert the current state node into a current monitoring flowchart;
The monitoring node generating unit 420 is configured to send a monitoring prompt to a user, receive monitoring description information input by the user in response to a monitoring intervention operation triggered by the user, generate a monitoring node based on the monitoring description information, insert the monitoring node into a current monitoring flowchart, and push the monitoring description information to the internet of things platform, so as to control the operation of the device to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node;
the iteration unit 430 is configured to repeatedly invoke the status node generating unit and the monitoring node generating unit until the operation of the device to be monitored is finished, generate an end node, and insert the end node into the current monitoring flowchart.
According to the device provided by the embodiment of the invention, the state change of the equipment to be monitored is monitored, and the state nodes in the monitoring flow chart are generated or finely adjusted based on the actual state, so that the monitoring flow chart is consistent with the actual running condition of the equipment, and the monitoring flow chart can be adjusted synchronously according to the change of the running flow of the equipment at any time under the condition that the change mode of the running flow of the equipment cannot be known, thereby improving the accuracy of the monitoring flow chart; in addition, after the state nodes in the monitoring flow chart are generated or fine-tuned, a monitoring intervention interface is provided for a user, so that the user can trigger monitoring intervention operation, the monitoring nodes are generated based on monitoring description information input by the user, then the monitoring description information is pushed to the Internet of things platform to control the operation of equipment to be monitored, the influence of different control modes on the operation of the equipment is perceived in real time, even if the change mode of the operation flow of the equipment cannot be known and how to adjust the monitoring mode for the changed operation flow cannot be predicted, the monitoring nodes and the monitoring modes adapting to the change mode can be generated immediately according to the current operation flow of the equipment, the adaptability and the flexibility of the monitoring flow chart to the change of the operation flow of the equipment are further enhanced, and the accuracy of the generation of the monitoring flow chart is improved.
Based on any one of the foregoing embodiments, the receiving the monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flowchart, and pushing the monitoring description information to the internet of things platform, specifically includes:
if the control type in the monitoring description information is common approval, generating approval nodes based on the name of an approver in the control parameter of the monitoring description information, inserting the approval nodes into a current monitoring flow chart, pushing the monitoring description information to the Internet of things platform, pushing the real-time state of the equipment to be monitored to corresponding approvers for approval, and suspending the operation flow of the equipment to be monitored until approval passes;
if the control type in the monitoring description information is the condition judgment, generating a pair of condition nodes based on the judgment condition in the control parameter of the monitoring description information, inserting the pair of condition nodes into a current monitoring flow chart, pushing the monitoring description information to the Internet of things platform, determining an execution branch based on the real-time state of the equipment to be monitored and the judgment condition, and controlling the operation of the equipment to be monitored based on the execution branch.
Based on any of the foregoing embodiments, if the device to be monitored is not running for the first time, if the platform of the internet of things monitors that the device to be monitored has a state change, acquiring a real-time state of the device to be monitored from the platform of the internet of things, generating a current state node based on the real-time state of the device to be monitored, and inserting the current state node into a current monitoring flowchart, where the method specifically includes:
determining a node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart;
inquiring a node array corresponding to the current monitoring flow chart based on the real-time state of the equipment to be monitored, and determining a node inquiring result corresponding to the real-time state of the equipment to be monitored; the node array comprises node description information of all nodes contained in the current monitoring flow chart and father-son node information of each node;
if the node query result corresponding to the real-time state of the equipment to be monitored is null and the child node of the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart is the monitoring node, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into the state of the equipment to be monitored after the child node of the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart; and updating parent-child node information of child nodes of corresponding nodes in the current monitoring flow chart of the previous state of the equipment to be monitored in the node array and the parent-child node information of the nodes in the current state.
Based on any of the above embodiments, the apparatus further includes a flowchart modification unit, where the flowchart modification unit is specifically configured to:
responding to the flow chart modification operation triggered by the user, and acquiring a click position and a node editing type corresponding to the flow chart modification operation;
determining a node editing position corresponding to the flow chart modification operation based on the clicking position corresponding to the flow chart modification operation;
determining whether the flow diagram modification operation is allowed based on the node edit location and the node edit type; and if the flow chart modification operation is allowed, receiving flow chart modification information input by a user, and modifying the current monitoring flow chart based on the node editing position, the node editing type and the flow chart modification information.
Based on any one of the foregoing embodiments, the determining, based on the click position corresponding to the flowchart modification operation, a node editing position corresponding to the flowchart modification operation specifically includes:
determining the distance between the node position of each node in the current monitoring flow chart and the clicking position corresponding to the flow chart modification operation;
if the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is smaller than a preset threshold value, determining the node corresponding to the minimum distance in the current monitoring flow chart as a node to be selected, pushing the node to be selected to the user, and determining the node position of the node to be selected as a node editing position corresponding to the flow chart modification operation after the user triggers the confirmation operation;
And if the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is greater than or equal to a preset threshold value, determining the clicking position corresponding to the flow chart modification operation as the node editing position corresponding to the flow chart modification operation.
Based on any of the above embodiments, the determining whether the flowchart modification operation is allowed based on the node editing position and the node editing type specifically includes:
if the node editing position corresponds to any monitoring node in the current monitoring flow chart and the node editing type is modified or deleted, determining that the flow chart modification operation is allowed;
and if the node editing position corresponds to a blank position after the root node and before the end node in the current monitoring flow chart and the node editing type is newly added, determining that the flow chart modification operation is allowed.
Based on any one of the above embodiments, the modifying the current monitoring flowchart based on the node editing position, the node editing type and the flowchart modification information specifically includes:
if the node editing type is newly added, determining father nodes and child nodes of the nodes to be newly added based on the node editing position and the node positions of all nodes in the current monitoring flow chart, and updating father node information and child node information of the father nodes and child nodes of the nodes to be newly added and father node information and child node information of the newly added monitoring nodes after the monitoring nodes are newly added at the node editing position;
If the node editing type is node information modification, updating node description information of the node corresponding to the node editing position;
if the node editing type is node level modification, responding to the drag operation triggered by the user, acquiring a drag destination position corresponding to the drag operation, determining father nodes and child nodes of the node after the drag based on the drag destination position, updating node description information of the node corresponding to the node editing position based on the drag destination position, and updating father nodes and child nodes of the node after the drag, the node corresponding to the node editing position and father nodes and father child node information of the child nodes of the node corresponding to the node editing position;
if the node editing type is deleting, updating parent node information and child node information of a parent node and a child node of the node corresponding to the node editing position, and deleting node description information and parent-child node information of the node corresponding to the node editing position.
Fig. 5 is a schematic structural diagram of an electronic device according to the present invention, and as shown in fig. 5, the electronic device may include: processor (processor) 510, memory (memory) 520, communication interface (communication interface) 530, and communication bus 540, wherein processor 510, memory 520, and communication interface 530 accomplish communication with each other through communication bus 540. Processor 510 may invoke logic instructions in memory 520 to perform a device monitoring flow chart generation method comprising: step 110, after equipment to be monitored starts to operate, if an internet of things platform monitors that the equipment to be monitored has state change, acquiring the real-time state of the equipment to be monitored from the internet of things platform, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into a current monitoring flow chart; step 120, after a monitoring prompt is sent to a user, responding to a monitoring intervention operation triggered by the user, receiving monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so as to control the operation of the equipment to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node; and 130, repeatedly executing the step 110 and the step 120 until the operation of the equipment to be monitored is finished, generating an end node, and inserting the end node into the current monitoring flow chart.
Further, the logic instructions in the memory 520 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the apparatus monitoring flowchart generation method provided by the methods described above, the method comprising: step 110, after equipment to be monitored starts to operate, if an internet of things platform monitors that the equipment to be monitored has state change, acquiring the real-time state of the equipment to be monitored from the internet of things platform, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into a current monitoring flow chart; step 120, after a monitoring prompt is sent to a user, responding to a monitoring intervention operation triggered by the user, receiving monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so as to control the operation of the equipment to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node; and 130, repeatedly executing the step 110 and the step 120 until the operation of the equipment to be monitored is finished, generating an end node, and inserting the end node into the current monitoring flow chart.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which when executed by a processor is implemented to perform the above provided device monitoring flowchart generation methods, the method comprising: step 110, after equipment to be monitored starts to operate, if an internet of things platform monitors that the equipment to be monitored has state change, acquiring the real-time state of the equipment to be monitored from the internet of things platform, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into a current monitoring flow chart; step 120, after a monitoring prompt is sent to a user, responding to a monitoring intervention operation triggered by the user, receiving monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so as to control the operation of the equipment to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node; and 130, repeatedly executing the step 110 and the step 120 until the operation of the equipment to be monitored is finished, generating an end node, and inserting the end node into the current monitoring flow chart.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for generating a device monitoring flowchart, comprising:
step 110, after equipment to be monitored starts to operate, if an internet of things platform monitors that the equipment to be monitored has state change, acquiring the real-time state of the equipment to be monitored from the internet of things platform, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into a current monitoring flow chart;
step 120, after a monitoring prompt is sent to a user, responding to a monitoring intervention operation triggered by the user, receiving monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so as to control the operation of the equipment to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node;
And 130, repeatedly executing the step 110 and the step 120 until the operation of the equipment to be monitored is finished, generating an end node, and inserting the end node into the current monitoring flow chart.
2. The method for generating the device monitoring flowchart according to claim 1, wherein the receiving the monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flowchart, and pushing the monitoring description information to the internet of things platform, specifically includes:
if the control type in the monitoring description information is common approval, generating approval nodes based on the name of an approver in the control parameter of the monitoring description information, inserting the approval nodes into a current monitoring flow chart, pushing the monitoring description information to the Internet of things platform, pushing the real-time state of the equipment to be monitored to corresponding approvers for approval, and suspending the operation flow of the equipment to be monitored until approval passes;
if the control type in the monitoring description information is the condition judgment, generating a pair of condition nodes based on the judgment condition in the control parameter of the monitoring description information, inserting the pair of condition nodes into a current monitoring flow chart, pushing the monitoring description information to the Internet of things platform, determining an execution branch based on the real-time state of the equipment to be monitored and the judgment condition, and controlling the operation of the equipment to be monitored based on the execution branch.
3. The method for generating the device monitoring flowchart according to claim 2, wherein if the device to be monitored is not running for the first time, the method for generating the current state node based on the real-time state of the device to be monitored acquires the real-time state of the device to be monitored from the internet of things platform if the internet of things platform monitors that the device to be monitored has a state change, and inserts the current state node into the current monitoring flowchart, specifically includes:
determining a node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart;
inquiring a node array corresponding to the current monitoring flow chart based on the real-time state of the equipment to be monitored, and determining a node inquiring result corresponding to the real-time state of the equipment to be monitored; the node array comprises node description information of all nodes contained in the current monitoring flow chart and father-son node information of each node;
if the node query result corresponding to the real-time state of the equipment to be monitored is null and the child node of the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart is the monitoring node, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into the state of the equipment to be monitored after the child node of the node corresponding to the previous state of the equipment to be monitored in the current monitoring flow chart; and updating parent-child node information of child nodes of corresponding nodes in the current monitoring flow chart of the previous state of the equipment to be monitored in the node array and the parent-child node information of the nodes in the current state.
4. The device monitoring flowchart generation method of claim 1 wherein the method further comprises:
responding to the flow chart modification operation triggered by the user, and acquiring a click position and a node editing type corresponding to the flow chart modification operation;
determining a node editing position corresponding to the flow chart modification operation based on the clicking position corresponding to the flow chart modification operation;
determining whether the flow diagram modification operation is allowed based on the node edit location and the node edit type; and if the flow chart modification operation is allowed, receiving flow chart modification information input by a user, and modifying the current monitoring flow chart based on the node editing position, the node editing type and the flow chart modification information.
5. The method for generating a device monitoring flowchart according to claim 4, wherein the determining a node editing location corresponding to the flowchart modification operation based on a click location corresponding to the flowchart modification operation specifically includes:
determining the distance between the node position of each node in the current monitoring flow chart and the clicking position corresponding to the flow chart modification operation;
If the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is smaller than a preset threshold value, determining the node corresponding to the minimum distance in the current monitoring flow chart as a node to be selected, pushing the node to be selected to the user, and determining the node position of the node to be selected as a node editing position corresponding to the flow chart modification operation after the user triggers the confirmation operation;
and if the minimum distance between the clicking position corresponding to the flow chart modification operation and the node position of each node in the current monitoring flow chart is greater than or equal to a preset threshold value, determining the clicking position corresponding to the flow chart modification operation as the node editing position corresponding to the flow chart modification operation.
6. The device monitoring flowchart generation method of claim 4 wherein the determining whether the flowchart modification operation is permitted based on the node edit location and the node edit type comprises:
if the node editing position corresponds to any monitoring node in the current monitoring flow chart and the node editing type is modified or deleted, determining that the flow chart modification operation is allowed;
And if the node editing position corresponds to a blank position after the root node and before the end node in the current monitoring flow chart and the node editing type is newly added, determining that the flow chart modification operation is allowed.
7. The method for generating a device monitoring flowchart according to claim 4, wherein the modifying the current monitoring flowchart based on the node editing location, the node editing type, and the flowchart modification information specifically includes:
if the node editing type is newly added, determining father nodes and child nodes of the nodes to be newly added based on the node editing position and the node positions of all nodes in the current monitoring flow chart, and updating father node information and child node information of the father nodes and child nodes of the nodes to be newly added and father node information and child node information of the newly added monitoring nodes after the monitoring nodes are newly added at the node editing position;
if the node editing type is node information modification, updating node description information of the node corresponding to the node editing position;
if the node editing type is node level modification, responding to the drag operation triggered by the user, acquiring a drag destination position corresponding to the drag operation, determining father nodes and child nodes of the node after the drag based on the drag destination position, updating node description information of the node corresponding to the node editing position based on the drag destination position, and updating father nodes and child nodes of the node after the drag, the node corresponding to the node editing position and father nodes and father child node information of the child nodes of the node corresponding to the node editing position;
If the node editing type is deleting, updating parent node information and child node information of a parent node and a child node of the node corresponding to the node editing position, and deleting node description information and parent-child node information of the node corresponding to the node editing position.
8. A device monitoring flowchart generating apparatus, comprising:
the system comprises a state node generating unit, a state monitoring unit and a state control unit, wherein the state node generating unit is used for acquiring the real-time state of equipment to be monitored from the internet of things platform if the internet of things platform monitors that the equipment to be monitored has state change after the equipment to be monitored starts to operate, generating a current state node based on the real-time state of the equipment to be monitored, and inserting the current state node into a current monitoring flow chart;
the monitoring node generating unit is used for responding to the monitoring intervention operation triggered by the user after sending the monitoring prompt to the user, receiving the monitoring description information input by the user, generating a monitoring node based on the monitoring description information, inserting the monitoring node into a current monitoring flow chart, and pushing the monitoring description information to the Internet of things platform so as to control the operation of the equipment to be monitored based on the monitoring description information; the monitoring description information comprises a control type and a control parameter, wherein the control type comprises common approval and condition judgment, and the monitoring node comprises an approval node and a condition node;
And the iteration unit is used for repeatedly calling the state node generation unit and the monitoring node generation unit until the equipment to be monitored is operated, generating an ending node, and inserting the ending node into the current monitoring flow chart.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the device monitoring flowchart generation method of any of claims 1 to 7 when the program is executed by the processor.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the device monitoring flowchart generation method of any of claims 1 to 7.
CN202310207231.9A 2023-03-07 2023-03-07 Equipment monitoring flow chart generation method and device, electronic equipment and storage medium Active CN116071028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310207231.9A CN116071028B (en) 2023-03-07 2023-03-07 Equipment monitoring flow chart generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310207231.9A CN116071028B (en) 2023-03-07 2023-03-07 Equipment monitoring flow chart generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116071028A true CN116071028A (en) 2023-05-05
CN116071028B CN116071028B (en) 2023-06-02

Family

ID=86176974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310207231.9A Active CN116071028B (en) 2023-03-07 2023-03-07 Equipment monitoring flow chart generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116071028B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116931529A (en) * 2023-09-14 2023-10-24 深圳市华科科技有限公司 Intelligent monitoring method and system for industrial production equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651301A (en) * 2016-11-29 2017-05-10 东软集团股份有限公司 Process monitoring method and apparatus
WO2018023933A1 (en) * 2016-08-03 2018-02-08 广州视睿电子科技有限公司 Method and apparatus for generating mind map
CN113222309A (en) * 2020-02-04 2021-08-06 北京彼速信息技术有限公司 Business process monitoring method and device, storage medium and electronic equipment
CN113850558A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Workflow arrangement method and device
CN114185750A (en) * 2021-12-16 2022-03-15 平安证券股份有限公司 Process monitoring method, device, equipment and storage medium
WO2022068189A1 (en) * 2020-09-30 2022-04-07 平安科技(深圳)有限公司 Flow visualization monitoring method and apparatus, computer device, and storage medium
CN114915567A (en) * 2022-05-25 2022-08-16 京东方科技集团股份有限公司 State monitoring system, and state information updating method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018023933A1 (en) * 2016-08-03 2018-02-08 广州视睿电子科技有限公司 Method and apparatus for generating mind map
CN106651301A (en) * 2016-11-29 2017-05-10 东软集团股份有限公司 Process monitoring method and apparatus
CN113222309A (en) * 2020-02-04 2021-08-06 北京彼速信息技术有限公司 Business process monitoring method and device, storage medium and electronic equipment
CN113850558A (en) * 2020-06-28 2021-12-28 华为技术有限公司 Workflow arrangement method and device
WO2022068189A1 (en) * 2020-09-30 2022-04-07 平安科技(深圳)有限公司 Flow visualization monitoring method and apparatus, computer device, and storage medium
CN114185750A (en) * 2021-12-16 2022-03-15 平安证券股份有限公司 Process monitoring method, device, equipment and storage medium
CN114915567A (en) * 2022-05-25 2022-08-16 京东方科技集团股份有限公司 State monitoring system, and state information updating method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王宏光: "复杂产品装配执行控制系统研究", 《计算技术与自动化》, vol. 35, no. 1, pages 47 - 50 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116931529A (en) * 2023-09-14 2023-10-24 深圳市华科科技有限公司 Intelligent monitoring method and system for industrial production equipment

Also Published As

Publication number Publication date
CN116071028B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
US7313659B2 (en) System and method for managing storage and program for the same for executing an operation procedure for the storage according to an operation rule
JP5126698B2 (en) Operation management apparatus, operation management method, and operation management program
US11379657B2 (en) Systems and methods for automatic report generation and retaining of annotations in reporting documents after regeneration
CN116071028B (en) Equipment monitoring flow chart generation method and device, electronic equipment and storage medium
US9602340B2 (en) Performance monitoring
KR101285886B1 (en) Method for reporting to server and terminal thereof
CN105760447A (en) Mind map processing method, server and client side
CN116028377A (en) Automatic test method, device and medium based on jenkins
US20230267255A1 (en) Semiconductor equipment modeling method and device
CN113687927A (en) Method, device, equipment and storage medium for scheduling and configuring flash tasks
CN111404889A (en) Auditing method and device and client
CN109063040B (en) Client program data acquisition method and system
CN113886198A (en) Alarm method, system, device and medium
CN110784353B (en) Network element equipment configuration data migration method and device
CN112819176B (en) Data management method and data management device suitable for machine learning
CN114884821A (en) Multi-policy conflict avoiding method in self-intelligence network
CN112567693B (en) Method and apparatus for network device performance measurement
CN115599881A (en) Workflow creation method, system, electronic device, and computer-readable storage medium
US20050108727A1 (en) Application binding in a network environment
KR101015895B1 (en) Method and system to automate the satellite operation procedure
US7720827B2 (en) Network meta-data libraries and related methods
CN115292205B (en) Method and device for generating relational topological graph of interface, electronic equipment and storage medium
CN109947892A (en) Analysis path determines method and system, interface, log tree constructing method
CN117111973A (en) Method and device for using web management platform during online upgrade suspension
CN115348180A (en) Model-driven-based equipment access and modeling method and device

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
GR01 Patent grant
GR01 Patent grant