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

文档序号:1567589 发布日期:2020-01-24 浏览:27次 中文

阅读说明:本技术 工作流自动调整方法、装置、设备及存储介质 (Method, device and equipment for automatically adjusting workflow and storage medium ) 是由 林冰垠 王跃 刘玉德 卓本刚 于 2019-10-22 设计创作,主要内容包括:本发明公开了一种工作流自动调整方法、装置、设备及存储介质,该方法包括:接收初始工作流调整指令,根据所述初始工作流调整指令获取当前工作流编辑画布中的初始工作流;获取所述初始工作流中的各个组件,并获取所述各个组件所在的步骤和层级;根据所述步骤和所述层级对所述各个组件进行编号处理,获得所述各个组件的编号;根据所述编号将所述各个组件调整到所述工作流编辑画布上对应的网点,并绘制导向线生成最终工作流。由此通过将工作流进行自动调整,提高了工作流的绘制效率、美观效果以及简洁程度。(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.)

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;

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.

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 the step of obtaining the level and the step 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.

4. 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.

5. 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.

6. 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.

7. 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, 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.

8. 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;

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.

9. 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 7.

10. 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 7.

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.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:零度风下大高差跳线风偏计算方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类