CN110018860B - Workflow management method, device, equipment and computer storage medium - Google Patents
Workflow management method, device, equipment and computer storage medium Download PDFInfo
- Publication number
- CN110018860B CN110018860B CN201910278644.XA CN201910278644A CN110018860B CN 110018860 B CN110018860 B CN 110018860B CN 201910278644 A CN201910278644 A CN 201910278644A CN 110018860 B CN110018860 B CN 110018860B
- Authority
- CN
- China
- Prior art keywords
- task
- script
- macro
- macro script
- node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to the technical field of computers, and discloses a workflow management method, which comprises the following steps: when a task execution instruction is received, determining a task node corresponding to the task execution instruction; when a task adjusting instruction triggered based on the task node is received, generating a macro script according to the task adjusting instruction, and associating the macro script with the task node; executing the macro script by calling a preset macro script running device to obtain a script execution result; and executing the task corresponding to the task node according to the script execution result, and switching to the next task node when the task execution is completed. The invention also discloses a workflow management device, equipment and a computer storage medium. The invention realizes the flexible adjustment and real-time processing of the tasks in the workflow task execution process.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a workflow management method, apparatus, device, and computer storage medium.
Background
Workflow (Workflow) refers to "automation of a part or the whole of a business process in a computer application environment", and is an abstract and general description of business rules between a Workflow and each operation step thereof.
The current workflow is a structured flow, that is, each task of the workflow or operation steps of each task are fixed, and adjustment operation on the workflow is not supported in the process of executing the task of the workflow, and if the workflow needs to be adjusted, the task of the workflow needs to be interrupted, and a developer develops and releases a new workflow version to be executed by a workflow engine.
Disclosure of Invention
The invention mainly aims to provide a workflow management method, a workflow management device, a workflow management equipment and a computer storage medium, and aims to solve the technical problem that the workflow can not be flexibly adjusted and the workflow task can not be processed in real time in the workflow task execution process at present.
In order to achieve the above object, the present invention provides a workflow management method, comprising the steps of: when a task execution instruction is received, determining a task node corresponding to the task execution instruction;
when a task adjusting instruction triggered based on the task node is received, a macro script is generated according to the task adjusting instruction, and the macro script is associated with the task node;
executing the macro script by calling a preset macro script running device to obtain a script execution result;
and executing the task corresponding to the task node according to the script execution result, and switching to the next task node when the task execution is completed.
Optionally, when a task adjustment instruction triggered based on the task node is received, generating a macro script according to the task adjustment instruction, and associating the macro script with the task node, includes:
when a task adjusting instruction triggered based on the task node is received, a task configuration interface is output, and task configuration information input based on the task configuration interface is received;
and generating an executable macro script according to the task configuration information, and associating the macro script with the task node.
Optionally, the step of obtaining a script execution result by invoking a preset macro script execution device to execute the macro script includes:
calling a preset macro script running device to analyze the macro script to obtain the macro script which comprises an operation instruction and an interface identifier;
the preset macro script running device sends the operation instruction to a third-party platform corresponding to the interface identifier, so that the third-party platform executes the operation instruction and feeds back a script execution result;
and the preset macro script running device receives and outputs the script execution result.
Optionally, after the step of determining the task node corresponding to the task execution instruction when the task execution instruction is received, the method includes:
when a task adjusting instruction triggered based on the task node is not received within a preset time period, judging whether the task node is associated with a macro script with historical configuration;
when the task node is not associated with the macro script with the historical configuration, executing the task corresponding to the task node, and switching to the next task node when the task is executed;
when the task node is associated with a macro script with historical configuration, executing the following steps: and executing the macro script by calling a preset macro script running device to obtain a script execution result.
Optionally, before the step of determining the task node corresponding to the task execution instruction when the task execution instruction is received, the method includes:
when a workflow definition instruction is received, acquiring a task list and a task executor list corresponding to the workflow definition instruction;
acquiring task information in the task list, determining task nodes and task paths according to the task information, and sequencing the task nodes according to the task paths to generate an initial workflow;
and acquiring roles with set permissions in the task executor list, endowing the roles to task nodes in the initial workflow according to respective attributes, and generating the workflow.
Optionally, after the step of generating a macro script according to the task adjustment instruction and associating the macro script with the task node when the task adjustment instruction triggered based on the task node is received, the method includes:
when receiving a script updating instruction triggered based on the macro script, acquiring script updating data corresponding to the script updating instruction, and updating the macro script according to the script updating data;
when the macro script is detected to be updated, executing the macro script by calling a preset macro script running device to obtain a script execution result;
and executing the task corresponding to the task node according to the script execution result, and switching to the next task node when the task execution is completed.
Optionally, after the step of generating a macro script according to the task adjustment instruction and associating the macro script with the task node when the task adjustment instruction triggered based on the task node is received, the method includes:
when a script deleting instruction is received, acquiring a script identifier corresponding to the script deleting instruction;
and acquiring a target macro script corresponding to the script identifier and a target task node corresponding to the target macro script, disconnecting the association between the target macro script and the target task node, and deleting the target macro script.
Further, to achieve the above object, the present invention provides a workflow management apparatus comprising:
the instruction receiving module is used for determining a task node corresponding to a task execution instruction when the task execution instruction is received;
the task setting module is used for generating a macro script according to a task adjusting instruction when the task adjusting instruction triggered based on the task node is received, and associating the macro script with the task node;
the script execution module is used for executing the macro script by calling a preset macro script running device to obtain a script execution result;
and the task execution module is used for executing the task corresponding to the task node according to the script execution result and switching to the next task node when the task execution is completed.
In addition, in order to achieve the above object, the present invention also provides a workflow management apparatus;
the workflow management apparatus includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
which computer program, when being executed by the processor, carries out the steps of the workflow management method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium;
the computer storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the workflow management method as described above.
In the embodiment of the invention, in the process of executing the workflow task, if the workflow task needs to be adjusted, a task adjustment instruction is triggered to arrange task adjustment information to generate a macro script, and a terminal associates the macro script with a task node, so that the task in the workflow is adjusted in real time, complex operations such as release of a workflow version and the like are reduced, then the terminal processes the macro script by using a preset macro script running device, real-time processing of the workflow task is realized, and meanwhile, the processing efficiency of the workflow is ensured as the task is flexibly adjusted and processed in real time in the process of executing the workflow task.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a workflow management method according to a first embodiment of the present invention;
FIG. 3 is a flow chart illustrating a workflow management method according to a second embodiment of the present invention;
FIG. 4 is a functional block diagram of a workflow management apparatus according to an 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.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal (also called a workflow management device, where the workflow management device may be formed by a single workflow management apparatus or formed by combining other apparatuses with a workflow management apparatus) in a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a fixed terminal or a mobile terminal, such as an intelligent air conditioner with a networking function, an intelligent lamp, an intelligent power supply, an intelligent sound box, an automatic driving automobile, a Personal Computer (PC), a smart phone, a tablet computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a Central Processing Unit (CPU), a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIFI interface, WIreless FIdelity, WIFI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory, such as a disk memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, and a WiFi module; the input unit is compared with the display screen and the touch screen; the network interface may optionally be other than WiFi in the wireless interface, bluetooth, probe, etc. Such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor and a proximity sensor; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the computer software product is stored in a storage medium (storage medium: also called computer storage medium, computer medium, readable storage medium, computer readable storage medium, or direct storage medium, etc., and the storage medium may be a non-volatile readable storage medium, such as RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method according to the embodiments of the present invention, and a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be adapted to invoke a computer program stored in the memory 1005 and to perform the steps of the workflow management method provided by the following embodiments of the invention.
The embodiment proposes a workflow management method, which is applied to the terminal shown in fig. 1.
Referring to fig. 2, in a first embodiment of a workflow management method of the present invention, the workflow management method includes:
step S10, when a task execution instruction is received, determining a task node corresponding to the task execution instruction.
In this embodiment, a user triggers a task execution instruction based on a predefined workflow in a terminal workflow engine, where the step of predefined workflow includes:
and step S01, when a workflow definition instruction is received, acquiring a task list and a task executor list corresponding to the workflow definition instruction.
The method comprises the steps that a user triggers a workflow definition instruction in a workflow engine of a terminal (the workflow engine is a workflow as a part of an application system, and has the functions of flow node management, flow direction management, flow sample management and the like; the workflow engine relates to the following three components of 1, defining and enabling an organization analyst or a developer to define or modify the workflow, 2, executing and enabling the developer or a system analyst to start the workflow engine to execute the workflow, 3, monitoring and monitoring the execution condition of the workflow), wherein the triggering mode of the workflow definition instruction is not specifically limited, and when the workflow engine receives the workflow definition instruction, the workflow engine acquires a task list and a task executor list corresponding to the workflow definition instruction; the task list comprises tasks and task paths (also called task execution sequence), and the task executor list comprises task execution roles and authority of each role.
And S02, acquiring task information in the task list, determining task nodes and task paths according to the task information, and sequencing the task nodes according to the task paths to generate an initial workflow.
The method comprises the steps that a workflow engine obtains task information in a task list, the workflow engine determines task nodes according to the task information, the workflow engine determines the arrangement sequence of the task nodes according to the task information to obtain task routes, and the workflow engine sorts the task nodes according to task paths to generate an initial workflow.
And S03, acquiring the roles with the set authority in the task executor list, endowing the roles to task nodes in the initial workflow according to respective attributes, and generating the workflow.
A workflow engine in a terminal acquires roles with set permissions in a task executor list and attributes corresponding to the roles, and the terminal endows the roles to task nodes in an initial workflow according to the attributes to generate a workflow; the step of predefining a workflow is specifically described in this embodiment, so that a user can trigger a task execution instruction based on the predefined workflow; specifically, the method comprises the following steps:
when a terminal workflow engine receives a task execution instruction triggered based on a predefined workflow, the workflow engine determines a task node corresponding to the task execution instruction and a task corresponding to the task node.
And step S20, when a task adjusting instruction triggered based on the task node is received, generating a macro script according to the task adjusting instruction, and associating the macro script with the task node.
Specifically, step S20:
a1, outputting a task configuration interface when receiving a task adjusting instruction triggered based on the task node, and receiving task configuration information input based on the task configuration interface;
and a2, generating an executable macro script according to the task configuration information, and associating the macro script with the task node.
That is, after the workflow engine determines a task to be executed corresponding to a task node, a user may trigger a task adjustment instruction based on the task node, and when the workflow engine receives the task adjustment instruction triggered based on the task node, a task configuration interface is output so that the user configures new task configuration information in the task configuration interface, and the workflow engine receives the task configuration information input based on the task configuration interface; and generating an executable macro script according to the task configuration information, namely generating task execution instructions according to the task configuration information by the workflow engine, combining the task execution instructions by the workflow engine to generate the executable macro script, and then associating the macro script with the task nodes by the workflow engine.
A specific scene is used for illustration, the workflow is an approval process of purchase orders, when a purchase manager approves xxx product purchase orders uploaded by purchasers, and when a task adjusting instruction triggered by the purchase manager is received by a workflow engine and a task adjusting instruction triggered based on a task node is received, a task configuration interface is output, and the purchase manager inputs the xxx product purchase orders on the task configuration interface: the number of days of stock turnover; the method comprises the steps that a workflow engine obtains inventory turnover days input in a task configuration interface; and setting a standard purchase quantity calculation instruction according to the number of inventory turnover days, wherein the standard purchase quantity calculation instruction comprises the following steps: 1. accessing a sales inventory platform storing xxx product information; 2. acquiring the current inventory total amount and the average value of sales in a sales inventory platform; 3. standard purchase = stock turnover days × sales volume average-current stock total; and the terminal collects the standard purchase quantity calculation instructions and generates an executable macro script so as to associate the macro script with the corresponding nodes for examination and approval of the purchase order.
In the embodiment, the tasks can be adjusted in real time in the process of executing the workflow tasks without influencing the execution condition of the workflow tasks, so that the flexible adjustment of the structured workflow is realized.
It is understood that the instructions of the macro script in this embodiment do not need to be in a fixed format or a fixed programming language, but are flexibly configured as needed, so that the cost of human resources can be reduced by reducing the professional requirements of the program developer.
And step S30, executing the macro script by calling a preset macro script running device to obtain a script execution result.
A macro script running device is preset in the terminal, the macro script running device can be called by a workflow engine to execute a corresponding macro script, and the macro script running device can be understood as a virtual device and can compile and execute different types of commands; the workflow engine executes the macro script associated with the task node by calling the preset macro script operating device, namely when the workflow engine detects that the macro script is associated in the task node, the workflow engine calls the preset macro script operating device to analyze the macro script to obtain an operation instruction in the macro script, and the preset macro script operating device executes the operation instruction to obtain a script execution result and outputs the script execution result.
In addition, in this embodiment, an interaction instruction of the workflow and the third-party platform may be set in the macro script, specifically, the method includes:
b1, calling a preset macro script running device to analyze the macro script to obtain the macro script which comprises an operation instruction and an interface identifier;
b2, the preset macro script running device sends the operation instruction to a third-party platform corresponding to the interface identifier, so that the third-party platform executes the operation instruction and feeds back a script execution result;
and b3, the preset macro script running device receives and outputs the script execution result.
That is, in this embodiment, an operation instruction and an interface identifier may be set in the macro script, so that the preset macro script running apparatus sends the operation instruction to the third party platform corresponding to the interface identifier, and the third party platform returns a script execution result, thereby implementing interaction between the workflow and the third party platform, and making the workflow task more diverse.
And S40, executing the task corresponding to the task node according to the script execution result, and switching to the next task node when the task execution is finished.
And a workflow engine in the terminal executes the task corresponding to the task node according to the script execution result, namely, the script execution result is an intermediate variable of the task corresponding to the task node, the workflow engine outputs the script execution result, the current task is processed by the role corresponding to the task node according to the script execution result to obtain the execution result corresponding to the task, for example, the task of the task node is a loan approval node, the script execution result is a risk coefficient obtained by calculation, and the user can determine whether the loan approval passes or not according to the risk coefficient.
When the workflow engine detects that the task is executed and completed, the workflow engine judges whether the current task node is the last one, when the current task node is the last one, the terminal outputs a task execution result and prompt information of task execution and completion, and when the current task node is not the last one, the workflow engine is switched to the next task node.
In the embodiment, in the process of executing the workflow task, if the workflow task needs to be adjusted, a task adjustment instruction is triggered to arrange the task adjustment information to generate the macro script, the macro script is associated with the task node by the terminal, so that the task in the workflow is adjusted in real time, complex operations such as release of the workflow version and the like are reduced, then the terminal processes the macro script by using a preset macro script running device, real-time processing of the workflow task is realized, and meanwhile, the task is flexibly adjusted and processed in real time in the process of executing the workflow task, so that the processing efficiency of the workflow is ensured.
Further, referring to fig. 3, a second embodiment of the workflow management method of the present invention is proposed on the basis of the first embodiment of the present invention.
This embodiment is a refinement of the first embodiment after step S10, and is different from the first embodiment of the present invention in that after receiving a task execution instruction, no task adjustment instruction is received, and at this time, the workflow management method includes:
and step S50, judging whether the task node is associated with a macro script configured in history or not when a task adjusting instruction triggered based on the task node is not received in a preset time period.
After determining a task node corresponding to a task execution instruction, if a task adjustment instruction triggered by the task node is not received within a preset time period (the preset time is a preset time interval, and the preset time period can be flexibly set according to a specific scene, for example, the preset time period is set to 1 minute), the workflow engine determines whether the task node is associated with a macro script configured historically.
And step S60, when the task node is not associated with the macro script with the historical configuration, executing the task corresponding to the task node, and switching to the next task node when the task is executed.
When the workflow engine determines that the task node is not associated with the macro script with the historical configuration, the workflow engine executes the task corresponding to the task node based on the operation instruction of the user to obtain a task execution result; when the task is executed, the workflow engine judges whether the current task node is the last one, when the current task node is the last one, the terminal outputs a task execution result and prompt information of the completion of the task execution, and when the current task node is not the last one, the workflow engine is switched to the next task node.
Further, when the workflow engine determines that the task node is associated with the macro script of the historical configuration, the workflow engine performs step S30 in the first embodiment: and executing the macro script by calling a preset macro script running device to obtain a script execution result.
In this embodiment, one or more macro scripts may be associated with a task node of a workflow, and each macro script configured historically may be executed in the task execution process, so that the workflow is more flexible.
Further, a third embodiment of the workflow management method of the present invention is also proposed on the basis of the above embodiments.
In this embodiment, specifically, the updating operation of the macro script is described, and the workflow management method includes:
and step S70, when a script updating instruction triggered based on the macro script is received, acquiring script updating data corresponding to the script updating instruction, and updating the macro script according to the script updating data.
In this embodiment, a user may trigger a script update instruction based on a macro script, and when a workflow engine receives the script update instruction triggered based on the macro script, a script update interface is displayed, where the script update interface includes information in the macro script, the user may modify the information in the script update interface to obtain script update data, the workflow engine obtains the script update data and generates an updated macro script according to the script update data, the workflow engine checks the macro script including the script update data, and if the check is passed, the workflow engine outputs that the macro script update is completed.
When the workflow engine detects that the macro script is updated, the workflow engine executes the step S30 in the first implementation, and executes the macro script by calling a preset macro script running device to obtain a script execution result; and step S40 in the first implementation, executing the task corresponding to the task node according to the script execution result, and switching to the next task node when the task execution is completed.
In the embodiment, the user can update the set macro script in real time, thereby ensuring the flexibility of the macro script
Further, a fourth embodiment of the workflow management method of the present invention is also proposed on the basis of the above embodiments.
In this embodiment, it is specifically described that the macro script is deleted, and the workflow management method includes:
and step S80, when a script deleting instruction is received, acquiring a script identifier corresponding to the script deleting instruction.
When the workflow engine receives a script deleting instruction, the workflow engine acquires a script identifier corresponding to the script deleting instruction, wherein the script identifier refers to identifier information for identifying a script, and the script identifier can be a script name or a script number.
And S90, acquiring a target macro script corresponding to the script identifier and a target task node corresponding to the target macro script, disconnecting the association between the target macro script and the target task node, and deleting the target macro script.
And acquiring a target macro script corresponding to the script identifier at the workflow engine, determining a target task node associated with the target macro script by the workflow engine, then disconnecting the association between the target macro script and the target task node, and deleting the target macro script. In the embodiment, the user can delete the target macro script in real time without influencing the operation of the whole workflow, thereby ensuring the flexibility of workflow editing.
In addition, referring to fig. 4, an embodiment of the present invention further provides a workflow management apparatus, where the workflow management apparatus includes:
the instruction receiving module 10 is configured to determine a task node corresponding to a task execution instruction when the task execution instruction is received;
the task setting module 20 is configured to, when receiving a task adjustment instruction triggered based on the task node, generate a macro script according to the task adjustment instruction, and associate the macro script with the task node;
the script execution module 30 is configured to execute the macro script by calling a preset macro script execution device to obtain a script execution result;
and the task execution module 40 is configured to execute the task corresponding to the task node according to the script execution result, and switch to a next task node when the task execution is completed.
Optionally, the task setting module 20 includes:
the interface output unit is used for outputting a task configuration interface and receiving task configuration information input based on the task configuration interface when receiving a task adjustment instruction triggered based on the task node;
and the script association unit is used for generating an executable macro script according to the task configuration information and associating the macro script with the task node.
Optionally, the script execution module 30 includes:
the calling analysis unit is used for calling a preset macro script running device to analyze the macro script to obtain the macro script which comprises an operation instruction and an interface identifier;
the sending execution unit is used for sending the operation instruction to a third-party platform corresponding to the interface identifier by the preset macro script operation device so that the third-party platform executes the operation instruction and feeds back a script execution result;
and the result output unit is used for receiving and outputting the script execution result by the preset macro script operation device.
Optionally, the workflow management apparatus includes:
the judging module is used for judging whether the task node is associated with a macro script with historical configuration or not when a task adjusting instruction triggered based on the task node is not received within a preset time period;
the task execution module is used for executing the task corresponding to the task node when the task node is not associated with the macro script with the historical configuration, and switching to the next task node when the task is executed;
when the task node is associated with a historically configured macro script, the steps in the script execution module 30 are executed: and executing the macro script by calling a preset macro script running device to obtain a script execution result.
Optionally, the workflow management apparatus includes:
the workflow definition module is used for acquiring a task list and a task executor list corresponding to a workflow definition instruction when the workflow definition instruction is received;
the first generation module is used for acquiring task information in the task list, determining task nodes and task paths according to the task information, and sequencing the task nodes according to the task paths to generate an initial workflow;
and the second generation module is used for acquiring roles with set permissions in the task executor list, endowing the roles with task nodes in the initial workflow according to respective attributes, and generating the workflow.
Optionally, the workflow management apparatus includes:
the script updating module is used for acquiring script updating data corresponding to the script updating instruction when receiving a script updating instruction triggered based on the macro script, and updating the macro script according to the script updating data;
the updating and calling module is used for executing the macro script by calling a preset macro script running device when the macro script is detected to be updated completely to obtain a script execution result;
and the task execution module is used for executing the task corresponding to the task node according to the script execution result and switching to the next task node when the task execution is completed.
Optionally, the workflow management apparatus includes:
the identification acquisition module is used for acquiring a script identification corresponding to a script deletion instruction when the script deletion instruction is received;
and the script deleting module is used for acquiring the target macro script corresponding to the script identifier and the target task node corresponding to the target macro script, disconnecting the association between the target macro script and the target task node and deleting the target macro script.
The steps implemented by the functional modules of the workflow management apparatus may refer to the embodiments of the workflow management method of the present invention, and are not described herein again.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the operations in the workflow management method provided by the above embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages 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 enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.
Claims (10)
1. A workflow management method, characterized in that the workflow management method comprises the steps of:
when a task execution instruction is received, determining a task node corresponding to the task execution instruction;
when a task adjusting instruction triggered based on the task node is received, generating a macro script according to the task adjusting instruction, and associating the macro script with the task node;
when the macro script is detected to be associated in the task node, executing the macro script by calling a preset macro script running device to obtain a script execution result;
and executing the task corresponding to the task node according to the script execution result, and switching to the next task node when the task execution is completed.
2. The workflow management method of claim 1 wherein the step of generating a macro script in accordance with task adjustment instructions triggered based on the task node upon receiving the task adjustment instructions and associating the macro script with the task node comprises:
when a task adjusting instruction triggered based on the task node is received, a task configuration interface is output, and task configuration information input based on the task configuration interface is received;
and generating an executable macro script according to the task configuration information, and associating the macro script with the task node.
3. The workflow management method according to claim 1, wherein the step of executing the macro script by calling a preset macro script execution means to obtain a script execution result comprises:
calling a preset macro script running device to analyze the macro script to obtain the macro script which comprises an operation instruction and an interface identifier;
the preset macro script running device sends the operation instruction to a third party platform corresponding to the interface identifier so that the third party platform executes the operation instruction and feeds back a script execution result;
and the preset macro script running device receives and outputs the script execution result.
4. The workflow management method of claim 1 wherein after the step of determining a task node to which a task execution directive corresponds upon receiving the task execution directive, comprising:
judging whether the task node is associated with a macro script configured historically or not when a task adjusting instruction triggered based on the task node is not received within a preset time period;
when the task node is not associated with the macro script with the historical configuration, executing the task corresponding to the task node, and switching to the next task node when the task is executed;
when the task node is associated with a macro script with historical configuration, executing the following steps: and executing the macro script by calling a preset macro script running device to obtain a script execution result.
5. The workflow management method of claim 1 wherein the step of determining a task node corresponding to a task execution directive upon receipt of the task execution directive comprises:
when a workflow definition instruction is received, acquiring a task list and a task executor list corresponding to the workflow definition instruction;
acquiring task information in the task list, determining task nodes and task paths according to the task information, and sequencing the task nodes according to the task paths to generate an initial workflow;
and acquiring roles with set permissions in the task executor list, endowing the roles to task nodes in the initial workflow according to respective attributes, and generating the workflow.
6. The workflow management method of claim 1, wherein the step of generating a macro script according to the task adjustment directives upon receiving task adjustment directives triggered based on the task node and associating the macro script with the task node comprises, after:
when a script updating instruction triggered based on the macro script is received, script updating data corresponding to the script updating instruction is obtained, and the macro script is updated according to the script updating data;
when the macro script is detected to be updated, executing the macro script by calling a preset macro script running device to obtain a script execution result;
and executing the task corresponding to the task node according to the script execution result, and switching to the next task node when the task execution is completed.
7. The workflow management method of claim 1, wherein the step of generating a macro script according to the task adjustment instructions and associating the macro script with the task node upon receiving the task adjustment instructions triggered based on the task node comprises:
when a script deleting instruction is received, acquiring a script identifier corresponding to the script deleting instruction;
and acquiring a target macro script corresponding to the script identifier and a target task node corresponding to the target macro script, disconnecting the association between the target macro script and the target task node, and deleting the target macro script.
8. A workflow management apparatus, characterized in that the workflow management apparatus comprises:
the instruction receiving module is used for determining a task node corresponding to a task execution instruction when the task execution instruction is received;
the task setting module is used for generating a macro script according to the task adjusting instruction when receiving the task adjusting instruction triggered based on the task node, and associating the macro script with the task node;
the script execution module is used for executing the macro script by calling a preset macro script running device when detecting that the macro script is associated in the task node, so as to obtain a script execution result;
and the task execution module is used for executing the task corresponding to the task node according to the script execution result and switching to the next task node when the task execution is completed.
9. A workflow management apparatus, characterized in that the workflow management apparatus comprises: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program realizing the steps of the workflow management method as claimed in any one of claims 1 to 7 when executed by the processor.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the workflow management method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910278644.XA CN110018860B (en) | 2019-04-04 | 2019-04-04 | Workflow management method, device, equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910278644.XA CN110018860B (en) | 2019-04-04 | 2019-04-04 | Workflow management method, device, equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110018860A CN110018860A (en) | 2019-07-16 |
CN110018860B true CN110018860B (en) | 2022-11-08 |
Family
ID=67190790
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910278644.XA Active CN110018860B (en) | 2019-04-04 | 2019-04-04 | Workflow management method, device, equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110018860B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110727969B (en) * | 2019-10-22 | 2021-10-15 | 深圳前海微众银行股份有限公司 | Method, device and equipment for automatically adjusting workflow and storage medium |
CN111782186A (en) * | 2020-07-03 | 2020-10-16 | 携程旅游网络技术(上海)有限公司 | Workflow management method, system, device and storage medium |
CN112235396B (en) * | 2020-10-13 | 2022-03-01 | 腾讯科技(深圳)有限公司 | Content processing link adjustment method, content processing link adjustment device, computer equipment and storage medium |
CN112348395A (en) * | 2020-11-20 | 2021-02-09 | 浙江百应科技有限公司 | Data quality visual detection system and method |
CN112416476B (en) * | 2020-11-25 | 2023-03-24 | 武汉联影医疗科技有限公司 | Workflow execution method and device, computer equipment and storage medium |
CN113344548B (en) * | 2021-06-30 | 2024-10-15 | 深圳前海微众银行股份有限公司 | Workflow generation method, device, equipment and storage medium |
CN113656009B (en) * | 2021-08-26 | 2024-02-02 | 五八同城信息技术有限公司 | Macro processing method, macro processing device, electronic equipment and storage medium |
CN115526580B (en) * | 2021-11-26 | 2024-04-26 | 北京字跳网络技术有限公司 | Node state determining method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870028A (en) * | 2005-05-26 | 2006-11-29 | 株式会社理光 | Work flow system, work flow processing method and work flow processing program |
CN102486730A (en) * | 2010-12-06 | 2012-06-06 | 上海协讯软件有限公司 | Workflow realization method and workflow system capable of customizing flow in user-defined manner |
CN102663552A (en) * | 2012-04-06 | 2012-09-12 | 东华理工大学 | Dynamic workflow engine supporting online self-evolution |
CN102810184A (en) * | 2011-06-01 | 2012-12-05 | 金蝶软件(中国)有限公司 | Method and device for dynamically executing workflow and enterprise system |
CN103197927A (en) * | 2013-03-06 | 2013-07-10 | 华南理工大学 | Method and system for realizing flexible workflow |
CN104091222A (en) * | 2014-05-08 | 2014-10-08 | 武大吉奥信息技术有限公司 | Workflow engine supporting multimode driving |
CN106569783A (en) * | 2015-10-08 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Task script executing method and apparatus |
CN109087054A (en) * | 2018-06-01 | 2018-12-25 | 平安科技(深圳)有限公司 | Synergetic office work data flow processing method, device, computer equipment and storage medium |
CN109144618A (en) * | 2018-09-10 | 2019-01-04 | 中铝视拓智能科技有限公司 | A kind of service flow execution method and relevant apparatus |
-
2019
- 2019-04-04 CN CN201910278644.XA patent/CN110018860B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870028A (en) * | 2005-05-26 | 2006-11-29 | 株式会社理光 | Work flow system, work flow processing method and work flow processing program |
CN102486730A (en) * | 2010-12-06 | 2012-06-06 | 上海协讯软件有限公司 | Workflow realization method and workflow system capable of customizing flow in user-defined manner |
CN102810184A (en) * | 2011-06-01 | 2012-12-05 | 金蝶软件(中国)有限公司 | Method and device for dynamically executing workflow and enterprise system |
CN102663552A (en) * | 2012-04-06 | 2012-09-12 | 东华理工大学 | Dynamic workflow engine supporting online self-evolution |
CN103197927A (en) * | 2013-03-06 | 2013-07-10 | 华南理工大学 | Method and system for realizing flexible workflow |
CN104091222A (en) * | 2014-05-08 | 2014-10-08 | 武大吉奥信息技术有限公司 | Workflow engine supporting multimode driving |
CN106569783A (en) * | 2015-10-08 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Task script executing method and apparatus |
CN109087054A (en) * | 2018-06-01 | 2018-12-25 | 平安科技(深圳)有限公司 | Synergetic office work data flow processing method, device, computer equipment and storage medium |
CN109144618A (en) * | 2018-09-10 | 2019-01-04 | 中铝视拓智能科技有限公司 | A kind of service flow execution method and relevant apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN110018860A (en) | 2019-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110018860B (en) | Workflow management method, device, equipment and computer storage medium | |
CN108388988B (en) | Block chain-based collaborative office method, system and computer-readable storage medium | |
US20230308504A9 (en) | Method and system of application development for multiple device client platforms | |
CN112015654A (en) | Method and apparatus for testing | |
CN111857881B (en) | Repo-based manifest warehouse loading method, repo-based manifest warehouse loading device and storage medium | |
US20210144209A1 (en) | Data generation apparatus, data generation method, and program | |
CN108733468A (en) | Timed task Dynamic Configuration and device, storage medium and server cluster | |
CN115033211A (en) | Method, device and equipment for querying article based on strategy mode and storage medium | |
CN111858383A (en) | Mobile APP data point burying method and system, terminal equipment and storage medium | |
CN111857672A (en) | Business development method, device, equipment and medium based on SQL configuration | |
CN115629743A (en) | Service component arranging method, service scheduling method and device, electronic equipment and storage medium | |
CN114090365A (en) | Method, device and equipment for performing function test by using dynamic link library | |
CN110598093A (en) | Business rule management method and device | |
CN111125205B (en) | Signboard data display method, terminal and storage medium | |
CN106095886B (en) | Data processing method and device | |
CN111240998A (en) | Test case processing method and device | |
CN116319644A (en) | Session menu processing method and device and electronic equipment | |
CN107391354B (en) | Method and system for automatically monitoring terminal performance and storage device | |
CN115543831A (en) | Test script generation method, device, equipment and storage medium | |
CN114896165A (en) | Testing method and device of conversation robot system, electronic equipment and storage medium | |
CN113672311A (en) | Structure assignment method, assigner and computer-readable storage medium | |
CN110336693B (en) | Method, device, equipment and storage medium for managing network block equipment | |
CN114327709A (en) | Control page generation method and device, intelligent device and storage medium | |
CN113268332A (en) | Continuous integration method and device | |
CN113256253A (en) | Data processing method, device, equipment, computer readable storage medium and product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |