CN114706610A - Business flow chart generation method, device, equipment and storage medium - Google Patents
Business flow chart generation method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114706610A CN114706610A CN202210331265.4A CN202210331265A CN114706610A CN 114706610 A CN114706610 A CN 114706610A CN 202210331265 A CN202210331265 A CN 202210331265A CN 114706610 A CN114706610 A CN 114706610A
- Authority
- CN
- China
- Prior art keywords
- tool
- target
- node
- nodes
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 88
- 230000004044 response Effects 0.000 claims description 39
- 230000008569 process Effects 0.000 claims description 36
- 238000010586 diagram Methods 0.000 claims description 34
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012423 maintenance Methods 0.000 abstract description 7
- 230000000007 visual effect Effects 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a method, a device, equipment and a storage medium for generating a business flow chart. The method comprises the following steps: acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node; determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node; according to the technical scheme, the problems that the requirement of writing codes on users is high, programming languages need to be learned, learning cost is high, different code writing modes of different personnel are different, and reading and maintenance of business logic are not facilitated are solved, the back-end business service can be arranged in a visual graph flow mode, the difficulty of achieving the back-end business logic is reduced, the business service efficiency is improved, and maintenance is facilitated.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for generating a business flow chart.
Background
The low-code platform needs the service support of background service, and realizes the access of service data and the realization of service logic. Products on the target market implement business services in the way of writing code.
The writing of codes has high requirements on users, needs to learn programming languages, has high learning cost, and is not beneficial to reading and maintaining business logic because different personnel have different code writing modes.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for generating a business flow diagram, so as to solve the problems that writing codes have high requirements on users, programming languages need to be learned, learning cost is high, different methods for writing codes by different personnel are different, and reading and maintenance of business logic are not facilitated.
According to an aspect of the present invention, a method for generating a business flow diagram is provided, including:
acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node;
and generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value.
According to another aspect of the present invention, there is provided a business process diagram generating apparatus, including:
the acquisition module is used for acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
the determining module is used for determining the incidence relation between two tool nodes with the distance smaller than a distance threshold value according to the position information of each tool node;
and the generating module is used for generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform a method of generating a business process diagram according to any embodiment of the invention.
According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to implement a business process diagram generating method according to any one of the embodiments of the present invention when executed.
The embodiment of the invention obtains at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node; determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node; and generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value, so as to solve the problems that the requirement of writing codes on users is high, programming languages need to be learned, the learning cost is high, different code writing modes of different personnel are different, and the reading and maintenance of business logic are not facilitated.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of a business process flow diagram generation method in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a business flow diagram in an embodiment of the invention;
fig. 3 is a schematic structural diagram of a business flow diagram generating apparatus in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention 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 invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, 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.
Example one
Fig. 1 is a flowchart of a method for generating a business flowchart according to an embodiment of the present invention, where this embodiment is applicable to a situation of generating a business flowchart, and the method may be executed by a business flowchart generating apparatus according to an embodiment of the present invention, where the business flowchart generating apparatus may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s110, at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node are obtained.
Wherein the tool node may be: tool nodes corresponding to the basic tools; the tool node may also be: tool nodes corresponding to the internal tools; the tool node may also be: and the tool node corresponding to the external tool. The base tool includes: at least one of an input tool, a judgment tool, a success return tool, a failure return tool, and a modify data flow tool; the inner tool includes: at least one of a query model data tool, an execute model method class tool, a call service tool, and a call connector interface tool; the external tool includes: at least one of an HTTP tool, a JS script tool, a Python script tool, an Email notification tool, a SMS notification tool, and a workflow tool.
Wherein the at least two tool nodes may be: a tool node corresponding to a base tool and a tool node corresponding to at least one internal tool; the at least two tool nodes may also be: a tool node corresponding to a basic tool and a tool node corresponding to at least one external tool; the at least two tool nodes may also be: a tool node corresponding to a basic tool, a tool node corresponding to at least one internal tool, and a tool node corresponding to at least one external tool.
The configuration information corresponding to each tool node is different, for example, if the tool node is a tool for querying model data, the configuration information includes: basic information and attribute information, the basic information including: title, description information, timeout time, exception handling mode, and the like, and the attribute information includes: keywords, page numbers, display number per page, query condition information, and the like.
The obtaining mode of the configuration information corresponding to each tool node may be: in response to detecting a touch operation of a user on a tool node corresponding to the target tool in the canvas area, displaying a configuration interface corresponding to the target tool in the tool area; and in response to the fact that the editing operation of the user on the configuration interface is detected, acquiring configuration information of a tool node corresponding to the target tool. For example, if a user clicks a tool node corresponding to a query model data tool in a canvas area, a configuration interface corresponding to the query model data tool is displayed in a tool display area, where the configuration interface includes: the user can fill in the title, description and timeout time in the basic configuration area, and can select an exception handling mode (continuous execution or stop) in the basic configuration area. The user can select keywords, the number of pages to be filled out, the number of displays per page, and query condition information in the attribute configuration area.
The obtaining mode of the position information of each tool node may be: and in response to the detection of the operation that the user drags the target tool of the tool area to the canvas area, determining the position information of the tool node according to the dragging operation. For example, if the user drags the target tool a in the tool area to the position B in the canvas area, the position information of the target tool a may be determined to be the position B.
Specifically, at least two tool nodes, configuration information corresponding to each tool node, and location information of each tool node are obtained, for example, in response to detecting that a user drags a target tool a of the tool area to the canvas area, location information X of the tool node is determined according to the dragging operation; in response to the detection of the operation that a user drags a target tool B of the tool area to the canvas area, determining position information Y of a tool node according to the dragging operation; in response to the detection of the operation that a user drags a target tool C of the tool area to the canvas area, determining position information Z of a tool node according to the dragging operation; in response to detecting a touch operation of a user on a tool node corresponding to the target tool A of the canvas area, displaying a configuration interface corresponding to the target tool A in the tool area; in response to the fact that the editing operation of the user on the configuration interface is detected, acquiring configuration information of a tool node corresponding to the target tool A; in response to detecting that a user performs touch operation on a tool node corresponding to the target tool B in the canvas area, displaying a configuration interface corresponding to the target tool in the tool area; in response to the fact that the editing operation of the user on the configuration interface is detected, acquiring configuration information of a tool node corresponding to the target tool B; in response to detecting a touch operation of a user on a tool node corresponding to the target tool C in the canvas area, displaying a configuration interface corresponding to the target tool in the tool area; and in response to the detection of the editing operation of the user on the configuration interface, acquiring configuration information of a tool node corresponding to the target tool C.
And S120, determining the association relationship between the two tool nodes with the distance smaller than the distance threshold according to the position information of each tool node.
Specifically, the manner of determining the association relationship between two tool nodes having a distance smaller than the distance threshold according to the position information of each tool node may be: and acquiring the distance between any two adjacent tool nodes, and establishing an incidence relation between the two tool nodes with the distance smaller than a distance threshold. For example, if it is determined that the distance between the tool node corresponding to target tool a and the tool node corresponding to target tool B is smaller than the distance threshold value based on the position information of the tool node corresponding to target tool a and the position information of the tool node corresponding to target tool B, a line may be drawn between the tool node corresponding to target tool a and the tool node corresponding to target tool B, and the tool node corresponding to target tool a and the tool node corresponding to target tool B may be connected.
Specifically, the manner of determining the association relationship between two tool nodes having a distance smaller than the distance threshold according to the position information of each tool node may further be: the method comprises the steps of obtaining the distance between any two adjacent tool nodes, establishing an incidence relation between the two tool nodes with the distance smaller than a distance threshold value, and determining the direction of an arrow according to the generation time of each tool node. For example, if it is determined from the position information of the tool node corresponding to target tool a and the position information of the tool node corresponding to target tool B that the distance between the tool node corresponding to target tool a and the tool node corresponding to target tool B is smaller than the distance threshold, a line Q may be drawn between the tool node corresponding to target tool a and the tool node corresponding to target tool B, the tool node corresponding to target tool a and the tool node corresponding to target tool B may be connected, and if the generation time of the tool node corresponding to target tool B is later than the generation time of the tool node corresponding to target tool a, the arrow direction of line Q may be determined as pointing from the tool node corresponding to target tool a to the tool node corresponding to target tool B.
S130, generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value.
Specifically, the manner of generating the service flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node, and the association relationship between the two tool nodes with the distance smaller than the distance threshold may be: and drawing at least two tool nodes according to the at least two tool nodes and the configuration information corresponding to each tool node, and drawing a business flow chart according to the association relationship between the drawn at least two tool nodes and the two tool nodes with the distance smaller than the distance threshold. The method for generating the business process diagram according to the at least two tool nodes, the configuration information corresponding to each tool node, and the association relationship between the two tool nodes with the distance smaller than the distance threshold value may further be: and in response to detecting that a user touches a determination control of the process configuration interface, generating a business process diagram based on tool nodes corresponding to at least two target tools in the editing area, configuration information of the tool nodes corresponding to the at least two target tools, and an association relation between the two tool nodes with a distance smaller than a distance threshold, and displaying the business process diagram in the canvas area.
Optionally, obtaining at least two tool nodes includes:
in response to detecting a touch operation of a user on a target control, displaying a process configuration interface, wherein the process configuration interface comprises: a tool area and a canvas area, the tool area comprising: a base tool, an inner tool and an outer tool;
and in response to detecting that the user drags a target tool of the tool area to the canvas area, displaying a tool node corresponding to the target tool in the canvas area.
Wherein the canvas area may be a blank area, and the tool area is used to display a base tool, an internal tool, and an external tool.
Wherein, in response to detecting that a user drags a target tool of the tool area to the canvas area, before displaying a tool node corresponding to the target tool in the canvas area, the method further comprises:
in response to detecting the touch operation of the user on the basic tool control, basic tools belonging to the basic tool category are displayed, such as an input tool, a judgment tool, a success return tool, a failure return tool and a data stream modification tool.
And in response to detecting the touch operation of the user on the internal tool control, displaying the basic tools belonging to the internal tool category, such as a model data query tool, a model method execution class tool, a service calling tool and a connector interface calling tool.
In response to detecting the touch operation of the user on the external tool control, basic tools belonging to the external tool category are displayed, such as an HTTP tool, a script tool, a notification tool and a workflow tool.
Optionally, obtaining configuration information corresponding to each tool node includes:
in response to detecting a touch operation of a user on a tool node corresponding to the target tool in the canvas area, displaying a configuration interface corresponding to the target tool in the tool area;
and in response to the fact that the editing operation of the user on the configuration interface is detected, acquiring configuration information of a tool node corresponding to the target tool.
The mode of displaying the configuration interface corresponding to the target tool in the tool area may be: and after the user clicks the target tool in the canvas area, displaying a configuration interface corresponding to the target tool in the tool area.
Specifically, in response to detecting that the user performs an editing operation on the configuration interface, the configuration information of the tool node corresponding to the target tool is acquired. For example, the configuration interface may include: the user can fill in the title, description and timeout time in the basic configuration area, and can select an exception handling mode (continuous execution or stop) in the basic configuration area. The user can select keywords in the attribute configuration area, fill in the number of pages, fill in the number of displays per page, and fill in query condition information. The way of filling out the query condition may be: after a user clicks the attribute configuration area query control, a query condition interface is displayed, and if an adding control of the query condition interface is clicked, a query editing interface corresponding to the query condition is displayed, wherein the query editing interface comprises: the query condition generating method includes the steps that a keyword filling area, a comparator selecting area and a target value selecting area are included, a user can fill a query keyword in the keyword filling area, a comparator can be selected in the comparator selecting area, a target value is selected in the target value selecting area, and a query condition is generated after the user clicks an adding control of a query editing interface.
Optionally, generating a business process diagram according to the at least two tool nodes, the configuration information corresponding to each tool node, and the association relationship between the two tool nodes whose distance is smaller than the distance threshold includes:
and in response to detecting that a user touches a determination control of the process configuration interface, generating a business process diagram based on tool nodes corresponding to at least two target tools in the editing area, configuration information of the tool nodes corresponding to the at least two target tools, and an association relation between the two tool nodes with a distance smaller than a distance threshold, and displaying the business process diagram in the canvas area.
In a specific example, the business flow diagram displayed in the canvas area is shown in fig. 2, and the business flow diagram includes: tool node (input), tool node (get device list), tool node (process device information), tool node (judge branch), tool node (generate sales order), tool node (send mail notification), tool node (return success value), and tool node (return failure value).
Optionally, in response to detecting a touch operation of a user on a determination control of the process configuration interface, generating a business process diagram based on tool nodes corresponding to at least two target tools in the editing area, configuration information of the tool nodes corresponding to the at least two target tools, and an association relationship between two tool nodes having a distance smaller than a distance threshold, and displaying the business process diagram in the canvas area, the method further includes:
in response to detecting a touch operation of a user on a debugging control of the process configuration interface, displaying a debugging bar, wherein the debugging bar comprises: setting an input variable control;
displaying an input variable input interface in response to detecting a touch operation of a user for setting an input variable control of the debugging bar;
and in response to detecting a target input variable input by a user aiming at the input variable input interface, inputting the target input variable into the business flow chart to obtain a debugging result.
Wherein, the debugging bar can also include: the control comprises a running control, a pause control, a stop control, a previous step control, a next step control and the like.
In a specific example, the debugging result may be: and setting the color of the tool node which is qualified in the test in the business flow chart as green, setting the color of the tool node which is unqualified in the test in the business flow chart as red, and setting the color of the tool node which is being tested in the business flow chart as yellow.
Optionally, in response to detecting a target input variable input by the user for the input variable input interface, inputting the target input variable into the business flow diagram to obtain a debugging result, where the method includes:
in response to detecting a target input variable input by a user for the input variable input interface, inputting the target input variable into the business flow chart;
if the overtime time in the target node is less than the time threshold, switching the color of the target node into a first target color;
if the script in the target node does not meet the first preset condition, switching the color of the target node into a first target color;
and if the overtime time in the target node is greater than or equal to the time threshold and the script in the target node meets a first preset condition, switching the color of the target node into a second target color.
If the script does not satisfy the first preset condition, the script is not specified, for example, if the script is edited by non-english, the script is not satisfied with the first preset condition.
The first target color and the second target color are different, and if the first target color is red, the second target color may be green, which is not limited in this embodiment of the present invention.
Specifically, if the timeout time in the target node is set too short, it is easy to cause that a result cannot be obtained, and therefore, if the timeout time in the target node is smaller than the time threshold, it is determined that the target node has not passed the test.
Optionally, the base tool includes: at least one of an input tool, a judgment tool, a success return tool, a failure return tool, and a modify data flow tool; the inner tool includes: at least one of a query model data tool, an execute model method class tool, a call service tool, and a call connector interface tool; the external tool includes: at least one of an HTTP tool, a scripting tool, a notification tool, and a workflow tool.
The business flow chart comprises the following steps: a base tool, with an internal tool and/or an external tool.
Optionally, the method further includes:
receiving information to be processed sent by a target client;
and inputting the information to be processed into the business flow chart to obtain target data, and sending the target data to the target client.
Specifically, the information to be processed is input into the business flow chart to obtain target data, and the target data is sent to the target client. For example, if the business process diagram includes: tool node A, tool node B, tool node C and tool node D, the front and back execution sequence of the tool node is as follows: the method comprises the steps that a tool node A, a tool node B, a tool node C and a tool node D are used, information to be processed sent by a target client is input into the tool node A, the output of the tool node A is input into the tool node B, the output of the tool node B is input into the tool node C, the output of the tool node C is input into the tool node D, the output of the tool node D is determined to be target data, and the target data are sent to the target client.
According to the technical scheme of the embodiment, at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node are obtained; determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node; and generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value, so as to solve the problems that the requirements of writing codes on users are high, programming languages need to be learned, the learning cost is high, the code writing modes of different personnel are different, and the reading and maintenance of business logic are not facilitated, the back-end business service can be arranged in a visual graph flow mode, the difficulty in realizing the back-end business logic is reduced, the business service efficiency is improved, and the maintenance is facilitated.
Example two
Fig. 3 is a schematic structural diagram of a business flow chart generating apparatus according to an embodiment of the present invention. The present embodiment may be applicable to the case of generating a business flowchart, where the apparatus may be implemented in a software and/or hardware manner, and the business flowchart generating apparatus may be integrated in any device providing the function of XX, as shown in fig. 3, where the business flowchart generating apparatus specifically includes: an acquisition module 210, a determination module 220, and a generation module 230.
The system comprises an acquisition module, a configuration module and a processing module, wherein the acquisition module is used for acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
the determining module is used for determining the incidence relation between two tool nodes with the distance smaller than a distance threshold value according to the position information of each tool node;
and the generating module is used for generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme of the embodiment, at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node are obtained; determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node; and generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value, so as to solve the problems that the requirement of writing codes on users is high, programming languages need to be learned, the learning cost is high, different code writing modes of different personnel are different, and the reading and maintenance of business logic are not facilitated.
EXAMPLE III
FIG. 4 shows a schematic block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. Processor 11 performs the various methods and processes described above, such as the business flow diagram generation method:
acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node;
and generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value.
In some embodiments, the business process diagram generation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When loaded into RAM 13 and executed by processor 11, the computer program may perform one or more of the steps of the business flow graph generation method described above. Alternatively, in other embodiments, the processor 11 may be configured by any other suitable means (e.g., by means of firmware) to perform the business process diagram generation method:
acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node;
and generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (11)
1. A method for generating a business flow chart is characterized by comprising the following steps:
acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
determining an incidence relation between two tool nodes with a distance smaller than a distance threshold according to the position information of each tool node;
and generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold value.
2. The method of claim 1, wherein obtaining at least two tool nodes comprises:
in response to detecting a touch operation of a user on a target control, displaying a process configuration interface, wherein the process configuration interface comprises: a tool area and a canvas area, the tool area comprising: a base tool, an inner tool and an outer tool;
and in response to detecting that the user drags a target tool of the tool area to the canvas area, displaying a tool node corresponding to the target tool in the canvas area.
3. The method of claim 2, wherein obtaining configuration information corresponding to each tool node comprises:
in response to detecting that a user performs touch operation on a tool node corresponding to the target tool in the canvas area, displaying a configuration interface corresponding to the target tool in the tool area;
and in response to the fact that the editing operation of the user on the configuration interface is detected, acquiring configuration information of a tool node corresponding to the target tool.
4. The method of claim 3, wherein generating the business process graph according to the at least two tool nodes, the configuration information corresponding to each tool node, and the association relationship between two tool nodes with a distance smaller than a distance threshold comprises:
and responding to the touch operation of a user for a determination control of the process configuration interface, generating a business process diagram based on the tool nodes corresponding to at least two target tools in the editing area, the configuration information of the tool nodes corresponding to the at least two target tools and the association relation between the two tool nodes with the distance smaller than a distance threshold value, and displaying the business process diagram in the canvas area.
5. The method of claim 4, wherein in response to detecting a touch operation of a user on a determination control of the process configuration interface, generating a business flow graph based on tool nodes corresponding to at least two target tools of the editing area, configuration information of the tool nodes corresponding to the at least two target tools, and an association relationship between two tool nodes having a distance smaller than a distance threshold, and displaying the business flow graph in the canvas area, the method further comprises:
in response to detecting a touch operation of a user on a debugging control of the process configuration interface, displaying a debugging bar, wherein the debugging bar comprises: setting an input variable control;
displaying an input variable input interface in response to detecting a touch operation of a user for setting an input variable control of the debugging bar;
and in response to detecting a target input variable input by a user aiming at the input variable input interface, inputting the target input variable into the business flow chart to obtain a debugging result.
6. The method of claim 5, wherein in response to detecting a target input variable input by a user for the input variable input interface, inputting the target input variable into the business process diagram to obtain a debugging result, the method comprises:
in response to detecting a target input variable input by a user for the input variable input interface, inputting the target input variable into the business flow chart;
if the overtime time in the target node is less than the time threshold, switching the color of the target node into a first target color;
if the script in the target node does not meet the first preset condition, switching the color of the target node into a first target color;
and if the overtime time in the target node is greater than or equal to the time threshold and the script in the target node meets a first preset condition, switching the color of the target node into a second target color.
7. The method of claim 2, wherein the base tool comprises: at least one of an input tool, a judgment tool, a success return tool, a failure return tool, and a modify data flow tool; the inner tool includes: at least one of a query model data tool, an execute model method class tool, a call service tool, and a call connector interface tool; the external tool includes: at least one of an HTTP tool, a scripting tool, a notification tool, and a workflow tool; the business flow chart comprises the following steps: a base tool, with an internal tool and/or an external tool.
8. The method of claim 1, further comprising:
receiving target information sent by a target client;
and inputting the target information into the business flow chart to obtain target data, and sending the target data to the target client.
9. A business process diagram generation apparatus, comprising:
the acquisition module is used for acquiring at least two tool nodes, configuration information corresponding to each tool node and position information of each tool node;
the determining module is used for determining the incidence relation between two tool nodes with the distance smaller than a distance threshold value according to the position information of each tool node;
and the generating module is used for generating a business flow chart according to the at least two tool nodes, the configuration information corresponding to each tool node and the incidence relation between the two tool nodes with the distance smaller than the distance threshold.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the business process diagram generation method of any one of claims 1-8.
11. A computer-readable storage medium storing computer instructions for causing a processor to implement the business flow graph generating method of any one of claims 1-8 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210331265.4A CN114706610A (en) | 2022-03-30 | 2022-03-30 | Business flow chart generation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210331265.4A CN114706610A (en) | 2022-03-30 | 2022-03-30 | Business flow chart generation method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114706610A true CN114706610A (en) | 2022-07-05 |
Family
ID=82171314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210331265.4A Pending CN114706610A (en) | 2022-03-30 | 2022-03-30 | Business flow chart generation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114706610A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116860222A (en) * | 2023-08-21 | 2023-10-10 | 深圳思谋信息科技有限公司 | Algorithm flow editing method and related device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090769A (en) * | 2014-07-18 | 2014-10-08 | 北京锐安科技有限公司 | Graphic displaying method and device for service data |
CN110675471A (en) * | 2019-10-15 | 2020-01-10 | 深圳前海微众银行股份有限公司 | Method, device and equipment for generating node connecting line and storage medium |
CN111324746A (en) * | 2020-02-25 | 2020-06-23 | 北京百度网讯科技有限公司 | Visual positioning method and device, electronic equipment and computer readable storage medium |
CN111784018A (en) * | 2019-04-03 | 2020-10-16 | 北京嘀嘀无限科技发展有限公司 | Resource scheduling method and device, electronic equipment and storage medium |
CN112181397A (en) * | 2020-09-30 | 2021-01-05 | 平安科技(深圳)有限公司 | Flow visualization monitoring method and device, computer equipment and storage medium |
US20210042589A1 (en) * | 2019-05-21 | 2021-02-11 | Sisense Ltd. | System and method for content-based data visualization using a universal knowledge graph |
US20210110150A1 (en) * | 2019-10-09 | 2021-04-15 | Elsevier, Inc. | Systems methods and computer program products for automatically extracting information from a flowchart image |
CN113282444A (en) * | 2020-02-20 | 2021-08-20 | 北京京东振世信息技术有限公司 | Visualization method and device for business process debugging |
CN113421316A (en) * | 2021-06-30 | 2021-09-21 | 亿图软件(湖南)有限公司 | Connection line path construction method and device, computer equipment and readable storage medium |
CN113741965A (en) * | 2021-08-30 | 2021-12-03 | 深圳壹账通智能科技有限公司 | Method, device and equipment for arranging flow chart and storage medium |
-
2022
- 2022-03-30 CN CN202210331265.4A patent/CN114706610A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090769A (en) * | 2014-07-18 | 2014-10-08 | 北京锐安科技有限公司 | Graphic displaying method and device for service data |
CN111784018A (en) * | 2019-04-03 | 2020-10-16 | 北京嘀嘀无限科技发展有限公司 | Resource scheduling method and device, electronic equipment and storage medium |
US20210042589A1 (en) * | 2019-05-21 | 2021-02-11 | Sisense Ltd. | System and method for content-based data visualization using a universal knowledge graph |
US20210110150A1 (en) * | 2019-10-09 | 2021-04-15 | Elsevier, Inc. | Systems methods and computer program products for automatically extracting information from a flowchart image |
CN110675471A (en) * | 2019-10-15 | 2020-01-10 | 深圳前海微众银行股份有限公司 | Method, device and equipment for generating node connecting line and storage medium |
CN113282444A (en) * | 2020-02-20 | 2021-08-20 | 北京京东振世信息技术有限公司 | Visualization method and device for business process debugging |
CN111324746A (en) * | 2020-02-25 | 2020-06-23 | 北京百度网讯科技有限公司 | Visual positioning method and device, electronic equipment and computer readable storage medium |
CN112181397A (en) * | 2020-09-30 | 2021-01-05 | 平安科技(深圳)有限公司 | Flow visualization monitoring method and device, computer equipment and storage medium |
CN113421316A (en) * | 2021-06-30 | 2021-09-21 | 亿图软件(湖南)有限公司 | Connection line path construction method and device, computer equipment and readable storage medium |
CN113741965A (en) * | 2021-08-30 | 2021-12-03 | 深圳壹账通智能科技有限公司 | Method, device and equipment for arranging flow chart and storage medium |
Non-Patent Citations (4)
Title |
---|
吕燕,朱慧: "《管理定量分析方法与实践》", vol. 1, 31 January 2022, 上海:上海人民出版社, pages: 228 - 233 * |
王璨,章佳荣: "《LabVIEW 2011程序设计与案例解析》", vol. 1, 31 May 2013, 北京:北京航空航天大学出版社, pages: 16 - 19 * |
赵轲;易丹丹;: "Markdown代码生成程序流程图技巧", 电子制作, no. 08 * |
黄陇;于洪敏;陈致明;: "基于UML顺序图的测试场景自动生成研究", 计算机应用与软件, no. 04 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116860222A (en) * | 2023-08-21 | 2023-10-10 | 深圳思谋信息科技有限公司 | Algorithm flow editing method and related device |
CN116860222B (en) * | 2023-08-21 | 2023-12-15 | 深圳思谋信息科技有限公司 | Algorithm flow editing method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112561332B (en) | Model management method, device, electronic equipment, storage medium and program product | |
CN114706610A (en) | Business flow chart generation method, device, equipment and storage medium | |
CN113205189B (en) | Method for training prediction model, prediction method and device | |
CN118093965A (en) | Information processing method, device, equipment and storage medium | |
CN115905322A (en) | Service processing method and device, electronic equipment and storage medium | |
CN115049369A (en) | Project management method and device, electronic equipment and storage medium | |
CN115309730A (en) | Data auditing method and device, electronic equipment and storage medium | |
CN115934550A (en) | Test method, test device, electronic equipment and storage medium | |
CN115599945A (en) | User grade determination method, device, equipment and storage medium | |
CN113656731A (en) | Advertisement page processing method and device, electronic equipment and storage medium | |
CN113360672A (en) | Methods, apparatus, devices, media and products for generating a knowledge graph | |
CN114595231B (en) | Database table generation method and device, electronic equipment and storage medium | |
CN113836291B (en) | Data processing method, device, equipment and storage medium | |
CN117150215B (en) | Assessment result determining method and device, electronic equipment and storage medium | |
CN116629810B (en) | Operation recommendation method, device, equipment and medium based on building office system | |
CN112527537B (en) | Quality monitoring method, device, equipment and medium of online service system | |
CN118606887A (en) | Data processing method, device, electronic equipment and storage medium | |
CN117785413A (en) | Task forwarding method, device, equipment and storage medium | |
CN117010908A (en) | Information display method and device, electronic equipment and storage medium | |
CN118312663A (en) | Method and device for determining article information, electronic equipment and storage medium | |
CN117216066A (en) | Material code generation method, device, equipment and storage medium | |
CN118245676A (en) | Recommendation method and device for operation object, electronic equipment and storage medium | |
CN115576846A (en) | Method, device and equipment for testing page loading speed and storage medium | |
CN117709902A (en) | Material input method, device, equipment and medium based on BOM file | |
CN116503136A (en) | Data analysis method, device, equipment and 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 |