CN109389299B - Workflow process deployment method, workflow process deployment device, computer equipment and storage medium - Google Patents
Workflow process deployment method, workflow process deployment device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109389299B CN109389299B CN201811123427.5A CN201811123427A CN109389299B CN 109389299 B CN109389299 B CN 109389299B CN 201811123427 A CN201811123427 A CN 201811123427A CN 109389299 B CN109389299 B CN 109389299B
- Authority
- CN
- China
- Prior art keywords
- workflow
- template
- workflow definition
- deployment
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 136
- 230000008569 process Effects 0.000 title claims abstract description 107
- 238000013507 mapping Methods 0.000 claims description 41
- 238000004590 computer program Methods 0.000 claims description 26
- 230000002159 abnormal effect Effects 0.000 claims description 23
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000005457 optimization Methods 0.000 abstract 1
- 238000011161 development Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000013461 design Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 241001409866 Actitis Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0633—Workflow analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Data Mining & Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application relates to a workflow process deployment method, a workflow process deployment device, computer equipment and a storage medium. The method relates to a business process optimization technology, comprising the following steps: receiving a workflow deployment request message sent by a terminal; inquiring a preset workflow template library according to the request message to obtain a workflow definition template corresponding to the request message; returning a workflow definition template to the terminal; receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by a workflow definition template; and calling a preset workflow engine, and deploying workflow flows according to workflow definition files through the workflow engine. When the workflow deployment method is used for workflow deployment, the shutdown and restarting are not needed, and the workflow deployment efficiency is effectively improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a workflow deployment method, a workflow deployment device, a computer device, and a storage medium.
Background
With the development of computer technology, more and more business systems are automated through computer technology, such as office automation systems, e-government systems, and the like. The workflow concept is a concept provided for a fixed program activity in daily work in the fields of production organization and office automation, and aims to improve work efficiency, better control process, effectively manage business processes and the like by decomposing work into well-defined tasks or roles, executing the tasks according to certain rules and processes and monitoring the tasks.
At present, most of workflow development is to perform workflow flow deployment by reading flow files in a database, and shutdown and restarting are needed during flow deployment, so that the flow deployment efficiency is low, and the workflow development is not suitable for increasingly complex and diversified business scenes at present.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a workflow deployment method, apparatus, computer device, and storage medium capable of improving workflow deployment efficiency.
A workflow process deployment method, the method comprising:
receiving a workflow deployment request message sent by a terminal;
inquiring a preset workflow template library according to the request message to obtain a workflow definition template corresponding to the request message;
returning a workflow definition template to the terminal;
receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by a workflow definition template;
and calling a preset workflow engine, and deploying workflow flows according to workflow definition files through the workflow engine.
In one embodiment, the step of querying a preset workflow template library according to the request message to obtain the workflow definition template corresponding to the request message includes:
Determining a business system to which the workflow to be deployed belongs according to the request message;
inquiring a preset workflow template library;
and acquiring a workflow definition template corresponding to the service system from a workflow template library according to the service system.
In one embodiment, the step of determining the service system to which the workflow process to be deployed belongs according to the request message includes:
extracting a request keyword from the request message;
carrying out keyword matching on the request keywords in a preset service system mapping table;
and determining a business system to which the workflow to be deployed belongs according to the keyword matching result.
In one embodiment, before the step of querying the preset workflow template library according to the request message, the method further includes:
acquiring historical service data of a service system;
extracting each service node from the historical service data, and determining the mapping relation among each service node;
generating a workflow definition template according to each service node and the mapping relation;
and summarizing the workflow definition templates to obtain a workflow template library.
In one embodiment, the step of returning the workflow definition template to the terminal comprises:
inquiring a corresponding preset workflow plugin according to the workflow definition template, wherein the workflow plugin is used for updating the workflow definition template;
And returning the workflow definition template and the workflow plugin to the terminal.
In one embodiment, after the step of performing workflow process deployment according to the workflow definition file by the workflow engine, the method further comprises:
when the workflow process deployment is detected to be completed, extracting each node processor from the workflow definition file; sending a flow update prompt message to a node processor;
generating an abnormal prompt message when the workflow process deployment is not detected to be completed; and returning the abnormal prompt message to the terminal.
In one embodiment, after the step of performing workflow process deployment according to the workflow definition file by the workflow engine, the method further comprises:
and when the workflow process deployment is detected to be completed, storing the workflow definition file into a workflow template library.
A workflow process deployment apparatus, the apparatus comprising:
the request message receiving module is used for receiving a request message of workflow deployment sent by the terminal;
the definition template acquisition module is used for inquiring a preset workflow template library according to the request message to acquire a workflow definition template corresponding to the request message;
the definition template returning module is used for returning the workflow definition template to the terminal;
The definition file receiving module is used for receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by a workflow definition template;
the flow deployment module is used for calling a preset workflow engine and carrying out workflow flow deployment according to the workflow definition file through the workflow engine.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a workflow deployment request message sent by a terminal;
inquiring a preset workflow template library according to the request message to obtain a workflow definition template corresponding to the request message;
returning a workflow definition template to the terminal;
receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by a workflow definition template;
and calling a preset workflow engine, and deploying workflow flows according to workflow definition files through the workflow engine.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a workflow deployment request message sent by a terminal;
Inquiring a preset workflow template library according to the request message to obtain a workflow definition template corresponding to the request message;
returning a workflow definition template to the terminal;
receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by a workflow definition template;
and calling a preset workflow engine, and deploying workflow flows according to workflow definition files through the workflow engine.
According to the workflow process deployment method, the workflow process deployment device, the computer equipment and the storage medium, the corresponding workflow definition template is obtained from the preset workflow template library according to the received workflow deployment request message sent by the terminal, the workflow definition file obtained after updating is received and returned by the terminal, and finally the preset workflow engine is called to conduct process deployment according to the workflow definition file. When the workflow process is deployed, the workflow definition file can be updated in real time through the terminal, the workflow engine is used for realizing the real-time process deployment without stopping and restarting, and the efficiency of the workflow process deployment is effectively improved.
Drawings
FIG. 1 is an application scenario diagram of a workflow process deployment method in one embodiment;
FIG. 2 is a flow diagram of a workflow flow deployment method in one embodiment;
FIG. 3 is a flow diagram of the steps in building a workflow template library in one embodiment;
FIG. 4 is a flow diagram of a workflow flow deployment method in another embodiment;
FIG. 5 is a block diagram of a workflow process deployment apparatus in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The workflow deployment method provided by the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The server 104 receives a request message sent by the terminal 102, the request message is used for requesting workflow deployment, the server 104 obtains a corresponding workflow definition template from a preset workflow template library according to the request message, receives a workflow definition file obtained after updating returned by the terminal, and finally invokes a preset workflow engine to perform flow deployment according to the workflow definition file, thereby realizing the deployment of workflow flow. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a workflow deployment method is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
step S201: and receiving a workflow deployment request message sent by the terminal.
When the user needs to perform workflow deployment, a request message is sent to the server 104 through the terminal 102 to request the workflow deployment. When the server 104 receives the request message, a workflow deployment mechanism is triggered, and workflow deployment is performed according to the request message.
Step S203: and inquiring a preset workflow template library according to the request message to obtain a workflow definition template corresponding to the request message.
The request message may, but is not limited to, carry user identification information, service system information to which the workflow to be deployed belongs, and workflow deployment requirement information. The workflow template library stores a preset workflow definition template, wherein the workflow definition template is correspondingly set for the service requirements of each service system, and specifically, the workflow definition template can be constructed based on a two-dimensional vector graph described by SVG (Scalable Vector Graphics) language. By configuring the workflow definition template, workflow definition files meeting various business requirements under a corresponding business system can be quickly obtained, and workflow process deployment can be carried out by calling a workflow engine, such as an actiti workflow engine. In this embodiment, a preset workflow template library is queried according to a received request message, and a workflow definition template corresponding to the request message is obtained from the workflow template library.
Step S205: and returning the workflow definition template to the terminal.
After obtaining the workflow definition template corresponding to the request message, the workflow definition template is issued to the terminal 102, and the terminal 102 performs workflow development design according to the workflow definition template. In particular implementations, workflow template data may be generated from the obtained workflow definition templates for delivery of the workflow definition templates. Before the workflow template data is issued, the workflow template data can be encrypted according to a preset encoding encryption mode, and the encrypted workflow template data is returned to the terminal 102 so as to ensure the data security in the transmission process. After receiving the workflow definition template, the terminal 102 performs configuration update on the workflow definition template according to actual development design requirements to obtain a workflow definition file, and returns the workflow definition file to the server 104, so that the server 104 performs subsequent flow deployment processing on the workflow definition file.
In a specific implementation, the workflow definition template may be an Xml format file based on SVG language, and at this time, the terminal 102 may open the workflow definition template through a browser to obtain a visual workflow definition interface, and perform workflow development based on the workflow definition interface, and finally obtain a workflow definition file in an Xml format and return to the server 104.
Step S207: and receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after the workflow definition template is updated.
After the workflow definition template obtained by the query is issued to the terminal 104, a workflow definition file returned by the terminal is received, and the workflow definition file is obtained after the workflow definition template is updated by the terminal rod 102.
Step S209: and calling a preset workflow engine, and deploying workflow flows according to workflow definition files through the workflow engine.
The workflow engine is used for driving the flow of the flow and is responsible for explaining the definition of the workflow, creating and initializing the flow instance, controlling the flow path of the flow, recording the running state of the flow, suspending or waking up the flow, terminating the running flow, communicating with other engines and the like. By invoking a preset workflow engine, such as an Activiti workflow engine, which supports the entire workflow framework with 23 tables, all tables beginning with actjj, the second part is a two letter identifier representing the purpose of the table, which also corresponds to the API of the service. The workflow engine can be used for realizing workflow deployment on the workflow definition file.
In the workflow process deployment method, a corresponding workflow definition template is obtained from a preset workflow template library according to a received workflow deployment request message sent by a terminal, a workflow definition file obtained after updating is received and returned by the terminal, and finally a preset workflow engine is called to perform process deployment according to the workflow definition file. When the workflow process is deployed, the workflow definition file can be updated in real time through the terminal, the workflow engine is used for realizing the real-time process deployment without stopping and restarting, and the efficiency of the workflow process deployment is effectively improved.
In one embodiment, the step of querying a preset workflow template library according to the request message to obtain the workflow definition template corresponding to the request message includes: determining a business system to which the workflow to be deployed belongs according to the request message; inquiring a preset workflow template library; and acquiring a workflow definition template corresponding to the service system from a workflow template library according to the service system.
The workflow template library stores workflow definition templates correspondingly arranged according to various service systems, and the workflow definition templates meet various service requirements of the corresponding service systems and can be adjusted according to actual service requirements. In this embodiment, the service system to which the workflow to be deployed belongs is determined according to the received request message, specifically, a request keyword related to the service may be extracted from the request message, and the service system to which the workflow to be deployed corresponds in the request message is determined according to the request keyword. After the service system is determined, a workflow definition template corresponding to the service system is queried in a preset workflow template library. By acquiring the corresponding proper workflow definition template from the workflow template library according to the request message sent by the terminal, the pertinence of the workflow definition template can be ensured, and the processing efficiency of workflow process deployment can be effectively ensured.
In one embodiment, the step of determining the business system to which the workflow process to be deployed belongs according to the request message includes: extracting a request keyword from the request message; carrying out keyword matching on the request keywords in a preset service system mapping table; and determining a business system to which the workflow to be deployed belongs according to the keyword matching result.
In this embodiment, the request message carries service system information to which the workflow to be deployed belongs and workflow deployment requirement information, and the service system to which the workflow to be deployed belongs is determined according to the obtained request keyword by extracting the request keyword from the request message. Specifically, keyword matching is performed on the extracted request keywords in a preset service system mapping table, wherein the service system mapping table records mapping relations between each service system and keywords corresponding to each service system, for example, each service system corresponds to different keyword combinations, and the corresponding service system can be determined through the keyword combinations. The service system mapping table can be obtained by analyzing service data of each service system, specifically, service keywords can be extracted from service data corresponding to the service system, frequencies of the service keywords are ordered, and the service keywords with high frequencies are selected and added into the service system mapping table to serve as matching keywords of the service system. And matching the request keywords with the matching keywords corresponding to the business systems in the business system mapping table, and determining the business system to which the workflow process to be deployed belongs in the request message according to the matching result. If the matching result of the keywords can be used, the service system with the highest matching degree is selected as the service system to which the workflow to be deployed belongs in the request message.
In one embodiment, as shown in fig. 3, before the step of querying a preset workflow template library according to a request message, the method further includes the step of constructing the workflow template library, specifically including:
step S301: historical service data of a service system is obtained.
The workflow template library stores workflow definition templates correspondingly set according to various service systems, the workflow template library is constructed by constructing corresponding workflow definition templates according to the service systems, and finally the workflow definition templates corresponding to the service systems are summarized, so that the workflow template library is obtained. In this embodiment, the historical service data corresponding to each service system is obtained, and specifically, the required historical service data may be obtained from a service database corresponding to each service system, where the historical service data may reflect a service flow of the service system.
Step S303: and extracting each service node from the historical service data, and determining the mapping relation among each service node.
After the historical service data of the service system is obtained, service nodes are extracted from the historical service data, wherein the service nodes are service processing points which need to be subjected to data processing in a service process and can include, but are not limited to, a starting node, an ending node, a task node, an automatic node, a decision node, a branch node, a merging node and the like, and all the service nodes are connected through a mapping relation, so that data flow among the service nodes is realized, and the operation of the service process is promoted. In this embodiment, the historical service data includes various complete service flows in the corresponding service system, from which service processing points are extracted as service nodes, and connection relations of the service processing points are used as mapping relations between the service nodes, so as to analyze the historical service data. The obtained mapping relation between the service nodes and each service node can be used as a template element of a workflow definition template for constructing the workflow definition template.
Step S305: and generating a workflow definition template according to each service node and the mapping relation.
And after the mapping relation between each service node and each service node is obtained from the historical service data, generating a workflow definition template according to the mapping relation between the service node and each service node. For example, for the business process generated by the policy in the insurance system, the business nodes comprise a policy receiving initial review node, a new policy registration node, an input rechecking node, a check and insurance node, a policy making node and a policy sending node, and the business nodes are sequentially connected and push the process to run in sequence to realize the business process service generated by the policy.
Step S307: and summarizing the workflow definition templates to obtain a workflow template library.
After the workflow definition templates corresponding to the business systems are obtained, the workflow definition templates are summarized to obtain a workflow template library.
In this embodiment, based on the historical service data of each service system, a corresponding workflow definition template is constructed, and the obtained workflow definition template is closely associated with the corresponding service system, so that the workflow definition template is suitable for workflow process deployment of the service system.
In one embodiment, the step of returning the workflow definition template to the terminal comprises: inquiring a corresponding preset workflow plugin according to the workflow definition template, wherein the workflow plugin is used for updating the workflow definition template; and returning the workflow definition template and the workflow plugin to the terminal.
The workflow definition template is a framework of a workflow definition file, and needs to cooperate with a corresponding workflow plug-in to develop and design the workflow of the workflow definition template. In this embodiment, the workflow plugin corresponding to the preset workflow definition template is queried according to the workflow definition template, which includes various configuration element plugins configured for the workflow definition template, such as node plugins of various service nodes, mapping plugins representing various mapping relationships, and the like. The workflow definition template can be configured and updated through the workflow plug-in, so that development and design of workflow flow are realized. After the workflow plug-in corresponding to the workflow definition template is obtained, the workflow definition template and the workflow plug-in are returned to the terminal, the terminal carries out configuration updating on the workflow definition template according to the workflow plug-in, and the workflow definition file is obtained after the workflow definition template is updated.
In one embodiment, after the step of workflow process deployment by the workflow engine from the workflow definition file, further comprising: when the workflow process deployment is detected to be completed, extracting each node processor from the workflow definition file; sending a flow update prompt message to a node processor; generating an abnormal prompt message when the workflow process deployment is not detected to be completed; and returning the abnormal prompt message to the terminal.
After the workflow definition file returned by the terminal is obtained, the workflow engine is called to perform workflow process deployment according to the workflow definition file. The workflow engine may be an actigi workflow engine, which adopts 23 tables, wherein 'RE' represents a restore, and the table of the prefix includes a flow definition and a static flow resource (picture, rule, etc.); ACT_RU represents runtimes, tables of these runtimes containing data in the run of flow instances, tasks, variables, asynchronous tasks, etc.; the Activiti only stores the data in the process of executing the flow instance, and deletes the records when the flow is finished, so that the running table can be very small and fast all the time; act_id_ 'ID' represents identity, these tables contain identity information such as users, groups, etc.; ACT_HI_ 'HI_' represents history, which contains historical data such as historical flow instances, variables, tasks, etc.; act_ge_ general data, which is used in different scenarios, such as storing resource files. And the Activiti workflow engine performs workflow process deployment according to the workflow definition file through the 23 tables. When the workflow deployment is completed, a prompt message may be sent to the processing object involved in the workflow to wake up the update of the processing object workflow.
Specifically, a deployment result of workflow process deployment is detected, when the workflow process deployment is detected to be completed, each node processor is extracted from the workflow definition file, and a process update prompt message is sent to the node processor, wherein the process update prompt message is used for reminding the corresponding node processor that the workflow process of the corresponding node processor is updated. On the other hand, if the workflow deployment is not detected to be completed, the workflow deployment failure is indicated, at the moment, an abnormal prompt message is generated, the abnormal prompt message is returned to the terminal so as to inform the terminal of the workflow deployment failure, and the terminal is reminded to report the request message again to carry out workflow deployment again. In this embodiment, by detecting the deployment results of workflow deployment, according to different deployment results, relevant nodes are respectively prompted to process the update situation of the workflow of the person, or the terminal is prompted to report the request message again to carry out workflow deployment again, so that smooth execution of workflow deployment is ensured.
In one embodiment, after the step of workflow process deployment by the workflow engine from the workflow definition file, further comprising: and when the workflow process deployment is detected to be completed, storing the workflow definition file into a workflow template library.
When workflow deployment is carried out according to the workflow definition file through the workflow engine, if the workflow deployment is detected to be completed, the workflow definition file is stored in the workflow template library, so that dynamic expansion of the workflow template library is realized. In this embodiment, the workflow definition file successfully deployed in the workflow process is imported into the workflow template library, and the workflow definition file is used as the workflow definition template deployed in the subsequent workflow process, so as to realize expansion of the workflow template library, thereby being beneficial to improving the deployment efficiency of the subsequent workflow process.
In one embodiment, as shown in fig. 4, a workflow process deployment method is provided, comprising the steps of:
step S401: receiving a workflow deployment request message sent by a terminal;
step S402: extracting a request keyword from the request message;
step S403: carrying out keyword matching on the request keywords in a preset service system mapping table;
step S404: determining a business system to which the workflow process to be deployed belongs according to the keyword matching result;
step S405: inquiring a preset workflow template library;
step S406: acquiring a workflow definition template corresponding to the service system from a workflow template library according to the service system;
Step S407: and inquiring a corresponding preset workflow plugin according to the workflow definition template, wherein the workflow plugin is used for updating the workflow definition template.
In this embodiment, the request message carries service system information to which the workflow to be deployed belongs and workflow deployment requirement information, and the service system to which the workflow to be deployed belongs is determined according to the obtained request keyword by extracting the request keyword from the request message. After the service system is determined, a workflow definition template corresponding to the service system is queried in a preset workflow template library. By acquiring the corresponding proper workflow definition template from the workflow template library according to the request message sent by the terminal, the pertinence of the workflow definition template can be ensured, and the processing efficiency of workflow process deployment can be effectively ensured.
In addition, the workflow definition template is a framework of a workflow definition file, and needs to cooperate with a corresponding workflow plug-in to perform workflow development design on the workflow definition template. In this embodiment, the workflow plug-in module corresponding to the preset workflow is queried according to the workflow definition template, which includes various configuration element plug-ins for configuring the workflow definition template, and the workflow definition template can be configured and updated through the workflow plug-in module, so as to realize development and design of workflow flow.
Step S408: returning the workflow definition template and the workflow plugin to the terminal;
step S409: receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by a workflow definition template;
step S410: and calling a preset workflow engine, and deploying workflow flows according to workflow definition files through the workflow engine.
After the workflow plug-in corresponding to the workflow definition template is obtained, the workflow definition template and the workflow plug-in are returned to the terminal, the terminal carries out configuration updating on the workflow definition template according to the workflow plug-in, and the workflow definition file is obtained after the workflow definition template is updated. After the workflow definition file returned by the terminal is obtained, a workflow engine, in this embodiment an active workflow engine, is called, and workflow process deployment is performed according to the workflow definition file.
Step S411: judging whether deployment is completed or not; if yes, go to step S412, otherwise go to step S415;
step S412: storing the workflow definition file into a workflow template library;
step S413: extracting each node processor from the workflow definition file;
step S414: sending a flow update prompt message to a node processor;
Step S415: and generating an abnormality prompt message and returning the abnormality prompt message to the terminal.
And detecting a deployment result of workflow process deployment, extracting each node processor from the workflow definition file when the workflow process deployment is detected to be completed, and sending a process update prompt message to the node processor, wherein the process update prompt message is used for prompting the corresponding node processor that the workflow process of the workflow process is updated. On the other hand, the workflow definition file which is successfully deployed in the workflow process is imported into a workflow template library, and is used as a workflow definition template for the deployment of the follow-up workflow process, so that the workflow template library is expanded, and the deployment efficiency of the follow-up workflow process is improved. If the workflow deployment is not detected to be completed, the workflow deployment failure is indicated, at the moment, an abnormal prompt message is generated, the abnormal prompt message is returned to the terminal, the terminal is informed of the workflow deployment failure, and the terminal is reminded of reporting the request message again to carry out workflow deployment again.
It should be understood that, although the steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
In one embodiment, as shown in fig. 5, there is provided a workflow process deployment apparatus comprising: a request message receiving module 501, a definition template obtaining module 503, a definition template returning module 505, a definition file receiving module 507 and a flow deployment module 509, wherein:
a request message receiving module 501, configured to receive a request message of workflow deployment sent by a terminal;
a definition template obtaining module 503, configured to query a preset workflow template library according to a request message, and obtain a workflow definition template corresponding to the request message;
a definition template returning module 505, configured to return the workflow definition template to the terminal;
the definition file receiving module 507 is configured to receive a workflow definition file returned by the terminal, where the workflow definition file is obtained after being updated by a workflow definition template;
the process deployment module 509 is configured to invoke a preset workflow engine, and perform workflow process deployment according to a workflow definition file through the workflow engine.
According to the workflow process deployment device, the corresponding workflow definition template is obtained from the preset workflow template library through the definition template obtaining module according to the received workflow deployment request message sent by the terminal, the workflow definition file obtained after updating is received by the definition file receiving module and returned by the terminal, and finally, the preset workflow engine is called through the process deployment module to conduct process deployment according to the workflow definition file. When the workflow process is deployed, the workflow definition file can be updated in real time through the terminal, the workflow engine is used for realizing the real-time process deployment without stopping and restarting, and the efficiency of the workflow process deployment is effectively improved.
In one embodiment, the definition template acquisition module 503 includes a business system determination unit, a template library query unit, and a definition template acquisition unit, where: the business system determining unit is used for determining a business system to which the workflow process to be deployed belongs according to the request message; the template library query unit is used for querying a preset workflow template library; and the definition template acquisition unit is used for acquiring the workflow definition template corresponding to the service system from the workflow template library according to the service system.
In one embodiment, the business system determination unit comprises a keyword extraction subunit, a keyword matching subunit, and a business system determination subunit, wherein: a keyword extraction subunit, configured to extract a request keyword from the request message; the keyword matching subunit is used for matching the keywords of the request in a preset service system mapping table; and the business system determining subunit is used for determining the business system to which the workflow process to be deployed belongs according to the keyword matching result.
In one embodiment, the system further comprises a historical service data acquisition module, a template element determination module, a definition template generation module and a template library construction module, wherein: the historical service data acquisition module is used for acquiring historical service data of the service system; the template element determining module is used for extracting each service node from the historical service data and determining the mapping relation among the service nodes; the definition template generation module is used for generating a workflow definition template according to each service node and the mapping relation; and the template library construction module is used for summarizing the workflow definition templates to obtain a workflow template library.
In one embodiment, the definition template return module 505 includes a workflow plug-in query unit and a delivery unit, wherein: the workflow plug-in inquiry unit is used for inquiring the corresponding preset workflow plug-in according to the workflow definition template, and the workflow plug-in is used for updating the workflow definition template; and the issuing unit is used for returning the workflow definition template and the workflow plug-in to the terminal.
In one embodiment, the method further comprises an update hint message module and an exception hint message module, wherein: the update prompt message module is used for extracting each node processor from the workflow definition file and sending a flow update prompt message to the node processor when the workflow deployment completion is detected; and the abnormal prompt message module is used for generating an abnormal prompt message when the workflow process deployment completion is not detected, and returning the abnormal prompt message to the terminal.
In one embodiment, the system further comprises a template library expansion module for storing the workflow definition file into the workflow template library when the workflow deployment completion is detected.
For specific limitations on the workflow deployment apparatus, reference may be made to the above limitation on the workflow deployment method, and no further description is given here. The various modules in the workflow process deployment apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a workflow process deployment method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of:
receiving a workflow deployment request message sent by a terminal;
inquiring a preset workflow template library according to the request message to obtain a workflow definition template corresponding to the request message;
returning a workflow definition template to the terminal;
receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by a workflow definition template;
and calling a preset workflow engine, and deploying workflow flows according to workflow definition files through the workflow engine.
In one embodiment, the processor when executing the computer program further performs the steps of: determining a business system to which the workflow to be deployed belongs according to the request message; inquiring a preset workflow template library; and acquiring a workflow definition template corresponding to the service system from a workflow template library according to the service system.
In one embodiment, the processor when executing the computer program further performs the steps of: extracting a request keyword from the request message; carrying out keyword matching on the request keywords in a preset service system mapping table; and determining a business system to which the workflow to be deployed belongs according to the keyword matching result.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring historical service data of a service system; extracting each service node from the historical service data, and determining the mapping relation among each service node; generating a workflow definition template according to each service node and the mapping relation; and summarizing the workflow definition templates to obtain a workflow template library.
In one embodiment, the processor when executing the computer program further performs the steps of: inquiring a corresponding preset workflow plugin according to the workflow definition template, wherein the workflow plugin is used for updating the workflow definition template; and returning the workflow definition template and the workflow plugin to the terminal.
In one embodiment, the processor when executing the computer program further performs the steps of: when the workflow process deployment is detected to be completed, extracting each node processor from the workflow definition file; sending a flow update prompt message to a node processor; generating an abnormal prompt message when the workflow process deployment is not detected to be completed; and returning the abnormal prompt message to the terminal.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the workflow process deployment is detected to be completed, storing the workflow definition file into a workflow template library.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a workflow deployment request message sent by a terminal;
inquiring a preset workflow template library according to the request message to obtain a workflow definition template corresponding to the request message;
returning a workflow definition template to the terminal;
receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by a workflow definition template;
and calling a preset workflow engine, and deploying workflow flows according to workflow definition files through the workflow engine.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a business system to which the workflow to be deployed belongs according to the request message; inquiring a preset workflow template library; and acquiring a workflow definition template corresponding to the service system from a workflow template library according to the service system.
In one embodiment, the computer program when executed by the processor further performs the steps of: extracting a request keyword from the request message; carrying out keyword matching on the request keywords in a preset service system mapping table; and determining a business system to which the workflow to be deployed belongs according to the keyword matching result.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring historical service data of a service system; extracting each service node from the historical service data, and determining the mapping relation among each service node; generating a workflow definition template according to each service node and the mapping relation; and summarizing the workflow definition templates to obtain a workflow template library.
In one embodiment, the computer program when executed by the processor further performs the steps of: inquiring a corresponding preset workflow plugin according to the workflow definition template, wherein the workflow plugin is used for updating the workflow definition template; and returning the workflow definition template and the workflow plugin to the terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the workflow process deployment is detected to be completed, extracting each node processor from the workflow definition file; sending a flow update prompt message to a node processor; generating an abnormal prompt message when the workflow process deployment is not detected to be completed; and returning the abnormal prompt message to the terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the workflow process deployment is detected to be completed, storing the workflow definition file into a workflow template library.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.
Claims (4)
1. A workflow process deployment method, the method comprising:
receiving a workflow deployment request message sent by a terminal;
extracting a request keyword from the request message;
performing keyword matching on the request keywords in a preset service system mapping table;
determining the business system to which the workflow process to be deployed belongs according to the keyword matching result;
Acquiring historical service data of the service system;
extracting each service node from the historical service data, and determining the mapping relation between each service node;
generating a workflow definition template according to each service node and the mapping relation;
summarizing the workflow definition templates to obtain a workflow template library;
acquiring a workflow definition template corresponding to the service system from the workflow template library according to the service system;
inquiring a corresponding preset workflow plugin according to the workflow definition template, wherein the workflow plugin is used for updating the workflow definition template;
returning the workflow definition template and the workflow plugin to the terminal;
receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by the workflow definition template;
a preset workflow engine is called, and workflow process deployment is carried out through the workflow engine according to the workflow definition file;
when the workflow process deployment is detected to be completed, storing the workflow definition file into the workflow template library; extracting each node processor from the workflow definition file; sending a flow update prompt message to the node processor;
Generating an abnormal prompt message when the workflow process deployment is not detected to be completed; and returning the abnormal prompt message to the terminal.
2. A workflow process deployment apparatus, the apparatus comprising:
the request message receiving module is used for receiving a request message of workflow deployment sent by the terminal;
a definition template acquisition module for extracting a request keyword from the request message; performing keyword matching on the request keywords in a preset service system mapping table; determining the business system to which the workflow process to be deployed belongs according to the keyword matching result; acquiring historical service data of the service system; extracting each service node from the historical service data, and determining the mapping relation between each service node; generating a workflow definition template according to each service node and the mapping relation; summarizing the workflow definition templates to obtain a workflow template library; acquiring a workflow definition template corresponding to the service system from the workflow template library according to the service system;
the workflow definition template returning module is used for inquiring a corresponding preset workflow plugin according to the workflow definition template, and the workflow plugin is used for updating the workflow definition template; returning the workflow definition template and the workflow plugin to the terminal;
The definition file receiving module is used for receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by the workflow definition template;
the flow deployment module is used for calling a preset workflow engine and carrying out workflow flow deployment according to the workflow definition file through the workflow engine; when the workflow process deployment is detected to be completed, storing the workflow definition file into the workflow template library; extracting each node processor from the workflow definition file; sending a flow update prompt message to the node processor; generating an abnormal prompt message when the workflow process deployment is not detected to be completed; and returning the abnormal prompt message to the terminal.
3. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor when executing the computer program performs the steps of:
receiving a workflow deployment request message sent by a terminal;
extracting a request keyword from the request message;
performing keyword matching on the request keywords in a preset service system mapping table;
Determining the business system to which the workflow process to be deployed belongs according to the keyword matching result;
acquiring historical service data of the service system;
extracting each service node from the historical service data, and determining the mapping relation between each service node;
generating a workflow definition template according to each service node and the mapping relation;
summarizing the workflow definition templates to obtain a workflow template library;
acquiring a workflow definition template corresponding to the service system from the workflow template library according to the service system;
inquiring a corresponding preset workflow plugin according to the workflow definition template, wherein the workflow plugin is used for updating the workflow definition template;
returning the workflow definition template and the workflow plugin to the terminal;
receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by the workflow definition template;
a preset workflow engine is called, and workflow process deployment is carried out through the workflow engine according to the workflow definition file;
when the workflow process deployment is detected to be completed, storing the workflow definition file into the workflow template library; extracting each node processor from the workflow definition file; sending a flow update prompt message to the node processor;
Generating an abnormal prompt message when the workflow process deployment is not detected to be completed; and returning the abnormal prompt message to the terminal.
4. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor realizes the steps of:
receiving a workflow deployment request message sent by a terminal;
extracting a request keyword from the request message;
performing keyword matching on the request keywords in a preset service system mapping table;
determining the business system to which the workflow process to be deployed belongs according to the keyword matching result;
acquiring historical service data of the service system;
extracting each service node from the historical service data, and determining the mapping relation between each service node;
generating a workflow definition template according to each service node and the mapping relation;
summarizing the workflow definition templates to obtain a workflow template library;
acquiring a workflow definition template corresponding to the service system from the workflow template library according to the service system;
inquiring a corresponding preset workflow plugin according to the workflow definition template, wherein the workflow plugin is used for updating the workflow definition template;
Returning the workflow definition template and the workflow plugin to the terminal;
receiving a workflow definition file returned by the terminal, wherein the workflow definition file is obtained after being updated by the workflow definition template;
a preset workflow engine is called, and workflow process deployment is carried out through the workflow engine according to the workflow definition file;
when the workflow process deployment is detected to be completed, storing the workflow definition file into the workflow template library; extracting each node processor from the workflow definition file; sending a flow update prompt message to the node processor;
generating an abnormal prompt message when the workflow process deployment is not detected to be completed; and returning the abnormal prompt message to the terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811123427.5A CN109389299B (en) | 2018-09-26 | 2018-09-26 | Workflow process deployment method, workflow process deployment device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811123427.5A CN109389299B (en) | 2018-09-26 | 2018-09-26 | Workflow process deployment method, workflow process deployment device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109389299A CN109389299A (en) | 2019-02-26 |
CN109389299B true CN109389299B (en) | 2023-10-31 |
Family
ID=65418154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811123427.5A Active CN109389299B (en) | 2018-09-26 | 2018-09-26 | Workflow process deployment method, workflow process deployment device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109389299B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109978380A (en) * | 2019-03-28 | 2019-07-05 | 金瓜子科技发展(北京)有限公司 | A kind of workflow processing method and device |
CN111382953A (en) * | 2020-03-23 | 2020-07-07 | 中国建设银行股份有限公司 | Dynamic process generation method and device |
CN113362042B (en) * | 2021-07-05 | 2022-06-17 | 重庆市规划和自然资源信息中心 | Government affair service integrated management workflow design modeling method |
CN114445047B (en) * | 2022-01-29 | 2024-05-10 | 北京百度网讯科技有限公司 | Workflow generation method and device, electronic equipment and storage medium |
CN117407008B (en) * | 2023-12-14 | 2024-04-19 | 之江实验室 | System component cluster deployment method and device for microminiature data center |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101266669A (en) * | 2008-05-06 | 2008-09-17 | 广州市中联创通电脑有限公司 | Project process workflow based on plan template and its implementation method |
CN101957936A (en) * | 2009-07-15 | 2011-01-26 | 深圳市艾派应用系统有限公司 | Method and system for implementing workflow form |
CN104216912A (en) * | 2013-06-04 | 2014-12-17 | 广州中国科学院软件应用技术研究所 | Method and device for achieving non-intrusive service form workflow |
CN106155769A (en) * | 2015-03-26 | 2016-11-23 | 北大方正集团有限公司 | A kind of workflow processing method, device and workflow engine |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9557988B2 (en) * | 2012-09-07 | 2017-01-31 | Inadev Corporation | Workflow-based application generator |
-
2018
- 2018-09-26 CN CN201811123427.5A patent/CN109389299B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101266669A (en) * | 2008-05-06 | 2008-09-17 | 广州市中联创通电脑有限公司 | Project process workflow based on plan template and its implementation method |
CN101957936A (en) * | 2009-07-15 | 2011-01-26 | 深圳市艾派应用系统有限公司 | Method and system for implementing workflow form |
CN104216912A (en) * | 2013-06-04 | 2014-12-17 | 广州中国科学院软件应用技术研究所 | Method and device for achieving non-intrusive service form workflow |
CN106155769A (en) * | 2015-03-26 | 2016-11-23 | 北大方正集团有限公司 | A kind of workflow processing method, device and workflow engine |
Also Published As
Publication number | Publication date |
---|---|
CN109389299A (en) | 2019-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109389299B (en) | Workflow process deployment method, workflow process deployment device, computer equipment and storage medium | |
CN110209652B (en) | Data table migration method, device, computer equipment and storage medium | |
CN109474578B (en) | Message checking method, device, computer equipment and storage medium | |
CN108874926B (en) | Mass data query method, device, computer equipment and storage medium | |
CN109446068B (en) | Interface test method, device, computer equipment and storage medium | |
WO2020181839A1 (en) | Page data testing method, apparatus, computer device, and storage medium | |
CN110290212B (en) | Service call recording method, device, computer equipment and storage medium | |
US20180365254A1 (en) | Method and apparatus for processing information flow data | |
CN109814854B (en) | Project framework generation method, device, computer equipment and storage medium | |
WO2019061991A1 (en) | Multi-element universal model platform modeling method, electronic device, and computer readable storage medium | |
CN109375884B (en) | Application log printing method, device, computer equipment and storage medium | |
CN111310427A (en) | Service data configuration processing method and device, computer equipment and storage medium | |
CN110908778B (en) | Task deployment method, system and storage medium | |
CN109361628B (en) | Message assembling method and device, computer equipment and storage medium | |
Jeong et al. | Anomaly teletraffic intrusion detection systems on hadoop-based platforms: A survey of some problems and solutions | |
CN111414391A (en) | Method and system for accessing multiple data sources | |
CN109144487B (en) | Method, device, computer equipment and storage medium for developing business of parts | |
CN109542962B (en) | Data processing method, data processing device, computer equipment and storage medium | |
CN103927314A (en) | Data batch processing method and device | |
CN114531477B (en) | Method and device for configuring functional components, computer equipment and storage medium | |
CN110717647A (en) | Decision flow construction method and device, computer equipment and storage medium | |
CN109614271B (en) | Method, device, equipment and storage medium for controlling consistency of multiple cluster data | |
CN109542764B (en) | Webpage automatic testing method and device, computer equipment and storage medium | |
CN111209061B (en) | User information filling method, device, computer equipment and storage medium | |
CN110275703B (en) | Method and device for assigning key value to data, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |