CN110689232A - Workflow configuration optimization processing method and device and computer equipment - Google Patents

Workflow configuration optimization processing method and device and computer equipment Download PDF

Info

Publication number
CN110689232A
CN110689232A CN201910827833.8A CN201910827833A CN110689232A CN 110689232 A CN110689232 A CN 110689232A CN 201910827833 A CN201910827833 A CN 201910827833A CN 110689232 A CN110689232 A CN 110689232A
Authority
CN
China
Prior art keywords
workflow
node
task
instruction
execution sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910827833.8A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910827833.8A priority Critical patent/CN110689232A/en
Publication of CN110689232A publication Critical patent/CN110689232A/en
Pending legal-status Critical Current

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/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • 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/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The application relates to an optimization processing method and device for workflow configuration in the research and development management field, computer equipment and a storage medium. The method comprises the following steps: acquiring a workflow identifier, and loading a corresponding workflow in a workflow configuration page according to the workflow identifier, wherein the workflow comprises a plurality of nodes; acquiring a modification instruction corresponding to a workflow task, wherein the modification instruction comprises a newly added instruction, and the newly added instruction carries a node to be newly added; configuring a task server corresponding to the node to be newly added, interface parameters and an execution sequence corresponding to the task server according to the newly added instruction; calling corresponding test data through the interface parameters; and verifying the task server and the execution sequence by using the test data, and generating a modified workflow after the verification is passed. By adopting the method, the configuration operation of the workflow can be effectively simplified, and the complexity of the workflow configuration is reduced.

Description

Workflow configuration optimization processing method and device and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an optimization processing method and apparatus for workflow configuration, a computer device, and a storage medium.
Background
The workflow is abstract and general description of a workflow and business rules among operation steps of the workflow, and documents, information or tasks are automatically transmitted among a plurality of nodes according to a preset rule to achieve a corresponding work purpose.
In a conventional manner, the workflow may be configured via a workflow template. The actual business is often very complex, and the workflow templates become lengthy. If the workflow task needs to be added, the workflow template needs to be correspondingly adjusted at first, and then configuration modification operation is performed through the adjusted workflow template, which is tedious and brings inconvenience to workers. Therefore, how to effectively simplify the configuration operation of the workflow and reduce the complexity of the workflow configuration becomes a technical problem to be solved at present.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, an apparatus, a computer device, and a storage medium for optimizing a workflow configuration, which can effectively simplify configuration operations of the workflow and reduce complexity of the workflow configuration.
A method for optimizing workflow configuration, the method comprising:
acquiring a workflow identifier, and loading a corresponding workflow in a workflow configuration page according to the workflow identifier, wherein the workflow comprises a plurality of nodes;
acquiring a modification instruction corresponding to a workflow task, wherein the modification instruction comprises a newly added instruction, and the newly added instruction carries a node to be newly added;
configuring a task server corresponding to the node to be newly added, interface parameters and an execution sequence corresponding to the task server according to the newly added instruction;
calling corresponding test data through the interface parameters;
and verifying the task server and the execution sequence by using the test data, and generating a modified workflow after the verification is passed.
In one embodiment, the method further comprises:
receiving a component acquisition instruction, selecting a plurality of components corresponding to a workflow according to the component acquisition instruction, and adding the selected components to a workflow configuration page; the components comprise nodes;
acquiring configuration information and an execution sequence corresponding to the node;
and generating a corresponding workflow by using the nodes, the configuration information and the execution sequence.
In one embodiment, before the calling the corresponding test data through the interface parameter, the method further includes:
acquiring interface parameters corresponding to the task server, wherein the interface parameters comprise interface fields;
adding a corresponding data source according to the interface field;
the calling the corresponding test data through the interface parameters comprises: and calling corresponding test data according to the data source corresponding to the interface field, and calling the interface of the task server by using the test data as an input parameter.
In one embodiment, the verifying the task server and the execution sequence by using the test data includes:
sending the test data to corresponding task servers according to the execution sequence according to the workflow tasks;
when response data returned by the task server are received, storing the response data according to a preset storage mode;
and after the saving is successful, changing the state field corresponding to the workflow task.
In one embodiment, the modification instruction further includes a deletion instruction, and the deletion instruction carries a node to be deleted; the method further comprises the following steps:
deleting the nodes to be deleted in the workflow configuration page according to the deletion instruction;
and establishing an execution sequence between the previous node and the next node corresponding to the node to be deleted to obtain the modified workflow.
An apparatus for optimizing workflow configuration, the apparatus comprising:
the workflow loading module is used for acquiring a workflow identifier and loading a corresponding workflow in a workflow configuration page according to the workflow identifier, wherein the workflow comprises a plurality of nodes;
the node modification module is used for acquiring modification instructions corresponding to the workflow tasks, wherein the modification instructions comprise new instructions, and the new instructions carry nodes to be newly added; configuring a task server corresponding to the node to be newly added, interface parameters and an execution sequence corresponding to the task server according to the newly added instruction;
the checking module is used for calling corresponding test data through the interface parameters; and verifying the task server and the execution sequence by using the test data, and generating a modified workflow after the verification is passed.
In one embodiment, the apparatus further comprises:
the workflow configuration module is used for receiving the component acquisition instruction, selecting a plurality of components corresponding to the workflow according to the component acquisition instruction, and adding the selected components to a workflow configuration page; the components comprise nodes; acquiring configuration information and an execution sequence corresponding to the node; and generating a corresponding workflow by using the nodes, the configuration information and the execution sequence.
In one embodiment, the verification module is further configured to send the test data to corresponding task servers according to the execution sequence according to the workflow task; when response data returned by the task server are received, storing the response data according to a preset storage mode; and after the saving is successful, changing the state field corresponding to the workflow task.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the various method embodiments described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the respective method embodiment described above.
According to the method and the device for optimizing the workflow configuration, the computer equipment and the storage medium, the configuration of the workflow does not depend on the workflow template, so that the limitation of the workflow template can be broken through. When the workflow task needs to be added, the task server corresponding to the node to be added carried in the new instruction, the interface parameter and the execution sequence corresponding to the task server can be configured according to the new instruction without being modified greatly, and only the corresponding workflow node needs to be modified and configured. After the configuration is modified, the corresponding test data can be called through the interface parameters, the task server and the execution sequence are verified, and therefore the modification of the whole workflow can be completed after the verification is passed. In the whole process, the flexibility of workflow configuration is effectively improved, the configuration operation of the workflow is effectively simplified, and the complexity of the workflow configuration is reduced.
Drawings
FIG. 1 is a diagram illustrating an exemplary scenario for optimizing workflow configuration in an embodiment;
FIG. 2 is a flowchart illustrating a method for optimizing workflow configuration according to an embodiment;
FIG. 3 is a flow diagram illustrating the workflow configuration steps in one embodiment;
FIG. 4 is a flowchart illustrating the steps of verifying the task server and the execution sequence using test data in another embodiment;
FIG. 5 is a block diagram showing an arrangement of an optimization processing apparatus for workflow configuration in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The workflow configuration optimization processing method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, there is provided a method for optimizing workflow configuration, which is described by taking the method as an example for being applied to the terminal in fig. 1, and includes the following steps:
step 202, obtaining a workflow identifier, and loading a corresponding workflow in a workflow configuration page according to the workflow identifier, where the workflow includes a plurality of nodes.
When configuring the corresponding workflow according to the service requirement, the terminal can use the pre-installed workflow management system to perform configuration. After the terminal enters the workflow management system, a workflow configuration page can be displayed. The terminal can select the components corresponding to the nodes of the workflow in the workflow configuration page, and establish the connection between the components, so as to establish the execution sequence between the nodes. The terminal can also configure the parameters of each node and the corresponding task server in the workflow configuration page. The task server can execute the workflow task corresponding to the node. And the terminal generates a corresponding workflow by using the nodes, the configuration information and the execution sequence. The terminal can upload the configured workflow to the workflow management system.
When the business requirement changes, the corresponding workflow can be adjusted, namely, the corresponding workflow task is modified. For example, new workflow tasks may be added or existing workflow tasks may be reduced. The terminal can obtain the workflow identification to be adjusted, obtain the corresponding workflow in the workflow management system according to the workflow identification, and load the workflow to the workflow configuration page.
And 204, acquiring a modification instruction corresponding to the workflow task, wherein the modification instruction comprises a new instruction, and the new instruction carries a node to be newly added.
And step 206, configuring the task server corresponding to the node to be newly added, the interface parameters and the execution sequence corresponding to the task server according to the newly added instruction.
And the terminal acquires a modification instruction corresponding to the workflow task and adjusts a corresponding task server in a workflow configuration page according to the modification instruction carrying the node to be modified. Specifically, when the modification instruction is a new instruction corresponding to the workflow task, the terminal adds one or more task servers in the workflow configuration page according to the new instruction. The terminal can also configure interface parameters and an execution sequence corresponding to the newly added task server. The execution order of the newly added task servers can be parallel, serial, and a combination of parallel and serial. The execution sequence between the newly added task server and the existing task server can be parallel, serial, combined and the like. When the number of the newly added task servers is more than two, the newly added task servers can also be in parallel, serial, combination and other execution sequences. The execution order may be determined according to business requirements. And each newly added task server is provided with corresponding interface parameters, and the interface parameters can configure corresponding data sources. And corresponding data can be called through a data source so as to realize the calling of the newly added task server.
And step 208, calling corresponding test data through the interface parameters.
And step 210, verifying the task server and the execution sequence by using the test data, and generating a modified workflow after the verification is passed.
After the configuration of the newly added task server is completed, the terminal can call corresponding test data through the interface parameters, the task server and the execution sequence are verified by using the test data, and when the state field carried in the response data returned by the task server is consistent with the preset value, the verification is passed.
In this embodiment, since the configuration of the workflow does not depend on the workflow template, the limitation of the workflow template can be broken through. When the workflow task needs to be added, the task server corresponding to the node to be added carried in the new instruction, the interface parameter and the execution sequence corresponding to the task server can be configured according to the new instruction without being modified greatly, and only the corresponding workflow node needs to be modified and configured. After the configuration is modified, the corresponding test data can be called through the interface parameters, the task server and the execution sequence are verified, and therefore the modification of the whole workflow can be completed after the verification is passed. In the whole process, the flexibility of workflow configuration is effectively improved, the configuration operation of the workflow is effectively simplified, and the complexity of the workflow configuration is reduced.
In one embodiment, the method further comprises: and configuring the workflow. As shown in fig. 3, the steps specifically include:
step 302, receiving a component acquisition instruction, selecting a plurality of components corresponding to the workflow according to the component acquisition instruction, and adding the selected components to a workflow configuration page; the components include nodes.
Step 304, acquiring configuration information and an execution sequence corresponding to the node.
Step 306, generate a corresponding workflow using the nodes, configuration information, and execution order.
The terminal may be configured with a pre-installed workflow management system. After the terminal enters the workflow management system, a workflow configuration page can be displayed. The workflow configuration page comprises a process name, a process number, a component library, a process design area, a component parameter area and the like. The terminal can receive a component acquisition instruction input by a user, and a plurality of components corresponding to the workflow are selected from the component library according to the component acquisition instruction. The components include nodes in the data stream. The terminal can select a plurality of corresponding components according to the business process. Different business processes correspond to different components. And the terminal adds the selected components to the process design area.
And the terminal connects the components according to the service flow so as to establish an execution sequence between the nodes. The terminal selects one node in the process design area, captures the selected node, drags the cursor to the next node to release, generates a connecting arrow between the selected node and the next node, and establishes an execution sequence between the nodes according to the direction of the connecting arrow. By long-press dragging operation of the components, the execution sequence among all nodes can be rapidly and visually displayed in a flow design area, and convenience is provided for configuration of a workflow.
And displaying the node information in the component parameter area. The terminal can configure each node in the component parameter area. The configuration comprises parameter configuration and task server configuration. The terminal can click each node in the process design area, and information corresponding to the clicked node can be added to the component parameter area. Or, after the terminal selects the corresponding component from the component library, the corresponding node information may be added to the component parameter area. The node information comprises a node name, a node number, a belonging classification, an execution sequence, whether the node information is valid or not and an operation control. When the operation control is clicked, the terminal can display a parameter configuration page corresponding to the node. The parameter configuration page includes a plurality of fields, such as application scenario, product name, order number, order status, and the like. The terminal can also configure the task server and the interface parameters corresponding to the task server in the parameter configuration page. The interface parameter corresponds to the interface field, and the value source corresponding to the interface field can be input.
Further, each node may have a corresponding workflow task, which may be executed by a corresponding task server. In order to facilitate quick understanding of the execution condition of the workflow task, the terminal can also configure a corresponding status field for the workflow task. For example, after the task server executes the workflow task, corresponding response data is returned, and the terminal may mark the status field corresponding to the workflow task as completed according to the response data, so that the completion of the plurality of workflow tasks in the workflow node may be monitored through the status field. And the terminal generates a corresponding workflow by using each node in the process design area, the configuration information corresponding to the nodes and the execution sequence among the nodes. The workflow which the terminal can configure can be uploaded to a workflow management system.
In this embodiment, by selecting components corresponding to a plurality of nodes corresponding to a workflow from a workflow configuration page, an execution sequence between the nodes is established, and the nodes are configured correspondingly, so that a corresponding workflow can be generated by using the nodes, the parameter configuration information, and the execution sequence between the nodes. Because each node in the workflow is configured in the workflow configuration page according to the service requirement and does not depend on the workflow template for configuration, the limitation of the workflow template can be broken through, and the workflow can be flexibly and conveniently configured. When the service requirement changes, the nodes in the service flow can be adjusted in time.
In one embodiment, the method further comprises: performing structure check on the workflow by using a structure check rule; and after the structure is verified, obtaining test data, and performing data verification on the workflow by using the test data.
The workflow also needs to be checked for automation after configuration is completed. The check includes a structure check and a data check. And when the workflow configuration is detected to be completed, the terminal executes structure detection on the workflow. And after the structure detection is passed, the terminal performs data verification on the workflow to be verified. Structural detection includes, but is not limited to: detecting whether the workflow nodes with the branch arrows are connected with branch workflow nodes with corresponding quantity or not; the branch must set a default value; the start node and the end node must have one and only one connection; in addition to the timeout setting, the node must have and only have two connections. When data verification is performed, the terminal obtains test data, and the test data can be automatically generated based on parameter configuration of workflow nodes. And executing the workflow based on the test data, and checking to pass when an expected response result is obtained. All conditional factors and ratio objects of the assignment function of the execution branch must be contained in the parameter configuration fields corresponding to all nodes of the flow, otherwise, the page prompt reports errors. The structure verification and the data verification are carried out on the configured workflow, so that the workflow can be ensured to run smoothly in service application.
Further, based on the checked workflow, a corresponding business process can be realized. The terminal can send the service instance initial data and the service execution command to the workflow server, and the service execution command carries the workflow identification. The workflow server searches the configured target workflow according to the workflow identification, the target workflow comprises a plurality of workflow nodes to be executed, each workflow node to be executed corresponds to one task server, the initial workflow node of the target workflow is determined, and the initial data of the service instance is sent to the task server corresponding to the initial workflow node. And the task server acquires the service instance response data returned by the task server. And the task server determines the next to-be-executed node of the initial workflow node according to the service instance response data, and repeats the step that the task server sends the service instance response data to the task server corresponding to the to-be-executed node to obtain the newly-returned service instance response data until the to-be-executed node has no next to-be-executed node, thereby completing the service process corresponding to the whole workflow. In the process, the working state of the previous node can be known through the state field, so that the next node can be skipped to execute the subsequent workflow task after the workflow task corresponding to the previous node is completed, and further, the occurrence of errors can be effectively avoided.
In one embodiment, before calling the corresponding test data through the interface parameter, the method further includes: acquiring interface parameters corresponding to the task server, wherein the interface parameters comprise interface fields; adding a corresponding data source according to the interface field; the calling of the corresponding test data through the interface parameters comprises the following steps: and calling corresponding test data according to the data source corresponding to the interface field, and calling the interface of the task server by using the test data as an input parameter.
When the task server is configured, the terminal can also configure the interface parameters corresponding to the task server. The interface parameters have corresponding interface fields. The terminal can obtain an interface newly-added instruction, and a target interface field corresponding to the task server is selected as an interface parameter from the interface field library according to the interface newly-added instruction. The interface parameters include interface in and interface out. For interface participation, the terminal may set a corresponding data source for the target interface field. The data sources include a variety of data such as data returned by the interface called before the current interface is executed, an order table, and fixed values. Therefore, the data source of the task server can be updated in time after the task server corresponding to the workflow is modified. For interface participation, the terminal can set a corresponding storage mode for the target interface field. The saving mode includes various modes, for example, the interface parameter is not stored in the preset table, the interface parameter is stored in the same field of the preset table, and the interface parameter is stored in the preset field of the preset table. The preset table is used for generating data of the whole workflow execution process. The filtering interfaces are distinguished to output the parameters at the workflow nodes in a storage mode, so that meaningful parameters for other nodes can be stored in the preset table, the data integrity in the workflow execution process is improved, meanwhile, the meaningless parameters are filtered out, and the data redundancy of the preset table is also avoided.
After the workflow task is modified, considering that the whole workflow contains more nodes and has fewer modified nodes, if the whole workflow is checked, the configuration modification efficiency of the workflow is low. In order to effectively improve the configuration modification efficiency, the terminal can only verify the modified task server. The terminal can call corresponding test data according to a data source corresponding to the interface field, wherein the terminal can directly select a preset fixed value or search a value corresponding to the field from a preset data source to serve as an input parameter to call an interface of the task server, so that the test data is sent to the task server, the task server operates the test data according to a service rule, and corresponding response data are returned.
In one embodiment, as shown in fig. 4, verifying the task server and the execution sequence by using the test data includes:
and 402, sending the test data to corresponding task servers according to the workflow tasks according to the execution sequence.
And step 404, when receiving the response data returned by the task server, storing the response data according to a preset storage mode.
And step 406, after the saving is successful, changing the state field corresponding to the workflow task.
After the terminal adds the corresponding task server according to the workflow task, the task server and the execution sequence thereof can be verified by using the test data. Execution order includes parallel or serial or a combination of parallel and serial. Assuming that the workflow can contain underwriting service nodes, needs to pass through a policy sales system and needs to pass through a policy management system, the underwriting service nodes can be configured to serially call two task servers, a sales task server corresponding to the policy sales system and a management task server. Wherein, the execution sequence corresponding to the sales task server is before, and the sequence corresponding to the management task server is after. At the moment, the execution sequence is serial, the terminal can firstly send the test data to the sales task server, after receiving the response data returned by the sales task server, the terminal can also store the response data returned by the task server according to the storage mode of the interface parameter, and if the storage is successful, the state field corresponding to the response data is changed. Therefore, the test of the newly added task server is completed.
In one embodiment, the modification instruction further includes a deletion instruction, and the deletion instruction carries the node to be deleted; the method further comprises the following steps: deleting the nodes to be deleted in the workflow configuration page according to the deletion instruction; and establishing an execution sequence between the previous node and the next node corresponding to the node to be deleted to obtain the modified workflow.
And when the modification instruction corresponding to the workflow task is a deletion instruction, the terminal deletes one or more task servers in the work configuration page according to the node to be deleted carried in the deletion instruction. The terminal can also delete the interface parameters corresponding to the task server and adjust the connection between nodes which are not deleted, so that the execution sequence between the original task servers can be adjusted after one or more task servers are deleted. The terminal drags the cursor from the component corresponding to the previous node to the component corresponding to the next node and then releases the cursor by dragging the components corresponding to the previous node and the next node respectively, a connecting arrow between the component corresponding to the next node and the component corresponding to the next node is generated, an execution sequence between the previous node and the next node corresponding to the node to be deleted is established according to the direction of the connecting arrow, and the modified workflow is obtained. Therefore, the workflow can be flexibly and conveniently adjusted in time along with the deletion of the nodes.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided an optimization processing apparatus for workflow configuration, including: a workflow loading module 502, a node modification module 504, and a verification module 506, wherein:
the workflow loading module 502 is configured to obtain a workflow identifier, and load a corresponding workflow in a workflow configuration page according to the workflow identifier, where the workflow includes a plurality of nodes.
A node modification module 504, configured to obtain a modification instruction corresponding to the workflow task, where the modification instruction includes a new instruction, and the new instruction carries a node to be newly added; and configuring a task server corresponding to the node to be newly added, interface parameters and an execution sequence corresponding to the task server according to the newly added instruction.
The checking module 506 is configured to call corresponding test data through the interface parameter; and verifying the task server and the execution sequence by using the test data, and generating a modified workflow after the verification is passed.
In one embodiment, the apparatus further comprises: the workflow configuration module is used for receiving the component acquisition instruction, selecting a plurality of components corresponding to the workflow according to the component acquisition instruction, and adding the selected components to a workflow configuration page; the components comprise nodes; acquiring configuration information and an execution sequence corresponding to a node; and generating a corresponding workflow by using the nodes, the configuration information and the execution sequence.
In one embodiment, the verification module is further configured to send the test data to the corresponding task servers according to the execution sequence according to the workflow tasks; when response data returned by the task server are received, storing the response data according to a preset storage mode; and after the saving is successful, changing the state field corresponding to the workflow task.
In one embodiment, the node modification module is further configured to obtain an interface parameter corresponding to the task server, where the interface parameter includes an interface field; adding a corresponding data source according to the interface field; and calling corresponding test data according to the data source corresponding to the interface field, and calling the interface of the task server by using the test data as an input parameter.
In one embodiment, the modification instruction further includes a deletion instruction, and the deletion instruction carries the node to be deleted; the node modification module is also used for deleting the nodes to be deleted in the workflow configuration page according to the deletion instruction; and establishing an execution sequence between the previous node and the next node corresponding to the node to be deleted to obtain the modified workflow.
For specific limitations of the optimization processing device of the workflow configuration, reference may be made to the above limitations of the optimization processing method of the workflow configuration, and details are not described here. The modules in the optimization processing device of the workflow configuration can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external server through a network connection. The computer program is executed by a processor to implement a method of optimizing workflow configurations. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory storing a computer program and a processor implementing the steps of the above-described method embodiments when the processor executes the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the respective method embodiment as described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for optimizing workflow configuration, the method comprising:
acquiring a workflow identifier, and loading a corresponding workflow in a workflow configuration page according to the workflow identifier, wherein the workflow comprises a plurality of nodes;
acquiring a modification instruction corresponding to a workflow task, wherein the modification instruction comprises a newly added instruction, and the newly added instruction carries a node to be newly added;
configuring a task server corresponding to the node to be newly added, interface parameters and an execution sequence corresponding to the task server according to the newly added instruction;
calling corresponding test data through the interface parameters;
and verifying the task server and the execution sequence by using the test data, and generating a modified workflow after the verification is passed.
2. The method of claim 1, further comprising:
receiving a component acquisition instruction, selecting a plurality of components corresponding to a workflow according to the component acquisition instruction, and adding the selected components to a workflow configuration page; the components comprise nodes;
acquiring configuration information and an execution sequence corresponding to the node;
and generating a corresponding workflow by using the nodes, the configuration information and the execution sequence.
3. The method of claim 1, wherein prior to said invoking corresponding test data via said interface parameter, said method further comprises:
acquiring interface parameters corresponding to the task server, wherein the interface parameters comprise interface fields;
adding a corresponding data source according to the interface field;
the calling the corresponding test data through the interface parameters comprises: and calling corresponding test data according to the data source corresponding to the interface field, and calling the interface of the task server by using the test data as an input parameter.
4. The method of claim 1, wherein the verifying the task server and the execution order using the test data comprises:
sending the test data to corresponding task servers according to the execution sequence according to the workflow tasks;
when response data returned by the task server are received, storing the response data according to a preset storage mode;
and after the saving is successful, changing the state field corresponding to the workflow task.
5. The method according to any one of claims 1-4, wherein the modification instruction further comprises a deletion instruction, and the deletion instruction carries a node to be deleted; the method further comprises the following steps:
deleting the nodes to be deleted in the workflow configuration page according to the deletion instruction;
and establishing an execution sequence between the previous node and the next node corresponding to the node to be deleted to obtain the modified workflow.
6. An apparatus for optimizing workflow configuration, the apparatus comprising:
the workflow loading module is used for acquiring a workflow identifier and loading a corresponding workflow in a workflow configuration page according to the workflow identifier, wherein the workflow comprises a plurality of nodes;
the node modification module is used for acquiring modification instructions corresponding to the workflow tasks, wherein the modification instructions comprise new instructions, and the new instructions carry nodes to be newly added; configuring a task server corresponding to the node to be newly added, interface parameters and an execution sequence corresponding to the task server according to the newly added instruction;
the checking module is used for calling corresponding test data through the interface parameters; and verifying the task server and the execution sequence by using the test data, and generating a modified workflow after the verification is passed.
7. The apparatus of claim 6, further comprising:
the workflow configuration module is used for receiving the component acquisition instruction, selecting a plurality of components corresponding to the workflow according to the component acquisition instruction, and adding the selected components to a workflow configuration page; the components comprise nodes; acquiring configuration information and an execution sequence corresponding to the node; and generating a corresponding workflow by using the nodes, the configuration information and the execution sequence.
8. The apparatus of claim 6, wherein the verification module is further configured to send the test data to corresponding task servers according to the execution sequence according to workflow tasks; when response data returned by the task server are received, storing the response data according to a preset storage mode; and after the saving is successful, changing the state field corresponding to the workflow task.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201910827833.8A 2019-09-03 2019-09-03 Workflow configuration optimization processing method and device and computer equipment Pending CN110689232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910827833.8A CN110689232A (en) 2019-09-03 2019-09-03 Workflow configuration optimization processing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910827833.8A CN110689232A (en) 2019-09-03 2019-09-03 Workflow configuration optimization processing method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN110689232A true CN110689232A (en) 2020-01-14

Family

ID=69107668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910827833.8A Pending CN110689232A (en) 2019-09-03 2019-09-03 Workflow configuration optimization processing method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN110689232A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861100A (en) * 2020-06-03 2020-10-30 广东电网有限责任公司 Work order processing method and device based on process scoring
CN112001707A (en) * 2020-09-02 2020-11-27 平安养老保险股份有限公司 Business workflow generation method and system based on business data
CN112287742A (en) * 2020-06-22 2021-01-29 上海柯林布瑞信息技术有限公司 Method and device for analyzing flow chart in file, computing equipment and storage medium
CN112416476A (en) * 2020-11-25 2021-02-26 武汉联影医疗科技有限公司 Workflow execution method and device, computer equipment and storage medium
CN112488649A (en) * 2020-11-26 2021-03-12 泰康保险集团股份有限公司 Process engine-based process closing method and device
CN113055226A (en) * 2021-02-20 2021-06-29 烽火通信科技股份有限公司 Method and device for sequencing network management configuration data downloading
CN113344548A (en) * 2021-06-30 2021-09-03 深圳前海微众银行股份有限公司 Workflow generation method, device, equipment and storage medium
CN113515220A (en) * 2021-07-23 2021-10-19 上海商汤科技开发有限公司 Task processing method and device, electronic equipment and storage medium
CN113542796A (en) * 2020-04-22 2021-10-22 腾讯科技(深圳)有限公司 Video evaluation method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287528A1 (en) * 2008-05-19 2009-11-19 Robert Strickland Dynamic selection of work flows based on environmental conditions to facilitate data entry
CN101593294A (en) * 2008-05-29 2009-12-02 国际商业机器公司 The method and system of dynamic-configuration workflow
US9595014B1 (en) * 2010-09-24 2017-03-14 American Airlines, Inc. System and method for executing workflow instance and modifying same during execution
CN106897857A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 A kind of workflow processing method and system
CN107644286A (en) * 2017-08-15 2018-01-30 上海艾融软件股份有限公司 Workflow processing method and device
CN109670767A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Processing method, device, terminal device and the storage medium of workflow

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090287528A1 (en) * 2008-05-19 2009-11-19 Robert Strickland Dynamic selection of work flows based on environmental conditions to facilitate data entry
CN101593294A (en) * 2008-05-29 2009-12-02 国际商业机器公司 The method and system of dynamic-configuration workflow
US9595014B1 (en) * 2010-09-24 2017-03-14 American Airlines, Inc. System and method for executing workflow instance and modifying same during execution
CN106897857A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 A kind of workflow processing method and system
CN107644286A (en) * 2017-08-15 2018-01-30 上海艾融软件股份有限公司 Workflow processing method and device
CN109670767A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Processing method, device, terminal device and the storage medium of workflow

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542796A (en) * 2020-04-22 2021-10-22 腾讯科技(深圳)有限公司 Video evaluation method and device, computer equipment and storage medium
CN113542796B (en) * 2020-04-22 2023-08-08 腾讯科技(深圳)有限公司 Video evaluation method, device, computer equipment and storage medium
CN111861100A (en) * 2020-06-03 2020-10-30 广东电网有限责任公司 Work order processing method and device based on process scoring
CN112287742A (en) * 2020-06-22 2021-01-29 上海柯林布瑞信息技术有限公司 Method and device for analyzing flow chart in file, computing equipment and storage medium
CN112287742B (en) * 2020-06-22 2023-12-26 上海柯林布瑞信息技术有限公司 Method and device for analyzing flow chart in file, computing equipment and storage medium
CN112001707A (en) * 2020-09-02 2020-11-27 平安养老保险股份有限公司 Business workflow generation method and system based on business data
CN112416476A (en) * 2020-11-25 2021-02-26 武汉联影医疗科技有限公司 Workflow execution method and device, computer equipment and storage medium
CN112488649B (en) * 2020-11-26 2023-05-26 泰康保险集团股份有限公司 Flow closing method and device based on flow engine
CN112488649A (en) * 2020-11-26 2021-03-12 泰康保险集团股份有限公司 Process engine-based process closing method and device
CN113055226A (en) * 2021-02-20 2021-06-29 烽火通信科技股份有限公司 Method and device for sequencing network management configuration data downloading
CN113344548A (en) * 2021-06-30 2021-09-03 深圳前海微众银行股份有限公司 Workflow generation method, device, equipment and storage medium
WO2023273157A1 (en) * 2021-06-30 2023-01-05 深圳前海微众银行股份有限公司 Workflow generation method and apparatus, and device and storage medium
CN113515220A (en) * 2021-07-23 2021-10-19 上海商汤科技开发有限公司 Task processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110689232A (en) Workflow configuration optimization processing method and device and computer equipment
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN109446068B (en) Interface test method, device, computer equipment and storage medium
CN108804618B (en) Database configuration method, device, computer equipment and storage medium
CN110704095A (en) Workflow-based configuration processing method and device, computer equipment and storage medium
CN110738389A (en) Workflow processing method and device, computer equipment and storage medium
CN109726134B (en) Interface test method and system
CN111831191A (en) Workflow configuration method and device, computer equipment and storage medium
CN109460252B (en) Configuration file processing method and device based on git and computer equipment
CN114531477B (en) Method and device for configuring functional components, computer equipment and storage medium
CN111176767A (en) Table data processing method and device, computer equipment and storage medium
CN110717647A (en) Decision flow construction method and device, computer equipment and storage medium
CN111813799A (en) Database query statement generation method and device, computer equipment and storage medium
CN111726818A (en) Wireless chip testing method and device, computer equipment and storage medium
CN111708971A (en) Page configuration method and device, computer equipment and storage medium
US11086696B2 (en) Parallel cloned workflow execution
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN111901383A (en) Data request processing method and device, computer equipment and storage medium
CN110597552A (en) Configuration method, device and equipment of project continuous integration pipeline and storage medium
CN109871214B (en) Program code generation method, program code generation device, computer device, and storage medium
CN112328333B (en) Built-in program operating method and device, computer equipment and storage medium
CN113094052A (en) Application construction method and device, computer equipment and storage medium
CN110134502A (en) Task processing method, device, system, computer equipment and storage medium
CN113132961B (en) Internet of things complete machine equipment debugging method and device, computer equipment and storage medium
CN112650509B (en) Application installation package generation method and device, computer equipment and storage medium

Legal Events

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