A business process dynamic configuration method and device for smart factories
By configuring the business form address, node information and variables in the process configuration interface, binding the business process and decoupling the process platform, the problem that traditional process platforms cannot meet personalized needs is solved, creation efficiency is improved and data security is guaranteed.
Patent Information
- Application Number
- CN202510858001.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2045-06-25
AI Technical Summary
The form styles and display effects provided by traditional process platforms are single, unable to meet the personalized needs of different business systems in smart factories, and the efficiency of business process creation is low.
Directly configure the business form address, node configuration information and variables in the process configuration interface, bind the business process, and decouple the process platform from the business system through mapping rules to ensure business data security.
It improves the efficiency of business process creation, reduces development costs, and isolates business data from the process platform through decoupling, ensuring the security of business data.
Smart Images

Figure CN120387796B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information-based intelligent manufacturing technology, and in particular to a method and device for dynamically configuring business processes for smart factories. Background Art
[0002] In the field of intelligent manufacturing, efficient configuration and execution of business processes are key to achieving flexible production in smart factories. Traditional process platforms typically provide unified form design, process templates, and process definition capabilities to achieve unified process management and monitoring. Process platforms offer a comprehensive suite of unified form design, process templates, process definition, process authorization, and statistical analysis to enable unified process management, monitoring, and analysis. When creating a business process, users create a form and configure the process on the process platform based on business data and logic.
[0003] Currently, the process of creating a business process typically involves requiring users to create a business process form within the platform. While the platform provides standardized form styles, their presentation is limited, unable to meet the personalized form requirements of different business systems within smart factories, and creation efficiency is low. Summary of the Invention
[0004] The present application provides a method and device for dynamically configuring business processes for smart factories to improve the efficiency of creating business processes.
[0005] In a first aspect, an embodiment of the present application provides a method for dynamically configuring business processes for a smart factory, the method comprising:
[0006] In response to a process establishment operation triggered by the first user, displaying a process configuration interface;
[0007] Receive the business form address, node configuration information and variables through the process configuration interface;
[0008] Configure the business process according to the business form address, the node configuration information and the variables;
[0009] The business process is published.
[0010] Since the embodiment of the present application directly configures the business form address, node configuration information and variables of the business process in the process configuration interface, it saves process integration time and is simple to operate, thereby improving the efficiency of business process creation.
[0011] An optional implementation manner is that configuring the business process according to the business form address, the node configuration information and the variable includes:
[0012] Binding the business form address to the business process;
[0013] Configuring the process nodes of the business process according to the node configuration information and the variables;
[0014] The execution logic of the process node is set according to the variables to obtain a configured business process.
[0015] Because the embodiment of this application directly binds the business form address to the business process, the process platform retrieves the business form based on the business form address when starting the business process, saving process integration time, thereby reducing development costs and improving the efficiency of business process creation. Furthermore, mapping rules are established between variables and form parameters in the business form, allowing the process platform to subsequently directly obtain the business data of the form parameters, decoupling the business system from the process platform, achieving the separation of business data from business processes, and ensuring the security of business data.
[0016] In an optional implementation manner, the method further comprises:
[0017] In response to a start operation of the business process by a second user, determining whether a business form address configured for the business process is an address of a business form in a business system;
[0018] If so, establishing a communication connection with the business system;
[0019] If not, the business process is rejected and an exception message is sent to the business system.
[0020] When initiating a business process, the embodiment of the present application needs to determine whether the process matches a business form in the business system and whether there is a problem with the business process. Furthermore, if it is determined to be a form in the business system, a communication connection is established between the process platform and the business system to enable data exchange between the process platform and the business system during subsequent execution of the business process.
[0021] In an optional implementation manner, establishing a communication connection with the business system includes:
[0022] Sending a message communication mechanism file to the business system so that the business system configures a message communication mechanism according to the message communication mechanism file;
[0023] Receive a response message sent by the business system, determine that the business system has received the message communication mechanism file, and establish a communication connection with the business system.
[0024] Since the embodiment of the present application sends a message communication mechanism file to the business system, the business system configures a message communication mechanism for the business form to implement message monitoring and sending.
[0025] In an optional implementation manner, after establishing a communication connection with the business system, the method further includes:
[0026] Sending a process start instruction to the business system and receiving business data returned by the business system according to the mapping rule;
[0027] According to the business form address, obtaining form data of the business form from the business system;
[0028] An approval interface for the business process is displayed based on the business data and the form data.
[0029] In the above implementation, during the execution of the business process, the business system sends business data to the process platform through mapping rules, decoupling the business data and business operations of the business system from the process platform, thereby isolating the business data of the process platform and the business system, and ensuring the security of the business data.
[0030] In an optional implementation manner, the method further comprises:
[0031] In response to a node task processing operation triggered by the second user on the approval interface, sending a node task triggering instruction to the business system so that the business system saves business data of the current node of the business process;
[0032] Receive the business data required for the node task sent by the business system, and process the node task according to the business data required for the node task.
[0033] In the above implementation, the business data involved in the node task processing of the business process and the operations on the business data are all executed by the business system, achieving the purpose of isolating the business data from the process platform and ensuring the security of the business data.
[0034] In an optional implementation manner, the method further comprises:
[0035] After the node task processing is completed, determining whether the business process has been completed;
[0036] If so, the business process ends; otherwise, the business process flows to the next node.
[0037] In a second aspect, an embodiment of the present application provides a business process dynamic configuration device for a smart factory, comprising:
[0038] A display unit, configured to display a process configuration interface in response to a process establishment operation triggered by a first user;
[0039] A communication unit, configured to receive a business form address, node configuration information, and variables through the process configuration interface;
[0040] A configuration unit, configured to configure a business process according to the business form address, the node configuration information and the variables;
[0041] The publishing unit is used to publish the business process.
[0042] The technical effects brought about by the business process dynamic configuration device for smart factories provided in the second aspect can be referred to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A schematic diagram of an application scenario of a method for dynamically configuring business processes for smart factories provided in an embodiment of the present application;
[0045] Figure 2 A flowchart of a method for dynamically configuring business processes for smart factories provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of a process establishment interface provided in an embodiment of the present application;
[0047] Figure 4 A schematic diagram of a process configuration interface provided in an embodiment of the present application;
[0048] Figure 5 A flow chart of a method for establishing a communication connection provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of an approval interface provided in an embodiment of the present application;
[0050] Figure 7 A business process flow diagram provided in an embodiment of the present application;
[0051] Figure 8 A schematic diagram of a notification interface provided in an embodiment of the present application;
[0052] Figure 9 A flowchart of a specific use case for establishing a business process provided in an embodiment of the present application;
[0053] Figure 10 A complete flowchart of a method for dynamically configuring business processes for smart factories provided in an embodiment of the present application;
[0054] Figure 11 A schematic diagram of the structure of a business process dynamic configuration device for smart factories provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] To make the objectives, technical solutions, and advantages of this application more clear, this application will be further described in detail below with reference to the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this application, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of this application without making any creative efforts are within the scope of protection of this application.
[0056] The word “exemplary” is used hereinafter to mean “serving as an example, example, or illustration.” Any embodiment described as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0057] The terms "first" and "second" are used for descriptive purposes only and should not be construed as explicitly or implicitly indicating relative importance or the number of the technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0058] Currently, the business process creation process is often: creating a business process form based on the form style provided by the process platform. However, the form style and display effect provided by the process platform are single, which cannot meet the diversity of user business systems and has low creation efficiency.
[0059] To address the above issues, embodiments of the present application provide a method and apparatus for dynamically configuring business processes for smart factories, which are used to improve process creation efficiency. The business process establishment is applied to a process platform, and the method includes: displaying a process configuration interface in response to a process establishment operation triggered by a first user; receiving a business form address, node configuration information, and variables through the process configuration interface; configuring the business process based on the business form address, node configuration information, and variables, and publishing the business process.
[0060] Figure 1 The following is a schematic diagram showing an application scenario of the method for dynamically configuring business processes for smart factories provided by an embodiment of the present application. Figure 1As shown, the application scenario includes a process platform 10 , a user's terminal device 20 and a business system 30 .
[0061] Figure 1 In the example, the terminal device 20 is a computer, and the business system 30 is a server. In this example, a user can trigger a business process creation operation through the terminal device 20. In response to the user-triggered business process creation operation, the process platform 10 displays a process configuration interface on the terminal device 20. In this interface, the user configures the business process's node configuration information, business form address, and variables.
[0062] The business form address is the address of the business form in the business system. The process platform 10 receives the business form address, node configuration information and variables through the process configuration interface, and configures the business process based on the business form address, node configuration information and variables.
[0063] After the configuration is completed, the process platform 10 publishes the configured business process. In addition, the user can also create a new business form in the business system 30 through the terminal device 20.
[0064] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of this application are not limited thereto. Figure 1 The functions that can be implemented by each device in the application scenario shown will be described in subsequent method embodiments and will not be described in detail here.
[0065] To further illustrate the technical solutions provided by the embodiments of the present application, the following is a detailed description of the technical solutions in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of the present application provide the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative work. In steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiments of the present application.
[0066] The following combination Figure 1 The application scenario shown illustrates the technical solution provided by the embodiment of this application.
[0067] like Figure 2 As shown, the embodiment of the present application provides a flowchart of a method for dynamically configuring a business process for a smart factory, including the following steps:
[0068] S201: In response to a process establishment operation triggered by a first user, a process configuration interface is displayed.
[0069] In some embodiments, the first user can trigger a process creation operation on the process platform, causing the process platform to display a process configuration interface. For example, the first user can trigger a process creation operation on the process creation interface of the process platform. The first user can be a process creator, an IT staff member, or other personnel, without limitation.
[0070] For example, Figure 3 As shown, the first user can click the "Process Establishment" button in the process establishment interface to trigger the process establishment operation. In response to the process establishment operation triggered by the first user, the process platform displays Figure 4 The process configuration interface shown.
[0071] S202: Receive the business form address, node configuration information and variables through the process configuration interface.
[0072] For example, the business form address is a browser-accessible form address path provided by the business system. Node configuration information includes, but is not limited to: the current node name, approver, and node executor.
[0073] In some embodiments, the business system can provide the process platform with existing business forms. If the business system doesn't have a business form corresponding to the business process, the business system can create a new business form in response to a user-triggered form creation operation. For example, the business system can allow users to modify existing business forms using a form engine to create new ones. The business system can also allow users to independently develop new business forms using the form engine. This way, the business system centrally manages business forms and business data, ensuring the security of business data.
[0074] The first user can input the business form address, node configuration information and variables in the process configuration interface. The process platform receives the business form address, node configuration information and variables configured by the first user for the business process through the process configuration interface.
[0075] The first user can configure the corresponding node configuration information for the business system nodes based on the business logic executed by the nodes in the business process. The first user can create variables in the process platform based on business needs to interact with business forms. For example, if the business need is to apply for travel expenses, the first user can create an amount variable.
[0076] The first user can also select the variable corresponding to the process node of the business process in the process configuration interface and write the node execution logic. For example, the first user can configure the branch condition judgment logic of the branch gateway for the variable. For example, after selecting the variable amount, the first user can write the script logic: when amount>1000, the process engine flows to node 1; when amount≤1000, the process engine flows to node 2.
[0077] The first user can also enter the business form address in the process configuration interface, where the business form address entered by the user must be followed by the parameter id, that is, the specific configuration of the business form address is business form path url?id={pk}, and the pk placeholder is the primary key value for storing the form data in the business form.
[0078] After the first user enters the business form address, node configuration information and variables in the process configuration interface, he can trigger operations such as save and complete to enable the process platform to receive the business form address, node configuration information and variables through the process configuration interface.
[0079] For example, Figure 4 As shown, the first user can enter node configuration information in the process configuration area of the process configuration interface, such as the current node name, business form URL, approver, etc. The first user can also create variables in the variable configuration area.
[0080] S203: Configure the business process according to the business form address, node configuration information and variables.
[0081] After receiving the business form address, node configuration information and variables, the process platform binds the business form address to the business process.
[0082] Exemplarily, the process platform may bind the business form address path?id={pk} input by the first user to the business process; wherein id is a form parameter, and pk is a placeholder for storing the form primary key of the business form in the business system.
[0083] The process platform can also configure the process nodes of the business process according to the node configuration information and variables, and establish mapping rules for form parameters in the business form corresponding to the variables and the business form addresses.
[0084] Since the process platform and the business system are separated, the process platform cannot directly obtain and call the form parameter fields in the business form when establishing a business process. Therefore, the process platform can synchronize and use the business data corresponding to the form parameter fields by establishing mapping rules for the form parameters in the business form corresponding to the variables and the business form address, thereby decoupling the business system from the process platform, realizing the separation of business data and business processes, and ensuring the security of business data.
[0085] In a specific example, after the process platform establishes mapping rules between variables and form parameters in the business system, the business system then passes business data to the process platform based on the mapping rules. For example, when the form parameter is a JSON object, the parameter to be passed is a params key-value pair {…, params:{amountParam:amount}}; where amountParam is the mapped field variable (i.e., a variable in the process platform), and amount is the form parameter.
[0086] For example, the process platform includes a process platform variable system, which can be used to establish mapping rules between variables and form parameters. Once the mapping rules are established, the business system can transmit the business data required by the business process instead of all form data according to the mapping rules, thereby reducing data leakage in the business system. During the execution of the business process, the information transmission format between the process platform and the business system is a key-value pair format.
[0087] In some embodiments, the process platform can also create a variable management module to maintain and use variables. The variable maintenance fields include but are not limited to: variable type, variable name, variable identifier, data type, default value, and variable description.
[0088] After establishing the mapping rules, the process platform can set the execution logic of the process nodes according to the variables to obtain the configured business process.
[0089] S204: Publish the business process.
[0090] After configuring a business process, the process platform can also authorize and publish the business process, limiting the personnel who can execute the business process. For example, the process platform can authorize users of the business system to use the established business process.
[0091] Since the embodiment of the present application directly configures the business form address, node configuration information and variables of the business process in the process configuration interface, process integration time is saved, thereby improving the efficiency of business process creation.
[0092] In some embodiments, after the process platform publishes the business process, the second user can start the business process on the process platform. For example, the second user can be an IT staff member or other staff member.
[0093] In response to the second user's initiation of the business process, the process platform determines whether the business form configured for the business process is the address of a business form in the business system. If the process platform determines that the business form is a form in the business system, that is, that the business form is an external form, a communication connection is established with the business system. If the process platform determines that the business form is not an external form, the process platform refuses to execute the business process and sends an exception message to the business system, notifying the business system of the process anomaly.
[0094] like Figure 5 As shown, the embodiment of the present application provides a method for establishing a communication connection, comprising the following steps:
[0095] S501: The process platform determines whether the business form address is the address of the business form in the business system; if not, execute step S502; if so, execute step S503.
[0096] S502: The process platform refuses to execute the business process and sends an exception message to the business system.
[0097] S503: The process platform sends a message communication mechanism file to the business system, so that the business system configures the message communication mechanism according to the message communication mechanism file. The message communication mechanism file can be referred to as a js file. The js file defines the invock method defined in the business form, and the business system method with the same name can be called according to the message type.
[0098] In some embodiments, before executing step S503, the process platform may also initialize parameters. These initialization parameters include, but are not limited to, setting a timeout flag (outTimeFlag), a business system feedback message flag (isTest), and adding a message listener (addEventListener method). The addEventListener method is used to listen for messages from the business system.
[0099] While executing step S503, the process platform can also set up an N-second business system feedback mechanism and an M-second timeout mechanism. The value of N is less than the value of M. The process platform sets up the business system feedback mechanism and timeout mechanism to monitor whether the business system has been silent for an extended period of time without sending business data after the communication connection is established.
[0100] After receiving the js file, the business system configures a message communication mechanism for the business form. The message communication mechanism provides event listening and message sending functions for the business form, namely methods such as addListener("message") and sendMessage.
[0101] Among them, the addListener("message") method is responsible for listening to the message information sent by the process platform and performing corresponding business logic operations according to the message information type, such as saving data or updating data; addListener("message") stipulates that after receiving the message, a fixed message "test" must be returned first to notify the process platform that the message has been received, ensuring that the business system introduces a message communication mechanism.
[0102] The sendMessage method is responsible for sending various messages to the parent system. For example, after executing a node task in a process node or operating on business data in a business form, the business system needs to send certain specified form parameter values to the process platform to provide business data for business process variables. The parent system refers to the process platform, and the child system refers to the business system.
[0103] After the business form introduces a message communication mechanism, users can write business logic and data operations for the business form based on business requirements. They can also bind existing business logic to the business form by sending messages via the process platform. The binding process refers to the process of synchronizing the message name and the execution method name.
[0104] S504: The process platform determines whether a response message sent by the business system is received within N seconds; if so, execute step S505; if not, execute step S506.
[0105] The response message is a fixed message "test" that is returned by the business form in the business system after receiving the message.
[0106] S505: The process platform determines that the business system has received the message communication mechanism file and establishes a communication connection with the business system.
[0107] After receiving the response message returned by the business system, the process platform sets isTest to true to confirm that the business system has successfully introduced the message communication mechanism file, can carry out process communication normally, and establish a communication connection with the business system.
[0108] S506: The process platform determines that the business system fails to introduce the message communication mechanism file, closes the communication, and notifies the business system to perform a test.
[0109] In some examples, if the process platform does not receive a response message returned by the business system within N seconds after sending the message communication mechanism file, it executes a reject operation, closes the communication, and notifies the business system to perform debugging and testing.
[0110] After establishing a communication connection with the business system, the process platform can send a process start instruction to the business system. Based on the received process start instruction, the business system returns the business data to the process platform according to the mapping rules.
[0111] In some embodiments, for confidential information, the business system can encrypt the field contents of form parameters to obtain business data. The business system transmits the encrypted business data to the process platform. The process platform decrypts the data according to the encryption rules before use. Furthermore, depending on the encryption method, the process platform can perform partial secondary development of the code to meet the data security requirements of the business system.
[0112] The process platform can also obtain the form data of the business form from the business system according to the business form address. In another scenario, the process platform can also obtain the form data when determining that the business form address is the address of the form in the business system.
[0113] After obtaining the business data and form data, the process platform can display the approval interface of the business process based on the business data and form data.
[0114] In some embodiments, after obtaining business data, the process platform assigns values to variables according to mapping rules. For example, the process platform obtains the value of the form parameter sum from the business data according to the mapping rules and assigns it to the variable amount. The process platform then executes based on the value of amount.
[0115] In addition, when the first user sets the process node approver by creating a variable, the business system must use the approver's account information as the form parameter value to pass, otherwise the business process execution will fail because the process platform cannot obtain the approver's user information.
[0116] The process platform can use the HTML tag iframe to present the approval interface. Specifically, the approval interface can be presented in the following ways:
[0117] The process platform allows you to set the basic style, auxiliary information, and iframe tag for the approval interface. The parameters set in the iframe tag are the primary key ID and the src attribute. The primary key ID ensures the uniqueness of elements in the approval interface and facilitates tag manipulation. The src attribute is used to set the business form address and is required. If the src attribute is not set, the business form in the approval interface will fail to load.
[0118] In order to make the business form highly adaptable to the approval interface, the process platform can expand and supplement the display effect of the iframe tag through the vue.directive custom instruction iframeTrigger, make the business form adaptively displayed, and set up a high-level message monitoring mechanism.
[0119] After the business system determines the page height of the business form, it sends the page height value to the process platform as form data. After the process platform's monitoring mechanism listens for and receives the message, it obtains the page height value from the form data. The process platform resets the height of the iframe tag based on the obtained page height value.
[0120] For example, the process platform can adjust the height of the iframe tag through the following custom code:
[0121] bind: function(el, binding, vnode) {
[0122] … …
[0123] window.addEventListener('message', function(e) {
[0124] if (e.data & e.data.constructor == Object & e.data.type == 'height'){
[0125] frm.style.visibility = 'hidden'
[0126] frm.setAttribute('height', 'auto') / / Restore height in advance
[0127] setTimeout(function() {
[0128] frm.setAttribute('height', e.data.height)
[0129] frm.style.visibility = 'visible'
[0130] $(frm).trigger('mouseover')
[0131] }, 0)
[0132] }
[0133] })
[0134] }.
[0135] After adjusting the height of the iframe tag in the approval interface, the process platform replaces the primary key value of the primary key id in the iframe tag based on the business data and form data, and displays the approval interface based on the basic style of the approval interface, auxiliary information, and the adjusted iframe tag. For example, {pk} in the business form will be replaced with the corresponding business primary key value. When the process platform generates the approval interface, it will obtain the pk value from the form data and display the business form and other detail pages based on the pk value. Furthermore, when executing node tasks later, form data can be queried based on the pk value, and data updates can be performed based on the pk value.
[0136] For example, Figure 6 As shown, the embodiment of the present application provides a schematic diagram of an approval interface. Figure 6 As shown in the figure, the approval interface includes a business form and a button area. The buttons in the button area are the node tasks of the current node. When the process platform displays the approval interface, it replaces {pk} in the business form with the corresponding business primary key value, such as Figure 6 The form fields are shown.
[0137] After the process platform displays the approval interface, the second user can trigger the node task processing operation in the approval interface. In response to the node task processing operation triggered by the second user, the process platform sends a node task trigger instruction to the business system.
[0138] After receiving the node task trigger instruction, the business system saves the business data of the current node of the business process and performs the corresponding business operation according to the node task trigger instruction.
[0139] After receiving the node task trigger instruction, the business system also needs to send the business data required for the node task to the process platform.
[0140] For example, users can Figure 6 Fill in the form fields in the approval interface shown and click "Submit" to trigger the node task processing operation. The process platform sends the node task trigger instruction to the business system. This instruction contains a message event with the event type "save". After saving the business data for the current node, the business system executes the business operation and sends the business data required for the node task to the process platform. This business data includes information such as the business primary key, business system code, and form parameters.
[0141] The process platform receives the business data required for the node task sent by the business system, and processes the node task according to the business data required by the node task.
[0142] In some embodiments, after sending a node task trigger instruction to a business system, the process platform determines, based on an M-second timeout mechanism, whether the business system has timed out from sending the business data required for the node task. If the timeout has not occurred, the process platform performs a business operation based on the business data required by the node task to process the node task. If the timeout has occurred, the process platform sets the outTimeFlag to true to not execute the business operation and executes a reject operation to discontinue further execution of the business process.
[0143] After the node task processing is completed, the process platform determines whether the business process has been executed; if so, the business process is ended; if not, the business process is transferred to the next node.
[0144] In some embodiments, after the process platform transfers the business process to the next node, it notifies the approver of the next node that there is a process task to be processed. After receiving the pending process task, the approver of the next node can start the business process and execute the node task.
[0145] For example, Figure 7 As shown, the process platform transfers the business process from node 1 to the next node, node 2, and notifies the approver of node 2 that there is a process task to be processed. Figure 8 As shown, the process platform can display a notification interface to the approver of node 2, informing the approver of node 2 that there is a process task to be processed. The approver can click the "Process Now" button to start the business process and process the node task of node 2.
[0146] like Figure 9 As shown, the embodiment of the present application provides a specific use case for establishing a business process. The use case includes the following steps:
[0147] S901: The process platform displays a process configuration interface in response to a process establishment operation triggered by a first user.
[0148] The first user can enter the business form address, node configuration information and variables in the process configuration interface.
[0149] S902: The process platform receives the business form address, node configuration information and variables through the process configuration interface.
[0150] The business form address is the address of the business form in the business system.
[0151] S903: The process platform configures the business process according to the business form address, node configuration information and variables.
[0152] In some embodiments, the process platform can configure the business process in the following ways:
[0153] Bind the business form address to the business process;
[0154] Configure the process nodes of the business process according to the node configuration information and variables;
[0155] Establish mapping rules between variables and form parameters in the business form corresponding to the business form address;
[0156] Set the execution logic of the process node according to the variables to obtain the configured business process.
[0157] S904: The process platform publishes and authorizes the business process.
[0158] S905: In response to the second user's start operation on the business process, the process platform determines that the business form address configured for the business process is the address of the business form in the business system.
[0159] S906: The process platform sends a message communication mechanism file to the business system.
[0160] S907: After receiving the message communication mechanism file, the business system returns a response message to the process platform.
[0161] S908: The business system configures a message communication mechanism for the business form according to the received message communication mechanism file.
[0162] S909: The business system binds the business logic operation according to the message type.
[0163] S910: After receiving the response message, the process platform determines that the business system has received the message communication mechanism file and establishes a communication connection with the business system.
[0164] S911: The process platform sends a process start instruction to the business system.
[0165] S912: The business system sends business data to the process platform according to the received process start instruction and mapping rules.
[0166] Among them, after receiving the process start instruction, the business system also needs to return a response message to the process platform to inform the process platform that the instruction has been received.
[0167] S913: The process platform obtains the form data of the business form from the business system according to the business form address.
[0168] S914: The process platform displays the approval interface based on business data and form data.
[0169] S915: The process platform sends a node task triggering instruction to the business system in response to the node task processing operation triggered by the second user in the approval interface.
[0170] S916: The business system saves the business data of the current node of the business flow according to the received node task trigger instruction.
[0171] After receiving the node task trigger instruction, the business system will also return a response message to the process platform.
[0172] S917: The business system sends the business data required for the node task to the process platform.
[0173] S918: The process platform processes the node task according to the business data required by the received node task.
[0174] S919: After the process platform completes the node task processing and determines that the business process is completed, it ends the business process.
[0175] based on Figure 9 As shown in the content, the business system and the process platform are decoupled, and the business data in the business system is separated from the process platform, thereby ensuring the security of the business data.
[0176] like Figure 10 As shown, the embodiment of the present application provides a complete flow diagram of a method for dynamically configuring a business process for a smart factory, including the following steps:
[0177] S1001: In response to a process establishment operation triggered by a first user, a process configuration interface is displayed.
[0178] S1002: Receive the business form address, node configuration information and variables through the process configuration interface.
[0179] S1003: Bind the business form address to the business process.
[0180] S1004: Configure the process nodes of the business process according to the node configuration information and variables.
[0181] S1005: Establish a mapping relationship between the variable and the form parameter in the business form corresponding to the business form address.
[0182] S1006: The execution logic of the process node is set according to the variables to obtain the configured business process.
[0183] S1007: In response to the second user's start operation on the business process, determine whether the business form address configured for the business process is the business form address in the business system; if so, execute step S1008; if not, execute step S1018.
[0184] S1008: Send the message communication mechanism file to the business system, so that the business system configures the message communication mechanism according to the message communication mechanism file.
[0185] S1009: Receive a response message sent by the business system, determine that the business system has received the message communication mechanism file, and establish a communication connection with the business system.
[0186] S1010: Send a process start instruction to the business system, and receive business data returned by the business system according to the mapping rules.
[0187] S1011: Acquire form data of the business form from the business system according to the business form address.
[0188] S1012: Displaying the approval interface of the business process based on the business data and form data.
[0189] S1013: In response to the node task processing operation triggered by the second user in the approval interface, a node task triggering instruction is sent to the business system, so that the business system saves the business data of the current node of the business process.
[0190] S1014: Receive the business data required for the node task sent by the business system, and process the node task according to the business data required for the node task.
[0191] S1015: After the node task processing is completed, determine whether the business process is completed; if so, execute step S1016; if not, execute step S1017.
[0192] S1016: End the business process.
[0193] S1017: Transfer the business process to the next node. Then execute step S1007.
[0194] S1018: Refuse to execute the business process.
[0195] S1019: Send exception information to the business system.
[0196] based on Figure 10 As shown in the following example, binding the business form address to the business process during the creation process can save process integration time and simplify operations, thereby improving the efficiency of business process creation. Furthermore, the process platform and business system are decoupled, isolating business data from the process platform and ensuring the security of business data.
[0197] Based on the same inventive concept, an embodiment of the present application also provides a dynamic configuration device for business processes for smart factories. Since the principle of solving the problem by the device is similar to the dynamic configuration method for business processes for smart factories in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0198] like Figure 11As shown, the embodiment of the present application provides a business process dynamic configuration device for a smart factory, which is applied to a process platform, including:
[0199] The display unit 1101 is configured to display a process configuration interface in response to a process establishment operation triggered by a first user;
[0200] Configuration unit 1102, configured to receive a business form address, node configuration information, and variables through the process configuration interface; and configure a business process according to the business form address, the node configuration information, and the variables;
[0201] The publishing unit 1103 is used to publish the business process.
[0202] In an optional implementation manner, the configuration unit 1102 is specifically configured to:
[0203] Binding the business form address to the business process;
[0204] Configuring the process nodes of the business process according to the node configuration information and the variables;
[0205] Establishing a mapping rule between the variable and the form parameter in the business form corresponding to the business form address;
[0206] The execution logic of the process node is set according to the variables to obtain a configured business process.
[0207] In an optional implementation, the apparatus further includes a communication unit 1104; the communication unit 1104 is specifically configured to:
[0208] In response to a start operation of the business process by a second user, determining whether a business form address configured for the business process is an address of a business form in a business system;
[0209] If so, establishing a communication connection with the business system;
[0210] If not, the business process is rejected and an exception message is sent to the business system.
[0211] In an optional implementation, the communication unit 1104 is specifically configured to:
[0212] Sending a message communication mechanism file to the business system so that the business system configures a message communication mechanism according to the message communication mechanism file;
[0213] Receive a response message sent by the business system, determine that the business system has received the message communication mechanism file, and establish a communication connection with the business system.
[0214] In an optional implementation, after establishing a communication connection with the business system, the communication unit 1104 is further configured to:
[0215] Sending a process start instruction to the business system and receiving the business data returned by the business system according to the mapping rule; obtaining the form data of the business form from the business system according to the business form address;
[0216] The display unit 1101 is further configured to:
[0217] An approval interface for the business process is displayed based on the business data and the form data.
[0218] In an optional implementation manner, the communication unit 1104 is further configured to:
[0219] In response to a node task processing operation triggered by the second user on the approval interface, sending a node task triggering instruction to the business system so that the business system saves business data of the current node of the business process;
[0220] Receive the business data required for the node task sent by the business system, and process the node task according to the business data required for the node task.
[0221] In an optional implementation manner, the communication unit 1104 is further configured to:
[0222] After the node task processing is completed, determining whether the business process has been completed;
[0223] If so, the business process ends; otherwise, the business process flows to the next node.
[0224] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0225] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0226] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0227] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0228] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A business process dynamic configuration method for smart factories, characterized in that: Applied to process platforms, including: In response to a process establishment operation triggered by the first user, displaying a process configuration interface; Receive the business form address, node configuration information and variables through the process configuration interface; Configure the business process according to the business form address, the node configuration information and the variables; Publishing the business process; Configuring the business process according to the business form address, the node configuration information, and the variables includes: binding the business form address to the business process; configuring the process nodes of the business process according to the node configuration information and the variables; establishing a mapping rule between the variables and the form parameters in the business form corresponding to the business form address; and setting the execution logic of the process nodes according to the variables to obtain a configured business process. The method further includes: in response to a second user's start operation on the business process, determining whether a business form address configured for the business process is an address of a business form in a business system; if so, establishing a communication connection with the business system; if not, refusing to execute the business process and sending an exception message to the business system; The establishing of a communication connection with the business system includes: sending a message communication mechanism file to the business system so that the business system configures a message communication mechanism according to the message communication mechanism file; receiving a response message sent by the business system, determining that the business system has received the message communication mechanism file, and establishing a communication connection with the business system; After establishing a communication connection with the business system, the method further includes: sending a process start instruction to the business system and receiving business data returned by the business system according to the mapping rule; obtaining the form data of the business form from the business system according to the business form address; and displaying the approval interface of the business process based on the business data and the form data.
2. The method according to claim 1, characterized in that The method further comprises: In response to a node task processing operation triggered by the second user on the approval interface, sending a node task triggering instruction to the business system so that the business system saves business data of the current node of the business process; Receive the business data required for the node task sent by the business system, and process the node task according to the business data required for the node task.
3. The method according to claim 2, characterized in that The method further comprises: After the node task processing is completed, determining whether the business process has been completed; If so, the business process ends; otherwise, the business process flows to the next node.
4. A business process dynamic configuration device for smart factories, characterized in that: Applied to process platforms, including: A display unit, configured to display a process configuration interface in response to a process establishment operation triggered by a first user; a communication unit configured to receive a business form address, node configuration information, and variables through the process configuration interface; to send a message communication mechanism file to the business system so that the business system configures the message communication mechanism according to the message communication mechanism file; to receive a response message sent by the business system, determine that the business system has received the message communication mechanism file, and establish a communication connection with the business system; a configuration unit configured to configure a business process based on the business form address, the node configuration information, and the variable; establish a mapping rule between the variable and the form parameter in the business form corresponding to the business form address; bind the business form address to the business process; configure a process node of the business process based on the node configuration information and the variable; establish a mapping rule between the variable and the form parameter in the business form corresponding to the business form address; set the execution logic of the process node based on the variable to obtain a configured business process; in response to a second user's start operation on the business process, determine whether the business form address configured for the business process is the address of the business form in the business system; if so, establish a communication connection with the business system; if not, refuse to execute the business process and send an exception message to the business system; A publishing unit is used to publish the business process based on the mapping rules, send a process start instruction to the business system, and receive the business data returned by the business system according to the mapping rules; obtain the form data of the business form from the business system according to the business form address; and display the approval interface of the business process based on the business data and the form data.
Citation Information
Patent Citations
ERP system
CN110428217A