CN114757164A - Comparison method and device of process flow chart and nonvolatile storage medium - Google Patents

Comparison method and device of process flow chart and nonvolatile storage medium Download PDF

Info

Publication number
CN114757164A
CN114757164A CN202210659653.5A CN202210659653A CN114757164A CN 114757164 A CN114757164 A CN 114757164A CN 202210659653 A CN202210659653 A CN 202210659653A CN 114757164 A CN114757164 A CN 114757164A
Authority
CN
China
Prior art keywords
process flow
flow diagram
value
comparison result
comparing
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
CN202210659653.5A
Other languages
Chinese (zh)
Other versions
CN114757164B (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.)
Zhejiang Supcon Technology Co Ltd
Original Assignee
Zhejiang Supcon Technology 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 Zhejiang Supcon Technology Co Ltd filed Critical Zhejiang Supcon Technology Co Ltd
Priority to CN202210659653.5A priority Critical patent/CN114757164B/en
Publication of CN114757164A publication Critical patent/CN114757164A/en
Application granted granted Critical
Publication of CN114757164B publication Critical patent/CN114757164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Abstract

The application discloses a method and a device for comparing process flow charts and a nonvolatile storage medium. Wherein, the method comprises the following steps: acquiring a first process flow diagram and a second process flow diagram, wherein the second process flow diagram is obtained by modifying the first process flow diagram; comparing the graphic primitives in the first process flow diagram and the second process flow diagram to obtain a target comparison result, wherein the target comparison result is used for indicating graphic primitive difference information in the first process flow diagram and the second process flow diagram; and displaying the primitive difference information corresponding to the target comparison result. The technical problem that the process flow chart is low in contrast efficiency due to naked eye identification is solved.

Description

Comparison method and device of process flow chart and nonvolatile storage medium
Technical Field
The present application relates to the field of process flows, and in particular, to a method and an apparatus for comparing process flow charts, and a non-volatile storage medium.
Background
In the actual project implementation and maintenance process, the flow chart is often modified, and the version difference before and after the modification of the flow chart is often difficult to identify and judge. At present, two flow charts can be opened simultaneously for visual judgment, but the visual judgment efficiency is low and misjudgment is easy to occur.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a method and a device for comparing process flow charts and a nonvolatile storage medium, which are used for at least solving the technical problem of low efficiency of comparing the process flow charts caused by naked eye identification.
According to an aspect of an embodiment of the present application, there is provided a method for comparing process flow charts, including: acquiring a first process flow diagram and a second process flow diagram, wherein the second process flow diagram is obtained by modifying the first process flow diagram; comparing the graphic primitives in the first process flow diagram and the second process flow diagram to obtain a target comparison result, wherein the target comparison result is used for indicating graphic primitive difference information in the first process flow diagram and the second process flow diagram; and displaying the primitive difference information corresponding to the target comparison result.
Optionally, comparing the primitives in the first process flow diagram and the second process flow diagram to obtain a comparison result, including: comparing a first primitive set of the device in the first process flow diagram with a second primitive set of the device in the second process flow diagram in sequence to obtain a first comparison result, wherein the devices in the first process flow diagram correspond to primitives in the first primitive set one by one, and the devices in the second process flow diagram correspond to primitives in the second primitive set one by one; comparing a first device attribute primitive set contained in the first primitive set with a second device attribute primitive set contained in the second primitive set to obtain a second comparison result, wherein the first device attributes correspond to the primitives in the first device attribute primitive set one by one, and the second device attributes correspond to the primitives in the second device attribute primitive set one by one; and combining the first comparison result and the second comparison result to obtain the target comparison result.
Optionally, sequentially comparing the first primitive set of the apparatus in the first process flow diagram with the second primitive set of the apparatus in the second process flow diagram to obtain a first comparison result, including: acquiring a first identifier corresponding to the first primitive set and a second identifier corresponding to the second primitive set; searching device primitives same as the first identifier in the second primitive set in sequence, and recording the device primitives as a first searching result; searching device primitives different from the second identifier in the first primitive set in sequence, and recording the device primitives as a second searching result; and combining the first search result and the second search result to obtain the first comparison result.
Optionally, comparing a first device attribute primitive set included in the first primitive set with a second device attribute primitive set included in the second primitive set to obtain a second comparison result, where the comparing includes: acquiring a first value set corresponding to the first device attribute primitive set and a second value set corresponding to the second device attribute primitive set; determining data types corresponding to the first value set and the second value set; and comparing according to predetermined value comparison rules of different data types to obtain the second comparison result.
Optionally, comparing according to predetermined value comparison rules of different data types, including: under the condition that the data types of a first value in the first value set and a second value in the second value set belong to a common object, directly comparing the first value with the second value; comparing the time corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to time objects; comparing the character strings corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to the character strings, wherein the length of the character strings is greater than a set length; and comparing values in the arrays corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to the arrays.
Optionally, before comparing the primitives in the first process flow diagram and the second process flow diagram, the method further includes: judging whether the archiving format of the first process flow chart is the same as that of the second process flow chart; and converting the archiving formats of the first process flow diagram and the second process flow diagram into the same archiving format under the condition that the archiving formats are different.
Optionally, displaying primitive difference information corresponding to the target comparison result, including: marking the comparison result on the first process flow diagram and the second process flow diagram according to different marks; and responding to a display instruction, and displaying the marked first process flow diagram and the marked second process flow diagram.
According to another aspect of the embodiments of the present application, there is provided another method for comparing process flow charts, including: showing a first process flow diagram and a second process flow diagram, wherein the second process flow diagram is obtained by modifying the first process flow diagram; and displaying the primitive difference information obtained by comparing the primitives in the first process flow diagram and the second process flow diagram.
According to another aspect of the embodiments of the present application, there is provided a comparison apparatus of a process flow diagram, including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a first process flow chart and a second process flow chart, and the second process flow chart is obtained by modifying a first process flow chart; the comparison module is used for comparing the graphic primitives in the first process flow diagram and the second process flow diagram to obtain a target comparison result, wherein the target comparison result is used for indicating graphic primitive difference information in the first process flow diagram and the second process flow diagram; and the display module is used for displaying the primitive difference information corresponding to the target comparison result.
According to still another aspect of the embodiments of the present application, there is provided a non-volatile storage medium, where the non-volatile storage medium includes a stored program, and when the program runs, the apparatus where the non-volatile storage medium is located is controlled to execute the comparison method of the process flow chart.
In the embodiment of the application, a first process flow diagram and a second process flow diagram are obtained, wherein the second process flow diagram is obtained by modifying the first process flow diagram; comparing the graphic elements in the first process flow diagram and the second process flow diagram to obtain a target comparison result, wherein the target comparison result is used for indicating graphic element difference information in the first process flow diagram and the second process flow diagram; and displaying the primitive difference information corresponding to the target comparison result, converting the first process flow diagram and the second process flow diagram into a unified storage format by using a computer, comparing the primitives in the process flow diagrams one by one to obtain the comparison result and visually displaying the comparison result, so that the purpose of quickly comparing the primitives in the process flow diagrams is achieved, the technical effect of improving the comparison efficiency of the process flow diagrams is realized, and the technical problem of low comparison efficiency of the process flow diagrams caused by naked eye identification is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal (or a mobile device) for implementing a comparison method of a process flow diagram according to an embodiment of the present application;
FIG. 2 is a flow chart of a comparative method of a process flow chart according to an embodiment of the present application;
FIG. 3 is a flowchart of an alternative process flow diagram file format conversion in accordance with an embodiment of the present application;
FIG. 4a is a schematic diagram of an alternative post-filing process flow pattern in accordance with an embodiment of the present application;
FIG. 4b is a schematic diagram of another alternative post-filing process flow pattern in accordance with an embodiment of the present application;
FIG. 5a is an alternative process flow diagram versus results software interface presentation diagram in accordance with embodiments of the present application;
FIG. 5b is a diagram showing another alternative process flow diagram versus a result software interface according to an embodiment of the present application;
FIG. 6 is a diagram of yet another alternative process flow diagram versus results software interface presentation in accordance with an embodiment of the present application;
FIG. 7 is a schematic illustration of an alternative process flow diagram comparison result mapping in accordance with an embodiment of the present application;
FIG. 8 is a schematic view of an alternative process flow diagram contrasting apparatus according to embodiments of the application;
FIG. 9 is a flow chart of a comparison method of another alternative process flow chart according to embodiments of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present application, there is provided a method embodiment of a method of comparing process flow diagrams, it being noted that the steps illustrated in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flow diagrams, in some cases the steps illustrated or described may be performed in an order different than presented herein.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Fig. 1 shows a hardware block diagram of a computer terminal (or mobile device) for implementing the process flow diagram comparison method. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission module 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the process flow chart comparison method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the process flow chart comparison method of the application software. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission module 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with the user interface of the computer terminal 10 (or mobile device).
FIG. 2 is a method of comparing process flow diagrams according to embodiments of the present application, as shown in FIG. 2, the method comprising the steps of:
step S202, acquiring a first process flow diagram and a second process flow diagram, wherein the second process flow diagram is obtained by modifying the first process flow diagram;
step S204, comparing the graphic elements in the first process flow chart and the second process flow chart to obtain a target comparison result, wherein the target comparison result is used for indicating graphic element difference information in the first process flow chart and the second process flow chart;
and step S206, displaying the primitive difference information corresponding to the target comparison result.
Through the steps, the first process flow diagram and the second process flow diagram can be converted into a unified storage format by using a computer, the graphic elements in the process flow diagrams are compared one by one to obtain a comparison result and visually displayed, and the purpose of rapidly comparing the graphic elements in the process flow diagrams is achieved, so that the technical effect of improving the comparison efficiency of the process flow diagrams is achieved, and the technical problem of low comparison efficiency of the process flow diagrams caused by naked eye identification is solved.
The method provided by the application is mainly applied to modification of the two process flow charts before and after modification, and the comparison efficiency is improved.
It should be noted that, at present, the archive formats and contents of different product lines have respective unique styles, and cannot be processed in a unified way. Therefore, before step S204, it is further required to determine whether the archive format of the first process flow diagram is the same as the archive format of the second process flow diagram; as shown in fig. 3, in the case where the archive formats are different, the archive formats of the first process flow diagram and the second process flow diagram are converted into the same archive format. The same archive format indicates that the first process flow diagram and the second process flow diagram can be opened and edited with the same piece of software. The format of the archive includes, but is not limited to, the json format. And then the normalized archive is used for subsequent processing. The converted file with the uniform archive format can be serialized to a local disk, and the format and content (whether compressed or encrypted) stored to the disk can be realized according to actual services, or stored to a database, or directly placed in a memory for subsequent operation.
Fig. 4a and 4b show schematic diagrams after archiving the first process flow diagram and the second process flow diagram, where the diagrams show that the primitive names name, the profile primitive name, the appearance primitive surface, and the time primitive timezone in the first process flow diagram and the second process flow diagram can be compared in the following manner to obtain a comparison result, where the comparison result includes: comparing a first primitive set of the device in the first process flow diagram with a second primitive set of the device in the second process flow diagram in sequence to obtain a first comparison result, wherein the devices in the first process flow diagram correspond to primitives in the first primitive set one by one, and the devices in the second process flow diagram correspond to primitives in the second primitive set one by one; comparing a first device attribute primitive set contained in the first primitive set with a second device attribute primitive set contained in the second primitive set to obtain a second comparison result, wherein the first device attributes correspond to the primitives in the first device attribute primitive set one by one, and the second device attributes correspond to the primitives in the second device attribute primitive set one by one; and combining the first comparison result and the second comparison result to obtain the target comparison result, as shown in fig. 5a and 5 b. Fig. 5a shows the difference between fig. 4a and fig. 4b, and fig. 5b shows the difference between fig. 4a and fig. 4b in another file format.
It should be noted that the first comparison result is used to characterize the comparison result of the device primitive in the process flow diagram, for example: and adding or deleting the graphic elements of the device, wherein the second comparison result is used for representing the comparison result of the device attributes in the process flow chart, such as the weight of materials in the device, the air pressure of the device and the like.
By classifying and comparing the primitive sets in the process flow chart, different types of primitives are respectively compared, and the comparison efficiency and the comparison accuracy are improved.
In some embodiments of the present application, sequentially comparing a first primitive set of a device in the first process flow diagram with a second primitive set of a device in the second process flow diagram to obtain a first comparison result specifically includes: acquiring a first identifier corresponding to the first primitive set and a second identifier corresponding to the second primitive set; searching device primitives same as the first identifier in the second primitive set in sequence, and recording the device primitives as a first searching result; sequentially searching device primitives different from the second identifier in the first primitive set, and recording the device primitives as a second searching result; and combining the first search result and the second search result to obtain the first comparison result.
Specifically, the above flow is executed after initialization by an executor that can execute a context.
Traversing all device primitives below the first process flow diagram, searching the name and the unique identifier of each device primitive in the second process flow diagram, creating subcontexts for the result, and simultaneously storing the subcontexts in a linked list queue according to the insertion sequence. And respectively saving the device in the first process flow diagram into a left value variable of the sub-context, and saving the corresponding device primitive in the second process flow diagram into a right value variable of the sub-context. If the corresponding device primitive in the first process flow diagram is not found in the second process flow diagram, the right value object in the sub-context is empty until all device primitives in the first process flow diagram are traversed. And traversing the device primitives in the second process flow diagram, searching the names and the unique identifiers of the device primitives in the first process flow diagram, if the device primitives are not found, creating subcontexts, setting the right value to be null, and setting the left value to be the device primitive of the second test sample. And storing all the device primitives in the first process flow diagram and the second process flow diagram in the corresponding subcontext objects, so as to obtain a first comparison result.
After the first comparison result is obtained, the following process may be continuously performed to compare a first device attribute primitive set included in the first primitive set with a second device attribute primitive set included in the second primitive set, so as to obtain a second comparison result, which specifically includes: obtaining a second comparison result comprising: acquiring a first value set corresponding to the first device attribute primitive set and a second value set corresponding to the second device attribute primitive set; determining data types corresponding to the first value set and the second value set; and comparing according to predetermined value comparison rules of different data types to obtain the second comparison result.
Specifically, a first value set corresponding to a first device attribute primitive set and a second value set corresponding to a second device attribute primitive set are determined according to a left value and a right value in the context; the left value and the right value in the context include a first value set and a second value set, data types corresponding to the first value set and the second value set are determined, and different comparison processes are sequentially executed according to different types.
The comparison process can be compared through value comparison rules according to different predetermined data types, and comprises the following steps: under the condition that the data types of a first value in the first value set and a second value in the second value set belong to a common object, directly comparing the first value with the second value; comparing the time corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to time objects; comparing the character strings corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to the character strings, wherein the length of the character strings is greater than a set length; and comparing the values in the arrays corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to the arrays.
Specifically, under the condition that the first value and the second value are common objects, strictly judging the first value and the second value in the sub-context, and the like, if the first value and the second value are equal, not storing any difference, and exiting; if not, judging whether the object corresponding to the first value is undefined, if so, saving the object corresponding to the second value as a new object, and quitting; if not, continuously judging whether the object corresponding to the second value is undefined, if so, saving the object corresponding to the first value as a deleted object, and if not, saving the objects corresponding to the first value and the second value as modified objects.
When the first value and the second value are time, sequentially judging whether an object corresponding to the first value in the sub-context is a time object type or not, if so, judging whether an object corresponding to the second value is a time object type or not, if so, judging whether the time of the object corresponding to the first value and the time of the object corresponding to the second value are equal or not, if so, not storing any difference, and exiting; and if not, saving the object corresponding to the first value and the second value as the modified object.
Directly quitting if the first value type in the sub-context is not the character string type under the condition that the first value and the second value are the character strings; for efficiency, the character string may be divided into a short character string and a long character string according to the length of the character string, and a short character string having a length smaller than 60 and a long character string having a length equal to or larger than 60 may be used. And if the comparison is carried out on the small character strings, directly storing the object corresponding to the first value and the second value as the modified object. And if the character string is a long character string, performing difference comparison on the first value and the second value, and storing a comparison result as a modified object.
Aiming at the condition that the first value and the second value are arrays, the first value and the second value are traversed, if the same value is found in the arrays corresponding to the first value and the second value and the indexes are different, the position matching mark value is set to be true, otherwise, the position matching mark value is false (devices in the two arrays on the mark surface have the same device attribute but different positions), and then the head part searching part (from the index 0) and the tail part searching part are searched.
And performing head searching, acquiring the attribute values of the indexes appointed in the arrays corresponding to the first value and the second value, judging whether the attribute values are equal, if so, returning true to the matching algorithm, otherwise, judging according to the position matching mark value and the input left index and right index, if both are true, returning true to the matching algorithm, and otherwise, returning false. When the matching algorithm returns true, a difference subcontext is created and stored in the linked list until the head pointer value exceeds the index value and the head search execution is finished.
And executing tail search, adding the obtained head pointer value to the tail pointer value, and if the sum is smaller than the length of the left array and the right array, executing tail search by the same method as the head search except that the transmitted index value is the difference between the length of the sub-object and the tail pointer value.
After the head search and the tail search are finished, if the head pointer value and the tail pointer value are the length value of the array corresponding to the first value, no length difference is indicated, if the array comparison is finished, otherwise, the LCS (Long Common subsequence) algorithm is used for carrying out array difference search, and the array difference search is added into the context linked list.
After the first process flow diagram and the second process flow diagram are compared, displaying the primitive difference information corresponding to the target comparison result, wherein the displaying can be realized in the following way: marking the comparison result on the first process flow diagram and the second process flow diagram according to different marks; and responding to a display instruction, and displaying the marked first process flow diagram and the marked second process flow diagram.
Specifically, after all the contexts in the linked list are executed, a result, called a difference output (delta), is generated, which includes three states: added, modified, and deleted. Specifically, two visualization schemes are included: a first visualization scheme is to display the unique identification of the internal object, such as: delete, modify, add, adjust, referred to as Visual format. Other formats are the JSON format, a tagged JSON format. Fig. 6 shows a visualization of json file differences.
The second solution is not to display the underlying data, as shown in fig. 7, mapping the underlying difference data into a flow chart primitive on the service, displaying the difference data by using an interface that is used for normally displaying and editing the flow chart, and feeding back different difference items by using different visual effects (for example, red indicates deletion, yellow indicates modification, and blue indicates addition).
Or generating a new process flow chart according to the output comparison result.
An embodiment of the present application further provides a comparison apparatus of a process flow diagram, as shown in fig. 8, including: an obtaining module 80, configured to obtain a first process flow diagram and a second process flow diagram, where the second process flow diagram is obtained by modifying the first process flow diagram; a comparison module 82, configured to compare the primitives in the first process flow diagram and the second process flow diagram to obtain a target comparison result, where the target comparison result is used to indicate primitive difference information in the first process flow diagram and the second process flow diagram; and a display module 84, configured to display the primitive difference information corresponding to the target comparison result.
The embodiment of the present application further provides a comparison method of a process flow chart, as shown in fig. 9, including:
step S901, showing a first process flow diagram and a second process flow diagram, wherein the second process flow diagram is obtained by modifying the first process flow diagram;
step S902, showing primitive difference information obtained by comparing the primitives in the first process flow diagram and the second process flow diagram.
The embodiment of the application also provides a nonvolatile storage medium, which comprises a stored program, wherein when the program runs, the device where the nonvolatile storage medium is located is controlled to execute the comparison method of the process flow chart.
An embodiment of the present application further provides an electronic device, including: a processor and a memory; the processor is used for running a program, wherein the program is used for executing the comparison method of the process flow chart during running.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, or portions or all or portions of the technical solutions that contribute to the prior art, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method of comparing process flow diagrams, comprising:
acquiring a first process flow chart and a second process flow chart, wherein the second process flow chart is obtained by modifying the first process flow chart;
comparing the graphic primitives in the first process flow diagram and the second process flow diagram to obtain a target comparison result, wherein the target comparison result is used for indicating graphic primitive difference information in the first process flow diagram and the second process flow diagram;
and displaying the primitive difference information corresponding to the target comparison result.
2. The method of claim 1, wherein comparing the graphical elements in the first process flow diagram and the second process flow diagram to obtain a comparison result comprises:
comparing a first primitive set of the device in the first process flow diagram with a second primitive set of the device in the second process flow diagram in sequence to obtain a first comparison result, wherein the devices in the first process flow diagram correspond to the primitives in the first primitive set one by one, and the devices in the second process flow diagram correspond to the primitives in the second primitive set one by one;
comparing a first device attribute primitive set contained in the first primitive set with a second device attribute primitive set contained in the second primitive set to obtain a second comparison result, wherein the first device attributes correspond to the primitives in the first device attribute primitive set one by one, and the second device attributes correspond to the primitives in the second device attribute primitive set one by one;
and combining the first comparison result and the second comparison result to obtain the target comparison result.
3. The method of claim 2, wherein comparing a first set of primitives of a device in the first process flow diagram with a second set of primitives of a device in the second process flow diagram in sequence to obtain a first comparison result, comprises:
acquiring a first identifier corresponding to the first primitive set and a second identifier corresponding to the second primitive set;
sequentially searching device primitives which are the same as the first identifier in the second primitive set, and recording the device primitives as a first searching result;
searching device primitives different from the second identifier in the first primitive set in sequence, and recording the device primitives as a second searching result;
and combining the first search result and the second search result to obtain the first comparison result.
4. The method according to claim 2, wherein comparing a first device attribute primitive set included in the first primitive set with a second device attribute primitive set included in the second primitive set to obtain a second comparison result comprises:
acquiring a first value set corresponding to the first device attribute primitive set and a second value set corresponding to the second device attribute primitive set;
determining data types corresponding to the first value set and the second value set;
and comparing according to predetermined value comparison rules of different data types to obtain the second comparison result.
5. The method of claim 4, wherein comparing according to predetermined value comparison rules for different data types comprises:
under the condition that the data types of a first value in the first value set and a second value in the second value set belong to a common object, directly comparing the first value with the second value;
comparing the time corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to time objects;
comparing the character strings corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to the character strings, wherein the length of the character strings is greater than a set length;
and comparing the values in the arrays corresponding to the first value and the second value under the condition that the data types of the first value and the second value belong to the arrays.
6. The method of claim 2, wherein prior to comparing the graphical elements in the first and second process flow charts, the method further comprises:
judging whether the archiving format of the first process flow chart is the same as that of the second process flow chart;
and converting the archiving formats of the first process flow diagram and the second process flow diagram into the same archiving format under the condition that the archiving formats are different.
7. The method of claim 1, wherein displaying primitive difference information corresponding to the target comparison result comprises:
marking the comparison result on the first process flow diagram and the second process flow diagram according to different marks;
and responding to a display instruction, and displaying the marked first process flow diagram and the marked second process flow diagram.
8. A method for comparing process flow charts, comprising:
showing a first process flow diagram and a second process flow diagram, wherein the second process flow diagram is obtained by modifying the first process flow diagram;
and displaying the primitive difference information obtained by comparing the primitives in the first process flow diagram and the second process flow diagram.
9. A device for comparing process flow charts, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a first process flow chart and a second process flow chart, and the second process flow chart is obtained by modifying the first process flow chart;
the comparison module is used for comparing the graphic elements in the first process flow diagram and the second process flow diagram to obtain a target comparison result, wherein the target comparison result is used for indicating graphic element difference information in the first process flow diagram and the second process flow diagram;
and the display module is used for displaying the primitive difference information corresponding to the target comparison result.
10. A non-volatile storage medium, comprising a stored program, wherein the program, when executed, controls a device in which the non-volatile storage medium is located to perform the comparison method of the process flow diagram of any one of claims 1 to 7.
CN202210659653.5A 2022-06-13 2022-06-13 Comparison method and device of process flow chart and nonvolatile storage medium Active CN114757164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210659653.5A CN114757164B (en) 2022-06-13 2022-06-13 Comparison method and device of process flow chart and nonvolatile storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210659653.5A CN114757164B (en) 2022-06-13 2022-06-13 Comparison method and device of process flow chart and nonvolatile storage medium

Publications (2)

Publication Number Publication Date
CN114757164A true CN114757164A (en) 2022-07-15
CN114757164B CN114757164B (en) 2022-11-15

Family

ID=82336445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210659653.5A Active CN114757164B (en) 2022-06-13 2022-06-13 Comparison method and device of process flow chart and nonvolatile storage medium

Country Status (1)

Country Link
CN (1) CN114757164B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245117A (en) * 2008-03-31 2009-10-22 Nippon Telegr & Teleph Corp <Ntt> Business process model comparison method, and device and program thereof
CN101630335A (en) * 2008-07-18 2010-01-20 纬衡浩建科技(深圳)有限公司 Method for comparing similarity and difference between drawings
CN102929999A (en) * 2012-10-25 2013-02-13 北京数码大方科技股份有限公司 Method and device for comparing similarities and differences of data
CN103984818A (en) * 2014-05-16 2014-08-13 大连理工大学 AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology
WO2018091100A1 (en) * 2016-11-17 2018-05-24 Toyota Motor Europe Method for comparing a first drawing with a second drawing by comparing their drawing elements
CN112655216A (en) * 2018-07-06 2021-04-13 Lg电子株式会社 Image coding method and device based on transformation
CN114331135A (en) * 2021-12-29 2022-04-12 上海赛美特软件科技有限公司 Process flow management method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245117A (en) * 2008-03-31 2009-10-22 Nippon Telegr & Teleph Corp <Ntt> Business process model comparison method, and device and program thereof
CN101630335A (en) * 2008-07-18 2010-01-20 纬衡浩建科技(深圳)有限公司 Method for comparing similarity and difference between drawings
CN102929999A (en) * 2012-10-25 2013-02-13 北京数码大方科技股份有限公司 Method and device for comparing similarities and differences of data
CN103984818A (en) * 2014-05-16 2014-08-13 大连理工大学 AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology
WO2018091100A1 (en) * 2016-11-17 2018-05-24 Toyota Motor Europe Method for comparing a first drawing with a second drawing by comparing their drawing elements
CN112655216A (en) * 2018-07-06 2021-04-13 Lg电子株式会社 Image coding method and device based on transformation
CN114331135A (en) * 2021-12-29 2022-04-12 上海赛美特软件科技有限公司 Process flow management method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭裴等: "CAD图纸自动比对算法研究", 《电子技术》 *

Also Published As

Publication number Publication date
CN114757164B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US10049466B2 (en) Color name generation from images and color palettes
US9652868B2 (en) Automatic color palette based recommendations
US9135719B1 (en) Color name generation from images and color palettes
US20150379739A1 (en) Automatic color palette based recommendations
CN110515896B (en) Model resource management method, model file manufacturing method, device and system
BR102014005996A2 (en) segmentation of an image based on color and color differences
CN111814065A (en) Information propagation path analysis method and device, computer equipment and storage medium
CN107766083A (en) Interface document analysis method and device
CN108228657B (en) Method and device for realizing keyword retrieval
CN110201393A (en) Configuration data storage method and device and electronic equipment
CN108958959A (en) The method and apparatus for detecting hive tables of data
CN107092652A (en) The air navigation aid and device of target pages
CN109618250B (en) Optical fiber network node management method and system
WO2018188222A1 (en) A2l file merging method and device
CN114757164B (en) Comparison method and device of process flow chart and nonvolatile storage medium
CN110647611A (en) Element attribute labeling method and device based on ArcGIS platform, electronic equipment and computer readable storage medium
JP2020123323A (en) Method, apparatus, device, and storage medium for providing visual representation of set of objects
CN113837181B (en) Screening method, screening device, computer equipment and computer readable storage medium
CN111026946A (en) Page information extraction method, device, medium and equipment
CN113362443B (en) Embroidery effect picture generation method and device, storage medium and electronic equipment
WO2019114133A1 (en) Method and apparatus for altering color of editing page content, terminal, and storage medium
CN110929059A (en) Picture processing method and device, storage medium and electronic device
KR102151408B1 (en) Apparatus and method for searching request for proposal text/image based on determination of matching rate
CN114996497A (en) Graph similarity retrieval method and device, storage medium and electronic equipment
CN117688906A (en) Log desensitization method and device, electronic equipment and nonvolatile storage medium

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