CN120610689B - A business process construction method, system, electronic device and storage medium - Google Patents
A business process construction method, system, electronic device and storage mediumInfo
- Publication number
- CN120610689B CN120610689B CN202511123136.6A CN202511123136A CN120610689B CN 120610689 B CN120610689 B CN 120610689B CN 202511123136 A CN202511123136 A CN 202511123136A CN 120610689 B CN120610689 B CN 120610689B
- Authority
- CN
- China
- Prior art keywords
- flow
- business
- business process
- instance
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The application discloses a construction method, a construction system, electronic equipment and a storage medium of a business process, and belongs to the technical field of software development technology. The business process construction method comprises the steps of defining a business process instance, generating a process model corresponding to the business process instance, releasing the process model to a business process engine so as to store process definition information in the process model to a business process template configuration table, storing definition information of the business process instance to the business process template configuration table, packaging business logic codes of the business process instance, transmitting the packaged codes to a shape parameter analysis module, inquiring the business process template configuration table by the shape parameter analysis module based on a process type attribute column to obtain a data set, storing business related field values in the data set to a target object, and constructing the business process instance by using the target object. The application can improve the construction efficiency of the business process instance.
Description
Technical Field
The present application relates to the field of software development technologies, and in particular, to a method and a system for constructing a business process, an electronic device, and a storage medium.
Background
In the business systems such as planning of the internet of things and automatic office, a plurality of processes and scenes of approval links are involved, so that corresponding business processes are required to be constructed in the business systems. At present, the customization degree of the business processes is high, the modification is complex, the research and development period is long, and the cross-system adaptability is poor only for a single business scene, so that the quick response to market change and business requirements is difficult.
Therefore, how to improve the construction efficiency of the business process instance is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a construction method, a system, electronic equipment and a storage medium of a business process, which can improve the construction efficiency of business process examples.
In order to solve the technical problems, the application provides a construction method of a business process, comprising the following steps:
defining a business process instance, and generating a process model corresponding to the business process instance;
releasing the flow model to a business flow engine so as to store flow definition information in the flow model to a business flow template configuration table;
Storing definition information of the business process instance to the business process template configuration table;
packaging the business logic codes of the business process instance, and transmitting the packaged codes to a shape parameter analysis module;
inquiring the service flow template configuration table based on a flow type attribute column by utilizing the shape parameter analysis module to obtain a data set;
And storing the service related field values in the data set to a target object, and constructing the service flow instance by utilizing the target object.
Optionally, the defining the business process instance includes:
receiving a flow creation instruction input by a user, and generating flow classification information and flow basic information according to the flow creation instruction;
defining the business process instance by using the process classification information and the process basic information;
the flow classification information comprises any one or a combination of a plurality of classification names, classification states, classification marks and classification orders, and the flow basic information comprises any one or a combination of a plurality of flow names, identifiers, flow classifications, flow versions and flow description information.
Optionally, generating a flow model corresponding to the business flow instance includes:
Generating model information, flow structure information and flow logic information according to the input of a user, wherein the model information comprises a flow model identifier, a flow model name and flow model description information, the flow structure information is used for describing the number and the type of flow nodes, and the flow logic information is used for describing circulation paths and task allocation rules among the flow nodes;
and generating the flow model corresponding to the business flow instance based on the model information, the flow structure information and the flow logic information.
Optionally, before storing the definition information of the service flow instance in the service flow template configuration table, the method further includes:
Creating the service flow template configuration table in a relational database, and defining a table structure of the service flow template configuration table;
the fields of the service flow template configuration table comprise any one or a combination of any two of a main key identifier, a flow type, an entity type field name, a sequence, an analysis type, a value-taking mode and a state value.
Optionally, the query based on the flow type attribute column is performed on the service flow template configuration table by using the shape parameter analysis module to obtain a data set, including:
inquiring the service flow template configuration table based on a flow type attribute column by utilizing the shape parameter analysis module to obtain a first data set;
and inquiring the service flow template configuration table based on the flow type attribute column and the analysis type attribute column by utilizing the shape parameter analysis module to obtain a second data set.
Optionally, the target object includes a flow variable object and an auditor mapping object;
correspondingly, storing the service related field value in the data set to a target object, including:
traversing the first data set to obtain the analysis type and the value mode of each field;
if the analysis type is the first type, executing corresponding service related field value storage operation according to the value-taking mode;
if the analysis type is the second type, storing a file list in the first data set to the process variable object;
if the analysis type is the third type, storing a flow identifier in the first data set to the flow variable object;
and if the analysis type is the fourth type, storing the values of the plurality of candidate lists of the approvers in the first data set to the mapping object of the auditors.
Optionally, constructing the business process instance by using the target object includes:
writing mapping information in the auditor mapping object into a process instance creation request object;
storing interval rule field values in the second dataset to the flow variable object;
and based on the flow instance creation request object and the flow variable object, calling a flow engine interface to construct the business flow instance.
The application also provides a system for constructing the business process, which comprises:
a model generation module for defining a business process instance, generating a flow model corresponding to the business flow instance;
the model release module is used for releasing the flow model to a business flow engine so as to store flow definition information in the flow model to a business flow template configuration table;
The information storage module is used for storing the definition information of the service flow instance to the service flow template configuration table;
the packaging module is used for packaging the business logic codes of the business process instance and transmitting the packaged codes to the shape parameter analysis module;
the data set construction module is used for inquiring the service flow template configuration table based on the flow type attribute column by utilizing the shape parameter analysis module to obtain a data set;
and the instance creation module is used for storing the service related field values in the data set to a target object and constructing the service flow instance by utilizing the target object.
The application also provides a storage medium, on which a computer program is stored, which when executed implements the steps of the construction method of the business process.
The application also provides an electronic device, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps executed by the construction method of the business process when calling the computer program in the memory.
The application provides a construction method of a business process, which defines a business process instance and generates a corresponding process model, the process model is issued to a business process engine, and then process definition information is stored in a business process template configuration table, so that necessary metadata is provided for creation and management of the business process instance. The application encapsulates the business logic codes of the business process instance, transmits the encapsulated codes to the shape parameter analysis module, and queries the business flow template configuration table by utilizing the shape parameter analysis module based on the process type attribute column to obtain a data set so as to provide necessary data support for the construction of the process instance. The application also stores the service related field value in the data set to a target object, and constructs a service flow instance by using the target object. The process realizes the rapid construction of the business process instance, and improves the response speed and flexibility of the business process, thereby improving the construction efficiency of the business process instance. The application also provides a construction system of the business process, a storage medium and an electronic device, which have the beneficial effects and are not repeated here.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a method for constructing a business process according to an embodiment of the present application;
Fig. 2 is a flowchart of a low-code service flow construction method according to an embodiment of the present application;
Fig. 3 is a schematic diagram of multi-policy parameter analysis according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a flowchart of a method for constructing a business process according to an embodiment of the present application, and specific steps may include the following steps.
S101, defining a business process instance and generating a process model corresponding to the business process instance.
The embodiment can be applied to an electronic device with a data processing function. The business process construction method of the embodiment can be realized based on the taro open source framework, and is suitable for scenes such as a logistics network which need efficient process customization.
The process for defining the business process instance comprises the steps of receiving a process creation instruction input by a user, generating process classification information and process basic information according to the process creation instruction, and defining the business process instance by utilizing the process classification information and the process basic information. The flow classification information comprises any one or a combination of a plurality of classification names, classification states, classification marks and classification orders, and the flow basic information comprises any one or a combination of a plurality of flow names, identifiers, flow classifications, flow versions and flow description information.
After defining the business process instance, the present embodiment may generate a process model corresponding to the business process instance, that is, a flowchart including nodes, circulation rules and paths is designed according to the business requirements. This flow model defines the key nodes of the flow and provides a framework for automated flow execution.
The process for generating the flow model corresponding to the business flow instance comprises generating model information, flow structure information and flow logic information according to user input, and generating the flow model corresponding to the business flow instance based on the model information, the flow structure information and the flow logic information. The model information comprises a flow model identifier, a flow model name and flow model description information, wherein the flow structure information is used for describing the number and the type of flow nodes, and the flow logic information is used for describing circulation paths and task allocation rules among the flow nodes.
S102, releasing the flow model to a business flow engine so as to store flow definition information in the flow model to a business flow template configuration table;
The generated flow model may be issued to the business flow engine in this step, so that flow definition information (including flow nodes, circulation rules, etc.) is loaded into the engine to be executable. After the process model is published to the business process engine, process definition information is stored to a business flow template configuration table (also known as a business flow template configuration table). The business flow template configuration table is used as a part of the database to store metadata of the flow, so that the creation, management and tracking of subsequent flow instances are facilitated. The above-described process may ensure that the process is identifiable and executable by the system while facilitating version control and history querying of the process.
S103, packaging the business logic codes of the business process instance, and transmitting the packaged codes to a shape parameter analysis module;
Before this step, the service logic code input by the user may be obtained, and in this embodiment, the service logic code may be packaged, and the packaged code may be transmitted to the shape parameter analysis module. The parameter analysis module is used for analyzing and executing the packaged codes to respond to specific events or conditions in the flow. By the method, the business logic and the flow control logic can be separated, and maintainability of codes and flexibility of flows are improved. In addition, the encapsulation ensures the safety and independence of the business logic, is convenient for management and updating, and simultaneously enables the flow instance to dynamically adapt to the change of business requirements.
S104, inquiring the service flow template configuration table based on a flow type attribute column by utilizing the shape parameter analysis module to obtain a data set;
The packaged code provides business logic required by the execution flow for the shape parameter analysis module, and the shape parameter analysis module can inquire a flow type attribute column in a business flow template configuration table according to instructions or conditions in the packaged code, so that a set of inquiry results is used as a data set. By the method, the process instance can access the correct configuration data, so that the process instance can be correctly executed according to the established business rules and process logic.
S105, storing the service related field values in the data set to a target object, and constructing the service flow instance by using the target object.
In this embodiment, the service related field value in the data set is stored in the target object, so that the data directly related to the service flow in the query result can be extracted and organized into a structured target object. The target object contains information required by the process instance, so that the business process instance can be constructed by using the target object. After the business process instance is obtained, the business process instance can be passed as input to a process engine to initiate and execute the process. The process ensures that the process instance can accurately reflect the service requirement, simplifies the creation and management of the process instance, and improves the automation and flexibility of the service process.
The embodiment defines a business process instance and generates a corresponding process model, the process model is issued to a business process engine, and further, process definition information is stored in a business process template configuration table, so that necessary metadata is provided for creation and management of the business process instance. In the embodiment, the service logic codes of the service flow instance are packaged, the packaged codes are transmitted to the shape parameter analysis module, and the shape parameter analysis module is utilized to query the service flow template configuration table based on the flow type attribute column to obtain a data set, so that necessary data support is provided for the construction of the flow instance. The embodiment also stores the service related field value in the data set to a target object, and constructs a service flow instance by using the target object. The process realizes the rapid construction of the business process instance, and improves the response speed and flexibility of the business process, thereby improving the construction efficiency of the business process instance.
As a further introduction to the corresponding embodiment of FIG. 1, before storing the definition information of the service flow instance in the service flow template configuration table, the service flow template configuration table may be created in a relational database, and the table structure of the service flow template configuration table may be defined, where fields of the service flow template configuration table include any one or a combination of any one or more of a primary key identifier, a flow type, an entity field name, a sorting, an analysis type, a value-taking manner, and a state value.
The relational database can be an open-source relational database management system MySQL, an open-source object relational database PostgreSQL, and the like.
As a further introduction to the corresponding embodiment of FIG. 1, the process of querying the service flow template configuration table based on the flow type attribute column by using the shape parameter analysis module to obtain a data set includes querying the service flow template configuration table based on the flow type attribute column by using the shape parameter analysis module to obtain a first data set, and querying the service flow template configuration table based on the flow type attribute column and the analysis type attribute column by using the shape parameter analysis module to obtain a second data set.
The flow type attribute column is used for identifying the type or the type of the flow, and the analysis type attribute column is used for specifying the processing mode of a specific field or task in the flow.
Further, the target object may include a flow variable object and an auditor mapping object;
Correspondingly, the embodiment can store the service related field values in the first data set and the second data set to the target object by traversing the first data set to obtain the analysis type and the value mode of each field. The parsing type generally refers to the action or processing mode of a field in a business flow, and the value mode defines the data format or source of the field value. The method comprises the steps of executing corresponding business related field value storage operation according to a value-taking mode if the analysis type is a first type, storing a file list in a first data set into a flow variable object if the analysis type is a second type, storing a flow identifier in the first data set into the flow variable object if the analysis type is a third type, and storing values of a plurality of approver candidate lists in the first data set into an auditor mapping object if the analysis type is a fourth type.
Further, after storing the information in the first dataset to a flow variable object and a reviewer mapping object, the business process instance may also be constructed by writing the mapping information in the reviewer mapping object to a flow instance creation request object, storing the interval rule field value in the second dataset to the flow variable object, and calling a flow engine interface to construct the business process instance based on the flow instance creation request object and the flow variable object. The process instance creation request object is used for packaging data objects of all parameters and configuration information required for creating the process instance, and the process variable object is used for storing variable data which is required to be used or modified in the process of executing the process.
After the business process is established, if there is a problem in the use process of the user, the user needs to feed back to the staff to adjust, the process is longer, the feedback period is slow, and the efficiency is low and the user satisfaction is reduced. In order to solve the problem, the embodiment has the processing mode in this aspect, specifically, the behavior data of the user in the business process is collected, the normal behavior (such as approval, modification, stay and the like) and the abnormal behavior (such as repeated submission, wrong operation, process interruption and the like) of the user in the process are identified according to the behavior data, the process nodes related to the abnormal behavior are marked as nodes to be modified, the reasons for causing the abnormal behavior are identified by analyzing the user interaction data of the nodes, and the business process is adjusted according to the reasons.
The flow described in the above embodiment is explained below by way of an embodiment in practical application.
In a traditional internet of things system, the customization degree of a business process is high, so that a modification process is complex, a research and development period is long, and 30 to 35 working days are usually required. Most of the mainstream methods in the current market are only suitable for single service scenes, cross-system adaptability is lacked, and system migration cost is more than 40%. In addition, these systems are also overly dependent on front-end and back-end developers, resulting in high maintenance costs, up to 65% of the manpower cost.
Aiming at the technical problems in the related art, the embodiment provides a low-code-oriented intelligent construction method for a business process, which can provide an efficient and convenient business process customization scheme for scenes involving a plurality of processes and approval links in a business system. The scheme is realized in a collocation mode, so that the maintenance cost is reduced, the development difficulty and the research and development cost can be obviously reduced, and the implementation process of the project is accelerated.
The embodiment provides a mixed form architecture, integrates the flow control capability of the flow form and the data linkage characteristic of the service form, and can realize short-term flow online. The embodiment can support various analysis types (such as direct fetching, transcoding, files and approvers), adapt more than 85% of business scenes, and can realize multi-strategy parameter analysis. The extensible event mechanism of the embodiment provides a multi-class standard event interface and supports seamless integration of a third party system.
In addition, the automation and standardization of the business flow (i.e. business flow) not only improves the traceability and controllability of the flow, but also enhances the management and supervision capability of the team on each project link. However, the conventional service flow has the problems of complicated development process, large code change amount and excessive dependence on front-end developers for maintenance and testing in practical application, so that the rapid construction of a new service flow faces difficulties. Therefore, the embodiment can rapidly develop the business process by improving the method, thereby remarkably saving the time of developing and testing personnel and improving the development efficiency. Meanwhile, the embodiment also has the advantages of convenience, strong packaging property, good integrity and the like.
The embodiment provides an improved low-code business flow construction scheme based on a taro path open source framework, the scheme combines advantages and disadvantages of a flow form and a business form, and combines the improvement of practical business demands to quickly construct a business flow method set, wherein the method set comprises a plurality of data items, data attributes, data types, code value meanings and the like.
The scheme is realized based on a service flow configuration module, a data storage module and a method embedding and calling module, please refer to fig. 2, fig. 2 is a flow chart of a low-code service flow construction method provided by an embodiment of the application. In the service configuration module, an administrator defines a flow for the flow model, and the flow model is defined after being released (deployed), so that a flow instance is created. In the data storage module, the present embodiment may store the configuration of the flow instance to the servers, and load balancing may be performed between the servers. After the flow instance is called to the system platform of the Internet of things, short message notification can be performed.
The service configuration module can realize deep flow control, approval automation, quick construction, data linkage, multi-scenario applicability, low code development and the like through the configuration of the service.
The embodiment utilizes a visual flow designer based on considering the advantages and disadvantages of a flow form and a business form in a taro path open source architecture, wherein the designer supports the BPMN (Business Process Modeling Notation, business flow modeling label) 2.0 standard and comprises five basic nodes, namely a start node, a user task, a gateway node, a service task and an end node. On the basis, a basic table of the traffic flow template configuration (i.e. a traffic flow template configuration table) is introduced. The configuration combines the characteristics of deep flow control, approval automation, data linkage of the business form and the like of the flow form, and realizes the advantages of low code configuration, visual management, easy expansibility and the like. In addition, the embodiment also supports interaction with hardware such as a mobile phone and the like, and ensures that a flow loop can timely inform related personnel. Therefore, the embodiment is suitable for various software environments needing to add business processes.
Defining a business process is a visual process management process based on a workflow engine of a lightweight open source business process, and mainly involves the following steps A1, A2 and A3.
And step A1, newly creating a service flow.
An administrator creates a new business process instance in the system and generally comprises the following operations that (1) a user sets process classification information, including classification names, classification states, classification marks and classification orders, and (2) the user sets a process form, wherein the user sets process basic information, including metadata, such as process names, identifier keys, process classifications (such as equipment authorizations and terminal communication), process versions, process description information and the like, by taking business scenes such as equipment authorization approval and terminal communication approval as an example.
And step A2, designing a flow model.
The user setting process in the step comprises the steps of creating a process model identifier, a process model name and a process model description. The user design flow in the step comprises the step of redesigning the flow after the user newly builds the flow. The key nodes mainly comprise a starting node, a user task, a gateway, a service task and an ending node, wherein the starting node is used for starting a flow and is usually automatically triggered, (2) the user task is an approval node, such as department manager approval, the task allocation rule can be configured, such as a designated role and a dynamically selected approval person, the gateway is used for realizing the exclusive gateway of conditional branches and a parallel gateway supporting multi-branch parallel approval, and the ending node is used for ending the flow and triggering callback.
In this embodiment, a flow circulation rule and a connection line may be set so as to define a circulation path between nodes. The task allocation rules described above may set up a fixed approver to directly specify the user or role.
By the method, the flow model corresponding to the business flow instance can be generated.
And step A3, a release process.
The user release flow is that after the flow design is finished, the flow model is designed and needs to be released to the Flowable engine to generate an executable flow.
After the flow is released, id (primary key identification) and key (key) values of processDefinition (flow definition information) acquired according to the design flow model of step A2 are stored in a traffic flow template configuration basic table (i.e., a traffic flow template configuration table). The key value of processDefinition is written into the type attribute column, the name attribute column and the j_value (java entity class field name) are written into the id of processDefinition, and the id value of processDefinition is written into the key attribute column.
And (3) according to the newly created process of the step A1, obtaining field values field and title values title of fields, storing the field values field and the title values title into a service flow template configuration basic table, writing a name attribute column into the title values of the obtained fields, writing a key attribute column into the field values of the obtained fields, and writing a type attribute column into the key values of processDefinition obtained by the design process model of the step A2.
Judging whether the rule type of the approver is 'sponsor self-selection', if yes, acquiring the id value of the approver according to the design flow model in the step A2, writing a type attribute column into a key value processDefinition acquired by the design flow model in the step A2, wherein name attribute column data can be customized, writing a key attribute column into the key value of the approver acquired according to the design flow model in the step A2, and writing a value_type attribute column into 4, otherwise, no operation is needed.
Through the operation, the flow model can be issued to a business flow engine so as to store the flow definition information in the flow model into a business flow template configuration table.
The data storage module is configured to enable the main parameter information of the traffic flow method to be stored permanently, so as to prevent risk of data loss after the system is down, and taking a change of an equipment authorization requirement as an example, in this embodiment, the data storage medium may be a Mysql database. Through the operation, the definition information of the business flow instance can be stored into the business flow template configuration table.
The Mysql database defines the table structure of the traffic flow template configuration base table, and the data attribute configuration contains id (primary key identifier, denoted as large integer type), type (flow type, denoted as variable character type), flow type (varchar), name (meaning, denoted as variable character type), j_key (key value, denoted as variable character type), j_value (java entity class field name, denoted as variable character type), sort (order, denoted as large integer type), analysis_type (resolution type, denoted as large integer type), value_type (value mode, 0 denotes direct fetch, 1 denotes transcoding), status_value (status value), deleted (whether deleted, denoted as large integer type), java denotes the programming language of the door facing object.
After the business logic codes are written, the method embedding and calling module can package the business logic, package the information to be processed into the shape parameters, and transmit the values to the key shape parameter method control module. By the method, the business logic codes of the business process instance can be packaged, and the packaged codes are transmitted to the shape parameter analysis module.
The parameter values of the parameter method control module method are as follows, userId represents a user identifier for initiating a flow, processKey represents a flow definition key for identifying a type of the flow to be started, obj represents a business object associated with a flow instance, fileList represents a flow attachment file list containing file data transmission objects, startUserSelectLists is a variable parameter, and represents a selected approver user id (possibly multiple) when the flow is started.
The key shape parameter method control module includes the processing procedures of inquiring a basic table of a business flow template configuration to obtain a data set A (namely a first data set), inquiring a basic table of a business flow template configuration to obtain a data set B (namely a second data set) of a business flow template configuration to obtain a value of a analysis type attribute column=5, defining a temporary key value to a data structure variables (a flow variable object), defining a temporary key value to a data structure startUserMaps (a auditor mapping object), creating a flow instance BpmProcessInstanceCreateReqDTO processInstanceCreateReqDTO = new BpmProcessInstanceCreateReqDTO (), defining a temporary array object interval (the length is the number of the data set B), bpmProcessInstanceCreateReqDTO representing a business flow instance creation request data transmission object, processInstanceCreateReqDTO representing a flow instance creation request data transmission object, and new BpmProcessInstanceCreateReqDTO () representing a new business flow instance creation request data transmission object instance. The shape parameter analysis module queries the business flow template configuration basic table based on the flow type attribute column in the mode to obtain a data set.
The java entity is represented when the analysis type is 1, the value is represented when the analysis type is 2, the key is represented when the analysis type is 3, the user-defined auditor is represented when the analysis type is 4, and the interval is represented when the analysis type is 5.
Traversing the data set A, carrying out different processes according to analysis type analysis_type, judging that different analysis type analysis_type uses different strategy logic, and entering an execution code body if the analysis type is equal to 1 (namely, the analysis type is the first type) so as to execute corresponding service related field value storage operation according to the value-taking mode.
When value_type= 0 (i.e., the value mode is the first mode), a field value corresponding to a value name (service object field value) is extracted from obj using reflection based on formula 1, and is stored in the temporary key value data structure variables.
Please see formula 1: equation 1 describes a function f that accepts an object obj and a value name vn as parameters, returns v if there is a field f whose name (f) is equal to vn and whose value (f) is equal to v in all fields of the object obj, otherwise returns null.
F (obj, vn) denotes that the function f acts on the object obj and the value name vn, v denotes the value to be looked up or returned, if denotes a conditional statement, x denotes a variable; representing presence, fields (obj) representing fields of object obj, such that representing a statement for a pull-out condition, name (f) representing a name of field f, vn representing a value name, and value (f) representing a value of field f; Representing a string of null characters and null representing a null value.
When value_type= 1 (i.e. the value mode is the second mode), then the field value is extracted from obj based on equation 2, the value conversion operation is performed, and the result of the value conversion is stored. Please see formula 2:;
trantValue (str, value) indicates that function trantValue receives string str and value as parameters; representing a value returned when a matching key-value pair is found; representing a key after string parsing And corresponding valueI is more than or equal to 1 and less than or equal to n, and the pair (Str) represents a key value pair set after the analysis of the string Str. Equation 2 describes a search and conversion process, i.e. searching for a key value pair with a key equal to the function parameter value in the key value pair set obtained by parsing the string str, if found, returning a corresponding value, otherwise returning a null value.
Where pair (str) is the set of key-value Pairs after parsing the regular string.
。
The analysis process is as follows: split represents segmentation, str represents a string, Representing the index, the colon represents the split key.
When analysis_type= 2 (i.e., the analysis type is the second type), fileList values are directly stored in variables.
When analysis_type= 3 (i.e., the analysis type is the third type), the set flow definition processKey value is stored variables.
When analysis_type= 4 (i.e. the analysis type is the fourth type), the value of the traverse variable length parameter startUserSelectLists (a plurality of candidate lists of the approvers) is stored in startUserMaps, and the j_keys of the current model are matched in sequence. The index candidate List (List < Long >) is stored startUserMaps and the Key is j_key. For each model with analysis_type=4, index is incremented, ensuring that the subsequent model matches the next candidate list. List < Long > represents a List of generic classes.
By the method, the service related field values in the data set can be stored to the target object, and the service flow instance is constructed by using the target object.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating multi-policy parameter analysis according to an embodiment of the application. After the traversal is started, the analysis type analysis_type is determined. If the value of analysis type_type is 1 (i.e., type is 1), it is determined whether the value-taking mode value_type is 0, if so, the value is converted and the result is stored, and if not, the value is directly taken and the result is stored. If the value of analysis type_type is 2 (i.e., type is 2), file processing is performed and the result is stored. If the value of analysis type_type is 3 (i.e., type is 3), the flow definition is performed and the result is stored. If the value of analysis type_type is 4 (i.e., type is 4), then the approver mapping is performed and the result is stored. The results may be returned after they are stored.
ProcessInstanceCreateReqDTO.setStartUserSelectAssignies (startUserMaps); processInstanceCreateReqDTO represents a flow instance creation request object, setStartUserSelectAssignees represents a set-up start user selection assignment, startUserMaps represents an auditor mapping object.
The interval data extraction process is that extracting a field value corresponding to the j_value from intervalProcessModelDOS (interval flow model data object storage), storing the field value into an array interval, realizing a rule reference formula 1, storing the interval data into variables for mapping, and setting the key as the last j_key. And writing the temporary variables for storing data into a process instance creation request data transmission object setting variable (STP) method, wherein the process instance creation is used for setting a service key and a variable, and calling an API (application programming interface) to create a process instance.
In the process of business flow approval, three aspects of business flow configuration, data storage, method embedding and calling are mainly involved. Firstly, because the service flow of the traditional internet of things system has high customization degree, complicated modification and high development period and cost, the existing service flow method on the market is usually aimed at a certain single service system scene and cannot be adapted to other scenes. In this embodiment, the requirements of various customized service scenarios can be responded quickly in a configurable manner. Secondly, with the increasing demand of modern enterprises for high expansibility, high maintainability and reliability, low-code and code-free development is an innovative method which is emerging in recent years, mainly facing the developer, and the business process and application can be quickly constructed by simple modes such as dragging, configuration and the like. Finally, the developer develops the application through the graphical interface, configuration and a small amount of code, and rapidly builds a prototype or business process automation. By automated integration and delivery processes, teams can ensure quality, reusability, and efficiency of development, reducing repetitive labor for developers.
The embodiment provides an improved low-code business flow construction method and device based on a taro frame, and aims to solve the problems of time consumption and low efficiency of research and development caused by advantages and disadvantages of a flow form and a business form in the taro frame. Improving the efficiency and quality of the developer. Because different business processes have a certain similarity, the method can provide a general and basic low-code solution for the construction of related business processes, can improve the development efficiency to a certain extent, reduce the repeated labor of developers and ensure the development quality, reusability and high efficiency.
The rapid construction method for the service flow can accurately generate the structured data required by the service flow, thereby greatly saving the time required by research personnel and testing personnel, improving the development efficiency, and realizing remarkable technical improvement through the following innovative design. The present embodiment provides a hybrid form architecture. The advantages of the flow form and the service form are integrated, the traditional development period is shortened from 2 persons to 1 person (reduced by 50%), and 3-day-level flow is supported. The embodiment uses multi-strategy parameter analysis, adapts to more than 85% of service scenes, reduces the workload of parameter configuration by 60%, and improves the development efficiency. The embodiment integrates the multi-channel notification, namely, the standardized interface design shortens the access time of the third party system from 3 days to 4 hours, and can enhance the expansibility of the system. In the embodiment, technicians can complete process modification and low-code development through the graphical interface, the maintenance labor cost is reduced by 50%, the visual process modeling is realized, and the maintenance cost is reduced. The embodiment provides a dynamic value conversion rule, can support field value mapping under complex service scenes, reduces the cross-system adaptation cost by 70%, and improves service suitability.
The mixed form architecture provided by the embodiment integrates the advantages of the flow form and the service form, realizes the deep coupling of flow control and data management, and is different from the traditional single form architecture. The multi-strategy parameter analysis of the embodiment supports 4 analysis types and dynamic value conversion rules, solves the difficult problem of parameter adaptation in complex service scenes, and remarkably improves the flexibility of the system. The transaction compensation mechanism provided by the embodiment guarantees the atomicity of flow execution through the predefined compensation logic, avoids the problem of inconsistent data, and enhances the reliability of the system. The embodiment provides multi-channel notification integration, namely a standardized notification interface design is provided, a third party system is supported to be quickly accessed, and a complete service closed loop is formed.
The embodiment of the application also provides a system for constructing the business process, which can comprise:
a model generation module for defining a business process instance, generating a flow model corresponding to the business flow instance;
the model release module is used for releasing the flow model to a business flow engine so as to store flow definition information in the flow model to a business flow template configuration table;
The information storage module is used for storing the definition information of the service flow instance to the service flow template configuration table;
the packaging module is used for packaging the business logic codes of the business process instance and transmitting the packaged codes to the shape parameter analysis module;
the data set construction module is used for inquiring the service flow template configuration table based on the flow type attribute column by utilizing the shape parameter analysis module to obtain a data set;
and the instance creation module is used for storing the service related field values in the data set to a target object and constructing the service flow instance by utilizing the target object.
The embodiment defines a business process instance and generates a corresponding process model, the process model is issued to a business process engine, and further, process definition information is stored in a business process template configuration table, so that necessary metadata is provided for creation and management of the business process instance. In the embodiment, the service logic codes of the service flow instance are packaged, the packaged codes are transmitted to the shape parameter analysis module, and the shape parameter analysis module is utilized to query the service flow template configuration table based on the flow type attribute column to obtain a data set, so that necessary data support is provided for the construction of the flow instance. The embodiment also stores the service related field value in the data set to a target object, and constructs a service flow instance by using the target object. The process realizes the rapid construction of the business process instance, and improves the response speed and flexibility of the business process, thereby improving the construction efficiency of the business process instance.
Further, the process of defining the business process instance by the model generation module comprises the steps of receiving a process creation instruction input by a user, and generating process classification information and process basic information according to the process creation instruction;
the flow classification information comprises any one or a combination of a plurality of classification names, classification states, classification marks and classification orders, and the flow basic information comprises any one or a combination of a plurality of flow names, identifiers, flow classifications, flow versions and flow description information.
Further, the process of generating the flow model corresponding to the business flow instance by the model generation module comprises generating model information, flow structure information and flow logic information according to input of a user, wherein the model information comprises a flow model identifier, a flow model name and flow model description information, the flow structure information is used for describing the number and the type of flow nodes, the flow logic information is used for describing circulation paths and task allocation rules among the flow nodes, and the flow model corresponding to the business flow instance is generated based on the model information, the flow structure information and the flow logic information.
Further, the method further comprises the following steps:
The configuration table creating module is used for creating the service flow template configuration table in the relational database before the definition information of the service flow instance is stored in the service flow template configuration table, and defining the table structure of the service flow template configuration table;
the fields of the service flow template configuration table comprise any one or a combination of any two of a main key identifier, a flow type, an entity type field name, a sequence, an analysis type, a value-taking mode and a state value.
Further, the process of inquiring the service flow template configuration table based on the flow type attribute column by the data set constructing module through the shape parameter analyzing module comprises the steps of inquiring the service flow template configuration table based on the flow type attribute column through the shape parameter analyzing module to obtain a first data set, and inquiring the service flow template configuration table based on the flow type attribute column and the analysis type attribute column through the shape parameter analyzing module to obtain a second data set.
Further, the target object comprises a flow variable object and an auditor mapping object;
Correspondingly, the process of storing the service related field values in the data set to the target object by the instance creation module comprises traversing the first data set to obtain the analysis type and the value mode of each field; the method comprises the steps of executing corresponding business related field value storage operation according to a value-taking mode if the analysis type is a first type, storing a file list in a first data set into a flow variable object if the analysis type is a second type, storing a flow identifier in the first data set into the flow variable object if the analysis type is a third type, and storing values of a plurality of approver candidate lists in the first data set into an auditor mapping object if the analysis type is a fourth type.
Further, the process of constructing the business process instance by the instance creation module through the target object comprises the steps of writing mapping information in the auditor mapping object into a process instance creation request object, storing interval rule field values in the second data set into the process variable object, and calling a process engine interface to construct the business process instance based on the process instance creation request object and the process variable object.
Since the embodiments of the system portion and the embodiments of the method portion correspond to each other, the embodiments of the system portion refer to the description of the embodiments of the method portion, which is not repeated herein.
The present application also provides a storage medium having stored thereon a computer program which, when executed, performs the steps provided by the above embodiments. The storage medium may include a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc. various media capable of storing program codes.
The application also provides an electronic device, which can comprise a memory and a processor, wherein the memory stores a computer program, and the processor can realize the steps provided by the embodiment when calling the computer program in the memory. Of course the electronic device may also include various network interfaces, power supplies, etc.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that the present application may be modified and practiced without departing from the spirit of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Claims (10)
1. The construction method of the business process is characterized by comprising the following steps:
defining a business process instance, and generating a process model corresponding to the business process instance;
releasing the flow model to a business flow engine so as to store flow definition information in the flow model to a business flow template configuration table;
Storing definition information of the business process instance to the business process template configuration table;
packaging the business logic codes of the business process instance, and transmitting the packaged codes to a shape parameter analysis module;
inquiring the service flow template configuration table based on a flow type attribute column by utilizing the shape parameter analysis module to obtain a data set;
And storing the service related field values in the data set to a target object, and constructing the service flow instance by utilizing the target object.
2. The method for building a business process according to claim 1, wherein defining a business process instance comprises:
receiving a flow creation instruction input by a user, and generating flow classification information and flow basic information according to the flow creation instruction;
defining the business process instance by using the process classification information and the process basic information;
the flow classification information comprises any one or a combination of a plurality of classification names, classification states, classification marks and classification orders, and the flow basic information comprises any one or a combination of a plurality of flow names, identifiers, flow classifications, flow versions and flow description information.
3. The method for constructing a business process according to claim 1, wherein generating a process model corresponding to the business process instance comprises:
Generating model information, flow structure information and flow logic information according to the input of a user, wherein the model information comprises a flow model identifier, a flow model name and flow model description information, the flow structure information is used for describing the number and the type of flow nodes, and the flow logic information is used for describing circulation paths and task allocation rules among the flow nodes;
and generating the flow model corresponding to the business flow instance based on the model information, the flow structure information and the flow logic information.
4. The method for constructing a business process according to claim 1, further comprising, before storing the definition information of the business process instance in the business process template configuration table:
Creating the service flow template configuration table in a relational database, and defining a table structure of the service flow template configuration table;
the fields of the service flow template configuration table comprise any one or a combination of any two of a main key identifier, a flow type, an entity type field name, a sequence, an analysis type, a value-taking mode and a state value.
5. The method for constructing a business process according to claim 1, wherein the query based on the process type attribute column is performed on the business flow template configuration table by using the shape parameter analysis module to obtain a data set, comprising:
inquiring the service flow template configuration table based on a flow type attribute column by utilizing the shape parameter analysis module to obtain a first data set;
and inquiring the service flow template configuration table based on the flow type attribute column and the analysis type attribute column by utilizing the shape parameter analysis module to obtain a second data set.
6. The business process of claim 5, wherein the target objects comprise process variable objects and auditor map objects;
correspondingly, storing the service related field value in the data set to a target object, including:
traversing the first data set to obtain the analysis type and the value mode of each field;
if the analysis type is the first type, executing corresponding service related field value storage operation according to the value-taking mode;
if the analysis type is the second type, storing a file list in the first data set to the process variable object;
if the analysis type is the third type, storing a flow identifier in the first data set to the flow variable object;
and if the analysis type is the fourth type, storing the values of the plurality of candidate lists of the approvers in the first data set to the mapping object of the auditors.
7. The method for constructing a business process according to claim 6, wherein constructing the business process instance using the target object comprises:
writing mapping information in the auditor mapping object into a process instance creation request object;
storing interval rule field values in the second dataset to the flow variable object;
and based on the flow instance creation request object and the flow variable object, calling a flow engine interface to construct the business flow instance.
8. A business process building system, comprising:
a model generation module for defining a business process instance, generating a flow model corresponding to the business flow instance;
the model release module is used for releasing the flow model to a business flow engine so as to store flow definition information in the flow model to a business flow template configuration table;
The information storage module is used for storing the definition information of the service flow instance to the service flow template configuration table;
the packaging module is used for packaging the business logic codes of the business process instance and transmitting the packaged codes to the shape parameter analysis module;
the data set construction module is used for inquiring the service flow template configuration table based on the flow type attribute column by utilizing the shape parameter analysis module to obtain a data set;
and the instance creation module is used for storing the service related field values in the data set to a target object and constructing the service flow instance by utilizing the target object.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method of constructing a business process according to any one of claims 1 to 7 when the computer program in the memory is invoked by the processor.
10. A storage medium having stored therein computer executable instructions which, when loaded and executed by a processor, implement the steps of the method of constructing a business process according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202511123136.6A CN120610689B (en) | 2025-08-12 | A business process construction method, system, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202511123136.6A CN120610689B (en) | 2025-08-12 | A business process construction method, system, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN120610689A CN120610689A (en) | 2025-09-09 |
CN120610689B true CN120610689B (en) | 2025-10-03 |
Family
ID=
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109670686A (en) * | 2018-12-05 | 2019-04-23 | 泰康保险集团股份有限公司 | Construct method, equipment and the business process management system of operation flow template |
CN119671506A (en) * | 2024-12-13 | 2025-03-21 | 上海浦东发展银行股份有限公司 | Business process processing method, device, computer equipment, readable storage medium and program product |
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109670686A (en) * | 2018-12-05 | 2019-04-23 | 泰康保险集团股份有限公司 | Construct method, equipment and the business process management system of operation flow template |
CN119671506A (en) * | 2024-12-13 | 2025-03-21 | 上海浦东发展银行股份有限公司 | Business process processing method, device, computer equipment, readable storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100437587C (en) | Service processing method and device based on data base | |
CN100535894C (en) | Database object script generation method and system | |
US8429527B1 (en) | Complex data merging, such as in a workflow application | |
US7853553B2 (en) | Engine for converting data from a source format to a destination format using user defined mappings | |
US7080088B1 (en) | Automatic reconciliation of bindable objects | |
US7343585B1 (en) | Operator approach for generic dataflow designs | |
CN101777004B (en) | Method and system for realizing BPEL sub-process multiplexing based on template in service-oriented environment | |
US8776009B2 (en) | Method and system for task modeling of mobile phone applications | |
CN113298503A (en) | Government affair-oriented workflow management system and database and table dividing method thereof | |
CN113010183B (en) | Code conversion method and device | |
US8060863B2 (en) | Conformance control module | |
CN111104106A (en) | Visual development method, system and medium for integrating business process and communication message | |
CN110765077B (en) | Method and system for uniformly managing AI model based on distributed file system | |
US8924914B2 (en) | Application creation tool toolkit | |
KR20210151092A (en) | Automatic layout of visualizations based on graph data | |
US20120239680A1 (en) | Generating database scripts for executing business rules related to enterprise software in a database runtime environment | |
US7617230B2 (en) | Finding similarity among sets of coordinated tasks | |
US20090094577A1 (en) | Generating data access operations based on a data model using a data services model | |
CN113342325A (en) | Visual modeling method, system, electronic device and storage medium | |
CN111784108A (en) | Modeling method and device for main data management platform | |
US7720872B1 (en) | Software interface mapping tool | |
CN101221637A (en) | A runtime execution method for one or more tasks defined by the workflow process language | |
CN116822195A (en) | Bidirectional model conversion method based on SysML v1 and SysML v2 | |
CN117931167B (en) | A process arrangement method, device, electronic device and storage medium | |
CN120610689B (en) | A business process construction method, system, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |