CN110727969B - Method, device and equipment for automatically adjusting workflow and storage medium - Google Patents

Method, device and equipment for automatically adjusting workflow and storage medium Download PDF

Info

Publication number
CN110727969B
CN110727969B CN201911010190.4A CN201911010190A CN110727969B CN 110727969 B CN110727969 B CN 110727969B CN 201911010190 A CN201911010190 A CN 201911010190A CN 110727969 B CN110727969 B CN 110727969B
Authority
CN
China
Prior art keywords
workflow
component
initial
components
acquiring
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.)
Active
Application number
CN201911010190.4A
Other languages
Chinese (zh)
Other versions
CN110727969A (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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201911010190.4A priority Critical patent/CN110727969B/en
Publication of CN110727969A publication Critical patent/CN110727969A/en
Application granted granted Critical
Publication of CN110727969B publication Critical patent/CN110727969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/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 invention discloses a method, a device, equipment and a storage medium for automatically adjusting a workflow, wherein the method comprises the following steps: receiving an initial workflow adjusting instruction, and acquiring an initial workflow in a current workflow editing canvas according to the initial workflow adjusting instruction; acquiring each component in the initial workflow, and acquiring the step and the level of each component; numbering each component according to the steps and the hierarchy to obtain the number of each component; and adjusting each component to a corresponding website on the workflow editing canvas according to the serial number, and drawing a guide line to generate a final workflow. Therefore, by automatically adjusting the workflow, the drawing efficiency, the attractive effect and the simplicity of the workflow are improved.

Description

Method, device and equipment for automatically adjusting workflow and storage medium
Technical Field
The present invention relates to the technical field of workflow processing, and in particular, to a method, an apparatus, a device, and a storage medium for automatically adjusting a workflow.
Background
With the development of computer technology, more and more technologies (big data, distributed, Blockchain, artificial intelligence, etc.) are applied to the financial field, and the traditional financial industry is gradually changing to financial technology (Fintech), but higher requirements are also put forward on the technologies due to the requirements of security and real-time performance of the financial industry.
In everyday work, it is often necessary to build a model comprising a plurality of components. At present, a user needs to drag all components involved in modeling into a workflow canvas and connect the components, if the number of the involved components is large, the arrangement of the components looks disordered, the connection between the components is crossed seriously, the workflow drawing efficiency is low, and a satisfactory attractive effect and a satisfactory concise degree are difficult to achieve.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for automatically adjusting a workflow, and aims to improve the drawing efficiency, the attractive effect and the simplicity of the workflow.
In order to achieve the above object, the present invention provides an automatic workflow adjustment method, including:
receiving an initial workflow adjusting instruction, and acquiring an initial workflow in a current workflow editing canvas according to the initial workflow adjusting instruction;
acquiring each component in the initial workflow, and acquiring the step and the level of each component;
numbering each component according to the steps and the hierarchy to obtain the number of each component;
and adjusting each component to a corresponding website on the workflow editing canvas according to the serial number, and drawing a guide line to generate a final workflow.
Preferably, the step of receiving an initial workflow adjustment instruction and obtaining an initial workflow in a current workflow editing canvas according to the initial workflow adjustment instruction further includes:
receiving a workflow construction instruction, and opening the workflow editing canvas according to the workflow construction instruction;
obtaining each algorithm component drawn in the workflow editing canvas through a dragging operation, and marking each algorithm component as the initial workflow.
Preferably, the step of obtaining the steps and the levels of the components comprises:
judging whether the setting mode of the sequence of each component in the initial workflow is code setting or connection setting;
if the setting mode is code setting, acquiring the steps and the levels of the components set by the code instruction;
if the setting mode is connection setting, all guide lines of the algorithm components set through the connection are acquired, and the steps and the levels of all the components are acquired according to the guide lines.
Preferably, the numbering the components according to the steps and the hierarchy, and the step of obtaining the numbers of the components further includes:
obtaining the execution sequence of each component according to the number;
comparing the execution sequence with a preset sequence, and verifying the rationality of the initial workflow;
if the execution sequence accords with the preset sequence, judging that the initial workflow is reasonable;
and if the execution sequence does not accord with the preset sequence, judging that the initial workflow is unreasonable, and outputting a prompt that the initial workflow is unreasonable.
Preferably, before the step of adjusting each component to a corresponding website on the workflow editing canvas according to the number and drawing a guide line to generate a final workflow, the method further includes:
dividing the workflow editing canvas into a plurality of mesh points;
and respectively marking the coordinates of the website according to the position of the website in the workflow editing canvas, wherein the coordinates correspond to the serial numbers.
Preferably, the step of adjusting each component to a corresponding website of the canvas according to the number, and generating the final workflow further includes:
and associating the final workflow with the task execution progress of each component, and updating the display style of the corresponding component in the final workflow according to the task execution progress.
Preferably, after the step of adjusting each component to a corresponding website on the workflow editing canvas according to the number and drawing a guide line to generate a final workflow, the method further includes:
receiving a workflow modification instruction, editing and setting the corresponding final workflow into an editable state according to the modification instruction, and marking the final workflow as a workflow to be adjusted;
and receiving the editing operation of the workflow to be adjusted, and processing the workflow according to a preset flow after the editing operation is finished to obtain a new-version workflow.
In order to achieve the above object, an embodiment of the present invention further provides an automatic workflow adjusting apparatus, where the automatic workflow adjusting apparatus includes:
the receiving module is used for receiving an initial workflow adjusting instruction and acquiring an initial workflow in a current workflow editing canvas according to the initial workflow adjusting instruction;
the acquisition module is used for acquiring each component in the initial workflow and acquiring the step and the level of each component;
a numbering module, configured to number the components according to the steps and the hierarchy, and obtain numbers of the components;
and the generating module is used for adjusting each component to a corresponding website on the workflow editing canvas according to the serial number and drawing a guide line to generate a final workflow.
In order to achieve the above object, an embodiment of the present invention further provides an automatic workflow adjusting apparatus, where the automatic workflow adjusting apparatus includes a processor, a memory, and an automatic workflow adjusting program stored in the memory, and when the automatic workflow adjusting program is executed by the processor, the steps of the automatic workflow adjusting method are implemented.
In order to achieve the above object, an embodiment of the present invention further provides a computer storage medium, where a workflow automatic adjustment program is stored on the computer storage medium, and when the workflow automatic adjustment program is executed by a processor, the steps of the workflow automatic adjustment method are implemented.
Compared with the prior art, the invention provides a method, a device, equipment and a storage medium for automatically adjusting a workflow, which are used for receiving an initial workflow adjusting instruction and acquiring the initial workflow in the current workflow editing canvas according to the initial workflow adjusting instruction; acquiring each component in the initial workflow, and acquiring the step and the level of each component; numbering each component according to the steps and the hierarchy to obtain the number of each component; and adjusting each component to a corresponding website on the workflow editing canvas according to the serial number, and drawing a guide line to generate a final workflow. Therefore, by automatically adjusting the workflow, the drawing efficiency, the attractive effect and the simplicity of the workflow are improved.
Drawings
Fig. 1 is a schematic hardware configuration diagram of an automatic workflow adjustment device according to embodiments of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for automatically adjusting a workflow of the present invention;
FIG. 3 is a diagram illustrating comparison between workflow adjustment and workflow adjustment according to an embodiment of the automatic workflow adjustment method of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of the method for automatically adjusting workflow of the present invention;
FIG. 5 is a flowchart illustrating a third embodiment of the method for automatically adjusting workflow of the present invention;
fig. 6 is a functional block diagram of the automatic workflow adjusting apparatus according to the first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The workflow automatic adjustment device mainly related to the embodiment of the invention is a network connection device capable of realizing network connection, and the workflow automatic adjustment device can be a server, a cloud platform and the like. In addition, the mobile terminal related to the embodiment of the invention can be mobile network equipment such as a mobile phone, a tablet personal computer and the like.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of an automatic workflow adjustment device according to embodiments of the present invention. In this embodiment of the present invention, the automatic workflow adjustment device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, an input port 1003, an output port 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the input port 1003 is used for data input; the output port 1004 is used for data output, the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of readable storage medium, may include an operating system, a network communication module, an application program module, and a workflow automatic adjustment program. In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and the processor 1001 may call the workflow automatic adjustment program stored in the memory 1005 and execute the workflow automatic adjustment method provided by the embodiment of the present invention.
The embodiment of the invention provides a method for automatically adjusting a workflow.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the method for automatically adjusting a workflow of the present invention.
In this embodiment, the method for automatically adjusting a workflow is applied to an automatic workflow adjustment device, and the method includes:
step S101, receiving an initial workflow adjusting instruction, and acquiring an initial workflow in a current workflow editing canvas according to the initial workflow adjusting instruction;
a user edits a desired workflow through a workflow editing tool, the workflow including a plurality of components. For example, if the user edits a workflow related to machine learning modeling, it may include algorithm components such as data import, data preprocessing, feature engineering, model training, model evaluation, and the like.
In this embodiment, a user may send an initial workflow adjustment instruction through a preset control, where the control is displayed in a workflow editing tool, and characters that may correspond to the preset control are identified on the preset control, for example, "workflow rearrangement," "workflow automatic adjustment," "workflow automatic alignment," and the like. The user can activate the preset control through one or more of clicking, touch control, action gestures and the like, and when the preset control is activated, it is judged that the user sends an initial workflow adjusting instruction, and the initial workflow adjusting instruction is received.
And after the initial workflow adjusting instruction is received, taking the workflow opened in the current workflow editing canvas as the initial workflow. Or popping up an initial workflow selection interface after receiving the initial workflow adjustment instruction so that a user can select a workflow to be adjusted, and taking the workflow selected by the user as the initial workflow.
Step S102, acquiring each component in the initial workflow, and acquiring the step and the level of each component;
all components required by the user are included in the initial workflow. It is understood that the execution steps of the components in the workflow are not generally executed synchronously, and are executed step by step according to the preset steps and levels.
Generally, the user can set the execution sequence of each component through code instructions, and can also manually adjust the positions of the components and draw guide lines among the components.
In this embodiment, the step of obtaining the location and level of each component includes:
step a, judging whether the setting mode of the sequence of each component in the initial workflow is code setting or connection setting;
checking whether a code instruction set by a user for the initial workflow exists in a preset code instruction acquisition interface, and if so, judging the setting mode code setting of the sequence of each component in the initial workflow;
and extracting a guide line drawn by a user from the initial workflow, and if the guide line exists, judging that the setting mode of the sequence of each component in the initial workflow is connection setting.
It can be understood that the steps of checking the code instruction and extracting the guide line may be performed simultaneously or sequentially, and if the steps are performed sequentially, the code instruction may be checked first, or the guide line may be extracted first.
In other embodiments, a setting mode selection control may also be inserted, and the user selects the setting mode through the selection control and obtains the setting mode selected by the user.
B, if the setting mode is code setting, acquiring the steps and the levels of the components set by the code instruction;
the steps and levels of the various components are specified in the code instructions. In this embodiment, one or more of arabic numerals, letters, and codes may be used to identify the sequence of the steps; the levels may be identified by one or more of an alphanumeric number, letter, code number.
And c, if the setting mode is connection setting, acquiring all guide lines of the algorithm components set through the connection, and acquiring the steps and the levels of all the components according to the guide lines.
In this embodiment, a user sets the execution sequence of each component in the initial workflow through a guide line. However, for complex workflows with multiple steps and multiple layers, the crossing of each guide line is serious, which leads to the poor aesthetics of the workflows. Generally, if the setting mode is a connection setting mode, the user has already set the steps and the levels of the components, and traverses the initial workflow from top to bottom in a sequence from left to right: for the components in the first row from top to bottom, marking the components in the second row as a first step, and sequentially traversing until the last row; for components in the same step, from left to right, the first level, the second level and the third level are marked in sequence.
In addition, the steps and the levels of the components in the initial workflow can be compared with the historical steps and the historical levels of the components in the historical workflow which is set before, and if the similarity of the steps and the levels of the components in the initial workflow is higher than a preset threshold, the steps and the levels of the historical workflow are taken as the steps and the levels of the initial workflow. In general, the preset threshold may be actually set as needed, such as to be 90%.
In addition, all components which may need to be used in the workflow to be edited can be collected in advance, and the steps and the hierarchy of all the components can be set according to the logic relationship among the components, the step execution habit and the like. Alternatively, the steps and hierarchy of all components may also be set according to work experience.
Step S103, numbering each component according to the step and the hierarchy to obtain the number of each component;
in this embodiment, one or more of arabic numerals, letters, and codes may be used to identify the sequence of the steps; the levels may be identified by one or more of an alphanumeric number, letter, code number. The component numbering rules may be specifically set, for example, representing steps by arabic numbers and hierarchies by letters.
And numbering each component according to the steps and the hierarchy in sequence according to a preset component numbering rule to obtain the number of each component.
Further, the step of numbering the components according to the steps and the hierarchy and obtaining the numbers of the components further includes:
obtaining the execution sequence of each component according to the number; and sequentially arranging the numbers, and sequentially executing the arrangement result.
Comparing the execution sequence with a preset sequence, and verifying the rationality of the initial workflow; the preset sequence can be preset according to experience, and can also be an execution sequence in a historical workflow.
If the execution sequence accords with the preset sequence, judging that the initial workflow is reasonable; if the initial workflow is reasonable, the following step S104 is continuously executed.
And if the execution sequence does not accord with the preset sequence, judging that the initial workflow is unreasonable, and outputting a prompt that the initial workflow is unreasonable. And after seeing the prompt, the user readjusts the initial workflow and knows that the execution sequence of the initial workflow is reasonable.
And step S104, adjusting each component to a corresponding website on the workflow editing canvas according to the number, and drawing a guide line to generate a final workflow.
In this embodiment, the workflow editing canvas needs to be divided into a plurality of network points in advance; and respectively marking the coordinates of the website according to the position of the website in the workflow editing canvas, wherein the coordinates correspond to the serial numbers. Specifically, the length and width of each screen point may be set according to the size of the workflow editing canvas, then the workflow editing canvas is divided into a plurality of screen points, and when the user adjusts the display scale of the workflow editing canvas, the length and width of the grid are scaled. The mesh points can be displayed by lines or the lines can be hidden and displayed.
After the mesh points are divided, the mesh points are marked according to the corresponding mesh point numbering rules, and the mesh point numbering rules are corresponding to the component numbering rules.
And after the serial numbers of the components are acquired, adjusting the components to the website points corresponding to the serial numbers on the workflow editing canvas, so that the components correspond to the website points.
And drawing corresponding flow guide lines according to the execution sequence to generate a final workflow. Specifically, if the setting mode of the sequence of each component in the initial workflow is code setting, drawing a corresponding flow guide line according to a corresponding code instruction; if the setting mode of the sequence of the components in the initial workflow is the connection setting, new flow guide lines are drawn according to the flow guide lines among the components in the initial workflow, so that the final workflow is simpler and clearer.
Further, after the step of adjusting each component to a corresponding website on the workflow editing canvas according to the number and drawing a guide line to generate a final workflow, the method further comprises:
receiving a workflow modification instruction, editing and setting the corresponding final workflow into an editable state according to the modification instruction, and marking the final workflow as a workflow to be adjusted;
and receiving the editing operation of the user on the workflow to be adjusted, and processing the workflow according to a preset flow after the editing operation is finished to obtain a new-version workflow.
It will be appreciated that after the user has edited the workflow, the workflow will be reviewed and the corresponding adjustments will be made again when a correction is found to be needed. Or because the work process is adjusted, the execution sequence of each component is required, or a part of components are added or deleted, and the final workflow is also required to be correspondingly adjusted.
And receiving the editing operation of the user on the workflow to be adjusted, and processing the workflow according to a preset flow after the editing operation is finished to obtain a new-version workflow. The editing operation includes the above steps S101 to S104, which are not described herein again.
Further, referring to fig. 3, fig. 3 is a comparison diagram of workflow adjustment before and after the workflow adjustment in an embodiment of the automatic workflow adjustment method of the present invention. Fig. 3 illustrates the sequence of each component set by the user through the connection setting. Before the workflow is automatically adjusted, an initial workflow is adopted, in the initial workflow, a user arranges a component A, a component B, a component C, a component D, a component E and a component F in corresponding areas in a workflow editing canvas, and the user also draws guide lines among the components in a manual wiring mode, but the execution sequence of the components is still difficult to be quickly known through the initial workflow. Adjusting the initial workflow according to the technical scheme of the embodiment: the method comprises the steps of firstly obtaining the component A, the component B, the component C, the component D, the component E and the component F, then traversing each component according to the sequence from top to bottom and from left to right, obtaining the steps and the levels of each component, and numbering. For example, if the steps are represented by numbers and the hierarchy is represented by letters, the numbers of the components are obtained: 1a,2a,3a,4b,5a,6 a. And after the serial numbers are obtained, adjusting the components to corresponding network points on the workflow editing canvas according to the serial numbers, and drawing guide lines to generate a final workflow. With continued reference to fig. 3, after the workflow is automatically adjusted, a concise and beautiful final workflow can be obtained, through which the execution sequence of each component can be quickly known. If the beautiful and concise workflow is obtained through manual adjustment of the user, much time and energy are consumed, and the rendering efficiency of the workflow is low.
According to the scheme, the initial workflow adjusting instruction is received, and the initial workflow in the current workflow editing canvas is obtained according to the initial workflow adjusting instruction; acquiring each component in the initial workflow, and acquiring the step and the level of each component; numbering each component according to the steps and the hierarchy to obtain the number of each component; and adjusting each component to a corresponding website on the workflow editing canvas according to the serial number, and drawing a guide line to generate a final workflow. Therefore, by automatically adjusting the workflow, the drawing efficiency, the attractive effect and the simplicity of the workflow are improved.
As shown in fig. 4, a second embodiment of the present invention provides an automatic workflow adjustment method, based on the first embodiment shown in fig. 1, where the step of receiving an initial workflow adjustment instruction and obtaining an initial workflow in a current workflow editing canvas according to the initial workflow adjustment instruction further includes:
step S1001, receiving a workflow construction instruction, and opening the workflow editing canvas according to the workflow construction instruction;
in this embodiment, the user needs to construct a new workflow as needed. Receiving a workflow construction instruction triggered by a user through clicking, voice or action gestures, and then opening the workflow editing canvas according to the workflow construction instruction. It is understood that for programmers, different methods, such as machine learning modeling, neural network modeling, natural language processing, regression models, etc., can be set as desired, since the components used for the workflow are different due to the different methods used. The different methods include the components required for the method.
Step S1002, acquiring each algorithm component drawn in the workflow editing canvas by a drag operation, and marking each algorithm component as the initial workflow.
After the workflow editing canvas is opened, a user can set required components in the workflow editing canvas. Typically, a user can drag preset components into the workflow editing canvas by means of dragging. Generally, according to the workflow editing tool, modes of clicking, double clicking, manual input and the like can be used as control modes of the newly added components.
And marking the workflow formed by each component in the workflow editing canvas as an initial workflow after receiving an editing completion instruction sent by a user.
According to the scheme, the workflow construction instruction is received, and the workflow editing canvas is opened according to the workflow construction instruction; and acquiring each algorithm component drawn in the workflow editing canvas by a user through a dragging operation, and marking each algorithm component as the initial workflow. Therefore, the initial workflow is obtained by obtaining each component in the workflow editing canvas, so that the subsequent automatic adjustment of the workflow is facilitated, and the drawing efficiency, the attractive effect and the simplicity of the workflow are improved.
As shown in fig. 5, a third embodiment of the present invention provides an automatic workflow adjustment method, based on the first embodiment and the second embodiment shown in fig. 1 and fig. 2, the step of adjusting each component to a corresponding website of a canvas according to the number and generating a final workflow further includes:
step S105: and associating the final workflow with the task execution progress of each component, and updating the display style of the corresponding component in the final workflow according to the task execution progress.
And after the final workflow is obtained, related personnel can arrange tasks corresponding to the components according to the workflow.
In this embodiment, the final workflow is associated with the task execution progress of each component, so that the execution condition of each current task can be known by looking up the final workflow. And updating the display style of the corresponding component in the final workflow according to the task execution progress. For example, a component corresponding to the task being executed is set to be red, and further, the task execution progress can be displayed; the component corresponding to the completed task can also be set to be green, or the component corresponding to the completed task is marked by the V-shaped mark; the components corresponding to completed tasks may also be marked in gray.
According to the scheme, the initial workflow adjusting instruction is received, and the initial workflow in the current workflow editing canvas is obtained according to the initial workflow adjusting instruction; acquiring each component in the initial workflow, and acquiring the step and the level of each component; numbering each component according to the steps and the hierarchy to obtain the number of each component; adjusting each component to a corresponding network point on the workflow editing canvas according to the serial number, and drawing a guide line to generate a final workflow; and associating the final workflow with the task execution progress of each component, and updating the display style of the corresponding component in the final workflow according to the task execution progress. Therefore, by automatically adjusting the workflow, the drawing efficiency, the attractive effect and the simplicity of the workflow are improved.
In addition, the embodiment also provides an automatic workflow adjusting device. Referring to fig. 6, fig. 6 is a functional block diagram of the automatic workflow adjustment apparatus according to the first embodiment of the present invention.
The automatic workflow adjustment device provided by the present invention is a virtual device, and is stored in the memory 1005 of the automatic workflow adjustment apparatus shown in fig. 1, so as to realize all functions of the automatic workflow adjustment program: the system comprises a display screen, a workflow editing canvas and a workflow display module, wherein the display screen is used for receiving an initial workflow adjusting instruction and acquiring an initial workflow in the current workflow editing canvas according to the initial workflow adjusting instruction; the method comprises the steps of obtaining each component in the initial workflow, and obtaining the step and the level of each component; the system is used for numbering each component according to the steps and the hierarchy to obtain the number of each component; and the workflow editor is used for adjusting each component to a corresponding website on the workflow editor canvas according to the serial number and drawing a guide line to generate a final workflow.
Specifically, the workflow automatic adjustment device b includes:
the receiving module 10 is configured to receive an initial workflow adjustment instruction, and obtain an initial workflow in a current workflow editing canvas according to the initial workflow adjustment instruction;
an obtaining module 20, configured to obtain each component in the initial workflow, and obtain a step and a level where each component is located;
a numbering module 30, configured to number the components according to the steps and the hierarchy, and obtain numbers of the components;
and the generating module 40 is configured to adjust each component to a corresponding website on the workflow editing canvas according to the number, and draw a guide line to generate a final workflow.
Further, the receiving module is further configured to:
receiving a workflow construction instruction, and opening the workflow editing canvas according to the workflow construction instruction;
obtaining each algorithm component drawn in the workflow editing canvas through a dragging operation, and marking each algorithm component as the initial workflow
Further, the obtaining module is further configured to:
judging whether the setting mode of the sequence of each component in the initial workflow is code setting or connection setting;
if the setting mode is code setting, acquiring the steps and the levels of the components set by the code instruction;
if the setting mode is connection setting, all guide lines of the algorithm components set through the connection are acquired, and the steps and the levels of all the components are acquired according to the guide lines.
Further, the numbering module is further configured to:
obtaining the execution sequence of each component according to the number;
comparing the execution sequence with a preset sequence, and verifying the rationality of the initial workflow;
if the execution sequence accords with the preset sequence, judging that the initial workflow is reasonable;
and if the execution sequence does not accord with the preset sequence, judging that the initial workflow is unreasonable, and outputting a prompt that the initial workflow is unreasonable.
Further, the generation module is further configured to:
dividing the workflow editing canvas into a plurality of mesh points;
and respectively marking the coordinates of the website according to the position of the website in the workflow editing canvas, wherein the coordinates correspond to the serial numbers.
Further, the generation module is further configured to:
and associating the final workflow with the task execution progress of each component, and updating the display style of the corresponding component in the final workflow according to the task execution progress.
Further, the generation module is further configured to:
receiving a workflow modification instruction, editing and setting the corresponding final workflow into an editable state according to the modification instruction, and marking the final workflow as a workflow to be adjusted;
and receiving the editing operation of the workflow to be adjusted, and processing the workflow according to a preset flow after the editing operation is finished to obtain a new-version workflow.
Further, the present invention also provides a computer storage medium, where a workflow automatic adjustment program is stored on the computer storage medium, and when the workflow automatic adjustment program is executed by a processor, the steps of the workflow automatic adjustment method are implemented, which are not described herein again.
Compared with the prior art, the method, the device, the equipment and the storage medium for automatically adjusting the workflow provided by the invention receive an initial workflow adjusting instruction, and obtain the initial workflow in the current workflow editing canvas according to the initial workflow adjusting instruction; acquiring each component in the initial workflow, and acquiring the step and the level of each component; numbering each component according to the steps and the hierarchy to obtain the number of each component; and adjusting each component to a corresponding website on the workflow editing canvas according to the serial number, and drawing a guide line to generate a final workflow. Therefore, by automatically adjusting the workflow, the drawing efficiency, the attractive effect and the simplicity of the workflow are improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (9)

1. A method for automatically adjusting workflow, the method comprising:
receiving an initial workflow adjusting instruction, and acquiring an initial workflow in a current workflow editing canvas according to the initial workflow adjusting instruction;
acquiring each component in the initial workflow, and acquiring the step and the level of each component;
numbering each component according to the steps and the hierarchy to obtain the number of each component;
adjusting each component to a corresponding network point on the workflow editing canvas according to the serial number, and drawing a guide line to generate a final workflow;
wherein the step of obtaining the location and the level of each component comprises:
judging whether the setting mode of the sequence of each component in the initial workflow is code setting or connection setting;
if the setting mode is code setting, acquiring the steps and the levels of the components set by the code instruction;
and if the setting mode is connection setting, acquiring all guide lines of the algorithm components set through the connection, and acquiring the steps and the levels of all the components according to the guide lines.
2. The method of claim 1, wherein the step of receiving an initial workflow adjustment instruction, and obtaining an initial workflow in a current workflow editing canvas according to the initial workflow adjustment instruction further comprises:
receiving a workflow construction instruction, and opening the workflow editing canvas according to the workflow construction instruction;
obtaining each algorithm component drawn in the workflow editing canvas through a dragging operation, and marking each algorithm component as the initial workflow.
3. The method of claim 1, wherein said step of numbering said components according to said steps and said hierarchy, and wherein said step of obtaining numbers of said components further comprises:
obtaining the execution sequence of each component according to the number;
comparing the execution sequence with a preset sequence, and verifying the rationality of the initial workflow;
if the execution sequence accords with the preset sequence, judging that the initial workflow is reasonable;
and if the execution sequence does not accord with the preset sequence, judging that the initial workflow is unreasonable, and outputting a prompt that the initial workflow is unreasonable.
4. The method of claim 1, wherein the step of adjusting the components to corresponding dots on the workflow editing canvas according to the numbers and drawing a guide line to generate a final workflow further comprises:
dividing the workflow editing canvas into a plurality of mesh points;
and respectively marking the coordinates of the website according to the position of the website in the workflow editing canvas, wherein the coordinates correspond to the serial numbers.
5. The method of claim 1, wherein the step of adjusting the components to corresponding dots of a canvas according to the numbers and generating a final workflow further comprises:
and associating the final workflow with the task execution progress of each component, and updating the display style of the corresponding component in the final workflow according to the task execution progress.
6. The method of claim 1, wherein the step of adjusting the components to corresponding dots on the workflow editing canvas according to the numbers and drawing guide lines to generate a final workflow further comprises:
receiving a workflow modification instruction, setting the corresponding final workflow into an editable state according to the modification instruction, and marking the final workflow as a workflow to be adjusted;
and receiving the editing operation of the workflow to be adjusted, and processing the workflow according to a preset flow after the editing operation is finished to obtain a new-version workflow.
7. An automatic workflow adjustment apparatus, comprising:
the receiving module is used for receiving an initial workflow adjusting instruction and acquiring an initial workflow in a current workflow editing canvas according to the initial workflow adjusting instruction;
the acquisition module is used for acquiring each component in the initial workflow and acquiring the step and the level of each component;
a numbering module, configured to number the components according to the steps and the hierarchy, and obtain numbers of the components;
a generating module for adjusting each component to a corresponding network point on the workflow editing canvas according to the serial number and drawing a guide line to generate a final workflow
Wherein the acquisition module comprises:
a judging unit, configured to judge whether a setting mode of the sequence of each component in the initial workflow is code setting or connection setting;
a first acquiring unit configured to acquire a step and a hierarchy of each of the components set by a code instruction if the setting manner is a code setting;
and the second acquisition unit is used for acquiring all guide lines of the algorithm components set through the connecting lines if the setting mode is the connecting line setting, and acquiring the steps and the levels of all the components according to the guide lines.
8. A workflow automatic adjustment device, characterized in that the workflow automatic adjustment device comprises a processor, a memory and a workflow automatic adjustment program stored in the memory, which workflow automatic adjustment program, when executed by the processor, implements the steps of the workflow automatic adjustment method according to any one of claims 1 to 6.
9. A computer storage medium having a workflow automatic adjustment program stored thereon, the workflow automatic adjustment program when executed by a processor implementing the steps of the workflow automatic adjustment method according to any one of claims 1 to 6.
CN201911010190.4A 2019-10-22 2019-10-22 Method, device and equipment for automatically adjusting workflow and storage medium Active CN110727969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911010190.4A CN110727969B (en) 2019-10-22 2019-10-22 Method, device and equipment for automatically adjusting workflow and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911010190.4A CN110727969B (en) 2019-10-22 2019-10-22 Method, device and equipment for automatically adjusting workflow and storage medium

Publications (2)

Publication Number Publication Date
CN110727969A CN110727969A (en) 2020-01-24
CN110727969B true CN110727969B (en) 2021-10-15

Family

ID=69221729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911010190.4A Active CN110727969B (en) 2019-10-22 2019-10-22 Method, device and equipment for automatically adjusting workflow and storage medium

Country Status (1)

Country Link
CN (1) CN110727969B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112633844A (en) * 2020-12-29 2021-04-09 广州极飞科技有限公司 Data adaptation processing method, workflow system, electronic device and storage medium
CN113065746A (en) * 2021-03-12 2021-07-02 深圳赛动生物自动化有限公司 Dynamic editing method, device, system and medium for stem cell preparation process flow
CN113344548A (en) * 2021-06-30 2021-09-03 深圳前海微众银行股份有限公司 Workflow generation method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473388A (en) * 2013-07-25 2013-12-25 深圳市华傲数据技术有限公司 System and device capable of realizing automatic layout of flow chart
US20140039971A1 (en) * 2006-05-16 2014-02-06 Fujitsu Limited Program, method, and apparatus for modeling workflow
CN105808226A (en) * 2014-12-31 2016-07-27 亚申科技研发中心(上海)有限公司 Generation method and system of experimental workflow
CN109087054A (en) * 2018-06-01 2018-12-25 平安科技(深圳)有限公司 Synergetic office work data flow processing method, device, computer equipment and storage medium
CN109683883A (en) * 2018-12-24 2019-04-26 成都四方伟业软件股份有限公司 A kind of Flow Chart Design method and device
CN110018860A (en) * 2019-04-04 2019-07-16 深圳市永兴元科技股份有限公司 Workflow management method, device, equipment and computer storage medium
CN110188335A (en) * 2019-05-24 2019-08-30 北京神州泰岳软件股份有限公司 A kind of page workflow construction method and device based on text-processing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140039971A1 (en) * 2006-05-16 2014-02-06 Fujitsu Limited Program, method, and apparatus for modeling workflow
CN103473388A (en) * 2013-07-25 2013-12-25 深圳市华傲数据技术有限公司 System and device capable of realizing automatic layout of flow chart
CN105808226A (en) * 2014-12-31 2016-07-27 亚申科技研发中心(上海)有限公司 Generation method and system of experimental workflow
CN109087054A (en) * 2018-06-01 2018-12-25 平安科技(深圳)有限公司 Synergetic office work data flow processing method, device, computer equipment and storage medium
CN109683883A (en) * 2018-12-24 2019-04-26 成都四方伟业软件股份有限公司 A kind of Flow Chart Design method and device
CN110018860A (en) * 2019-04-04 2019-07-16 深圳市永兴元科技股份有限公司 Workflow management method, device, equipment and computer storage medium
CN110188335A (en) * 2019-05-24 2019-08-30 北京神州泰岳软件股份有限公司 A kind of page workflow construction method and device based on text-processing

Also Published As

Publication number Publication date
CN110727969A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
CN110727969B (en) Method, device and equipment for automatically adjusting workflow and storage medium
CN115098084A (en) Non-coding form design and drawing method
CN105701082A (en) Automatic typesetting method and system for presentation document
CN108255489B (en) Front-end interface code generation method and device, electronic equipment and storage medium
DE112015005319T5 (en) System and method for generating machining control data of a numerically controlled machine tool
CN110705237B (en) Automatic document generation method, data processing device and storage medium
JP7014782B2 (en) Automatic coloring method, automatic coloring system and automatic coloring device
CN111240670A (en) Method and device for quickly and automatically generating software graphical interface
CN111722842A (en) Pipeline arranging method and device, electronic equipment and storage medium
CN109783793A (en) Page editing composition method and device
CN110930256A (en) Quantitative analysis method and quantitative analysis system
CN107092413A (en) A kind of visible controls corners processing method and system
CN114239237A (en) Power distribution network simulation scene generation system and method supporting digital twinning
CN113626116A (en) Intelligent learning system and data analysis method
CN115485039A (en) System and method for supporting creation of game scripts
CN113223187A (en) Advertisement finished product image batch manufacturing method, system, equipment and readable storage medium
CN109740302B (en) Simulation method and device of neural network
US9984503B2 (en) Systems and methods of updating graphical objects
CN108205608B (en) Simulation device with configurable model
KR102363370B1 (en) Artificial neural network automatic design generation apparatus and method using UX-bit and Monte Carlo tree search
CN113468261B (en) Method and system for constructing entity relationship of Internet of things based on graphic editing engine
CN111984253B (en) Method and device for adding programming roles based on graphical programming tool
CN110298903B (en) Curve editing method and device, computing equipment and storage medium
CN112434763A (en) Chinese character skeleton generating method based on computer
CN111966350A (en) Web front-end interface generation method and device

Legal Events

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