Method and device for deploying business process

文档序号:1156234 发布日期:2020-09-15 浏览:14次 中文

阅读说明:本技术 业务流程的部署方法和装置 (Method and device for deploying business process ) 是由 何亮 卢利梅 陈新伟 于 2020-05-29 设计创作,主要内容包括:本说明书提供一种业务流程的部署方法和装置,方法包括:根据用户输入的业务流程架构生成初始流程格式数据;将所述初始流程格式数据转换为与待使用流程引擎匹配的匹配流程格式数据;将所述匹配流程格式数据发布至流程引擎而实现业务流程的部署。采用本说明书提供的业务流程的部署方法,用户在前端设置的表示业务流程架构的初始流程业务数据可以根据后端不同的流程引擎进行格式转换,以能够采用后端使用的流程引擎进行部署流程和运行流程,实现了流程建模和流程引擎的解耦。在实际应用中,用户在更换流程引擎的情况下,仍然可以保留前段流程建模方式。(The present specification provides a method and an apparatus for deploying a business process, the method including: generating initial flow format data according to a business flow architecture input by a user; converting the initial process format data into matched process format data matched with a process engine to be used; and issuing the data in the matched flow format to a flow engine to realize the deployment of the business flow. By adopting the deployment method of the business process provided by the specification, the initial process business data which is set at the front end by a user and represents the business process architecture can be subjected to format conversion according to different process engines at the back end, so that the process engine used at the back end can be adopted to perform deployment process and operation process, and the decoupling of the process modeling and the process engine is realized. In practical application, when a user replaces a process engine, a front-stage process modeling mode can still be reserved.)

1. A method for deploying a business process is characterized by comprising the following steps:

generating initial flow format data according to a business flow architecture input by a user;

converting the initial process format data into matched process format data matched with a process engine to be used;

and issuing the data in the matched flow format to a flow engine to realize the deployment of the business flow.

2. The deployment method of claim 1, wherein:

converting the initial process format data into matched process format data matched with a process engine to be used, wherein the method comprises the following steps:

converting the initial process format data into standard process format data;

and converting the standard process format data into matched process format data matched with a process engine to be used.

3. The deployment method of claim 2, wherein:

before converting the initial process format data into standard process format data, the method further comprises: judging whether the initial process format data is matched with the process engine;

and converting the initial flow format data into standard flow format data under the condition that the business flow format data is not adaptive to the flow engine.

4. The deployment method of claim 1,

generating initial flow format data according to a business flow architecture input by a user:

setting a flow primitive according to the primitive and the attribute selected by the user;

and forming the initial flow format data according to the sequence of the flow primitives by the user.

5. The deployment method of claim 4,

the attributes include participant attributes, form attributes, and conditional trigger attributes.

6. The deployment method of claim 1, further comprising:

and under the condition that the process engine generates return parameters, converting the return parameters into data corresponding to the matched process format data according to the mapping relation between the matched process format data and the initial process format data.

7. A device for deploying a business process is characterized by comprising:

the flow construction module generates initial flow format data according to a business flow architecture input by a user;

the conversion module is used for converting the initial flow format data into matched flow format data matched with a flow engine to be used; and the deployment module is used for loading the flow architecture file with the standard format to a flow engine to realize the deployment of the business flow.

8. The deployment device of claim 6 wherein the conversion module comprises;

the standard conversion submodule is used for converting the initial process format data into standard process format data;

and the matching conversion sub-module is used for converting the standard process format data into matching process format data matched with the process engine to be used.

9. The deployment device of claim 8 wherein the conversion module comprises:

the judging submodule is used for judging whether the initial process format data is matched with the process engine;

and the standard conversion sub-module converts the initial process architecture data into standard process format data under the condition that the business process format data is not adaptive to the process engine.

10. An electronic device comprising a memory and a processor; the memory stores program instructions; the processor, when loaded with the program instructions, is configured to perform the method of any of claims 1-6.

Technical Field

The invention relates to the technical field of management automation, in particular to a method and a device for deploying a business process.

Background

In order to improve the service execution efficiency in enterprises and realize effective management, various medium and large-sized enterprises are provided with a service flow automation system so as to realize the automation of service flows and effectively monitor the service progress degree through the service flow automation system; at present, an enterprise business flow automation system selects a specific process engine according to the scale of an enterprise and the business characteristics of the enterprise; when enterprise integration or business characteristics change, the corresponding enterprise may need to replace the process engine or realize the switching of the process engine; at present, because a process modeling tool and a process engine are matched in a tight coupling mode, an existing business process model cannot be directly transplanted to a new process engine, and the process engine needs to be replaced.

Disclosure of Invention

The present specification provides a deployment method and a deployment apparatus for a business process, which implement adaptation of a business process model to different process engines.

The present specification provides a method for deploying a business process, including:

generating initial flow format data according to a business flow architecture input by a user;

converting the initial process format data into matched process format data matched with a process engine to be used;

and issuing the data in the matched flow format to a flow engine to realize the deployment of the business flow.

Optionally, converting the initial process format data into matching process format data matched with a process engine to be used includes:

converting the initial process format data into standard process format data;

and converting the standard process format data into matched process format data matched with a process engine to be used.

Optionally, before converting the initial process format data into the standard process format data, the method further includes: judging whether the initial process format data is matched with the process engine;

and converting the initial flow format data into standard flow format data under the condition that the business flow format data is not adaptive to the flow engine.

Optionally, generating initial flow format data according to a business flow architecture input by a user:

setting a flow primitive according to the primitive and the attribute selected by the user;

and forming the initial flow format data according to the sequence of the flow primitives by the user.

Optionally, the attributes include participant attributes, form attributes, and conditional trigger attributes.

Optionally, when the flow engine generates a return parameter, the return parameter is converted into data corresponding to the matching flow format data according to a mapping relationship between the matching flow format data and the initial flow format data.

This specification provides a deployment device of a business process, including:

the flow construction module generates initial flow format data according to a business flow architecture input by a user;

the conversion module is used for converting the initial flow format data into matched flow format data matched with a flow engine to be used; and the deployment module is used for loading the flow architecture file with the standard format to a flow engine to realize the deployment of the business flow.

Optionally, the conversion module comprises;

the standard conversion submodule is used for converting the initial process format data into standard process format data;

and the matching conversion sub-module is used for converting the standard process format data into matching process format data matched with the process engine to be used.

Optionally, the conversion module comprises:

the judging submodule is used for judging whether the initial process format data is matched with the process engine;

and the standard conversion sub-module converts the initial process architecture data into standard process format data under the condition that the business process format data is not adaptive to the process engine.

By adopting the deployment method of the business process provided by the specification, the initial process business data which is set at the front end by a user and represents the business process architecture can be subjected to format conversion according to different process engines at the back end, so that the process engine used at the back end can be adopted to perform deployment process and operation process, and the decoupling of the process modeling and the process engine is realized. In practical application, when a user replaces a process engine, a front-stage process modeling mode can still be reserved.

In the invention, the technical schemes can be combined with each other to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.

Drawings

The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention.

FIG. 1 is a flow chart of a method for deploying a business process provided by an embodiment;

FIG. 2 is a schematic structural diagram of a deployment apparatus of a business process provided by an embodiment;

wherein: 11-a flow modeling module, 12-a conversion module, 121-a standard conversion sub-module, 122-a matching conversion sub-module, 123-a judgment sub-module and 13-a deployment module.

Detailed Description

The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and together with the description, serve to explain the principles of the invention and not to limit the scope of the invention.

The present specification provides a method for deploying a business process, which is used to enable a business architecture generated by a user to be published to different process engines, so as to implement application of multiple process engines.

Fig. 1 is a flowchart of a deployment method of a business process provided by an embodiment. As shown in fig. 1, the method provided by the present embodiment includes steps S101-S103.

S101: and generating initial flow format data according to the business flow architecture input by the user.

In this embodiment, the user needs to determine the business process architecture according to the actual requirements of the enterprise, and inputs the business process architecture into the business process software, so that the business process software can generate the initial process format data according to the business process architecture input by the user.

In this embodiment, the process of inputting the business process architecture into the business process software by the user may be a process of assembling new process primitives based on basic process primitive elements provided by the selected process, and a process of constructing a flowchart based on the assembled new process primitives, specifically, steps S1011 and S1012.

S1011: and setting flow primitives according to the primitives and attributes selected by the user.

In practical application, the business process software provides multiple attributes of primitive elements including process primitive icons, form attributes, participant attributes, condition trigger attributes and the like. And selecting the flow primitive elements by the user to form the flow primitive.

For example, in a specific application of the embodiment, the flow primitive elements include primitive elements and attribute elements, the primitive elements include fund audit, compliance audit and budget audit, the attribute elements include responsible person attribute, fund audit attribute, regulation attribute, risk point attribute and budget plan attribute, and the flow primitives that can be constructed may be: (1) the fund auditing graphic element comprises a group person attribute, a fund auditing attribute and a regulation attribute; (2) the attributes of the compliance audit primitive comprise attributes of a person in charge, regulatory attributes and risk point attributes; (3) the attributes of the budget audit primitive comprise attributes of a responsible person and attributes of a budget plan.

S1012: and forming a flow chart according to the sequence of the flow primitives by the user.

For example, in a procurement business process, a three-layer audit process of budget audit, compliance audit and fund audit can be constructed, so that the budget audit process primitive, the compliance audit primitive and the fund audit primitive can be sequentially connected to form a flow chart according to the process.

And after forming the flow chart and determining that the flow chart is correct, the business flow software analyzes the flow chart to generate initial flow format data.

S102: and converting the initial process format data into matched process format data to be matched by using the process engine.

In the embodiment of the present specification, the business process software includes a conversion interface; the conversion interface can convert the initial flow format data according to a flow engine equipped at the bottom layer to form matched flow format data; in the data conversion, the attribute part of the initial flow format data is mainly analyzed to determine the form attribute, the participant attribute and the condition trigger attribute, and the format or the representation mode of each attribute is converted again according to the format of the matched flow format data.

In a specific application, the conversion interface may adopt steps S1021-S1022 to form data in a matching flow format.

S1021: and converting the initial process format file data into standard process format data.

In practical applications, the standard process format data may be an industry standard process format data, for example, a format data of BPMN2.0 standard, or a specific format data formed in a plurality of process engine software manufacturing processes. In practical applications, the standard flow format data is preferably XML format data.

S1022: and converting the standard process format data into matched process format data matched with the process engine to be used.

In step SS1022, the business process software configures the process engine and simultaneously configures the interface corresponding to the process engine, and the interface can convert the standard process format data into the corresponding matched process format data according to the requirements of the process engine input interface. The matching flow format data may be loaded directly by the flow engine.

S103: and issuing the data with the matched flow format to a flow engine to realize the deployment of the business flow.

In step S103, the business process software directly sends the matched process format data to the process engine, and the process engine can directly identify the parameters in the matched process format data, thereby implementing the operation of the process; at this time, the process engine may run the process constructed by the user and generate corresponding return parameters.

In specific application, the process service software can adopt the method to realize the release of the process and provide services such as process initiation, task query, task completion and the like during subsequent use.

In the process of executing various services, the process engine can also generate corresponding return parameters; and after receiving the return parameters generated by the process engine, the process service software converts the return parameters into data corresponding to the matched process format data according to the mapping relation between the matched process format data and the initial process format data.

As can be seen from the foregoing analysis, with the deployment method of the business process provided in this embodiment, the initial process business data representing the business process architecture, which is set at the front end by the user, can be subjected to format conversion according to different process engines at the back end, so that the process engine used at the back end can be used to perform the deployment process and the operation process, thereby implementing the decoupling of the process modeling and the process engine. In practical application, when a user replaces a process engine, a front-stage process modeling mode can still be reserved.

In addition to providing the foregoing deployment method of the business process, an embodiment of the present specification further provides a deployment apparatus of the business process. The deployment device of the business process and the deployment method of the business process adopt the same inventive concept.

Fig. 2 is a schematic structural diagram of a deployment apparatus of a business process provided by an embodiment. As shown in fig. 2, the deployment apparatus of the business process includes a process modeling module 11, a conversion module 12, and a deployment module 13. The flow construction module is used for generating initial flow format data according to a business flow architecture input by a user; the conversion module 12 converts the initial flow format data into accompanied flow format data matched with a flow engine to be used; the deployment module 13 is configured to load the flow architecture file in the standard format into the flow engine to implement deployment of the business flow.

In one particular application, the conversion module 12 includes a standard conversion sub-module 121 and a matching conversion sub-module 122. The standard conversion sub-module 121 is configured to convert the initial process format data into standard process format data, and the matching conversion sub-module 122 is configured to convert the standard process format data into matching process format data matched with a process engine to be used.

In a specific application, the conversion module 12 further includes a judging sub-module 123, and the judging sub-module 123 is configured to judge whether the initial process format data is adapted to the process engine. The standard conversion sub-module 121 converts the initial process format data into the standard process format data only when the service process format data is not adapted to the process engine.

In addition to providing the foregoing deployment method and deployment apparatus, embodiments of the present specification further provide an electronic device. The electronic device comprises a memory and a processor; the memory stores the program instructions, and the processor executes the deployment method of the business process when the program instructions are loaded.

In addition, the electronic device further includes an input component and an output component; the input component is used for inputting various data and operation instructions, and the output component is used for outputting various data. In practical applications, the input component may be a mouse, a keyboard, and a touch screen, and the output component may be a display, a printer, and the like.

In addition, the embodiments of the present specification further provide a computer-readable storage medium, where the computer-readable storage medium stores program instructions, and the program instructions, after being loaded by a computer, may be used to form the deployment method of the business process described above.

The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于多源配网网络的网架拓扑自动构建方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!