Disclosure of Invention
The present specification provides a deployment method and a deployment device for a business process, which implement adaptation of a business process model to different process engines.
The present specification provides a deployment method for a business process, including:
generating initial flow format data according to the business flow architecture input by the user;
converting the initial flow format data into matched flow format data matched with a flow engine to be used;
and releasing the matched flow format data to a flow engine to realize the deployment of the business flow.
Optionally, converting the initial flow format data into matching flow format data that matches a flow engine to be used includes:
converting the format data of the initial flow format into standard flow format data;
and converting the standard flow format data into matched flow format data matched with a flow engine to be used.
Optionally, before converting the initial flow format data into the standard flow format data, the method further includes: judging whether the initial flow format data is matched with the flow engine or not;
and under the condition that the business process format data is not matched with the process engine, converting the initial process format data into standard process format data.
Optionally, generating initial flow format data according to the business flow architecture input by the user:
setting a flow chart element according to the primitive and the attribute selected by the user;
and forming the initial flow format data according to the ordering of the flow chart elements by the user.
Optionally, the attributes include a participant attribute, a form attribute, and a conditional trigger attribute.
Optionally, in the case that the flow engine generates the return parameter, the return parameter is converted into data corresponding to the matching flow format data according to the mapping relationship between the matching flow format data and the initial flow format data.
The present specification provides a deployment apparatus for a business process, including:
the flow construction module generates initial flow format data according to the business flow architecture input by the 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 in the standard format to a flow engine to realize the deployment of the business flow.
Optionally, the conversion module includes;
the standard conversion sub-module is used for converting the initial flow format data into standard flow format data;
and the matching conversion sub-module is used for converting the standard flow format data into matching flow format data matched with a flow engine to be used.
Optionally, the conversion module includes:
a judging sub-module, configured to judge whether the initial flow format data is adapted to the flow engine;
the standard conversion sub-module converts the initial flow architecture data into standard flow format data under the condition that the business flow format data is not adapted to the flow engine.
By adopting the service flow deployment method provided by the specification, the initial flow service data which is set at the front end by a user and represents the service flow architecture can be subjected to format conversion according to different flow engines at the rear end, so that the deployment flow and the operation flow can be carried out by adopting the flow engines used at the rear end, and the flow modeling and the decoupling of the flow engines are realized. In practical application, the user can still keep the modeling mode of the front-stage flow under the condition of replacing the flow engine.
In the invention, the technical schemes can be mutually combined 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 may be realized and attained by the structure particularly pointed out in the written description and drawings.
Detailed Description
Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof, and together with the description serve to explain the principles of the invention, and are not intended to limit the scope of the invention.
The present disclosure provides a method for deploying a business process, which is used to enable a business architecture generated by a user to be published into 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 in this embodiment includes steps S101 to 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 needs of the enterprise, and input 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 a new flow chart element based on the basic flow chart element provided by the selection process, and a process of constructing a flow chart based on the assembled new flow chart element, specifically, steps S1011 and S1012.
S1011: and setting the flow chart element according to the user selected primitive and the attribute.
In practical application, the business process software provides a plurality of attributes including icons, form attributes, participant attributes, conditional triggering attributes, and the like of the primitive elements. The user selects the elements of the flow chart element to form the flow chart element.
For example, in a specific application of the embodiment, the elements of the flowchart include elements of the primitive and elements of the attribute, the elements of the primitive include fund audit, compliance audit and budget audit, the elements of the attribute include responsible person attribute, fund audit attribute, regulation attribute, risk point attribute and budget plan attribute, and the flowchart elements can be constructed as follows: (1) The fund auditing graphic element comprises a group person attribute, a fund auditing attribute and a rule attribute; (2) The attributes of the compliance audit primitives comprise a responsible person attribute, a rule attribute and a risk point attribute; (3) Budget auditing primitives, the attributes of which include responsible person attributes and budget plan attributes.
S1012: and forming a flow chart according to the ordering of the user to the flow chart elements.
For example, in one purchasing business process, a budget auditing-compliance auditing-fund auditing process can be constructed, so that according to the process, budget auditing process primitives, compliance auditing primitives and fund auditing primitives can be sequentially connected to form a flow chart.
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 flow format data into matched flow format data to be matched by using the flow 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 the 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 triggering 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 use steps S1021-S1022 to form matching flow format data.
S1021: and converting the initial flow format file data into standard flow format data.
In practical applications, the standard flow format data may be industry standard flow format data, for example, may be BPMN2.0 standard format data, or may be specific format data formed on the manufacture of a plurality of flow engine software. In practical applications, the standard flow format data is preferably XML format data.
S1022: and converting the standard flow format data into matched flow format data matched with the flow engine to be used.
In step SS1022, the business process software configures the process engine and simultaneously configures an interface corresponding to the process engine, and the interface can convert standard process format data into corresponding matched process format data according to the requirement of the process engine input interface. The matching flow format data may be directly loaded by the flow engine.
S103: and publishing the matched flow format data to a flow engine to realize the deployment of the business flow.
In step S103, the business process software directly sends the matching process format data to the process engine, and at this time, the process engine can directly identify parameters in the matching process format data to realize 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 a specific application, the process business software can adopt the method to realize the release of the process and provide services such as process initiation, task inquiry, task completion and the like when in subsequent use.
In the process of executing various services, the flow engine may also generate corresponding return parameters; after receiving the return parameters generated by the flow engine, the flow business software converts the return parameters into data corresponding to the matched flow format data according to the mapping relation between the matched flow format data and the initial flow format data.
Through the analysis, by adopting the deployment method of the business process provided by the embodiment, the format of the initial process business data which is set by the user at the front end and represents the business process architecture can be converted according to different process engines at the rear end, so that the deployment process and the operation process can be carried out by adopting the process engines used at the rear end, and the process modeling and the decoupling of the process engines are realized. In practical application, the user can still keep the modeling mode of the front-stage flow under the condition of replacing the flow engine.
In addition to providing the foregoing service flow deployment method, the embodiment of the present disclosure further provides a service flow deployment device. The deployment device of the business process and the deployment method of the business process adopt the same invention conception.
Fig. 2 is a schematic structural diagram of a deployment device for a business process according to an embodiment. As shown in fig. 2, the deployment apparatus of the business process includes aprocess modeling module 11, aconversion module 12, and adeployment module 13. The flow construction module is used for generating initial flow format data according to the business flow architecture input by the user; theconversion module 12 converts the initial flow format data into accompanying flow format data to be matched by using the flow engine; thedeployment module 13 is configured to load a flow architecture file in a standard format into the flow engine to implement deployment of the business flow.
In one specific application, theconversion module 12 includes astandard conversion sub-module 121 and amatching conversion sub-module 122. Thestandard conversion sub-module 121 is configured to convert the initial flow format data into standard flow format data, and thematch conversion sub-module 122 is configured to convert the standard flow format data into match flow format data matched with a flow engine to be used.
In one specific application, theconversion module 12 further includes adetermination sub-module 123, where thedetermination sub-module 123 is configured to determine whether the initial flow format data is adapted to the flow engine. Thestandard conversion sub-module 121 converts the initial flow format data into standard flow format data in case that the business flow format data is not adapted to the flow engine.
In addition to providing the deployment method and the deployment device, the embodiment of the specification also provides electronic equipment. The electronic device includes a memory and a processor; the memory stores the program instructions and the processor executes the deployment method of the business process when loading the program instructions.
In addition, the electronic device further includes an input part and an output part; the input unit is used for inputting various data and operation instructions, and the output unit is used for outputting various data. In practical application, the input component can be a mouse, a keyboard and a touch screen, and the output component can be a display, a printer and other devices.
In addition, the embodiments of the present disclosure further provide a computer readable storage medium storing program instructions that, when loaded by a computer, can be used to form a deployment method for a business process as described above.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention.