Template upgrade determination method and device, equipment, medium and program product
By comparing the differences in the operation controls, processes and scope of application information of the current business template, we can determine whether it meets the upgrade conditions, and solve the business impact and complaints when upgrading the template in the enterprise system, ensuring that the template can run smoothly after the upgrade.
Patent Information
- Application Number
- CN202310547917.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-15
- Publication Date
- 2024-11-15
AI Technical Summary
The ability of personnel templates and rosters in the existing enterprise system is weak, which may affect the normal operation of the business when upgrading the template. It is difficult to determine which templates meet the upgrade conditions, which may cause complaints.
By comparing the current values and default values of the operation control information, business process information and business scope information of the current business template, we can determine whether the template has the upgrade conditions, determine whether it is used in depth, and thus decide whether to upgrade.
Accurately determine whether the template meets the upgrade conditions, avoid unnecessary upgrades and leads to complaints, ensure that the template can meet business needs after the upgrade, and improve the efficiency of personnel business execution.
Smart Images

Figure CN118963787A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment, medium and program product for determining an upgrade of a template. Background Art
[0002] In the enterprise system, templates for handling some personnel affairs are configured, such as onboarding, regularization, job transfer and resignation templates. Among them, after using the onboarding, regularization, job transfer and resignation templates, the enterprise roster needs to be updated. However, the personnel templates currently used by the enterprise have weak or no linkage capabilities with the roster, so that the roster needs to be manually operated again. In response to this situation, the relevant technology provides a new personnel template, which has the ability to be linked with the enterprise roster.
[0003] However, for enterprises, hastily upgrading the current personnel templates may affect the normal operation of some business operations, such as triggering various complaints. Therefore, a solution is urgently needed to determine which personnel templates used by enterprises meet the upgrade conditions. Summary of the invention
[0004] The embodiments of the present application provide a method, device, equipment, medium and program product for determining a template upgrade, which are used to solve one of the above-mentioned technical problems.
[0005] On the one hand, an embodiment of the present application provides a method for determining a template upgrade, the method comprising:
[0006] Determine the current business template of the target business, as well as the current and default values of the operation control information of the current business template, the current and default values of the business process information, and the current and default values of the business applicable scope information. Determine at least one of a first difference comparison result between the current and default values of the operation control information of the current business template, a second difference comparison result between the current and default values of the business process information, and a third difference comparison result between the current and default values of the business applicable scope information. Determine whether the current business template meets the upgrade conditions based on at least one of the first difference comparison result, the second difference comparison result, and the third difference comparison result of the current business template.
[0007] Optionally, determine the current business template of the target business, which also includes:
[0008] Receive a subject identification set and at least one new service template sent by a user terminal; the subject identification set includes the subject identification of at least one service subject. For each subject identification in the service subject set, send a first request carrying the subject identification to the logic terminal, and obtain the current service templates of multiple services of the service subject corresponding to the subject identification returned by the logic terminal according to the first request; the current service templates of multiple services of the service subject corresponding to the subject identification are obtained by the logic terminal querying the database according to the subject identification. For each new service template, if there is a current service template of the same template type in the current service templates of multiple services, the service corresponding to the current service template of the same template type is taken as the target service.
[0009] Optionally, the default value of the operation control information includes an operation parameter value set of each default operation control.
[0010] Determine the default values of the operation control information of the current business template, including:
[0011] Determine the template identifier of the current service template. Send a second request carrying the template identifier to the logic terminal. Obtain the operation parameter value set of each default operation control in the operation control information returned by the logic terminal according to the second request; the operation parameter value set of each default operation control in the operation control information is obtained by the logic terminal querying the database according to the template identifier.
[0012] Optionally, the default value of the business process information includes a default process consisting of default business steps of the target business.
[0013] Determine the default values of the business process information of the current business template, including:
[0014] Determine the template identifier of the current service template. Send a third request carrying the template identifier to the logic terminal. Obtain a default process returned by the logic terminal according to the third request; the default process is obtained by the logic terminal querying the database according to the template identifier.
[0015] Optionally, the default value of the business application scope information is the default application scope of the target business;
[0016] Determine the default value of the business application scope information of the current business template, including:
[0017] A fourth request is sent to the service terminal through the logic terminal, the fourth request carries the subject identifier, and the fourth request is used to request to obtain the default applicable scope of the target service. The service terminal returns the default applicable scope of the target service through the logic terminal according to the fourth request; the default applicable scope of the target service is obtained by the service terminal querying the database according to the subject identifier.
[0018] Optionally, the current value of the operation control information includes an operation parameter value set of each current operation control; the operation parameter value set includes a parameter value of at least one operation parameter.
[0019] Determining a first difference comparison result between a current value and a default value of the operation control information of the current business template includes:
[0020] For each current operation control, if it is determined that there is a default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control, the first difference comparison result is determined to be no difference. If there is at least one current operation control and there is no default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control, the first difference comparison result is determined to be a difference.
[0021] Optionally, determining that there is a default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control includes:
[0022] The first string of the current control is obtained by concatenating the parameter values in the operation parameter value set of the current operation control. For each default operation control, the second string of the default operation control is obtained by concatenating the parameter values in the operation parameter value set of the default operation control. The first string of the current operation control is compared with the second string of each default operation control. If it is determined that there is a second string that is the same as the first string, it is determined that there is a default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control.
[0023] Optionally, the current process is represented by a first directed acyclic graph, a vertex in the first directed acyclic graph is used to represent a business step in the current process, and the direction-based connection between each vertex in the first directed acyclic graph represents the sequence of business steps in the current process.
[0024] The default process is represented by a second directed acyclic graph, a vertex in the second directed acyclic graph is used to represent a business step in the default process, and the direction-based connection between each vertex in the second directed acyclic graph represents the sequence between the business steps in the default process.
[0025] Optionally, determining a second difference comparison result between a current value and a default value of the business process information of the current business template includes:
[0026] If the vertices in the first directed acyclic graph and the second directed acyclic graph correspond one to one, the second difference comparison result is determined to be no difference. If at least one vertex in the first directed acyclic graph and the second directed acyclic graph has no corresponding vertex, the second difference comparison result is determined to be different.
[0027] Optionally, the current value of the business application scope information is the current application scope of the target business; when the application scope and the default application scope both include at least one business object of the business subject corresponding to the subject identifier.
[0028] Determining a third difference comparison result between a current value and a default value of the service application scope information of the current service template, including:
[0029] If it is determined that the business objects in the current application scope correspond to the business objects in the default application scope one by one, the third difference comparison result is determined to be no difference. If it is determined that at least one business object in the current application scope and the default application scope has no corresponding business object, the third difference comparison result is determined to be different.
[0030] Optionally, judging whether the current service template meets the upgrade condition according to at least one of the first difference comparison result, the second difference comparison result, and the third difference comparison result of the current service template includes:
[0031] If the first difference comparison result, the second difference comparison result and the third difference comparison result are all no difference, it is determined that the current service template meets the upgrade conditions. If at least one of the first difference comparison result, the second difference comparison result and the third difference comparison result is a difference, it is determined that the current service template does not meet the upgrade conditions.
[0032] In another aspect, a template upgrade determination device is provided, the device comprising:
[0033] The first determination module is used to determine the current business template of the target business, as well as the current value and default value of the operation control information of the current business template, the current value and default value of the business process information, and the current value and default value of the business applicable scope information.
[0034] The second determination module is used to determine at least one of the first difference comparison result between the current value and the default value of the operation control information of the current business template, the second difference comparison result between the current value and the default value of the business process information, and the third difference comparison result between the current value and the default value of the business applicability scope information.
[0035] The third determination module is used to determine whether the current service template meets the upgrade condition according to at least one of the first difference comparison result, the second difference comparison result and the third difference comparison result of the current service template.
[0036] An embodiment of the present application also provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the steps of a template upgrade determination method provided in an embodiment of the present application.
[0037] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of a template upgrade determination method provided in an embodiment of the present application are implemented.
[0038] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of a template upgrade determination method provided in an embodiment of the present application.
[0039] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0040] For the same business, the current business template is obtained after the business subject modifies the original business template to meet its current business needs. Since the current business needs of each business subject are different, the current business templates held by each business subject are different. Specifically, the current business needs can be met by modifying at least one of the operation control information, business process information, and business applicable scope information, or by not modifying the aforementioned information. Among them, after the modification, the current value and the default value of at least one of the aforementioned information are different, and the modification behavior can be understood as the business subject's in-depth use of the current business template. In addition, since the original business template may have some problems, compared with the method of modifying the current business template separately, it will be more efficient for each business subject to solve the problem by upgrading the business template. For example, the old personnel template (that is, the current business template) has no linkage capability with the roster of the enterprise (that is, the business entity). To efficiently solve this problem, the new personnel template (that is, the new business template) can be obtained by first adding a roster linkage function to the original personnel template. Secondly, each enterprise can obtain the linkage capability with the roster by upgrading the old personnel template to the new personnel template, thus avoiding the need for each enterprise to spend energy on modifying the old personnel template.
[0041] However, for the current business template that is used in depth, there are differences between the current value and the default value of each information. If it is upgraded hastily, the new business template will not meet the current business needs of the business, which will cause various complaints and the fact that the upgrade fails. Therefore, it does not meet the upgrade conditions. For the current business template that is not used in depth, since there is no difference between the current value and the default value of each information, upgrading it can not only meet the current business needs of the business, but also solve the problem through the new business template, so it meets the upgrade conditions.
[0042] Based on the analysis, the embodiment of the present application provides a method for determining the upgrade of a template, the method comprising: for the current business template of the target business, first determining the operation control information, business process information and business applicable scope information of the current business template; then, determining the first difference comparison result between the current value and the default value of the operation control information of the current business template, the second difference comparison result between the current value and the default value of the business process information, and the third difference comparison result between the current value and the default value of the business applicable scope information, and further judging whether the current business template has the upgrade conditions according to at least one of the first difference comparison result, the second difference comparison result and the third difference comparison result. That is, the current value and the default value of the operation control information of the current business template, the current value and the default value of the business process information, and the current value and the default value of the business applicable scope information are compared respectively to determine whether the operation control information, the business process information and the business applicable scope information of the current business template are modified, and then obtaining the judgment result of whether the current business template is deeply used. Among them, for the current business template that is not deeply used, it has the upgrade conditions, and for the current business template that is deeply used, it does not have the upgrade conditions. Furthermore, after the current business templates that meet the upgrade conditions are upgraded, not only can the personnel business be carried out smoothly, but also various complaints can be avoided.
[0043] Taking an enterprise as an example, for each of an enterprise's onboarding, regularization, job transfer and resignation businesses, a template upgrade determination method provided in an embodiment of the present application can be used to determine whether the personnel template currently used by the business (which can be equivalent to the current business template) meets the upgrade conditions, and then the upgrade details of the enterprise (personnel templates that meet the upgrade conditions and personnel templates that do not meet the upgrade conditions) can be counted. For multiple enterprises, the upgrade details of each enterprise can be counted according to the processing method of the aforementioned enterprise, so as to further guide the relevant enterprises to upgrade the personnel templates that meet the upgrade conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0045] Figure 1 A schematic diagram of the structure of a template maintenance system provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a flow chart of a method for determining a template upgrade provided in an embodiment of the present application;
[0047] Figure 3 A flowchart of a method for determining an upgrade of a personnel template of an enterprise provided in an embodiment of the present application;
[0048] Figure 4a A schematic diagram of a scenario for screening old personnel templates from all templates of an enterprise provided in an embodiment of the present application;
[0049] Figure 4b A scene schematic diagram of a modification interface of a currently visible range of an old personnel template provided in an embodiment of the present application;
[0050] Figure 4c A schematic diagram of a scenario of a default process of an old personnel template provided in an embodiment of the present application;
[0051] Figure 4d A schematic diagram of a scenario of a current process of an old personnel template provided in an embodiment of the present application;
[0052] Figure 4e A schematic diagram of a modification interface of an operation control of an old personnel template provided in an embodiment of the present application
[0053] Figure 5 A schematic diagram of the structure of a template upgrade determination device provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0056] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" indicates that it is implemented as "A", or is implemented as "A", or is implemented as "A and B".
[0057] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0058] First, several terms involved in this application are introduced and explained:
[0059] Directed graph: A directed graph is a graph with directionality, consisting of a set of vertices and a set of directed edges. Each directed edge connects a pair of ordered vertices. A graph consisting entirely of undirected edges is called an undirected graph.
[0060] DAG: Directed acyclic graph. In graph theory, if a directed graph cannot go back to a vertex through several edges, then the graph is a directed acyclic graph.
[0061] Service template: a fixed format for processing services. The service template of the embodiment of the present application includes the following information:
[0062] Business process information: The business process information includes a DAG graph representing the business process.
[0063] Operation control information. The operation control information includes at least one operation control, and each operation control is a control for collecting information. Each control may include an operation parameter value set, and the operation parameter value set includes at least one of the following parameter values: the type of control, the name of the control, the information collection method, and whether the information is necessary.
[0064] Business application scope information: The business application scope information includes a business scope, and the business scope includes at least one business object. The business objects in the business scope are business-related objects.
[0065] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0066] Figure 1 A template maintenance system 10 is provided in an embodiment of the present application, wherein the system 10 comprises a user terminal 101 , a service terminal 102 , a template terminal 103 , a logic terminal 104 and a database 105 .
[0067] The user terminal 101 sends a screening request carrying the screening period to the service terminal 102. The service terminal 102 receives the screening request and sends a first query request carrying the screening period to the database 105. The database 105 receives the first query request and filters out a subject identification set from a preset template library, wherein the subject identification set includes the subject identification of at least one service subject associated with the screening period; the database 105 returns the subject identification set to the service terminal 102 according to the first query request. The service terminal 102 receives the subject identification set and returns the subject identification set to the user terminal 101 according to the screening request.
[0068] The user terminal 101 receives at least one new service template input, and sends an upgrade detail query request carrying a subject identifier set and at least one new service template to the template terminal 103. For each subject identifier, the template terminal 103 receives the upgrade detail query request, and sends a first request carrying the subject identifier and the new service template to the logic terminal 104. The logic terminal 104 receives the first request, and sends a second query request to the database 105 according to the subject identifier. The database 105 receives the second query request, and queries the current service templates of multiple services associated with the subject identifier according to the subject identifier; the database 105 feeds back the current service templates of multiple services of the service subject to the logic terminal 104 according to the second query request. The logical terminal 104 receives the current business templates of multiple businesses of the business subject, and determines the template type of the new business template for each new business template. If there is a current business template with the same template type in the current business template of the business subject, the business corresponding to the current business template with the same template type is used as the target business; the logical terminal 104 sends the current business template of the target business, the current value of the operation control information of the current business template, the current value of the business process information, and the current value of the business applicability scope information to the logical terminal 104 according to the first request.
[0069] The template terminal 103 sends a second request carrying the template identifier of the current service template to the logic terminal 104. The logic terminal 104 receives the second request and sends a third query request carrying the template identifier to the database 105. The database 105 receives the third query request and obtains the default value of the operation control information of the current service template according to the template identifier; the database 105 returns the default value of the operation control information to the logic terminal 104 according to the third query request. The logic terminal 104 receives the default value of the operation control information and returns the default value of the operation control information to the template terminal 103 according to the second request.
[0070] The template terminal 103 sends a third request carrying the template identifier of the current service template to the logic terminal 104. The logic terminal 104 receives the third request and sends a fourth query request carrying the template identifier to the database 105 according to the template identifier. The database 105 receives the fourth query request and obtains the default value of the service process information of the current service template according to the template identifier; the database 105 returns the default value of the service process information to the logic terminal 104 according to the fourth query request. The logic terminal 104 receives the default value of the service process information and returns the default value of the service process information to the template terminal 103 according to the third request.
[0071] The template terminal 103 sends a fourth request carrying the subject identifier to the logic terminal 104. The logic terminal 104 receives the fourth request and sends a fifth request carrying the subject identifier to the service terminal 102. The service terminal 102 receives the fifth request and sends a fifth query request carrying the subject identifier to the database 105 according to the subject identifier. The database 105 receives the fifth query request and obtains the default applicable scope corresponding to the subject identifier according to the subject identifier; the database 105 returns the default applicable scope to the service terminal 102 according to the fifth query request. The service terminal 102 receives the default applicable scope and returns the default applicable scope to the logic terminal 104 according to the fifth request. The logic terminal 104 receives the default applicable scope and returns the default applicable scope to the template terminal 103 according to the fourth request.
[0072] After receiving the current business template of the target business, as well as the current and default values of the operation control information of the current business template, the current and default values of the business process information, and the current and default values of the business applicable scope information, the template terminal 103 executes the template upgrade determination method provided in the embodiment of the present application, obtains the upgrade details of the business subject corresponding to each subject identifier in the subject identifier set, and returns the upgrade details of the business subject corresponding to each subject identifier to the user terminal 101 according to the upgrade details query request.
[0073] Figure 2 The present application provides a method for determining a template upgrade, which can be applied to the template terminal 103 in the above embodiment. The method includes the following steps S210 to S230.
[0074] S210, determining the current business template of the target business, as well as the current value and default value of the operation control information of the current business template, the current value and default value of the business process information, and the current value and default value of the business applicable scope information.
[0075] The current value of the operation control information includes the operation parameter value set of each current operation control; the default value of the operation control information includes the operation parameter value set of each default operation control; the operation parameter value set includes the parameter value of at least one operation parameter. The current value of the operation control information also includes a current operation control set, which includes multiple current operation controls; the default value of the operation control information includes a default operation control set, which includes multiple default operation controls.
[0076] The current value of the business process information includes the current process composed of the current business steps of the target business, and the default value includes the default process composed of the default business steps of the target business.
[0077] Among them, the default value of the business application scope information of the target business is the current application scope of the target business; the default value of the business application scope information of the target business is the default application scope of the target business; the current application scope and the default application scope both include at least one business object.
[0078] The business objects in the current applicable scope are objects associated with the target business, and the objects associated with the target business can use the current business template to process the target business. Optionally, the objects associated with the target business can be objects associated with each business step in each business step of the current process of the target business.
[0079] In an optional embodiment, the current service template of the target service is determined, and the step of determining the target service is also included before that. The step of determining the target service includes the following steps Sa1 to Sa3.
[0080] Sa1, receiving a subject identification set and at least one new service template sent by the user terminal 101; the subject identification set includes a subject identification of at least one service subject.
[0081] Sa2, for each subject identifier in the business subject set, sends a first request carrying the subject identifier to the logical terminal 104, and obtains the current business templates of multiple businesses of the business subject corresponding to the subject identifier returned by the logical terminal 104 according to the first request; the current business templates of multiple businesses of the business subject corresponding to the subject identifier are obtained by the logical terminal 104 querying the database 105 according to the subject identifier.
[0082] Sa3, for each new service template, if there is a current service template with the same template type among the current service templates of multiple services, the service corresponding to the current service template with the same template type is taken as the target service.
[0083] S220, determine at least one of the first difference comparison result between the current value and the default value of the operation control information of the current business template, the second difference comparison result between the current value and the default value of the business process information, and the third difference comparison result between the current value and the default value of the business applicability scope information.
[0084] S230: Determine whether the current service template meets the upgrade condition according to at least one of the first difference comparison result, the second difference comparison result, and the third difference comparison result of the current service template.
[0085] The standard for judging whether the current business template is used in depth is whether there is a difference between the current value and the default value of each information in the operation control information, business process information and business applicable scope information. In the practice of the embodiments of the present application, there can be multiple forms of standards for in-depth use. For example, if at least one of the first difference comparison result, the second difference comparison result and the third difference comparison result is no difference, then it can be judged that the current business template is not used in depth, or if at least two of them are no difference, it can also be judged that the current business template is not used in depth. Relatively speaking, the first difference comparison result, the second difference comparison result and the third difference comparison result are all no difference to judge whether the current business template is used in depth, which is a relatively strict standard. It should be noted that the judgment standard for in-depth use can be set according to needs in the practice of the embodiments of the present application.
[0086] Therefore, the embodiment of the present application provides an optional implementation method, wherein the implementation method includes the following steps.
[0087] If the first difference comparison result, the second difference comparison result and the third difference comparison result are all no difference, it is determined that the current business template meets the upgrade conditions; if the first difference comparison result, the second difference comparison result and the third difference comparison result are different, it is determined that the current business template does not meet the upgrade conditions.
[0088] The embodiment of the present application provides a method for determining the upgrade of a template, which compares the current value and default value of the operation control information of the business template, the current value and default value of the business process information, and the current value and default value of the business application scope information, respectively, to determine whether the operation control information, business process information, and business application scope information of the current business template have been modified, and then obtains a judgment result of whether the current business template has been extended to use. Among them, for the current business template that has not been used in depth, it meets the upgrade conditions, and for the current business template that has been used in depth, it does not meet the upgrade conditions.
[0089] After determining the current business template, there are many ways to determine the default values and compare the differences between the current values and the default values. The embodiments of the present application provide several optional embodiments.
[0090] In an optional embodiment, the default value of the operation control information includes an operation parameter value set of each default operation control. Based on the system provided by the above embodiment, the default value of the operation control information of the current service template can be determined through the following steps.
[0091] Determine the template identifier of the current service template. Send a second request carrying the template identifier to the logic terminal 104. Obtain the operation parameter value set of each default operation control in the operation control information returned by the logic terminal 104 according to the second request; the operation parameter value set of each default operation control in the operation control information is obtained by the logic terminal 104 querying the database 105 according to the template identifier.
[0092] In an optional embodiment, the difference comparison result of the operation control information can be obtained by comparing whether each operation control has a difference. Therefore, determining the first difference comparison result between the current value and the default value of the operation control information of the current business template can specifically include the following steps Sb1-Sb2.
[0093] Sb1: For each current operation control, if it is determined that there is an operation parameter value set of a default operation control that is the same as the operation parameter value set of the current operation control, then determine that the first difference comparison result is no difference.
[0094] In an optional implementation, whether two operation controls are different may be determined by serializing each operation control.
[0095] Specifically, the first string of the current control is obtained by concatenating the parameter values in the operation parameter value set of the current operation control. For each default operation control, the second string of the default operation control is obtained by concatenating the parameter values in the operation parameter value set of the default operation control. The first string of the current operation control is compared with the second string of each default operation control. If it is determined that there is a second string that is the same as the first string, it is determined that there is a default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control.
[0096] The splicing order of the parameter values in the operation parameter value set of the default operation control and the operation parameter value set of the current operation control is consistent. The splicing order of the parameter values can be determined according to actual needs.
[0097] In one example, for a "name" control, its operation parameters may include: control identifier, control name, type of input information, whether the information must be input, and the parameter values of each operation parameter are: control identifier, 100; control name, name; type of input information, short text; whether the information must be input, must be input. Next, the parameter values of the "name" control are concatenated to obtain a string: "100_name_short text_must be input".
[0098] In an optional implementation, the two controls may be compared to see if they are different by obtaining the parameter value of the operation parameter of each operation control.
[0099] Optionally, the operation parameter includes a unique identifier of the operation control. First, the current operation control and the default operation control with the same identifier are matched, and the parameter values of other operation parameters of the current operation control and the default operation control are compared one by one. If the parameter values of the operation parameters are consistent, it is determined that there is an operation parameter value set of the default operation control that is the same as the operation parameter value set of the current operation control.
[0100] Sb2: If there is at least one current operation control and there is no default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control, then determining that the first difference comparison result is different.
[0101] In an optional embodiment, the default value of the business process information includes a default process consisting of default business steps of the target business. Determining the default value of the business process information of the current business template includes the following steps.
[0102] Determine the template identifier of the current service template. Send a third request carrying the template identifier to the logic terminal 104. Obtain a default process returned by the logic terminal 104 according to the third request; the default process is obtained by the logic terminal 104 querying the database 105 according to the template identifier.
[0103] In an optional embodiment, the current value and the default value of the business process information of the current business template are respectively a process, and the process can be represented by a DAG graph, so the second difference comparison result can be obtained by comparing whether there is a difference between the DAG graphs of the current value and the default value.
[0104] The current process is represented by a first directed acyclic graph, a vertex in the first directed acyclic graph is used to represent a business step in the current process, and the direction-based connection between each vertex in the first directed acyclic graph represents the sequence of business steps in the current process.
[0105] The default process is represented by a second directed acyclic graph, a vertex in the second directed acyclic graph is used to represent a business step in the default process, and the direction-based connection between each vertex in the second directed acyclic graph represents the sequence of business steps in the default process.
[0106] Determining a second difference comparison result between the current value and the default value of the business process information of the current business template includes: comparing each vertex in the first directed acyclic graph and the second directed acyclic graph one by one, and obtaining a second difference comparison result according to the comparison result. The comparison results include the following Sc1 and Sc2.
[0107] Sc1: If the vertices in the first directed acyclic graph and the vertices in the second directed acyclic graph correspond one to one, it is determined that the second difference comparison result is no difference.
[0108] Sc2: If at least one vertex in the first directed acyclic graph and the second directed acyclic graph has no corresponding vertex, determining that the second difference comparison result is different.
[0109] Optionally, the information of each vertex in the directed acyclic graph includes a position identifier of the vertex in the directed acyclic graph. Specifically, first, obtain a vertex in the second directed acyclic graph, and obtain the corresponding vertex in the first directed acyclic graph according to the position identifier of the vertex. Then, compare the multiple step information representing the business step execution logic carried in each vertex, as well as the edge information of each vertex; if the various step information and edge information are consistent, it is determined that the two vertices correspond to each other; if at least one step information is inconsistent or at least one edge is inconsistent, it is determined that there are two vertices without corresponding vertices. In addition, after comparing all the vertices in the second directed acyclic graph, if at least one vertex in the first directed acyclic graph does not participate in the comparison, it is determined that there is a vertex without a corresponding vertex.
[0110] After the second difference comparison result is obtained, the comparison process can be ended.
[0111] In an optional embodiment, the default value of the service application scope information is the default application scope of the target service. Determining the default value of the service application scope information of the current service template includes the following steps.
[0112] The fourth request is sent to the service terminal 102 through the logic terminal 104. The fourth request carries the subject identifier and is used to request to obtain the default applicable scope of the target service. The service terminal 102 returns the default applicable scope of the target service through the logic terminal 104 according to the fourth request; the default applicable scope of the target service is obtained by the service terminal 102 querying the database 105 according to the subject identifier.
[0113] In an optional embodiment, the default applicable scope and the current applicable scope of the target business can be compared to determine whether the business applicable scope information has been modified. Therefore, the third difference comparison result between the current value and the default value of the current business template can be obtained by comparing the business objects in the current applicable scope and the business objects in the default applicable scope. The comparison results include the following Sd1 to Sd2.
[0114] Sd1, if it is determined that the business objects in the current applicable scope correspond to the business objects in the default applicable scope one by one, it is determined that the third difference comparison result is no difference.
[0115] Optionally, a business subject includes several organizations, and each organization of a business subject includes several sub-objects. A sub-object is an object of the smallest granularity. Among them, a business object can be a business subject, an organization of a business subject, or a single sub-object in a business subject. Each business object includes a unique identifier.
[0116] Furthermore, the identifier of each business object in the current applicable scope and the default applicable scope are compared one by one.
[0117] Sd2: If it is determined that at least one business object in the current applicable scope and the default applicable scope has no corresponding business object, the third difference comparison result is determined to be different.
[0118] In order to more clearly understand the technical effect of the embodiment of the present application, the embodiment of the present application also provides an example. In this example, the user end, enterprise Svr end, template Svr end, logic end and database in the example are respectively equivalent to the user terminal 101, business terminal 102, template terminal 103, logic terminal 104 and database 105 in the above template maintenance system 10.
[0119] In this example, the interaction process between the user side, enterprise Svr side, template Svr side, Logic side and DataBase can be referred to Figure 3 On the other hand, the enterprise is equivalent to the business subject in the above embodiment; the old personnel template is equivalent to the current business template, and the new personnel template is equivalent to the new business template. In addition, the employees of the enterprise or a department of the enterprise are equivalent to the business objects in the above embodiment; the control is equivalent to the operation control in the above embodiment, and the visible range is equivalent to the practical range in the above embodiment.
[0120] Next, combine Figure 3 Each step shown is described in detail.
[0121] The first stage is to obtain the active enterprise package.
[0122] S1001, the user end sends a request carrying a screening period to the enterprise Svr end.
[0123] S1002, the enterprise Svr side queries the DataBase for enterprises associated with the screening period according to the screening period.
[0124] S1003, DataBase returns the enterprise package to the enterprise Svr end.
[0125] The enterprise package is a collection of all enterprises associated with the filtering period.
[0126] S1004, the enterprise Svr end returns the enterprise package to the user end.
[0127] In the second stage, the upgrade details of the old personnel templates of each enterprise in the active enterprise package are counted.
[0128] S2011, the user end sends the enterprise package and new personnel template information to the template Svr end.
[0129] S2020 to S2060 are executed cyclically for each enterprise in the enterprise package.
[0130] S2020, including steps S2021 to S2025, determines all old personnel templates of the enterprise.
[0131] S2021, the template Svr side sends the company's logo and new personnel template to the Logic side.
[0132] S2022, the Logic side queries the DataBase for all templates of the enterprise according to the enterprise's ID.
[0133] S2023, DataBase returns all templates of the enterprise to the Logic side.
[0134] S2024, the Logic side selects templates that are consistent with the type of each new personnel template from all templates of the enterprise and uses them as old personnel templates.
[0135] This example also passes Figure 4a A schematic diagram of a scenario for filtering old personnel templates from all templates of an enterprise is provided. Among them, the template name of the new personnel template is obtained ( Figure 4a template_name in ), including "joining", "regularization", "leaving", and "transferring"; from N templates ( Figure 4a In the template, filter out the old entry template, old regularization template, old resignation template, and old job transfer template according to the template name. In this example, the template name can be understood as a type of template.
[0136] S2025, the Logic side returns the old personnel template of the enterprise to the template Svr side.
[0137] If the number of old personnel templates returned is 0, S2060 is executed. If the number of old personnel templates returned is not 0, S2030, S2040, and S2050 are continued to be executed.
[0138] Next, for each old personnel template, S2030, S2040, S2050, and S2060 are executed in a loop in sequence.
[0139] S2030, including steps S2031-S2037, determines whether the current visible range of the old personnel template has been modified. The current visible range of the old personnel template is equivalent to the current applicable range of the current business template in the above embodiment.
[0140] S2031, the template Svr side sends the old personnel template information to the Logic side to obtain the default visible range of the old personnel template.
[0141] The old personnel template information includes the ID of the enterprise to which the old personnel template belongs. The default visible scope of the old personnel template can be set to the root department of the enterprise. The root department is all departments of the enterprise, that is, all employees of the enterprise.
[0142] S2032, the Logic end sends a request carrying the enterprise's identifier to the enterprise's Svr end to query the enterprise's root department.
[0143] S2033, the enterprise Svr side queries the enterprise's root department from the DataBase according to the enterprise's identifier.
[0144] S2034, DataBase returns the root department of the enterprise to the enterprise Svr end.
[0145] S2035, the enterprise Svr end returns the enterprise's root department to the Logic end.
[0146] S2036, the Logic end returns the root department of the enterprise to the template Svr end.
[0147] S2037, the template Svr compares the current visible range of the old personnel template with the root department of the enterprise to see if there is any difference. If the comparison result is no difference, it means that the current visible range of the old personnel template has not been modified; if the comparison result is a difference, it means that the current visible range of the old personnel template has been modified, and S2060 is executed.
[0148] This example also passes Figure 4bA scene diagram of a modification interface of the current visible scope of an old resignation template is provided. In this modification interface, the current visible scope of the old resignation template includes multiple departments and multiple employees of an enterprise, not all departments of an enterprise. Therefore, the comparison result of S2037 is that there is a difference.
[0149] S2040, including steps S2041 to S2045, determines whether the current process of the old personnel template has been modified.
[0150] S2041, the template Svr side sends the old personnel template information to the Logic side to obtain the default process of the old personnel template. The old personnel template information includes the identifier of the old personnel template.
[0151] S2042, the Logic side queries the DataBase for the default process of the old personnel template according to the identifier of the old personnel template.
[0152] S2043, DataBase returns the default process of the old personnel template to the Logic side.
[0153] S2044, the Logic side returns the default process of the old personnel template to the template Svr side.
[0154] S2045, the template Svr compares the current process of the old personnel template with the default process to see if there is any difference. If the comparison result is no difference, it means that the current process of the old personnel template has not been modified; if the comparison result is a difference, it means that the current process of the old personnel template has been modified, and S2060 is executed.
[0155] This example also passes Figure 4c A scenario diagram showing the default process of an old personnel template and Figure 4d A scenario diagram of the current process of an old personnel template is shown. The current process of the old personnel template has one more conditional branch than the default process, so the comparison result of S2045 is different.
[0156] S2050, including steps S2051 to S2055, determines whether the current control of the old personnel template has been modified.
[0157] S2051, the template Svr side sends the old personnel template information to the Logic side to obtain the default control of the old personnel template, wherein there is at least one default control.
[0158] S2052, the Logic side queries the DataBase for the default control according to the identifier of the old personnel template.
[0159] S2053, DataBase returns the default control to the Logic side.
[0160] S2054, the Logic side returns the default control to the template Svr side.
[0161] S2055, the template Svr compares the current control of the old personnel template with the default control to see if there is any difference. If the comparison result is no difference, it means that the current control of the old personnel template has not been modified; if the comparison result is a difference, it means that the current control of the old personnel template has been modified, and S2060 is executed.
[0162] This example also passes Figure 4e A scenario diagram of the modification interface of the old regularization template is provided. Among them, through the modification interface, new controls can be added or the properties of a certain control can be modified based on the current controls of the old regularization template. Among them, a new "attachment" control is added to the old regularization template. In other words, the comparison result of S2055 is different.
[0163] S2060 includes steps S2061 and S2062. According to S2025, S2037, S2045, and S2055, old personnel templates of the enterprise that meet the upgrade conditions are counted. If the previous step is S2025, S2061 is executed, otherwise S2062 is executed.
[0164] S2061, determine whether the upgrade conditions are met based on the old personnel template returned by S2025.
[0165] If the old personnel template returned is 0, it means that the enterprise has no template that needs to be upgraded, and the statistics of the current enterprise are ended, and the statistics of the upgrade details of the next enterprise are started.
[0166] S2062, judging whether the upgrade conditions are met based on the comparison results of S2037, S2045, and S2055.
[0167] Among them, if the comparison results of S2037, S2045, and S2055 are all consistent, it means that the current visible scope, process, and controls of the old personnel template have not been modified. Among them, "unmodified" means that the old personnel template has not been used in depth by the enterprise. For old personnel templates that have not been used in depth, upgrading to new personnel templates will not affect the processing of businesses associated with the new personnel templates. In other words, old personnel templates with consistent comparison results meet the upgrade conditions.
[0168] Among them, if at least one comparison result among S2037, S2045, and S2055 is inconsistent, it means that at least one of the current visible scope, process, and control of the old personnel template has been modified. Among them, "modification" means that the old personnel template has been used intensively. For old personnel templates that have been used intensively, after upgrading to new personnel templates, it will affect the processing of businesses associated with the new personnel templates. In other words, at least one old personnel template with inconsistent comparison results does not meet the upgrade conditions.
[0169] Through S2061-2062, the upgrade details of the enterprise can be obtained. The upgrade details include: whether the enterprise includes old personnel templates; the types of old personnel templates that meet the upgrade conditions; and the types of old personnel templates that do not meet the upgrade conditions.
[0170] After the upgrade details of each enterprise are counted according to S2020-2060, S2071 is executed.
[0171] S2071, the template Svr side counts the upgrade details of each enterprise.
[0172] S2081, the template Svr returns the statistical upgrade details to the user end.
[0173] After receiving the upgrade details, the user end can guide the old personnel templates that meet the upgrade conditions to be upgraded.
[0174] Next, the possible complaints that may arise after upgrading the old personnel templates that are widely used are elaborated in detail.
[0175] Among them, in order to meet the needs of expanding the business scope of personnel business, the current visible scope of the old personnel template adds / deletes a number of employees relative to the default visible scope. After the enterprise Svr end upgrades the old personnel template to the new personnel template, the enterprise Svr end will send a template upgrade message to all employees within the visible scope of the new personnel template. Among them, the employees who should have received the template upgrade message (the added employees) did not actually receive it, and the employees who should not have received the template upgrade message (the deleted employees) actually received it. These two types of employees may think that they did not receive the template upgrade message or feel disturbed, and choose to complain.
[0176] Among them, in order to meet the approval requirements of the business process of personnel business, the current process of the old personnel template is modified relative to the approval rules of the default process, such as reducing several approval nodes. After the enterprise Svr upgrades the old personnel template to the new personnel template, some employees are not familiar with the new personnel template process and still follow the old personnel template process to promote the business, which may cause the business to fail to proceed smoothly. If this happens, employees will think that the new personnel template has delayed progress and choose to complain.
[0177] Among them, in order to adapt to the expansion needs of business data of personnel business, the current controls of the old personnel template include an "input email address" control compared to the default controls. After the enterprise Svr upgrades the old personnel template to the new personnel template, the control does not exist in the new personnel template. Employees will think that the controls of the new personnel template are incomplete and choose to complain.
[0178] In order to solve the problem that the old personnel templates of various companies do not have the ability to link with the roster, the original personnel templates are first modified by adding a linkage function to the original personnel templates. Then, it is determined whether the old personnel templates of various companies meet the upgrade conditions to avoid various complaints that may be caused after the personnel templates that do not meet the upgrade conditions are upgraded. The complaint incidents reflect from the side that the new personnel templates did not help the smooth execution of personnel business, but delayed the execution progress, that is, the new personnel template actually failed to upgrade. After upgrading the personnel templates that meet the upgrade conditions, not only can the personnel business be smoothly processed through the new personnel templates, but the relevant data of the personnel business can also be synchronized to the roster, thereby improving the execution efficiency of the personnel business.
[0179] Figure 5 A template upgrade determination device 500 is provided, wherein the device 500 comprises a first determination module 501 , a second determination module 502 , a third determination module 503 , and a transceiver module 504 .
[0180] The first determination module 501 is used to determine the current business template of the target business, as well as the current value and default value of the operation control information of the current business template, the current value and default value of the business process information, and the current value and default value of the business applicable scope information.
[0181] The second determination module 502 is used to determine at least one of the first difference comparison result between the current value and the default value of the operation control information of the current business template, the second difference comparison result between the current value and the default value of the business process information, and the third difference comparison result between the current value and the default value of the business applicability scope information.
[0182] The third determination module 503 is used to determine whether the current service template meets the upgrade condition according to at least one of the first difference comparison result, the second difference comparison result and the third difference comparison result of the current service template.
[0183] Optionally, determine the current business template of the target business, which also includes:
[0184] The transceiver module 504 is used to receive a subject identification set and at least one new service template sent by a user terminal; the subject identification set includes a subject identification of at least one service subject. For each subject identification in the service subject set, a first request carrying the subject identification is sent to the logic terminal to obtain the current service templates of multiple services of the service subject corresponding to the subject identification returned by the logic terminal according to the first request; the current service templates of multiple services of the service subject corresponding to the subject identification are obtained by the logic terminal querying the database according to the subject identification. For each new service template, if there is a current service template of the same template type in the current service templates of multiple services, the service corresponding to the current service template of the same template type is taken as the target service.
[0185] Optionally, the default value of the operation control information includes an operation parameter value set of each default operation control.
[0186] The first determination module 501 is specifically used to determine the default value of the operation control information of the current service template:
[0187] Determine the template identifier of the current service template. Send a second request carrying the template identifier to the logic terminal. Obtain the operation parameter value set of each default operation control in the operation control information returned by the logic terminal according to the second request; the operation parameter value set of each default operation control in the operation control information is obtained by the logic terminal querying the database according to the template identifier.
[0188] Optionally, the default value of the business process information includes a default process consisting of default business steps of the target business.
[0189] The first determination module 501 is specifically used to determine the default value of the business process information of the current business template:
[0190] Determine the template identifier of the current service template. Send a third request carrying the template identifier to the logic terminal. Obtain a default process returned by the logic terminal according to the third request; the default process is obtained by the logic terminal querying the database according to the template identifier.
[0191] Optionally, the default value of the business application scope information is the default application scope of the target business;
[0192] The first determination module 501 is specifically used to determine the default value of the service application scope information of the current service template:
[0193] A fourth request is sent to the service terminal through the logic terminal, the fourth request carries the subject identifier, and the fourth request is used to request to obtain the default applicable scope of the target service. The service terminal returns the default applicable scope of the target service through the logic terminal according to the fourth request; the default applicable scope of the target service is obtained by the service terminal querying the database according to the subject identifier.
[0194] Optionally, the current value of the operation control information includes an operation parameter value set of each current operation control; the operation parameter value set includes a parameter value of at least one operation parameter.
[0195] The second determination module 502 determines the first difference comparison result between the current value and the default value of the operation control information of the current business template, specifically for
[0196] For each current operation control, if it is determined that there is a default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control, the first difference comparison result is determined to be no difference. If there is at least one current operation control and there is no default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control, the first difference comparison result is determined to be a difference.
[0197] Optionally, the second determining module 502, in determining whether there is an operation parameter value set of a default operation control that is the same as the operation parameter value set of the current operation control, is specifically configured to:
[0198] The first string of the current control is obtained by concatenating the parameter values in the operation parameter value set of the current operation control. For each default operation control, the second string of the default operation control is obtained by concatenating the parameter values in the operation parameter value set of the default operation control. The first string of the current operation control is compared with the second string of each default operation control. If it is determined that there is a second string that is the same as the first string, it is determined that there is a default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control.
[0199] Optionally, the default process is represented by a second directed acyclic graph, a vertex in the second directed acyclic graph is used to represent a business step in the default process, and the direction-based connection between each vertex in the second directed acyclic graph represents the sequence of business steps in the default process.
[0200] The current process is represented by a first directed acyclic graph, a vertex in the first directed acyclic graph is used to represent a business step in the current process, and the direction-based connection between each vertex in the first directed acyclic graph represents the sequence between the business steps in the current process.
[0201] Optionally, the second determination module 502 is specifically used to:
[0202] If the vertices in the first directed acyclic graph and the second directed acyclic graph correspond one to one, the second difference comparison result is determined to be no difference. If at least one vertex in the first directed acyclic graph and the second directed acyclic graph has no corresponding vertex, the second difference comparison result is determined to be different.
[0203] Optionally, the current value of the business application scope information is the current application scope of the target business; when the application scope and the default application scope both include at least one business object of the business subject corresponding to the subject identifier.
[0204] The second determination module 502 is specifically used to:
[0205] If it is determined that the business objects in the current application scope correspond to the business objects in the default application scope one by one, the third difference comparison result is determined to be no difference. If it is determined that at least one business object in the current application scope and the default application scope has no corresponding business object, the third difference comparison result is determined to be different.
[0206] Optionally, the third determination module 503, in determining whether the current service template meets the upgrade condition according to at least one of the first difference comparison result, the second difference comparison result, and the third difference comparison result of the current service template, is specifically configured to:
[0207] If the first difference comparison result, the second difference comparison result and the third difference comparison result are all no difference, it is determined that the current service template meets the upgrade conditions. If at least one of the first difference comparison result, the second difference comparison result and the third difference comparison result is a difference, it is determined that the current service template does not meet the upgrade conditions.
[0208] An electronic device is provided in an embodiment of the present application, including a memory, a processor and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the steps of a template upgrade method. Compared with the prior art, it can achieve: accurately judging whether the business template meets the upgrade conditions.
[0209] See also Figure 6 The present application also provides a specific example of an electronic device. Figure 6 The electronic device 6000 shown includes: a processor 6001 and a memory 6003. The processor 6001 and the memory 6003 are connected, such as through a bus 6002. Optionally, the electronic device 6000 may also include a transceiver 6004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 6004 is not limited to one, and the structure of the electronic device 6000 does not constitute a limitation on the embodiments of the present application.
[0210] Processor 6001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 6001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0211] The bus 6002 may include a path to transmit information between the above components. The bus 6002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 6002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0212] The memory 6003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0213] The memory 6003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 6001. The processor 6001 is used to execute the computer program stored in the memory 6003 to implement the steps shown in the above method embodiment.
[0214] Among them, electronic devices include but are not limited to: servers.
[0215] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0216] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0217] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0218] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A method for determining a template upgrade, characterized in that: The method comprises: Determine the current business template of the target business, as well as the current value and default value of the operation control information, the current value and default value of the business process information, and the current value and default value of the business applicable scope information of the current business template; Determine at least one of a first difference comparison result between a current value and a default value of the operation control information of the current business template, a second difference comparison result between a current value and a default value of the business process information, and a third difference comparison result between a current value and a default value of the business application scope information; According to at least one of the first difference comparison result, the second difference comparison result and the third difference comparison result of the current service template, it is determined whether the current service template meets the upgrade condition.
2. The method according to claim 1, characterized in that The determining of the current service template of the target service also includes: Receiving a subject identification set and at least one new service template sent by a user terminal; the subject identification set includes a subject identification of at least one service subject; For each subject identifier in the business subject set, a first request carrying the subject identifier is sent to the logical terminal to obtain current business templates of multiple businesses of the business subject corresponding to the subject identifier returned by the logical terminal according to the first request; the current business templates of multiple businesses of the business subject corresponding to the subject identifier are obtained by the logical terminal querying a database according to the subject identifier; For each new service template, if there is a current service template of the same template type among the current service templates of the multiple services, the service corresponding to the current service template of the same template type is taken as the target service.
3. The method according to claim 1, characterized in that The default value of the operation control information includes an operation parameter value set of each default operation control; Determining the default value of the operation control information of the current business template: Determine the template identifier of the current service template; Sending a second request carrying the template identifier to the logical terminal; Obtaining an operation parameter value set of each default operation control in the operation control information returned by the logical terminal according to the second request; the operation parameter value set of each default operation control in the operation control information is obtained by the logical terminal querying a database according to the template identifier.
4. The method according to claim 1, characterized in that: The default value of the business process information includes a default process consisting of default business steps of the target business; The determining of the default value of the business process information of the current business template includes: Determine the template identifier of the current service template; Sending a third request carrying the template identifier to the logical terminal; A default process returned by the logical terminal according to the third request is obtained; the default process is obtained by the logical terminal querying a database according to the template identifier.
5. The method according to claim 1, characterized in that The default value of the service application scope information is the default application scope of the target service; The determining of the default value of the service application scope information of the current service template includes: Sending a fourth request to the service terminal through the logical terminal, the fourth request carrying the subject identifier, the fourth request being used to request to obtain a default applicable scope of the target service; The default applicable scope of the target service is obtained by the service terminal returning the default applicable scope of the target service through the logical terminal according to the fourth request; the default applicable scope of the target service is obtained by the service terminal querying a database according to the subject identifier.
6. The method according to claim 3, characterized in that The current value of the operation control information includes an operation parameter value set of each current operation control; the operation parameter value set includes a parameter value of at least one operation parameter; The determining of a first difference comparison result between a current value and a default value of the operation control information of the current business template includes: For each current operation control, if it is determined that there is an operation parameter value set of a default operation control that is the same as the operation parameter value set of the current operation control, then determining that the first difference comparison result is no difference; If there is at least one current operation control and there is no default operation control whose operation parameter value set is the same as the operation parameter value set of the current operation control, then it is determined that the first difference comparison result is that there is a difference.
7. The method according to claim 6, characterized in that The determining that there is an operation parameter value set of a default operation control that is the same as the operation parameter value set of the current operation control includes: Concatenate each parameter value in the operation parameter value set of the current operation control to obtain a first character string of the current control; For each default operation control, concatenate the parameter values in the operation parameter value set of the default operation control to obtain a second character string of the default operation control; The first character string of the current operation control is compared with the second character string of each default operation control. If it is determined that there is a second character string that is the same as the first character string, it is determined that there is an operation parameter value set of a default operation control that is the same as the operation parameter value set of the current operation control.
8. The method according to claim 4, characterized in that The current process is represented by a first directed acyclic graph, a vertex in the first directed acyclic graph is used to represent a business step in the current process, and a direction-based connection between each vertex in the first directed acyclic graph represents a sequence between business steps in the current process; The default process is represented by a second directed acyclic graph, a vertex in the second directed acyclic graph is used to represent a business step in the default process, and the direction-based connection between each vertex in the second directed acyclic graph represents the sequence between the business steps in the default process; The determining of a second difference comparison result between the current value and the default value of the business process information of the current business template includes: If the vertices in the first directed acyclic graph and the vertices in the second directed acyclic graph correspond one to one, determining that the second difference comparison result is no difference; If at least one vertex in the first directed acyclic graph and the second directed acyclic graph has no corresponding vertex, it is determined that the second difference comparison result is different.
9. The method according to claim 5, characterized in that The current value of the business application scope information is the current application scope of the target business; the current application scope and the default application scope both include at least one business object of the business subject corresponding to the subject identifier; The determining of the third difference comparison result between the current value and the default value of the service application scope information of the current service template includes: If it is determined that the business objects in the current applicable scope correspond to the business objects in the default applicable scope one by one, determining that the third difference comparison result is no difference; If it is determined that at least one business object in the current application scope and the default application scope has no corresponding business object, the third difference comparison result is determined to be different.
10. The method according to claim 1, characterized in that The determining, based on at least one of the first difference comparison result, the second difference comparison result, and the third difference comparison result of the current business template, whether the current business template meets the upgrade condition includes: If the first difference comparison result, the second difference comparison result and the third difference comparison result are all no difference, it is determined that the current service template meets the upgrade condition; If at least one of the first difference comparison result, the second difference comparison result, and the third difference comparison result is different, it is determined that the current service template does not meet the upgrade condition.
11. A template upgrade determination device, characterized in that: The device comprises: A first determination module is used to determine the current business template of the target business, as well as the current value and default value of the operation control information of the current business template, the current value and default value of the business process information, and the current value and default value of the business applicable scope information; A second determination module is used to determine at least one of a first difference comparison result between a current value and a default value of the operation control information of the current business template, a second difference comparison result between a current value and a default value of the business process information, and a third difference comparison result between a current value and a default value of the business application scope information; The third determination module is used to determine whether the current service template meets the upgrade condition according to at least one of the first difference comparison result, the second difference comparison result and the third difference comparison result of the current service template.
12. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 10.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the template upgrade determination method according to any one of claims 1 to 10 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the template upgrade determination method according to any one of claims 1 to 10 are implemented.
