CN108762735B - Workflow engine management method and device, storage medium and terminal - Google Patents

Workflow engine management method and device, storage medium and terminal Download PDF

Info

Publication number
CN108762735B
CN108762735B CN201810796434.5A CN201810796434A CN108762735B CN 108762735 B CN108762735 B CN 108762735B CN 201810796434 A CN201810796434 A CN 201810796434A CN 108762735 B CN108762735 B CN 108762735B
Authority
CN
China
Prior art keywords
workflow
code
logic
class
codes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810796434.5A
Other languages
Chinese (zh)
Other versions
CN108762735A (en
Inventor
赖云辉
屈青专
龙觉刚
孙成
叶俊锋
罗先贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810796434.5A priority Critical patent/CN108762735B/en
Priority to PCT/CN2018/110908 priority patent/WO2020015215A1/en
Publication of CN108762735A publication Critical patent/CN108762735A/en
Application granted granted Critical
Publication of CN108762735B publication Critical patent/CN108762735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a management method and a device, a storage medium and a terminal of a workflow engine, relates to the technical field of communication, and mainly aims to solve the problem that when most of the existing companies use the workflow engine, a large number of developers are required to be familiar with compiling codes of relevant parts of a workflow in the process of project development of project groups of all parts, so that the developers of each project group can repeatedly compile a part of codes with the same flow. The method comprises the following steps: when a management request of a workflow is received, searching a workflow interface matched with request content carried in the management request; extracting logic codes and code parameters matched with the request content from a preset workflow system through the workflow interface, wherein the logic codes and the code parameters corresponding to different workflows are stored in the preset workflow system; and carrying out flow management on the logic codes and the code parameters according to the request content.

Description

Workflow engine management method and device, storage medium and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for managing a workflow engine, a storage medium, and a terminal.
Background
The workflow engine is a core solution which takes workflow as a part of the application system and provides a decision function for each application system, and can decide information transfer route, content and the like according to different roles, division work and conditions. The workflow engine includes important functions of node management, flow direction management, process sample management and the like of the process.
At present, when most of existing companies use workflow engines, a large number of developers are required to be familiar with writing codes of relevant parts of workflows in the process of project development of project groups of all parts, so that the developers of each project group can repeatedly write a part of codes of the same flow, manpower resources are greatly wasted, and project development progress is influenced.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for managing a workflow engine, a storage medium, and a terminal, and mainly aims to solve the problem that when most of existing companies use the workflow engine, a large number of developers are required to be familiar with writing codes of relevant parts of a workflow in a project development process of project groups of each part, so that the developers of each project group can repeatedly write a part of codes of the same flow.
According to an aspect of the present invention, there is provided a method for managing a workflow engine, including:
when a management request of a workflow is received, searching a workflow interface matched with request content carried in the management request;
extracting logic codes and code parameters matched with the request content from a preset workflow system through the workflow interface, wherein the logic codes and the code parameters corresponding to different workflows are stored in the preset workflow system;
and carrying out flow management on the logic codes and the code parameters according to the request content.
Further, the method further comprises:
and extracting logic codes for executing different workflows from the business project, and writing the logic codes into a preset workflow system.
Further, the extracting logic codes for executing different workflows from the business project and writing the logic codes into a preset workflow system includes:
classifying the code contents of different workflows according to the types of the business items to obtain the code contents of the workflows of a statistic class, an information transmission class and a command execution class, wherein the code contents comprise tags of codes with flow logic execution;
extracting logic codes with flow logic from the code contents of the workflow of the statistics class, the information transmission class and the command execution class by adopting a label searching mode;
extracting the logic codes according to an execution sequence, and adding position parameters of code parameters in the extracted logic codes;
and writing the logic codes and the position parameters of the code parameters into a preset workflow system.
Further, the extracting logic codes with flow logic from the code contents of the workflows of the statistics class, the information delivery class, and the command execution class by using a tag lookup manner includes:
and acquiring a logic code with flow logic by searching the position of a label in the code content of the workflow of the statistics class, the information transmission class and the command execution class, wherein the label is used for indicating the position of acquiring the logic code.
Further, the process management of the logic code and the code parameter according to the request content includes:
if the request content is to modify the logic codes of the statistics class, the information transmission class and the command execution class, modifying the modification content of the code logic and the code parameters of the statistics class, the information transmission class and the command execution class according to the request content, and updating the modified code logic and the modified code parameters into the preset workflow system.
Further, after the workflow interface matched with the request content carried in the management request is searched when the management request of the workflow is received, the method further includes:
analyzing the type of the workflow interface, and calling the workflow interface in a multithreading calling mode according to the statistics class, the information transmission class and the command execution class.
Further, after the process management is performed on the logic code and the code parameter according to the content of the request, the method further includes:
and feeding back a flow management result to the front end of the system in a progress list form, so that a user can master the progress of the management flow in the workflow engine in real time.
According to an aspect of the present invention, there is provided a management apparatus of a workflow engine, including:
the system comprises a searching unit, a processing unit and a processing unit, wherein the searching unit is used for searching a workflow interface matched with request content carried in a management request when the management request of the workflow is received;
the extraction unit is used for extracting the logic codes and the code parameters matched with the request content from a preset workflow system through the workflow interface, and the logic codes and the code parameters corresponding to different workflows are stored in the preset workflow system;
and the management unit is used for carrying out flow management on the logic codes and the code parameters according to the request content.
Further, the apparatus further comprises:
and the extraction unit is used for extracting logic codes for executing different workflows from the business items and writing the logic codes into a preset workflow system.
Further, the extraction unit includes:
the classification module is used for classifying the code contents of different workflows according to the types of the business items to obtain the code contents of the workflows of a statistic class, an information transmission class and a command execution class, wherein the code contents comprise labels of codes with flow logic execution;
the extraction module is used for extracting logic codes with flow logic from the code contents of the workflow of the statistics class, the information transmission class and the command execution class in a label searching mode;
the adding module is used for extracting the logic codes according to the execution sequence and adding the position parameters of the code parameters in the extracted logic codes;
and the writing module is used for writing the logic codes and the position parameters of the code parameters into a preset workflow system.
Further, the extracting module is specifically configured to obtain a logic code with a flow logic by searching for a position where a tag is located in the code content of the workflow in the statistics class, the information delivery class, and the command execution class, where the tag is used to indicate the position where the logic code is obtained.
Further, the management unit is specifically configured to modify, if the request content is to modify the logic codes of the statistics class, the information delivery class, and the command execution class, the modification content of the code logic and the code parameter of the statistics class, the information delivery class, and the command execution class according to the request content, and update the modified code logic and code parameter to the preset workflow system.
Further, the apparatus further comprises:
and the calling unit is used for analyzing the type of the workflow interface and calling the workflow interface in a multithreading calling mode according to the statistics class, the information transmission class and the command execution class.
Further, the apparatus further comprises:
and the feedback unit is used for feeding back the result of the process management to the front end of the system in a progress list form so that a user can master the progress of the management process in the workflow engine in real time.
According to another aspect of the present invention, there is provided a storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the management method of the workflow engine.
According to still another aspect of the present invention, there is provided a terminal including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the management method of the workflow engine.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the invention provides a management method and a device, a storage medium and a terminal of a workflow engine, wherein when a management request of a workflow is received, a workflow interface matched with request content carried in the management request is searched; extracting logic codes and code parameters matched with the request content from a preset workflow system through the workflow interface, wherein the logic codes and the code parameters corresponding to different workflows are stored in the preset workflow system; and carrying out flow management on the logic codes and the code parameters according to the request content. Compared with the prior art that when most companies use workflow engines, a large number of developers are required to be familiar with compiling codes of relevant parts of workflows in the process of developing the projects of each part of project groups, so that the developers of each project group can repeatedly compile a part of codes of the same flow, the embodiment of the invention obtains the logic codes and the code parameters from the preset workflow system by searching the workflow interface corresponding to the management request of the workflow, and performs flow management according to the content of the request, thereby saving human resources, simplifying the speed of changing the codes of the projects and facilitating the flow management.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a method for managing a workflow engine according to an embodiment of the present invention;
FIG. 2 is a flow chart of another workflow engine management method provided by an embodiment of the invention;
FIG. 3 is a block diagram of a management apparatus of a workflow engine according to an embodiment of the present invention;
FIG. 4 is a block diagram of an alternative workflow engine management apparatus provided by an embodiment of the invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a method for managing a workflow engine, as shown in fig. 1, where the method includes:
101. when a management request of a workflow is received, a workflow interface matched with request content carried in the management request is searched.
The workflow is a business sequence required for executing different businesses in a business project development process, and the management request includes acquisition of a workflow code, modification of the workflow code, deletion of the workflow code, and the like. The request content is a management request for a workflow of a specific service, for example, obtaining a workflow code of a loan project, and the like, and the embodiment of the present invention is not particularly limited.
It should be noted that the workflow interfaces include interfaces corresponding to different business projects, and each workflow interface may interface codes of different workflows, for example, the workflow interfaces may include interfaces for issuing a flowchart, starting a task, circulating a task, suspending a task, activating a task, terminating a task, re-assigning a task, setting task parameters, and the like. In addition, in the embodiment of the present invention, since the workflow interface is configured in the preset workflow system, when the corresponding workflow interface is searched, the workflow interface capable of directly acquiring the matching code from the preset workflow system is searched.
102. And extracting the logic codes and the code parameters matched with the request content from a preset workflow system through the workflow interface.
Logic codes and code parameters corresponding to different workflows are stored in the preset workflow system, wherein the logic codes are codes which are related to the workflows in all business projects and can execute business logic, for example, code parts repeatedly written by all project developers when the codes are used. For example, in the loan item and the insurance item, the flow code for sending the relevant information to the bank for auditing is the common flow of the loan item and the insurance item, and therefore, the code of the process is the logic code. In contrast, the code parameters are used for reflecting parameters of different project services, and the workflow codes of different service projects can be obtained by changing different code parameters in combination with the logic codes.
It should be noted that the preset workflow system is a preconfigured independent system, and specifically includes logic codes and code parameters corresponding to all service items extracted in advance, and the logic codes of each service item are matched with a separate workflow interface, so that the logic code level code parameters corresponding to the requested content are directly obtained through the workflow interface.
103. And carrying out flow management on the logic codes and the code parameters according to the request content.
The process management is to process management contents such as acquisition of specific workflow codes in request contents, modification of the workflow codes, deletion of the workflow codes and the like. For example, if the request content is the acquisition of a workflow code, the corresponding workflow code is directly extracted by the process management, that is, the logic code content is not changed, and the code parameters are filled according to the specific workflow, so that a set of flow codes of the business project corresponding to the request content is formed according to the logic code and the code parameters, so that project developers can directly acquire the flow codes, and the embodiment of the invention is not particularly limited.
It should be noted that the process management in step 103 may be executed through a preset workflow system, that is, the workflow of the specific business project executable by the code parameter may be executed by importing the corresponding code parameter according to the request content.
Compared with the prior art that when most companies use the workflow engine, a large number of developers are required to be familiar with compiling codes of relevant parts of the workflow in the process of project development of each part of project group, so that the developers of each project group can repeatedly compile a part of codes of the same flow, the method and the system provided by the invention have the advantages that the logic codes and the code parameters are obtained from the preset workflow system through searching the workflow interface corresponding to the management request of the workflow, the flow management is carried out according to the content of the request, the human resources are saved, the speed of changing the codes of the project is simplified, and the flow management is convenient.
An embodiment of the present invention provides another management method for a workflow engine, as shown in fig. 2, the method includes:
201. and extracting logic codes for executing different workflows from the business project, and writing the logic codes into a preset workflow system.
For the embodiment of the invention, in order to store the logic codes of different workflows in the preset workflow system in advance so as to extract the corresponding logic codes from the preset workflow directly through the workflow interface after receiving the management request and reduce the writing repeatability of code change development, the logic codes are extracted from the business project, and the extracted logic codes comprise the logic codes capable of executing different workflows. In addition, the preset workflow system can automatically supplement the code parameters of different service projects lacking in the logic codes so as to change different code parameters and combine the logic codes to realize the workflow of different service projects.
For the detailed description and further extension of the embodiment of the present invention, step 201 further includes: classifying the code contents of different workflows according to the types of the business items to obtain the code contents of the workflows of a statistic class, an information transmission class and a command execution class, wherein the code contents comprise tags of codes with flow logic execution; extracting logic codes with flow logic from the code contents of the workflow of the statistics class, the information transmission class and the command execution class by adopting a label searching mode; extracting the logic codes according to an execution sequence, and adding position parameters of code parameters in the extracted logic codes; and writing the logic codes and the position parameters of the code parameters into a preset workflow system.
Because the logic that the codes corresponding to different service project types can be extracted is different, and the corresponding logic codes are also different, in order to simplify the complexity of the process of extracting the logic codes, the code content is divided according to the types of the service projects, and the code content of the workflow of the statistics type, the information transmission type and the command execution type can be obtained. For the different types of code contents, a set of logic codes can be extracted from each type, for example, the logic code of a client group for statistically purchasing an insurance is the same as the logic code of a user group for statistically purchasing a loan house, and the same set of logic codes can be used only by modifying the corresponding code parameters. In addition, for the embodiment of the present invention, in order to improve the accuracy of extracting the logic code and distinguish the difference between the logic code and the code parameter in the execution business process, a label may be marked on the position of the code belonging to the process logic. The code belonging to the flow logic may be a code for executing an action class, and the form of the tag is not particularly limited in the embodiments of the present invention.
For the detailed description and further refinement of the embodiment of the present invention, the extracting logic codes having flow logic from the code contents of the workflows of the statistics class, the information delivery class, and the command execution class by using a tag lookup manner includes: and acquiring a logic code with flow logic by searching the position of a label in the code content of the workflow of the statistics class, the information transmission class and the command execution class, wherein the label is used for indicating the position of acquiring the logic code.
The method of searching for the label is to extract the corresponding code according to the position of the label in the code content, so that the extracted logic code is accurate and can execute the flow logic. When searching according to the label, besides extracting the logic code, the position of the code parameter except the logic code needs to be determined, and the position parameter and the code parameter are written into the preset workflow system together, so that when the logic code and the code parameter are obtained, the code parameter can be accurately added to the position corresponding to the logic code, and the correct execution of the whole set of code is realized.
For example, when a group of logic codes are extracted, the code parameters are file ID, page number and the like, the positions of the code parameters are respectively located at the 3 rd bit in the 1 st line code and the 2 nd bit in the 3 rd line code in the logic codes, and when the preset workflow system is written, the code parameters are written together in the form of file ID-1-3 and page number-3-2.
202. When a management request of a workflow is received, a workflow interface matched with request content carried in the management request is searched.
This step is the same as step 101 shown in fig. 1, and is not described herein again.
203. Analyzing the type of the workflow interface, and calling the workflow interface in a multithreading calling mode according to the statistics class, the information transmission class and the command execution class.
For the embodiment of the invention, in order to configure the workflow interfaces according to the classification of different workflows so as to accurately find an accurate interface corresponding to the request content from the workflow interfaces of the same type when the interfaces are called, after the workflow interfaces are found, the types of the workflow interfaces need to be analyzed, and the workflow interfaces of the types correspond to each other according to a multithreading calling mode, namely, each workflow interface uses a single thread when calling, so that the situation of thread congestion when calling a plurality of workflow interfaces is avoided.
In addition, in order to reduce the occurrence of overload during interface calling, different types of workflow interfaces are called in a multithreading mode, namely, a statistic type, an information transmission type and a command execution type respectively call 3 well-distributed threads, so that the problem that the system runs too slowly due to interface calling among different types is avoided. In this embodiment, the invoking of the workflow interface means that no matter what logic code corresponding to the service item is invoked, the whole flowchart of the corresponding workflow needs to be executed, or the workflow task is circulated, suspended, and terminated, and then the interface is invoked by an http request. For example, if the requested content is release content, the thread 2 is used to call an information transfer type workflow interface, and then the logic code is acquired in step 204, and the parameter file ID and the page number are transmitted.
204. And extracting the logic codes and the code parameters matched with the request content from a preset workflow system through the workflow interface.
This step is the same as step 102 shown in fig. 1, and is not described herein again.
205. If the request content is to modify the logic codes of the statistics class, the information transmission class and the command execution class, modifying the modification content of the code logic and the code parameters of the statistics class, the information transmission class and the command execution class according to the request content, and updating the modified code logic and the modified code parameters into the preset workflow system.
For the embodiment of the present invention, in order to avoid that developers repeatedly write the same code segment and reduce waste of human resources when modifying a workflow code, when a request content is to modify a logic code, that is, when a business flow is modified, the request content is modified according to specific steps in a specific flow that needs to be modified in the request content, and code parameters are adjusted, the content of the code parameters that needs to be adjusted includes positions of the code parameters in the logic code, specific functions that the code parameters can execute in the logic code, and the like, the embodiment of the present invention is not specifically limited. In addition, in order to apply the modified logic code level code parameters to the subsequent process management, the modified logic code level code parameters also need to be updated to the preset workflow system.
206. And feeding back the result of the process management to the front end of the system in a progress list form.
For the embodiment of the invention, the user can master the management flow progress in the workflow engine in real time. The process management result comprises results of execution, modification, viewing and the like of different workflows, the progress list is specific conditions of the workflow system executed through a workflow interface at different time, if 1 piece of information is issued through an issuing process interface in an information transmission interface at 8 points and 20 points, the progress of the process is fed back to the front end of the system, and therefore developers can master the work progress of each business project and the management process in a workflow engine in real time.
The embodiment of the invention obtains the logic code and the code parameter from the preset workflow system through searching the workflow interface corresponding to the management request of the workflow, and performs the process management according to the content of the request, thereby saving the manpower resource, simplifying the speed of changing the code of the project and facilitating the process management.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides a management apparatus for a workflow engine, as shown in fig. 3, where the apparatus includes: a search unit 31, an extraction unit 32, and a management unit 33.
The searching unit 31 is configured to search, when a management request of a workflow is received, a workflow interface matched with request content carried in the management request; the search unit 31 is a program module for executing, by a management device of the workflow engine, a workflow interface that is matched with request content carried in a management request when the management request of the workflow is received.
An extracting unit 32, configured to extract, through the workflow interface, a logic code and a code parameter that are matched with the request content from a preset workflow system, where logic codes and code parameters corresponding to different workflows are stored in the preset workflow system; the extraction unit 32 executes a program module for extracting the logic code and the code parameter matching the request content from the preset workflow system through the workflow interface for the management apparatus of the workflow engine.
And a management unit 33, configured to perform flow management on the logic code and the code parameter according to the content of the request. The management unit 33 executes a program module for performing process management on the logic code and the code parameter according to the request content for a management device of the workflow engine.
Compared with the prior art that when most companies use the workflow engine, a large number of developers are required to be familiar with compiling codes of relevant parts of the workflow in the process of project development of each part of project group, so that the developers of each project group can repeatedly compile a part of codes of the same flow, the management device of the workflow engine acquires the logic codes and the code parameters from the preset workflow system through searching the workflow interface corresponding to the management request of the workflow, performs flow management according to the content of the request, saves human resources, simplifies the speed of changing the codes of the project and is convenient for flow management.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention provides another management apparatus for a workflow engine, as shown in fig. 4, the apparatus includes: a searching unit 41, an extracting unit 42, a managing unit 43, an extracting unit 44, a calling unit 45 and a feedback unit 46.
The searching unit 41 is configured to, when a management request of a workflow is received, search for a workflow interface matched with request content carried in the management request;
an extracting unit 42, configured to extract, through the workflow interface, a logic code and a code parameter that are matched with the request content from a preset workflow system, where logic codes and code parameters corresponding to different workflows are stored in the preset workflow system;
and a management unit 43, configured to perform flow management on the logic codes and the code parameters according to the content of the request.
Further, the apparatus further comprises:
and the extraction unit 44 is used for extracting logic codes for executing different workflows from the business items and writing the logic codes into the preset workflow system.
Further, the extraction unit 44 includes:
a classification module 4401, configured to classify the code content of different workflows according to the service item types to obtain the code content of the workflows of a statistics class, an information delivery class, and a command execution class, where the code content includes a label for a code having a flow logic execution;
an extracting module 4402, configured to extract a logic code with a flow logic from the code content of the workflow of the statistics class, the information delivery class, and the command execution class in a tag lookup manner;
an adding module 4403, configured to extract the logic codes according to an execution order, and add a position parameter of a code parameter to the extracted logic codes;
a writing module 4404, configured to write the logic code and the location parameter of the code parameter into a preset workflow system.
Further, the extracting module 4402 is specifically configured to obtain a logic code with a flow logic by searching a position where a tag is located in the code content of the workflow of the statistics class, the information delivery class, and the command execution class, where the tag is used to indicate a position where the logic code is obtained.
Further, the management unit 43 is specifically configured to modify, if the request content is to modify the logic codes of the statistics class, the information delivery class, and the command execution class, the modification content of the code logic and the code parameter of the statistics class, the information delivery class, and the command execution class according to the request content, and update the modified code logic and code parameter to the preset workflow system.
Further, the apparatus further comprises:
and the calling unit 45 is used for analyzing the type of the workflow interface and calling the workflow interface in a multithreading calling mode according to the statistics class, the information transmission class and the command execution class.
Further, the apparatus further comprises:
and the feedback unit 46 is used for feeding back the result of the process management to the front end of the system in a progress list form, so that the user can master the progress of the management process in the workflow engine in real time.
The invention provides another management device of a workflow engine, the embodiment of the invention obtains the logic code and the code parameter from the preset workflow system through searching the workflow interface corresponding to the management request of the workflow, and performs the flow management according to the content of the request, thereby saving the manpower resource, simplifying the speed of changing the code of the project and facilitating the flow management.
According to an embodiment of the present invention, a storage medium is provided, where at least one executable instruction is stored, and the computer executable instruction can execute the management method of the workflow engine in any of the above method embodiments.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the terminal.
As shown in fig. 5, the terminal may include: a processor (processor)502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with one another via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically execute relevant steps in the management method embodiment of the workflow engine.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the invention. The terminal comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 506 for storing a program 510. The memory 506 may comprise a high-speed RAM memory, and may also include a non-volatile memory (e.g., at least one disk memory).
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
when a management request of a workflow is received, searching a workflow interface matched with request content carried in the management request;
extracting logic codes and code parameters matched with the request content from a preset workflow system through the workflow interface, wherein the logic codes and the code parameters corresponding to different workflows are stored in the preset workflow system;
and carrying out flow management on the logic codes and the code parameters according to the request content. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for managing a workflow engine, comprising:
when a management request of a workflow is received, searching a workflow interface matched with request content carried in the management request;
extracting logic codes and code parameters matched with the request content from a preset workflow system through the workflow interface, wherein the logic codes and the code parameters corresponding to different workflows are stored in the preset workflow system;
carrying out flow management on the logic codes and the code parameters according to the request content;
wherein the method further comprises:
extracting logic codes for executing different workflows from the business project, and writing the logic codes into a preset workflow system;
the extracting logic codes used for executing different workflows from the business project and writing the logic codes into a preset workflow system comprises the following steps:
classifying the code contents of different workflows according to the types of the business items to obtain the code contents of the workflows of a statistic class, an information transmission class and a command execution class, wherein the code contents comprise tags of codes with flow logic execution;
extracting logic codes with flow logic from the code contents of the workflow of the statistics class, the information transmission class and the command execution class by adopting a label searching mode;
extracting the logic codes according to an execution sequence, and adding position parameters of code parameters in the extracted logic codes;
and writing the logic codes and the position parameters of the code parameters into a preset workflow system.
2. The method of claim 1, wherein the extracting logic code with flow logic from the code content of the workflow of the statistics class, the information delivery class, and the command execution class by using a tag lookup comprises:
and acquiring a logic code with flow logic by searching the position of a label in the code content of the workflow of the statistics class, the information transmission class and the command execution class, wherein the label is used for indicating the position of acquiring the logic code.
3. The method of claim 1, wherein the process managing the logic code and the code parameter according to the request content comprises:
if the request content is to modify the logic codes of the statistics class, the information transmission class and the command execution class, modifying the modification content of the code logic and the code parameters of the statistics class, the information transmission class and the command execution class according to the request content, and updating the modified code logic and the modified code parameters into the preset workflow system.
4. The method according to claim 1, wherein after searching for a workflow interface matching request content carried in a management request when the management request of a workflow is received, the method further comprises:
analyzing the type of the workflow interface, and calling the workflow interface in a multithreading calling mode according to the statistics class, the information transmission class and the command execution class.
5. The method according to any one of claims 1-4, wherein after the process management of the logic code and the code parameter according to the request content, the method further comprises:
and feeding back a flow management result to the front end of the system in a progress list form, so that a user can master the progress of the management flow in the workflow engine in real time.
6. An apparatus for managing a workflow engine, comprising:
the system comprises a searching unit, a processing unit and a processing unit, wherein the searching unit is used for searching a workflow interface matched with request content carried in a management request when the management request of the workflow is received;
the extraction unit is used for extracting the logic codes and the code parameters matched with the request content from a preset workflow system through the workflow interface, and the logic codes and the code parameters corresponding to different workflows are stored in the preset workflow system;
the management unit is used for carrying out flow management on the logic codes and the code parameters according to the request content;
wherein the apparatus further comprises:
the extraction unit is used for extracting logic codes for executing different workflows from the business project and writing the logic codes into a preset workflow system;
the extraction unit includes:
the classification module is used for classifying the code contents of different workflows according to the types of the business items to obtain the code contents of the workflows of a statistic class, an information transmission class and a command execution class, wherein the code contents comprise labels of codes with flow logic execution;
the extraction module is used for extracting logic codes with flow logic from the code contents of the workflow of the statistics class, the information transmission class and the command execution class in a label searching mode;
the adding module is used for extracting the logic codes according to the execution sequence and adding the position parameters of the code parameters in the extracted logic codes;
and the writing module is used for writing the logic codes and the position parameters of the code parameters into a preset workflow system.
7. A storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the method of managing a workflow engine according to any one of claims 1 to 6.
8. A terminal, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the management method of the workflow engine as claimed in any one of claims 1-6.
CN201810796434.5A 2018-07-19 2018-07-19 Workflow engine management method and device, storage medium and terminal Active CN108762735B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810796434.5A CN108762735B (en) 2018-07-19 2018-07-19 Workflow engine management method and device, storage medium and terminal
PCT/CN2018/110908 WO2020015215A1 (en) 2018-07-19 2018-10-18 Management method and device for workflow engine, storage medium, and computer apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810796434.5A CN108762735B (en) 2018-07-19 2018-07-19 Workflow engine management method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108762735A CN108762735A (en) 2018-11-06
CN108762735B true CN108762735B (en) 2021-06-25

Family

ID=63970663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810796434.5A Active CN108762735B (en) 2018-07-19 2018-07-19 Workflow engine management method and device, storage medium and terminal

Country Status (2)

Country Link
CN (1) CN108762735B (en)
WO (1) WO2020015215A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109377186A (en) * 2018-11-14 2019-02-22 北京中电普华信息技术有限公司 A kind of process management device and method
CN109918126A (en) * 2019-01-28 2019-06-21 平安普惠企业管理有限公司 Method, apparatus, computer equipment and the storage medium of Code Edit
CN109976724A (en) * 2019-03-16 2019-07-05 平安城市建设科技(深圳)有限公司 Development approach, device, equipment and the computer readable storage medium of leasing system
CN110428216A (en) * 2019-07-03 2019-11-08 平安科技(深圳)有限公司 Operation flow management-control method, device, computer equipment and storage medium
CN111526049B (en) * 2020-04-16 2023-04-07 中国工商银行股份有限公司 Operation and maintenance system, operation and maintenance method, electronic device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767008A (en) * 2017-03-03 2018-03-06 平安医疗健康管理股份有限公司 Flow collocation method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6052684A (en) * 1998-03-24 2000-04-18 Hewlett-Packard Company System and method for performing consistent workflow process execution in a workflow management system
CN1766835A (en) * 2004-10-01 2006-05-03 微软公司 A framework for seamlessly authoring and editing workflows at design and runtime
JP5064964B2 (en) * 2006-11-10 2012-10-31 株式会社リコー Workflow management method
CN101661582A (en) * 2009-09-28 2010-03-03 浙江大学 Workflow management system and method for realizing workflow defining tool
CN102456185B (en) * 2010-10-29 2014-06-11 金蝶软件(中国)有限公司 Distributed workflow processing method and distributed workflow engine system
JP5605963B2 (en) * 2013-01-31 2014-10-15 キヤノンソフトウェア株式会社 Form system, form system control method, program, and recording medium
CN104915193B (en) * 2015-05-04 2018-02-23 北京奇艺世纪科技有限公司 A kind for the treatment of method and apparatus of flow engine
CN107153898A (en) * 2016-03-03 2017-09-12 上海幻鱼信息科技有限公司 A kind of workflow based on XML and Flash technology stack engine
CN106022726B (en) * 2016-05-20 2019-10-22 中国农业银行股份有限公司 A kind of the deployment emulation mode and device of Workflow system
CN106873957A (en) * 2016-06-23 2017-06-20 阿里巴巴集团控股有限公司 The processing method and equipment of a kind of operation flow

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767008A (en) * 2017-03-03 2018-03-06 平安医疗健康管理股份有限公司 Flow collocation method and device

Also Published As

Publication number Publication date
WO2020015215A1 (en) 2020-01-23
CN108762735A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108762735B (en) Workflow engine management method and device, storage medium and terminal
US11580107B2 (en) Bucket data distribution for exporting data to worker nodes
US11615087B2 (en) Search time estimate in a data intake and query system
US11593377B2 (en) Assigning processing tasks in a data intake and query system
US11586627B2 (en) Partitioning and reducing records at ingest of a worker node
US11599541B2 (en) Determining records generated by a processing task of a query
US11321321B2 (en) Record expansion and reduction based on a processing task in a data intake and query system
US11341131B2 (en) Query scheduling based on a query-resource allocation and resource availability
US11442935B2 (en) Determining a record generation estimate of a processing task
US8510751B2 (en) Optimizing workflow engines
US9304835B1 (en) Optimized system for analytics (graphs and sparse matrices) operations
CN112766907A (en) Service data processing method and device and server
CN110389812B (en) Method, apparatus, and computer-readable storage medium for managing virtual machines
CN110764796A (en) Method and device for updating cache
CN114997706A (en) Workflow-based business processing method, device, equipment and storage medium
CN111209374A (en) Data query display method and device, computer system and readable storage medium
CN115292014A (en) Image rendering method and device and server
US20110055373A1 (en) Service identification for resources in a computing environment
CN112035230A (en) Method and device for generating task scheduling file and storage medium
CN108399095B (en) Method, system, device and storage medium for supporting dynamic management of timed tasks
CN113625998B (en) Request processing method and device
US20210044508A1 (en) System and method for serverless monitoring
US20220365812A1 (en) Method and system for sustainability measurement
US20220391388A1 (en) Automatic replacement of command parameters during command history searching
CN109086279B (en) Report caching method and device

Legal Events

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