Task processing method and device based on workflow engine framework, equipment, medium and product
Through the task processing method based on the workflow engine framework, the workflow and module sequence of target tasks are obtained and combined, and the problems of low task processing efficiency and high resource consumption in the existing technology are solved, and efficient task processing is achieved.
Patent Information
- Application Number
- CN202411980348.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-08
AI Technical Summary
The existing task processing methods have problems such as low task processing efficiency and high human and material resources consumption during task processing.
Using a task processing method based on the workflow engine framework, we obtain the workflow of the target tasks created by the user, find and combine the corresponding work module sequence, and drive the sequence through the workflow engine framework to process the task.
Improve task processing efficiency and save human and material resources during task processing.
Smart Images

Figure CN119781877A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing technology, and in particular to a task processing method, device, equipment, medium and product based on a workflow engine framework. Background Art
[0002] With the continuous development of banking business, the importance of banking task process system has become increasingly prominent. However, in the design of traditional banking task process system, the process-business coupling design mode is generally adopted, and the approval process logic and business processing logic are closely embedded in the program code or stored procedure.
[0003] This model may seem simple and intuitive in the early stage, but it exposes many serious problems in actual application. First, the program logic is extremely complex. Due to the interweaving of the approval process and business logic, the code volume of a single stored procedure can even reach tens of thousands of lines, which brings great difficulties for developers and maintenance personnel to understand and control the program. Secondly, the maintenance cost remains high. During the operation of the system, once a failure or problem occurs, it is difficult to quickly and accurately locate and analyze the problem due to the complexity and coupling of the logic, which makes any change face extremely high risks, resulting in a significant increase in maintenance costs. In addition, the development efficiency is low. The high R&D cost and slow business response speed make it impossible for the system to meet the needs of version iteration and the requirements of rapid business launch in a timely manner. Finally, the flexibility is seriously insufficient. The high coupling of task processes and businesses makes it difficult for the system to flexibly adjust and change according to different task types and task processing strategies, and cannot adapt to the diverse needs of the market and business.
[0004] In summary, the existing task processing methods have the problems of low task processing efficiency and large consumption of human and material resources during the task processing process. Summary of the invention
[0005] The present invention provides a task processing method, device, equipment, medium and product based on a workflow engine framework, which can solve the problems of low task processing efficiency and large consumption of human and material resources in the task processing process caused by existing task processing methods.
[0006] In a first aspect, an embodiment of the present invention provides a task processing method based on a workflow engine framework, the method comprising:
[0007] According to the user's creation operation on the target task, obtaining a preset target workflow matching the target task;
[0008] Searching and combining each target work module in the service component library according to the target workflow to obtain a target module sequence matching the target workflow;
[0009] The target module sequence is driven by a workflow engine framework to process the target task.
[0010] In a second aspect, an embodiment of the present invention provides a task processing device based on a workflow engine framework, the device comprising:
[0011] A target workflow acquisition module is used to acquire a preset target workflow matching the target task according to a user's creation operation on the target task;
[0012] A module combination module, used to search and combine each target work module in the service component library according to the target workflow, to obtain a target module sequence matching the target workflow;
[0013] The driving module is used to drive the target module sequence through the workflow engine framework to process the target task.
[0014] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the task processing method based on the workflow engine framework described in any embodiment of the present invention.
[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the task processing method based on the workflow engine framework described in any embodiment of the present invention when executed.
[0019] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the task processing method based on the workflow engine framework described in any embodiment of the present invention.
[0020] The technical solution of the embodiment of the present invention first obtains a pre-set target workflow matching the target task according to the user's creation operation for the target task, then searches and combines each target work module in the service component library according to the target workflow to obtain a target module sequence matching the target workflow, and finally drives the target module sequence through the workflow engine framework to process the target task, thereby solving the problems of low task processing efficiency and large consumption of manpower and material resources in the task processing process caused by the existing task processing methods, and can realize the processing of target tasks based on the workflow engine framework, thereby improving the task processing efficiency and saving manpower and material resources in the task processing process.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flowchart of a task processing method based on a workflow engine framework provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a flowchart of a task processing method based on a workflow engine framework provided according to Embodiment 2 of the present invention;
[0025] Figure 3 is a structural diagram of a task processing device based on a workflow engine framework provided according to a third embodiment of the present invention;
[0026] Figure 4 It is a structural schematic diagram of an electronic device for implementing the task processing method based on a workflow engine framework according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, any variation of the terms "including" and "having" is intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a task processing method based on a workflow engine framework is provided for the first embodiment of the present invention. This embodiment is applicable to the situation where tasks are processed based on a workflow engine framework. The method can be executed by a task processing device based on a workflow engine framework. The task processing device based on the workflow engine framework can be implemented in the form of hardware and / or software. The task processing device based on the workflow engine framework can be configured in a terminal or server with a task processing function based on a workflow engine framework.
[0031] like Figure 1 As shown, the method includes:
[0032] S110. According to the user's creation operation on the target task, a preset target workflow matching the target task is obtained.
[0033] Among them, the target workflow includes at least one working node arranged in sequence, a data name and a data address corresponding to each working node, and a working module name matching each working node.
[0034] The target task creation operation includes a target task creation or editing operation and a target workflow setting or selection operation.
[0035] In this embodiment, a target workflow matching the target task can be obtained through a pre-configured process designer or process template library; wherein the process designer is a tool, such as a visual process editing interface, which allows users to intuitively create and edit processes to obtain the target workflow. The process template library provides a series of pre-set standard process templates, such as common approval process templates, procurement approval process templates, etc. Users can directly select the name of the standard process template to determine the target workflow matching the target task.
[0036] In this embodiment, when the user creates a target task, the system will obtain a pre-set target workflow that matches the target task, wherein the target workflow includes at least one work node arranged in sequence, and the work node can be a specific link or stage in the workflow, which usually has clear inputs and outputs, undertakes specific tasks or operations, and is interconnected and collaborated with other work nodes to jointly complete the entire workflow; illustratively, in a target task of a funding approval process, the work node can be "submit application", "preliminary review", "risk assessment", "final approval" and other links, and each work node corresponds to a specific data name, such as "applicant information", "credit score", and data address, that is, the storage location of the data with these data names in the system. At the same time, each work node is also matched with a specific work module name, such as "credit assessment module", "document review module", etc., to ensure that each work node can be accurately and effectively processed.
[0037] Based on the above steps, for example, if there is a work node named "preliminary review", its corresponding data name is "applicant information", the data address is "information No. N in the applicant information database", and the work module name is "preliminary review module", then it can be considered that when the work node is executed according to the target workflow, it is necessary to obtain the "applicant information" in the "information No. N in the applicant information database" and process the "applicant information" through the "preliminary review module" to complete the workflow of the node.
[0038] Optionally, after obtaining a pre-set target workflow that matches the target task based on the user's creation operation for the target task, the method further includes: in response to the user's login operation, obtaining login verification data input by the user; detecting the user's authority based on the login verification data, and judging whether the user has the authority to set the target workflow and driving mechanism based on the detection result; if the user has the authority, allowing the user to set the target workflow and driving mechanism related to the target task, and using the set target workflow and driving mechanism as the pre-set target workflow and driving mechanism for the target task; if the user does not have the authority, prompting the user that he has no authority, and performing subsequent operations according to the pre-set target workflow and driving mechanism.
[0039] The login verification data may include user name, password, verification code, fingerprint information and other information used to confirm the user's identity and verify their login qualifications.
[0040] Exemplarily, when a user performs a login operation, the system will obtain the login verification data entered by the user. Then, the system will detect the user's authority based on these login verification data, and the authority is the right and scope of the user's operation and access to specific functions or data in the system. For example, an administrator may have the highest authority and can modify and adjust various settings of the system, and an ordinary user may only have the authority to view and partially operate. Then, according to the detection result, it is determined whether the user has the authority to set the target workflow and driving mechanism. If the user has the authority, such as a senior user or administrator with process design and adjustment authority, then the system allows the user to set the target workflow and driving mechanism related to the target task. After the user completes the setting, the target workflow and driving mechanism set by the user will be used as the pre-set target workflow and driving mechanism of the target task; if the user does not have the authority, such as just an ordinary employee, the system will prompt the user that there is no authority, and perform subsequent operations according to the target workflow and driving mechanism pre-set by the system. The pre-set target workflow and driving mechanism may be a standard process and execution method formulated by the system administrator or developer according to general business needs and rules.
[0041] S120 . Search and combine target work modules in a service component library according to the target work flow to obtain a target module sequence matching the target work flow.
[0042] S130: driving the target module sequence through a workflow engine framework to process the target task.
[0043] Wherein, the target module sequence is driven by a workflow engine framework to process the target task, including: through the workflow engine framework, the target data matching each work node is respectively obtained in a pre-set database according to the data name and data address corresponding to each work node included in the target workflow; in the workflow engine framework, a pre-set driving mechanism matching the target workflow is obtained, and the target work module is driven according to the driving mechanism and the target data matching each work node to process the target task; wherein the driving mechanism includes: the running order, execution conditions and interaction relationship of each target work module in the target module.
[0044] Specifically, in the course of business processing, the target module sequence needs to be driven by the workflow engine framework to realize the processing of the target task, wherein the workflow engine framework is a software system or component for managing and controlling business processes; further, through the workflow engine framework, according to the data name and data address corresponding to each work node in the target workflow, the target data matching each work node is obtained in a pre-set database; exemplarily, in a procurement approval process, the data name corresponding to the work node "procurement application" may be "purchase item list", and the data address is the specific location where the list is stored in the database. In the workflow engine framework, a driving mechanism that is pre-set and adapted to the target workflow is obtained. The driving mechanism covers the running order, execution conditions and interaction relationship of each target work module in the target module; wherein, the running order refers to the order in which each work module is executed; for example, in the loan approval process, the driving mechanism can be set to execute the "data entry" work module first, and then execute the "credit assessment" work module; further, the execution condition is a specific situation in which the work module can be started or paused, for example, the execution condition of the "credit assessment" work module may be that the "data entry" work module is completed and the data is complete and correct; further, the interaction relationship represents the data transmission and collaborative work mode between different work modules. For example, after the "credit assessment" work module is completed, the evaluation result is passed to the "approval decision" work module as a decision basis. Afterwards, the target work module is driven according to the driving mechanism and the target data corresponding to each work node, thereby completing the processing of the target task.
[0045] Optionally, in this embodiment, the pre-set database can adopt a multi-tenant mode, with the back-end connected to multiple database systems. Each user or data category has an independent database system, and the database systems are separated by physical isolation. This physical isolation setting has many advantages, such as being able to maximize data security and meet the personalized needs of different tenants. When a failure occurs, the tenant's database data can be quickly and easily restored.
[0046] Optionally, after driving the target module sequence through the workflow engine framework, it also includes: during the driving process of the target module sequence, recording and storing the current properties of each work node in the target workflow, the driving progress of the target module sequence, the operating parameters of each target work module, and the task data generated by each target work module through the workflow engine framework; in response to the user's data viewing request, displaying the current properties of each work node in the target workflow, the driving progress of the target module sequence, the operating parameters of each target work module, and the task data generated by each target work module through the workflow engine framework.
[0047] In a specific implementation scenario of this embodiment, during the driving process of the target module sequence, the logger in the workflow engine framework is used to record the current attributes of each work node in the target workflow, wherein the current attributes of the work node may include: the state of the work node (not started, in progress, completed), processing personnel, etc. The specific content of the work attribute can be set and modified by the user according to actual needs, and this embodiment does not limit this. At the same time, the built-in monitoring dashboard in the workflow engine framework is used to monitor the driving progress of the target module sequence, such as the number of completed work modules, the work modules being executed, etc. The operating parameters of each target work module are collected through the relevant functions in the workflow engine framework, such as the occupied system resources and the amount of data processed, and the task data generated by each target work module is recorded and stored, such as the result data after processing, the intermediate data generated, etc. When the user initiates a data viewing request, the workflow engine framework responds to this request and presents the current attributes of each work node in the target workflow, the driving progress of the target module sequence, the operating parameters of each target work module, and the task data generated by each target work module to the user through the display interface. The above method enables users to clearly understand the status of each work node in the workflow, the progress of the module sequence, etc., which increases the visibility of system operation and facilitates better grasp of business processing. At the same time, by recording and monitoring the operating parameters of the work modules and the generated data, anomalies can be discovered in time, such as excessive resource occupation or data errors, which helps to quickly locate and solve problems.
[0048] The technical solution of the embodiment of the present invention first obtains a pre-set target workflow matching the target task according to the user's creation operation for the target task, then searches and combines each target work module in the service component library according to the target workflow to obtain a target module sequence matching the target workflow, and finally drives the target module sequence through a workflow engine framework to process the target task. The target task can be processed based on the workflow engine framework, thereby improving the task processing efficiency and saving human and material resources in the task processing process.
[0049] Embodiment 2
[0050] Figure 2 A flowchart of a task processing method based on a workflow engine framework is provided for the second embodiment of the present invention. This embodiment is refined on the basis of the above-mentioned embodiment. In this embodiment, specifically, a method for searching and combining each target work module in the service component library according to the target workflow to obtain a target module sequence matching the target workflow is refined.
[0051] like Figure 2 As shown, the method includes:
[0052] S210: According to the user's creation operation on the target task, a preset target workflow matching the target task is obtained.
[0053] Among them, the target workflow includes at least one working node arranged in sequence, a data name and a data address corresponding to each working node, and a working module name matching each working node.
[0054] S220: Parse the target workflow to obtain work module names that match each work node.
[0055] S230: Search and extract target working modules matching the names of each working module in the service component library.
[0056] The module name of the target module is the same as the name of the working module.
[0057] In this embodiment, the service component library can be a resource library that pre-centrally stores and manages various service components; further, service components are reusable software modules with specific functions that can complete specific tasks or provide specific services, such as data processing components, computing components, verification components, communication components, etc. In this embodiment, the service component library classifies, organizes and stores these service components with different functions so that they can be quickly and accurately found and called when needed, and can combine appropriate service components according to different target workflows to form a module sequence that meets specific needs. For example, in a service component library of a credit approval system, it may contain credit assessment components, information review components, risk analysis components, etc.
[0058] S240. According to the sequence of the working nodes in the target workflow, the found target working modules are combined in order to obtain a target module sequence matching the target workflow.
[0059] Exemplarily, according to the order of arrangement of the working nodes clearly specified in the target workflow, the various target working modules obtained by the search operation are combined: first, the target working module corresponding to the starting working node is determined, and it is used as the starting part of the combination, and then the target working modules corresponding to the subsequent working nodes are added in sequence, ensuring that each target working module can be accurately connected to its previous module and establish a correct logic and data transfer relationship. For example, if the order of the working nodes of the target workflow is data collection, data analysis, and result generation, the corresponding target working modules found are data collection module A, data analysis module B, and result generation module C, then the data collection module A is placed at the first place of the sequence, then the data analysis module B is connected, and finally the result generation module C is connected, so as to obtain a target module sequence such as data collection module A-data analysis module B-result generation module C that fully matches the target workflow. Such an orderly combination can ensure that the target module sequence finally formed is consistent with the target workflow set initially in logic and function, thereby effectively supporting and realizing the smooth operation of the entire workflow.
[0060] S250: driving the target module sequence through a workflow engine framework to process the target task.
[0061] The technical solution of the embodiment of the present invention first obtains a pre-set target workflow matching the target task according to the user's creation operation for the target task, then parses the target workflow to obtain the work module names that match each work node, and searches and extracts the target work modules that match each work module name in the service component library, then orderly combines the found target work modules according to the sequence of the work nodes in the target workflow to obtain a target module sequence matching the target workflow, and finally drives the target module sequence through a workflow engine framework to process the target task. The target task can be processed based on the workflow engine framework, thereby improving the task processing efficiency and saving human and material resources in the task processing process.
[0062] Embodiment 3
[0063] Figure 3 This is a structural diagram of a task processing device based on a workflow engine framework provided in Embodiment 3 of the present invention.
[0064] like Figure 3 As shown, the device comprises:
[0065] The target workflow acquisition module 310 is used to acquire a preset target workflow matching the target task according to the user's creation operation on the target task;
[0066] The module combination module 320 is used to search and combine each target work module in the service component library according to the target work flow to obtain a target module sequence matching the target work flow;
[0067] The driving module 330 is used to drive the target module sequence through the workflow engine framework to process the target task.
[0068] The technical solution of the embodiment of the present invention first obtains a pre-set target workflow matching the target task according to the user's creation operation for the target task, then searches and combines each target work module in the service component library according to the target workflow to obtain a target module sequence matching the target workflow, and finally drives the target module sequence through a workflow engine framework to process the target task. The target task can be processed based on the workflow engine framework, thereby improving the task processing efficiency and saving human and material resources in the task processing process.
[0069] Based on the above embodiment, the module combination module 320 includes:
[0070] A process parsing unit, used to parse the target workflow to obtain the names of the work modules that match each work node;
[0071] A module search unit, used to search and extract a target working module matching the name of each working module in the service component library, wherein the module name of the target module is the same as the name of the working module;
[0072] The combining unit is used to sequentially combine the found target working modules according to the sequence of working nodes in the target workflow to obtain a target module sequence matching the target workflow.
[0073] Based on the above embodiment, the driving module 330 includes:
[0074] The target data search unit is used to obtain target data matching each working node in a preset database according to the data name and data address corresponding to each working node included in the target workflow through the workflow engine framework;
[0075] A driving mechanism acquisition unit is used to obtain a pre-set driving mechanism that matches the target workflow in the workflow engine framework, and drive the target work module according to the driving mechanism and the target data that matches each work node to process the target task.
[0076] On the basis of the above embodiment, the target workflow acquisition module 310 is also used to: after obtaining a pre-set target workflow matching the target task according to the user's creation operation for the target task, obtain the login verification data input by the user in response to the user's login operation; detect the user's authority according to the login verification data, and determine whether the user has the authority to set the target workflow and driving mechanism according to the detection result; if the user has the authority, allow the user to set the target workflow and driving mechanism related to the target task, and use the set target workflow and driving mechanism as the pre-set target workflow and driving mechanism for the target task; if the user does not have the authority, prompt the user that he has no authority, and perform subsequent operations according to the pre-set target workflow and driving mechanism.
[0077] On the basis of the above embodiment, the driving module 330 is also used for: after driving the target module sequence through the workflow engine framework, during the driving process of the target module sequence, recording and storing the current properties of each work node in the target workflow, the driving progress of the target module sequence, the operating parameters of each target work module, and the task data generated by each target work module through the workflow engine framework; in response to the user's data viewing request, displaying the current properties of each work node in the target workflow, the driving progress of the target module sequence, the operating parameters of each target work module, and the task data generated by each target work module through the workflow engine framework.
[0078] The task processing device based on the workflow engine framework provided in the embodiment of the present invention can execute the task processing method based on the workflow engine framework provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0079] Embodiment 4
[0080] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0081] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0082] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0083] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a task processing method based on a workflow engine framework.
[0084] Accordingly, the method comprises:
[0085] According to the user's creation operation on the target task, obtaining a preset target workflow matching the target task;
[0086] Searching and combining each target work module in the service component library according to the target workflow to obtain a target module sequence matching the target workflow;
[0087] The target module sequence is driven by a workflow engine framework to process the target task.
[0088] In some embodiments, the task processing method based on the workflow engine framework can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the task processing method based on the workflow engine framework described above can be executed. Alternatively, in other embodiments, the processor 11 can be configured to execute the task processing method based on the workflow engine framework by any other appropriate means (for example, by means of firmware).
[0089] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0090] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0091] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0092] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0093] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0094] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0095] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
Claims
1. A task processing method based on a workflow engine framework, characterized in that: include: According to the user's creation operation on the target task, obtaining a preset target workflow matching the target task; Searching and combining each target work module in the service component library according to the target workflow to obtain a target module sequence matching the target workflow; The target module sequence is driven by a workflow engine framework to process the target task.
2. The method according to claim 1, characterized in that The target workflow includes at least one work node arranged in sequence, a data name and a data address corresponding to each work node, and a work module name matching each work node.
3. The method according to any one of claims 1 to 2, characterized in that: Searching and combining each target work module in the service component library according to the target workflow to obtain a target module sequence matching the target workflow, including: Parsing the target workflow to obtain work module names that match each work node; Searching and extracting a target working module matching the name of each working module in the service component library, wherein the module name of the target module is the same as the name of the working module; According to the sequence of work nodes in the target workflow, the found target work modules are orderly combined to obtain a target module sequence matching the target workflow.
4. The method according to any one of claims 1 to 2, characterized in that: The target module sequence is driven by a workflow engine framework to process the target task, including: Through the workflow engine framework, target data matching each work node is respectively obtained from a pre-set database according to the data name and data address respectively corresponding to each work node included in the target workflow; In the workflow engine framework, a pre-set driving mechanism matching the target workflow is obtained, and the target work module is driven according to the driving mechanism and the target data respectively matching each work node to process the target task; The driving mechanism includes: the operation sequence, execution conditions and interaction relationship of each target working module in the target module.
5. The method according to any one of claims 1 to 4, characterized in that: After obtaining a preset target workflow matching the target task according to the user's creation operation on the target task, the method further includes: In response to a login operation of a user, obtaining login verification data input by the user; Detecting the user's authority according to the login verification data, and judging whether the user has the authority to set the target workflow and the driving mechanism according to the detection result; If the user has the authority, the user is allowed to set the target workflow and driving mechanism related to the target task, and the set target workflow and driving mechanism are used as the pre-set target workflow and driving mechanism of the target task; If the user does not have permission, the user will be prompted that he or she does not have permission, and subsequent operations will be performed according to the pre-set target workflow and driving mechanism.
6. The method according to claim 1, characterized in that After the target module sequence is driven by the workflow engine framework, the method further includes: During the driving process of the target module sequence, the current attributes of each work node in the target workflow, the driving progress of the target module sequence, the operating parameters of each target work module, and the task data generated by each target work module are recorded and stored through the workflow engine framework; In response to the user's data viewing request, the workflow engine framework displays the current properties of each work node in the target workflow, the driving progress of the target module sequence, the operating parameters of each target work module, and the task data generated by each target work module.
7. A task processing device based on a workflow engine framework, characterized in that: include: A target workflow acquisition module is used to acquire a preset target workflow matching the target task according to a user's creation operation on the target task; A module combination module, used to search and combine each target work module in the service component library according to the target workflow, to obtain a target module sequence matching the target workflow; The driving module is used to drive the target module sequence through the workflow engine framework to process the target task.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the task processing method based on the workflow engine framework according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the task processing method based on a workflow engine framework according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the task processing method based on the workflow engine framework according to any one of claims 1 to 6.