Configuration method of business process and related equipment

文档序号:1888660 发布日期:2021-11-26 浏览:25次 中文

阅读说明:本技术 一种业务流程的配置方法及相关设备 (Configuration method of business process and related equipment ) 是由 杨清广 李日璐 于 2020-05-22 设计创作,主要内容包括:本申请提供了一种业务流程的配置方法及相关设备,可以快速为用户配置对应的业务流程,减少用户的等待时长。该方法包括:获取目标业务需求的云端接口;确定所述云端接口的属性信息,所述云端接口的属性信息包括所述云端接口的接口描述以及所述云端接口对应的数据内容的逻辑描述;确定所述目标业务需求对应的目标编辑模式;根据所述目标编辑模式以及所述云端接口的属性信息对所述云端接口进行编辑,得到所述目标业务需求对应的业务流程。(The application provides a configuration method of a business process and related equipment, which can rapidly configure the corresponding business process for a user and reduce the waiting time of the user. The method comprises the following steps: acquiring a cloud interface required by a target service; determining attribute information of the cloud interface, wherein the attribute information of the cloud interface comprises interface description of the cloud interface and logic description of data content corresponding to the cloud interface; determining a target editing mode corresponding to the target service requirement; and editing the cloud interface according to the target editing mode and the attribute information of the cloud interface to obtain a business process corresponding to the target business requirement.)

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

acquiring a cloud interface required by a target service;

determining attribute information of the cloud interface, wherein the attribute information of the cloud interface comprises interface description of the cloud interface and logic description of data content corresponding to the cloud interface;

determining a target editing mode corresponding to the target service requirement;

and editing the cloud interface according to the target editing mode and the attribute information of the cloud interface to obtain a business process corresponding to the target business requirement.

2. The method according to claim 1, wherein when a target editing mode is an editing mode corresponding to a flowchart, the editing the cloud interface according to the target editing mode and attribute information of the cloud interface to obtain a business process corresponding to the target business requirement includes:

determining a primitive module corresponding to the cloud interface according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

receiving a first operation instruction;

dragging and dropping a primitive module corresponding to the cloud interface to a process editing page according to the first operation instruction;

receiving a second operation instruction;

and according to the second operation instruction, connecting the primitive modules corresponding to the cloud interface according to a first preset rule to obtain a business process corresponding to the target business requirement.

3. The method according to claim 2, wherein the first preset rule comprises:

adding a conversion function between a first primitive module and a second primitive module, wherein the first primitive module and the second primitive module are primitive modules with an association relation in the primitive modules dragged and dropped to the process editing page, and the conversion function is used for converting output parameters of the first primitive module into input parameters of the second module, or the conversion function is used for converting output parameters of the second primitive module into output parameters of the first module.

4. The method according to claim 1, wherein when the target editing mode is a state machine table editing mode, the editing the cloud interface according to the target editing mode and attribute information of the cloud interface to obtain the business process corresponding to the target business requirement includes:

determining an event set, an action set and a state set corresponding to the target business requirement according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

and associating the event in the event set, the action in the action set and the state in the state set according to a second preset rule to obtain a business process corresponding to the target business requirement.

5. The method according to claim 1, wherein when the target editing mode is an editing mode corresponding to a user language, the editing the cloud interface according to the target editing mode and the attribute information of the cloud interface to obtain the business process corresponding to the target business requirement includes:

determining a logic grammar rule of the target business requirement;

and performing service description on the cloud interface according to the logic grammar rule and the logic description of the data content corresponding to the cloud interface to obtain a service flow corresponding to the target service requirement.

6. The method according to any one of claims 1 to 5, further comprising:

converting the business process corresponding to the target business requirement into a user language file;

and compiling and executing the user language file through a user language compiler so as to display the business process corresponding to the target business requirement.

7. A device for configuring a business process, comprising:

the acquisition unit is used for acquiring a cloud interface required by a target service;

the first determining unit is used for determining attribute information of the cloud interface, wherein the attribute information of the cloud interface comprises an interface description of the cloud interface and a logic description of data content corresponding to the cloud interface;

a second determining unit, configured to determine a target editing mode corresponding to the target service requirement;

and the editing unit is used for editing the cloud interface according to the target editing mode and the attribute information of the cloud interface to obtain a business process corresponding to the target business requirement.

8. The apparatus according to claim 7, wherein when the target editing mode is an editing mode corresponding to the flowchart, the editing unit is specifically configured to:

determining a primitive module corresponding to the cloud interface according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

receiving a first operation instruction;

dragging and dropping a primitive module corresponding to the cloud interface to a process editing page according to the first operation instruction;

receiving a second operation instruction;

and according to the second operation instruction, connecting the primitive modules corresponding to the cloud interface according to a first preset rule to obtain a business process corresponding to the target business requirement.

9. The apparatus according to claim 7, wherein when the target editing mode is a state machine table editing mode, the editing unit is specifically configured to:

determining an event set, an action set and a state set corresponding to the target business requirement according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

and associating the event in the event set, the action in the action set and the state in the state set according to a second preset rule to obtain a business process corresponding to the target business requirement.

10. The apparatus according to claim 7, wherein when the target editing mode is an editing mode corresponding to a user language, the editing unit is specifically configured to:

determining a logic grammar rule of the target business requirement;

and performing service description on the cloud interface according to the logic grammar rule and the logic description of the data content corresponding to the cloud interface to obtain a service flow corresponding to the target service requirement.

11. A computer apparatus comprising at least one connected processor, memory and transceiver, wherein the memory is for storing program code that is loaded and executed by the processor to implement the steps of the method of configuring a business process of any one of claims 1 to 6.

12. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the steps of the method of configuring a business process of any one of claims 1 to 6.

Technical Field

The present application relates to the field of communications, and in particular, to a method for configuring a service flow and a related device.

Background

Business requirements (Business requirements) represent a high-level goal for an organization or customer. The business needs typically come from project investors, customers who purchase products, managers of actual users, marketing departments, or product planning departments. Business requirements describe why an organization wants to develop a system, i.e., the goal that the organization wants to achieve. At present, the business requirements need to carry out code development, compiling, testing and deployment on line on site.

Because code development, compiling, testing and deployment are required to be carried out on site, the period is too long, and the required business process cannot be rapidly configured for the user.

Disclosure of Invention

The application provides a configuration method of a business process and related equipment, wherein the business process corresponding to the business demand is generated by constructing a cloud interface corresponding to the business demand and a description corresponding to the cloud interface in advance and editing the cloud interface according to different editing modes, the business process required by a user is rapidly configured for the user, and the waiting time of the user is shortened.

A first aspect of the present application provides a method for configuring a business process, including:

acquiring a cloud interface required by a target service;

determining attribute information of the cloud interface, wherein the attribute information of the cloud interface comprises interface description of the cloud interface and logic description of data content corresponding to the cloud interface;

determining a target editing mode corresponding to the target service requirement;

and editing the cloud interface according to the target editing mode and the attribute information of the cloud interface to obtain a business process corresponding to the target business requirement.

Optionally, when the target editing mode is an editing mode corresponding to a flowchart, the editing the cloud interface according to the target editing mode and the attribute information of the cloud interface to obtain a service flow corresponding to the target service requirement includes:

determining a primitive module corresponding to the cloud interface according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

receiving a first operation instruction;

dragging and dropping a primitive module corresponding to the cloud interface to a process editing page according to the first operation instruction;

receiving a second operation instruction;

and according to the second operation instruction, connecting the primitive modules corresponding to the cloud interface according to a first preset rule to obtain a business process corresponding to the target business requirement.

Optionally, the first preset rule includes:

adding a conversion function between a first primitive module and a second primitive module, wherein the first primitive module and the second primitive module are primitive modules with an association relation in the primitive modules dragged and dropped to the process editing page, and the conversion function is used for converting output parameters of the first primitive module into input parameters of the second module, or the conversion function is used for converting output parameters of the second primitive module into output parameters of the first module.

Optionally, when the target editing mode is a state machine table editing mode, the editing the cloud interface according to the target editing mode and the attribute information of the cloud interface, and obtaining a service flow corresponding to the target service requirement includes:

determining an event set, an action set and a state set corresponding to the target business requirement according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

and associating the event in the event set, the action in the action set and the state in the state set according to a second preset rule to obtain a business process corresponding to the target business requirement.

Optionally, when the target editing mode is an editing mode corresponding to a user language, the editing the cloud interface according to the target editing mode and the attribute information of the cloud interface, and obtaining a service flow corresponding to the target service requirement includes:

determining a logic grammar rule of the target business requirement;

and performing service description on the cloud interface according to the logic grammar rule and the logic description of the data content corresponding to the cloud interface to obtain a service flow corresponding to the target service requirement.

Optionally, the method further comprises:

converting the business process corresponding to the target business requirement into a user language file;

and compiling and executing the user language file through a user language compiler so as to display the business process corresponding to the target business requirement.

A second aspect of the present application provides a configuration apparatus for a business process, including:

the acquisition unit is used for acquiring a cloud interface required by a target service;

the first determining unit is used for determining attribute information of the cloud interface, wherein the attribute information of the cloud interface comprises an interface description of the cloud interface and a logic description of data content corresponding to the cloud interface;

a second determining unit, configured to determine a target editing mode corresponding to the target service requirement;

and the editing unit is used for editing the cloud interface according to the target editing mode and the attribute information of the cloud interface to obtain a business process corresponding to the target business requirement.

Optionally, when the target editing mode is an editing mode corresponding to the flowchart, the editing unit is specifically configured to:

determining a primitive module corresponding to the cloud interface according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

receiving a first operation instruction;

dragging and dropping a primitive module corresponding to the cloud interface to a process editing page according to the first operation instruction;

receiving a second operation instruction;

and according to the second operation instruction, connecting the primitive modules corresponding to the cloud interface according to a first preset rule to obtain a business process corresponding to the target business requirement.

Optionally, the first preset rule includes:

adding a conversion function between a first primitive module and a second primitive module, wherein the first primitive module and the second primitive module are primitive modules with an association relation in the primitive modules dragged and dropped to the process editing page, and the conversion function is used for converting output parameters of the first primitive module into input parameters of the second module, or the conversion function is used for converting output parameters of the second primitive module into output parameters of the first module.

Optionally, when the target editing mode is a state machine table editing mode, the editing unit is specifically configured to:

determining an event set, an action set and a state set corresponding to the target business requirement according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

and associating the event in the event set, the action in the action set and the state in the state set according to a second preset rule to obtain a business process corresponding to the target business requirement.

Optionally, when the target editing mode is an editing mode corresponding to a user language, the editing unit is specifically configured to:

determining a logic grammar rule of the target business requirement;

and performing service description on the cloud interface according to the logic grammar rule and the logic description of the data content corresponding to the cloud interface to obtain a service flow corresponding to the target service requirement.

Optionally, the apparatus further comprises:

a presentation unit for:

converting the business process corresponding to the target business requirement into a user language file;

and compiling and executing the user language file through a user language compiler so as to display the business process corresponding to the target business requirement.

A third aspect of the present application provides a computer apparatus comprising at least one connected processor, a memory and a transceiver, wherein the memory is used for storing program codes, and the program codes are loaded and executed by the processor to implement the steps of the configuration method of the business process.

A fourth aspect of the present application provides a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform the steps of the above-described method for configuring a business process.

In summary, it can be seen that in the embodiment provided by the application, the cloud interface corresponding to the service requirement and the description corresponding to the cloud interface are constructed in advance, and the cloud interface is edited according to different editing modes to generate the service flow corresponding to the service requirement, so that the required service flow is rapidly configured for the user, and the waiting time of the user is reduced.

Drawings

Fig. 1 is a schematic flow chart of a configuration method of a business process according to an embodiment of the present application;

FIG. 2 is a diagram of a state machine table provided in an embodiment of the present application;

fig. 3 is a schematic view of a virtual structure of a configuration apparatus of a business process according to an embodiment of the present application;

fig. 4 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application;

fig. 5 is a schematic hardware structure diagram of a server according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.

The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprise," "include," and "have," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules expressly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus, the division of modules presented herein is merely a logical division that may be implemented in a practical application in a further manner, such that a plurality of modules may be combined or integrated into another system, or some feature vectors may be omitted, or not implemented, and such that couplings or direct couplings or communicative coupling between each other as shown or discussed may be through some interfaces, indirect couplings or communicative coupling between modules may be electrical or other similar, this application is not intended to be limiting. The modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present disclosure.

The method for configuring a business process according to the present invention is described below from the perspective of a business process configuration device, which may be a terminal, a server, or a service unit in a server, and is not particularly limited.

Referring to fig. 1, fig. 1 is a schematic flow chart of a configuration method of a business process according to an embodiment of the present application, including:

101. and acquiring a cloud interface of the target service requirement.

In this embodiment, when the user needs to configure the effect corresponding to the target service requirement, the configuration device of the service flow may first acquire the cloud interface of the target service requirement, that is, the cloud interface that needs to be used for the target service requirement, and only after the cloud interface that needs to be used is acquired, the cloud interface may be operated correspondingly.

102. Determining attribute information of cloud interface

In this embodiment, after obtaining the cloud interface of the target business requirement, the configuration device of the business process may determine attribute information of the cloud interface, where the attribute information of the cloud interface includes an interface description of the cloud interface and a logic description of data content corresponding to the cloud interface. The following describes an interface description of the cloud interface and a logic description of data content corresponding to the cloud interface:

1. interface description of a cloud interface;

the configuration device of the business process can form a standard model by modeling the cloud interface, and the model is used for describing the standard interface of the cloud interface. The establishment of the standard model is the process of describing information of the cloud interface of the target business requirement. The interface description information of the cloud interface mainly protected by the model comprises the following information: a function definition information table and a data table definition information table, wherein the function definition information table includes: function name, entry type (type list) of the function, return value type, and other description descriptions; the data table definition information table includes: table name and table field information list (including field name and field corresponding type).

2. Logic description of data content corresponding to the cloud interface;

the configuration device of the business process can provide the capability of cutting and converting the data content of the cloud interface defined by the model (the data content of the cloud interface is the back parameter and the parameter entering data content of the cloud interface) through the script capability of the javascript, and the capability of the script limits the processing of the entered parameters and then the output back parameter.

It should be noted that the interface here refers to the capability of one function, that is, one module, and different interfaces, and the operations executed by the interfaces are different, so that rich interfaces (that is, rich function modules and algorithm modules) can implement more business processes; the model defines the calling mode of the function, so that the configuration device of the business process can obtain the output of one interface, and the output of the interface is used as the input of the other interface for the next calculation.

103. And determining a target editing mode corresponding to the target service requirement.

In this embodiment, the configuration device of the business process may determine a target editing module corresponding to the target business requirement. The target editing mode includes, but is not limited to, an editing mode corresponding to a flowchart, an editing mode corresponding to a state machine table, and an editing mode corresponding to a user language.

It should be noted that, the attribute information of the cloud interface may be determined through steps 101 to 102, and the target editing mode corresponding to the target service requirement may be determined through step 103, however, there is no sequential limitation between steps 101 to 102 and step 103, and step 101 to step 102 may be executed first, or step 103 may be executed first, or executed simultaneously, which is not limited specifically.

104. And editing the cloud interface according to the target editing mode and the attribute information of the cloud interface to obtain a business process corresponding to the target business requirement.

In this embodiment, after the target editing mode is selected and the attribute information of the cloud interface is determined, the cloud interface can be edited according to the target editing mode and the attribute information of the cloud interface, so as to obtain a service flow corresponding to the target service requirement. The following explains the editing of the cloud interface by using the target editing mode as an editing mode corresponding to a flow chart, an editing mode corresponding to a state machine or an editing mode corresponding to a user language:

1. when the target editing mode is the editing mode corresponding to the flow chart, the configuration device of the business process edits the cloud interface according to the target editing mode and the attribute information of the cloud interface, and the business process corresponding to the target business requirement is obtained, wherein the business process comprises the following steps:

determining a primitive module corresponding to the cloud interface according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

receiving a first operation instruction;

dragging and dropping a primitive module corresponding to the cloud interface to a process editing page according to the first operation instruction;

receiving a second operation instruction;

and according to the second operation instruction, connecting the line of the primitive module corresponding to the cloud interface according to a first preset rule to obtain a business process corresponding to the target business requirement.

In this embodiment, the configuration device of the business process may determine the primitive modules of the cloud interface according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface, where the primitive modules include but are not limited to: the method comprises the following steps of starting a primitive, ending the primitive, executing a process primitive, judging a condition primitive, a link line, an external event primitive and a conversion function primitive; the primitive modules corresponding to the cloud interfaces can be added to the process editing page according to a first operation instruction of a user, and then the primitive modules corresponding to the cloud interfaces are connected according to a second operation instruction of the user and a first preset rule, so that a business process corresponding to a target business requirement is obtained. That is, the primitive module may be added to the corresponding model instance, where the content of the model instance is the attribute information of the cloud interface determined in step 102, to obtain how many functional services (cloud interfaces) are required by the target service, which inputs and outputs each service, and how many entries have input link points and one or no output link points, where the primitive module represents the functional services in the execution process; and then adding the graph element module to a process editing page, and connecting according to a first preset rule to obtain a business process corresponding to the target business requirement.

It should be noted that the first preset rule includes: and adding a conversion function between the first primitive module and the second primitive module, wherein the first primitive module and the second primitive module are primitive modules with an association relation in the primitive modules dragged and dropped to the process editing page, and the conversion function is used for converting the output parameters of the first primitive module into the input parameters of the second module, or the conversion function is used for converting the output parameters of the second primitive module into the output parameters of the first module. That is to say, two lines may be used to connect the output and input link points of two primitive modules having an association relationship, there is a direction (the output of one primitive module points to the input of the primitive module associated with the primitive module), the current primitive module cannot connect its own link point, in addition, in the process of connecting the primitive modules, when the output parameter needs to be processed before entering the input of the next primitive, a conversion function may be added on the connecting line, and the addition mode may be: adding a new transfer function or using an already stored transfer function.

It should be noted that, the conversion function is to convert data of a return value (output) of a cloud interface into reference data (input) that needs to be used by the cloud interface associated with the data, and common conversion functions include: type conversion and conforming structure conversion, wherein the type conversion comprises: int-string and string-int; the composite structure transformation includes conversion functions such as json structure-string and string-json structure.

In one embodiment, the operation of generating the first operation command includes at least one of a gesture operation, a sliding operation, a clicking operation and a voice control operation, for example, when a user performs the clicking operation, the configuration device of the business process may receive the clicking operation, and at this time, the clicking operation generates the first operation command, that is, the operation command may be defined in advance, for example, an operation of defining the sliding operation in advance as an operation of dragging and dropping the primitive module corresponding to the cloud interface onto the process editing page (e.g., a left sliding operation, a right sliding operation, a sliding up operation, a sliding down operation, and the like), an operation of defining the clicking operation as an operation of dragging and dropping the primitive module corresponding to the cloud interface onto the process editing page (e.g., a clicking operation or a double clicking operation, and the like), or an operation of defining the gesture operation as an operation of dragging and dropping the primitive module corresponding to the cloud interface onto the process editing page (e.g., swinging a wrist or an arm to the left, for example, the operation of swinging the wrist or arm to the right, such as a retracting operation of four fingers or a sliding operation of three fingers, etc.), or defining the voice control operation as an operation of dragging and dropping the primitive module corresponding to the cloud interface onto the process editing page (such as receiving a sound of dragging and dropping the primitive module corresponding to the cloud interface onto the process editing page), which is only an example and does not represent a limitation on the operation of generating the first operation instruction.

It should be noted that the operation of generating the second operation instruction is similar to the operation of generating the first operation instruction, and the above description has been given in detail, and details are not repeated here.

2. When the target editing mode is a state machine table editing mode, the configuration device of the business process edits the cloud interface according to the target editing mode and the attribute information of the cloud interface, and the business process corresponding to the target business requirement is obtained, wherein the business process comprises the following steps:

determining an event set, an action set and a state set corresponding to a target business requirement according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

and associating the event in the event set, the action in the action set and the state in the state set according to a second preset rule to obtain a business process corresponding to the target business requirement.

In this embodiment, the configuration device of the business process may first determine an event set, an action set, and a state set corresponding to the target business requirement, and then associate the event in the event set, the action in the action set, and the state in the state set according to a second preset rule to obtain the business process corresponding to the target business requirement. That is to say, after obtaining the event set, the action set, and the state set, the configuration device of the business process may accurately describe the behavior of the object by using the state machine according to a second preset rule, for example, the second preset rule is that starting from an initial state of the object corresponding to the target business requirement, a response event is started and some actions are executed, the events cause a state transition, and the object starts to respond to the event and execute the action again in a new state, so that the process continues until reaching a terminal state; when condition judgment (logic calculation, output is a pool value) exists in the state machine, if true logic calculation is executed, and if false logic calculation is executed; the state is the current state identification; the action is divided into true action and adding action, and is determined by the truth and false of the logic result of the condition judgment.

Referring to fig. 2, please refer to fig. 2, where fig. 2 is a state machine table corresponding to a target service requirement provided in the present embodiment, including 201 a name of a state machine, which may be set with a name of the state machine, a state, an event, and a condition 202 corresponding to the target service requirement, s1 a state description 203, and a return value 204, where s1 the state description 203 includes a true action, a false action, a secondary state corresponding to the true action, and a secondary state corresponding to the false action, and may add the event in an event set, the action in an action set, and the state in the state set to the state machine table according to a preset rule, so as to complete construction of a service flow of the target service requirement.

3. When the target editing mode is the editing mode corresponding to the user language, editing the cloud interface according to the target editing mode and the attribute information of the cloud interface, and obtaining a business process corresponding to the target business requirement, wherein the business process comprises the following steps:

determining a logic grammar rule of a target business requirement;

and performing service description on the cloud interface according to the logic grammar rule and the logic description of the data content corresponding to the cloud interface to obtain a service flow corresponding to the target service requirement.

In this embodiment, the user language refers to a logic grammar of a natural language-like language, and first determines a logic grammar rule of a target service requirement, that is: event, condition @ true result: false result! Or written in terms of technical terms, such as: what is done in the first step, what is done in the second part, what is done in the third part, and so on, and the process is finished directly. And then, performing service description on the cloud interface according to a logic syntax rule and logic description of data content corresponding to the cloud interface, editing the service logic of the cloud interface, for example, the cloud interface comprises 1, 2 and 3, editing the service logic of the 1, 2 and 3 cloud interfaces by using the logic syntax, executing the interface first, then executing the interface, and finally executing the interface, thereby finally obtaining a service flow corresponding to the target service requirement.

It should be noted that, the service flow is described by using the target editing mode as the editing mode corresponding to the flowchart, the editing mode corresponding to the state machine table, and the editing mode corresponding to the user language, and of course, other modes may also be adopted as long as the cloud interface can be edited according to the flow according to the attribute information of the cloud interface, and specific limitations are not particularly limited.

It should be further noted that after the business process corresponding to the target business requirement is obtained, the business process corresponding to the target business requirement may be displayed. Specifically, the service flow corresponding to the target service requirement can be converted into a user language file, and then the user language file is compiled and executed through a preset user language compiler, so as to achieve the purpose of displaying the service flow corresponding to the target service requirement.

In summary, it can be seen that in the embodiment provided by the application, the cloud interface corresponding to the service requirement and the description corresponding to the cloud interface are constructed in advance, the cloud interface is edited according to different editing modes, the service flow corresponding to the service requirement is generated, the service flow is displayed, the service flow required by the user is rapidly configured for the user, and the waiting time of the user is reduced.

The present application is described above from the perspective of a method for configuring a business process, and the present application is described below from the perspective of a device for configuring a business process.

Referring to fig. 3, fig. 3 is a schematic view of a virtual structure of a configuration device of a business process according to an embodiment of the present application, where the configuration device of the business process includes:

an obtaining unit 301, configured to obtain a cloud interface of a target service requirement;

a first determining unit 302, configured to determine attribute information of the cloud interface, where the attribute information of the cloud interface includes an interface description of the cloud interface and a logic description of data content corresponding to the cloud interface;

a second determining unit 303, configured to determine a target editing mode corresponding to the target service requirement;

the editing unit 304 is configured to edit the cloud interface according to the target editing mode and the attribute information of the cloud interface, so as to obtain a service flow corresponding to the target service requirement.

Optionally, when the target editing mode is an editing mode corresponding to the flowchart, the editing unit 304 is specifically configured to:

determining a primitive module corresponding to the cloud interface according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

receiving a first operation instruction;

dragging and dropping a primitive module corresponding to the cloud interface to a process editing page according to the first operation instruction;

receiving a second operation instruction;

and according to the second operation instruction, connecting the primitive modules corresponding to the cloud interface according to a first preset rule to obtain a business process corresponding to the target business requirement.

Optionally, the first preset rule includes:

adding a conversion function between a first primitive module and a second primitive module, wherein the first primitive module and the second primitive module are primitive modules with an association relation in the primitive modules dragged and dropped to the process editing page, and the conversion function is used for converting output parameters of the first primitive module into input parameters of the second module, or the conversion function is used for converting output parameters of the second primitive module into output parameters of the first module.

Optionally, when the target editing mode is a state machine table editing mode, the editing unit 304 is specifically configured to:

determining an event set, an action set and a state set corresponding to the target business requirement according to the interface description of the cloud interface and the logic description of the data content corresponding to the cloud interface;

and associating the event in the event set, the action in the action set and the state in the state set according to a second preset rule to obtain a business process corresponding to the target business requirement.

Optionally, when the target editing mode is an editing mode corresponding to a user language, the editing unit 304 is specifically configured to:

determining a logic grammar rule of the target business requirement;

and performing service description on the cloud interface according to the logic grammar rule and the logic description of the data content corresponding to the cloud interface to obtain a service flow corresponding to the target service requirement.

Optionally, the apparatus further comprises:

a presentation unit 305, the presentation unit 305 for:

converting the business process corresponding to the target business requirement into a user language file;

and compiling and executing the user language file through a user language compiler so as to display the business process corresponding to the target business requirement.

In summary, it can be seen that in the embodiment provided by the application, the cloud interface corresponding to the service requirement and the description corresponding to the cloud interface are constructed in advance, the cloud interface is edited according to different editing modes, the service flow corresponding to the service requirement is generated, the service flow is displayed, the service flow required by the user is rapidly configured for the user, and the waiting time of the user is reduced.

The embodiment of the present application further provides another configuration device for a business process, as shown in fig. 4, for convenience of description, only a part related to the embodiment of the present application is shown, and details of the specific technology are not disclosed, please refer to the method part in the embodiment of the present application. The configuration device of the business process may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the configuration device of the business process as the mobile phone as an example:

fig. 4 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 4, the handset includes: radio Frequency (RF) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (WiFi) module 470, processor 480, and power supply 490. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

The following describes each component of the mobile phone in detail with reference to fig. 4:

the RF circuit 410 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 480; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 410 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 410 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.

The memory 420 may be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 420. The memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

The input unit 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, also called a touch screen, may collect touch operations of a user on or near the touch panel 431 (e.g., operations of the user on or near the touch panel 431 using any suitable object or accessory such as a finger or a stylus) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 431 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 480, and receives and executes commands sent from the processor 480. In addition, the touch panel 431 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 430 may include other input devices 432 in addition to the touch panel 431. In particular, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

The display unit 440 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 440 may include a Display panel 441, and optionally, the Display panel 441 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation on or near the touch panel 431, the touch panel is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 provides a corresponding visual output on the display panel 441 according to the type of the touch event. Although the touch panel 431 and the display panel 441 are shown in fig. 4 as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 431 and the display panel 441 may be integrated to implement the input and output functions of the mobile phone.

The handset may also include at least one sensor 450, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 441 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 441 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.

Audio circuit 460, speaker 461, microphone 462 may provide an audio interface between the user and the cell phone. The audio circuit 460 may transmit the electrical signal converted from the received audio data to the speaker 461, and convert the electrical signal into a sound signal for output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is received by the audio circuit 460 and converted into audio data, which is then processed by the audio data output processor 480 and then transmitted to, for example, another cellular phone via the RF circuit 410, or output to the memory 420 for further processing.

WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 470, and provides wireless broadband Internet access for the user. Although fig. 4 shows the WiFi module 470, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.

The processor 480 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory 420, thereby integrally monitoring the mobile phone. Optionally, processor 480 may include one or more processing units; preferably, the processor 480 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 480.

The handset also includes a power supply 490 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 480 via a power management system, so that the power management system may perform functions such as managing charging, discharging, and power consumption.

Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.

In the embodiment of the present application, the processor 480 may also execute the operations performed by the configuration device of the business process.

Fig. 5 is a schematic diagram of a server structure provided by an embodiment of the present application, where the server 500 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 522 (e.g., one or more processors) and a memory 532, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 542 or data 544. Memory 532 and storage media 530 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 522 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the server 500.

The server 500 may also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input-output interfaces 558, and/or one or more operating systems 541, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.

The steps performed by the configuration means of the business process in the above embodiments may be based on the server architecture shown in fig. 5.

The embodiment of the present application further provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the program implements the steps of the configuration method of the business process.

The embodiment of the present application further provides a processor, where the processor is configured to execute a program, where the program executes the steps of the configuration method of the business process when running.

The embodiment of the present application further provides a terminal device, where the device includes a processor, a memory, and a program stored in the memory and capable of running on the processor, and the program code is loaded and executed by the processor to implement the steps of the configuration method of the business process.

The present application also provides a computer program product adapted to perform the steps of the above-described method of configuring a business process when executed on a data processing device.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the module described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.

Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种图形化3D相机管理系统及其工作方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!