CN113362040B - Approval chain configuration updating method and device, electronic equipment and storage medium - Google Patents

Approval chain configuration updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113362040B
CN113362040B CN202110737317.3A CN202110737317A CN113362040B CN 113362040 B CN113362040 B CN 113362040B CN 202110737317 A CN202110737317 A CN 202110737317A CN 113362040 B CN113362040 B CN 113362040B
Authority
CN
China
Prior art keywords
approval
real
configuration
approval chain
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110737317.3A
Other languages
Chinese (zh)
Other versions
CN113362040A (en
Inventor
王柳清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110737317.3A priority Critical patent/CN113362040B/en
Publication of CN113362040A publication Critical patent/CN113362040A/en
Application granted granted Critical
Publication of CN113362040B publication Critical patent/CN113362040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of data processing, and provides an approval chain configuration updating method, electronic equipment, a device and a storage medium, wherein the method comprises the following steps: setting a corresponding real-time configuration file according to the real-time process approval requirement of the document to be approved; verifying the configuration information of the real-time configuration file, and determining a to-be-configured approval chain of a to-be-updated function page module in the local system according to the real-time configuration file which passes the configuration information verification; and updating the configuration of the examination and approval chain to be configured according to the real-time configuration file. The technical scheme provided by the invention can solve the problem that the configuration update of the existing approval chain needs to be realized by a developer from a code layer every time, thereby seriously influencing the working efficiency.

Description

Approval chain configuration updating method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to an approval chain configuration updating method and device, electronic equipment and a storage medium.
Background
With the rapid development of internet technology, the traditional paper approval mode is not suitable for the development requirements of the economic society, electronic office becomes the selection trend of the office mode of an enterprise, an important component in the office of the enterprise is approval of a workflow, in the traditional workflow approval process, a plurality of functional pages in a local system need to be approved, different business personnel have different browsing and approval habits, and therefore the business personnel hope to change the approval nodes of all the pages in a self-defined mode.
However, the setting of the general workflow inside the system is relatively fixed, the flow and each approval staff in the approval chain cannot be flexibly and effectively set, a background developer can only deal with the workflow in a mode of submitting a data modification list at present, the workflow is inconvenient and not beneficial to the configuration of each approval chain, and the update configuration of each approval chain requires the developer to update and configure the approval chain from a code layer, which can seriously affect the approval work efficiency of the local system.
Based on the above technical problems, an approval chain configuration updating method capable of significantly improving the approval work efficiency is urgently needed.
Disclosure of Invention
The invention provides an examination and approval chain configuration updating method and device, electronic equipment and a storage medium, and mainly aims to solve the problem that the configuration updating of an existing examination and approval chain needs developers to be realized from a code layer every time, so that the working efficiency is seriously influenced.
In order to achieve the above object, the present invention provides an approval chain configuration updating method, which comprises the following steps:
setting a corresponding real-time configuration file according to the real-time process approval requirement of the files to be approved;
verifying the configuration information of the real-time configuration file, and determining a to-be-configured approval chain of a to-be-updated function page module in the local system according to the real-time configuration file which passes the configuration information verification;
and updating the configuration of the examination and approval chain to be configured according to the real-time configuration file.
Preferably, the setting of the corresponding real-time configuration file according to the real-time process approval requirement of the document to be approved includes:
determining configuration information according to the real-time process approval requirement of the files to be approved;
and storing all the configuration information into a preset configuration file template to form the real-time configuration file.
Preferably, the configuration information at least includes: functional page module information, approval node information and approval flow list information; and,
the preset configuration file template is a table format type file, and different cells of the preset configuration file template are predefined with file information types corresponding to the functional page module information, the approval node information and the approval flow list information; and,
and storing each configuration information into a corresponding cell in the preset configuration file template according to the file information type of each configuration information to form the real-time configuration file.
Preferably, the checking the configuration information of the real-time configuration file includes:
checking the configuration information in the real-time configuration file cell by cell;
if the configuration information in the current cell does not pass the verification, modifying the configuration information in the current cell according to the generated verification error log, and verifying the modified configuration information in the current cell again until the configuration information in the current cell passes the verification;
and if the configuration information in each cell passes the verification, judging that the real-time configuration file passes the verification of the configuration information.
Preferably, the cell-by-cell verification of the configuration information in the real-time configuration file includes:
judging whether the character length of the configuration information in the current cell is within a corresponding preset character length range or not; if yes, judging that the configuration information in the current cell passes the character length check; if not, judging that the configuration information in the current cell does not pass the character length check;
judging whether the configuration information in the current cell is in a corresponding preset data table or not; if so, judging that the configuration information in the current cell passes data verification; if not, judging that the configuration information in the current cell does not pass the data verification;
and if the configuration information in the current cell passes both the character length check and the data check, judging that the configuration information in the current cell passes the check.
Preferably, before determining the approval chain to be configured of the functional module page to be updated in the local system according to the real-time configuration file verified by the configuration information, the method further includes:
code decoupling is carried out on each functional page module in the local system and the corresponding approval chain;
pre-embedding a functional page module ID in a code layer of each functional page module;
associating each functional page module ID with the corresponding examination and approval chain ID of the examination and approval chain; and also,
the determining the approval chain to be configured of the functional module page to be updated in the local system according to the real-time configuration file verified by the configuration information comprises the following steps:
determining the functional module to be updated according to the functional page module information in the real-time configuration file verified by the configuration information, and acquiring a corresponding functional page module ID;
determining an associated approval chain ID according to the function page module ID corresponding to the function module to be updated;
and determining the approval chain to be configured according to the associated approval chain ID.
Preferably, the updating the configuration of the approval chain to be configured according to the real-time configuration file includes:
updating the number of the approval nodes of the approval chain to be configured and the flow relation among the approval nodes according to the approval node information in the real-time configuration file;
and updating each approval list of the approval chain to be configured according to the approval flow list information in the real-time configuration file.
On the other hand, the invention also provides an approval chain configuration updating device, which comprises:
the configuration file setting unit is used for setting a corresponding real-time configuration file according to the real-time process approval requirement of the document to be approved;
the file checking unit is used for checking the configuration information of the real-time configuration file and determining a to-be-configured approval chain of the to-be-updated functional page module in the local system according to the real-time configuration file which passes the configuration information checking;
and the configuration updating unit is used for updating the configuration of the examination and approval chain to be configured according to the real-time configuration file.
In another aspect, the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps in the foregoing approval chain configuration updating method when executing the computer program.
Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps in the aforementioned approval chain configuration updating method.
According to the examination and approval chain configuration updating method, the examination and approval chain configuration updating device, the electronic equipment and the readable storage medium, the retrieval range of each node in the examination and approval nodes can be flexibly controlled through the real-time configuration file, and each node on the examination and approval chain finally falls to a specific examination and approval person (such as a department leader, a core user and the like). In addition, the examination and approval chain is decoupled from the corresponding codes, the examination and approval chain is configured and updated through the configuration information in the real-time configuration file, and the number of nodes on the examination and approval chain can be flexibly adjusted according to the uploaded configuration file, so that the business examination and approval process is suitable for different scenes. In addition, in the configuration process, the display page of the functional page module can be independently rendered in the process of updating the approval chain according to the real-time configuration file, so that the page display in the configuration updating process of the approval chain is realized.
Drawings
FIG. 1 is a flowchart of a preferred embodiment of an approval chain configuration update method according to an embodiment of the present invention;
FIG. 2 is a block diagram of an approval chain configuration update apparatus according to an embodiment of the present invention;
fig. 3 is a schematic internal structural diagram of an electronic device implementing an approval chain configuration updating method according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more embodiments. It may be evident, however, that such embodiment(s) may be practiced without these specific details.
Specific embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Example 1
In order to illustrate the method for updating the configuration of the approval chain provided by the present invention, fig. 1 shows a flow of the method for updating the configuration of the approval chain provided by the present invention.
As shown in fig. 1, the method for updating approval chain configuration provided by the present invention includes:
s110: and setting a corresponding real-time configuration file according to the real-time process approval requirement of the document to be approved.
Before step S110 is specifically described, after a document to be approved is determined, an approval chain corresponding to approval requirements (such as a clear approval department, a clear approver, and a clear approval process) needs to be configured for the document to be approved, however, existing approval chains need to be set, and therefore, a developer in the background can only be requested to change a source code of the existing approval chain by submitting a modification list, so as to implement configuration of the approval chain corresponding to the approval requirements of the document to be approved. However, since the background code of the existing approval chain is completely changed, the approval chain can only approve the approved document completely corresponding to the approval process of the document to be approved, and if a new approved document needs to be approved, a developer in the background still needs to be requested to change the source code, which seriously affects the work efficiency of the approval configuration.
In order to solve the above problems, the present invention introduces a real-time configuration file, and specifically, the setting of the corresponding real-time configuration file according to the real-time process approval requirement of the pending files includes:
determining configuration information according to the real-time process approval requirement of the files to be approved; the configuration information comprises functional page module information, approval node information and approval flow list information:
and storing all the configuration information into a preset configuration file template to form the real-time configuration file.
More specifically, in order to facilitate a local system to analyze configuration information in a preset configuration file, the preset configuration file template needs to be set as a table format type file (such as an excel format file), and different cells of the preset configuration file template are predefined with file information types corresponding to the functional page module information, the approval node information, and the approval flow list information, respectively; and storing each configuration information into the corresponding cell in the preset configuration file template according to the file information type of each configuration information to form the real-time configuration file.
It should be noted that, when an applicant (e.g., a user) needs to perform an approval chain on a page of a certain functional page module on a browser of a local system and update and configure an approval node thereof, a preset real-time configuration file related to the approval chain of the functional module may be uploaded to the local system, and the internal portion of the later system may automatically perform configuration and update on the approval chain corresponding to the real-time configuration file according to the real-time configuration file.
S120: and verifying the configuration information of the real-time configuration file, and determining a to-be-configured approval chain of the to-be-updated functional page module in the local system according to the real-time configuration file which passes the configuration information verification.
Specifically, the verifying the configuration information of the real-time configuration file includes:
checking the configuration information in the real-time configuration file cell by cell;
if the configuration information in the current cell does not pass the verification, modifying the configuration information in the current cell according to the generated verification error log, and then verifying the modified configuration information in the current cell again until the configuration information in the current cell passes the verification;
and if the configuration information in each cell passes the verification, judging that the real-time configuration file passes the verification of the configuration information.
It should be noted that, after the real-time configuration file is uploaded to the local system, the system performs configuration information verification on the real-time configuration file to determine whether data and formats of various pieces of configuration information in the real-time configuration file are all qualified, and when the real-time configuration file passes the configuration information verification, the local system can find a corresponding functional page module according to the real-time configuration file pair, then determine a related approval chain and approval nodes thereof with the functional page module, and then perform update configuration on the approval chain and the approval nodes thereof; by the method, the step of submitting the data modification list by background developers can be omitted, and the efficiency of work related to approval and update of the configuration can be effectively improved.
Specifically, the checking the configuration information in the real-time configuration file cell by cell includes:
judging whether the character length of the configuration information in the current cell is within a corresponding preset character length range or not; if so, judging that the configuration information in the current cell passes the character length check; if not, judging that the configuration information in the current cell does not pass the character length check;
judging whether the configuration information in the current cell is in a corresponding preset data table or not; if so, judging that the configuration information in the current cell passes data verification; if not, judging that the configuration information in the current cell does not pass the data verification;
and if the configuration information in the previous cell passes both the character length verification and the data verification, judging that the configuration information in the current cell passes the verification.
It should be noted that, in order to facilitate the local system to identify each piece of configuration information in the real-time configuration file, in general, the real-time configuration file needs to be set to a file in an excel format, and for the real-time configuration file in the excel format, the real-time configuration file needs to be checked line by line or even cell by cell according to a preset check rule.
If the check is carried out line by line, when the data of the current line fails to be checked, recording all errors in the data of the line, waiting for writing in an error log, and judging the total number of errors after the data of all lines are checked.
If the total error number is 0, the uploaded real-time configuration file is considered to be qualified, and then corresponding database writing operation can be executed according to the real-time configuration file, and insertion is performed according to the definition of the functional page module, so that configuration updating of the approval chain of the functional page module is achieved.
If the total error number is greater than 0, the uploaded real-time configuration file is considered to be unqualified, at this time, a local system generates a related error log, a foreground page of the local system provides an entry for downloading the error log for an applicant (or a user), the user can learn the error position and the error reason in the uploaded real-time configuration file according to the downloaded error log, then modify data in the real-time configuration file according to the error position and the error reason, then upload the real-time configuration file to the local system again, and check the real-time configuration file again until the total error number is 0.
It should be noted that, according to the service requirement of the local system, the configuration information in the real-time configuration file further includes function page module information (including a function page module ID corresponding to a function page module name), approval node information (including a node NO, a node display name, a node type, and the like), approval flow list information (including an approver white list, a department white list, a role white list, and the like), and of course, the type of the configuration information may be determined according to the actual service requirement, which is only exemplified here.
The functional page Module ID is a Module ID of a page Module accurate to the function in the system, the Module IDs correspond to the functional page Module IDs one by one, and the Module IDs correspond to corresponding examination and approval chain IDs; for the approval node information, each node exists in the real-time configuration file, the nodes are rendered by the browser when the browser renders the front-end page module in the later approval chain configuration process, and therefore the effect of flexibly controlling the number of the approval chain nodes is achieved. In addition, for each approval chain, N (N > 0) approval nodes exist, each node must fall into a corresponding approver, and node Nos under the same functional page module ID must be sequential, if not, uploading is wrong, and wrong file writing and downloading are triggered. Each node of the two approval chains displays a name when initialized on the page, such as: "applicant", "legal financial post", etc. And regarding the white list of the approvers, if the white list of the approvers is not configured, the node of the approval chain is considered not to limit the level of the approvers, and if the white list of the approvers is configured, only the account numbers of the approvers configured in the white list of the approvers are allowed to be retrieved and selected. For department white lists, department white lists and role white lists, the configuration mode is the same as the principle of the white list of the approver, and the description is omitted here.
Further, in the process of performing line-by-line verification on the real-time configuration file according to the preset verification rule, it is necessary to perform one-by-one verification on each configuration information according to the data characteristics of each configuration information. For example:
the checking of the function page module ID mainly comprises the following steps: checking whether the function ID is empty or not and checking whether the function page module ID is in a function page module ID table preset by a local system or not; and when the function ID is not null and is in a function page module ID table preset by the local system, judging that the function ID passes the verification.
The check for node NO mainly includes: checking whether the node NO is 123, 8230, 8230in sequence increasing arrangement mode.
And checking the node display name, the node type, the white list of the approver, the white list of the department and the white list of the department, wherein checking whether the white list is empty is mainly included.
S130: and updating the configuration of the examination and approval chain to be configured according to the real-time configuration file.
Specifically, in order to implement configuration update of the approval chain to be configured only through the real-time configuration file, before determining the approval chain to be configured of the functional module page to be updated in the local system according to the real-time configuration file verified by the configuration information, the method further includes:
code decoupling is carried out on each functional page module in the local system and the corresponding approval chain;
pre-embedding a functional page module ID in a code layer of each functional page module;
associating each functional page module ID with the corresponding examination and approval chain ID of the examination and approval chain; and also,
the determining the approval chain to be configured of the functional module page to be updated in the local system according to the real-time configuration file verified by the configuration information comprises the following steps:
determining the functional module to be updated according to the functional page module information in the real-time configuration file verified by the configuration information, and acquiring a corresponding functional page module ID;
determining a related approval chain ID according to the function page module ID corresponding to the function module to be updated;
and determining the approval chain to be configured according to the associated approval chain ID.
More specifically, the updating the configuration of the approval chain to be configured according to the real-time configuration file includes:
updating the number of the approval nodes of the approval chain to be configured and the flow relation among the approval nodes according to the approval node information in the real-time configuration file;
and updating each examination and approval list of the examination and approval chain to be configured according to the examination and approval flow list information in the real-time configuration file.
It should be noted that the approval chains of the conventional functional page module are all fixed and need to be controlled by codes, so that a background developer can only perform configuration update on the approval chains from a code layer by submitting a modification list, and cannot perform configuration update on the approval chains at any time, so as to meet corresponding requirements; therefore, the approval chain and the corresponding code thereof need to be decoupled in advance to reduce the dependency of the approval chain on the page code, so that the configuration of each existing page function module in the local system and the configuration of the corresponding approval chain thereof are decoupled and abstracted to a certain extent.
Specifically, on the code layer (JSP/HTML), development only needs to give an abstract convention to give an approval chain corresponding to a certain functional page module (generally visualized as a certain visible page), for example: for an approval chain for allowing a page module (a certain functional page module) to be purchased, a paramater (parameter type) can be customized in a user-defined element (page element) such as a customized < pa _ approval chain > </pa _ approval chain > in advance on a page, and then a functional page module ID (module ID) corresponding to the functional page module name is pre-embedded in a code layer; the following were used: < pa _ chain of approval moduleID = "zhunnugo approver ai" > < pa _ chain of approval >, and then the module ID pre-embedded in the code layer is associated with the chain of approval ID.
It should be noted that the above information is all stored in a preset examination and approval chain database of the local system, and two pieces of data need to be maintained in the examination and approval chain database: the first block is main data of the approval chain: the approval chain is configured as the subject data of the object, and the data structure refers to the data structure of the real-time configuration file of the approval chain in step S110. The second block is approval chain Mapping data: and mapping table for associating module ID pre-embedded in the code layer with the examination and approval chain ID.
In the process of carrying out configuration updating on the corresponding approval nodes according to the real-time timing file, the configuration updating of the approval nodes can be realized through a system setting mode (namely, a mode of changing data in the real-time configuration file).
Specifically, a module ID corresponding to the function name is determined according to a mapping table, then a corresponding examination and approval chain ID is determined according to the module ID, then a corresponding examination and approval chain is found according to the examination and approval chain ID, and finally, configuration updating is carried out on each node in the corresponding examination and approval chain based on each configuration information in the real-time configuration file (the front end of a page is represented as that a browser carries out corresponding rendering according to the real-time configuration file pair). The specific configuration updating process mainly comprises the following steps: and adjusting the number of nodes in the approval chain, and changing the person list and the list number in the approval person white list, the department white list and the department white list.
The local system does not need to carry out complex transformation on the page, and only needs to maintain and update the main data of the examination and approval chain and the Mapping data of the examination and approval chain, so that flexible setting can be carried out.
In addition, the system only updates configuration information corresponding to the existing Module ID of the system in the uploaded file, ignores the Module ID which does not exist in the system, and specifically, if mapping data of the corresponding Module ID and the examination and approval chain ID does not exist, the page function Module does not operate the examination and approval chain of the examination and approval chain, and the examination and approval chain area of the examination and approval chain is not displayed.
It should be noted that, in the actual operation process, the ModuleID and the approval chain ID are not the same, and can be flexibly switched. Moreover, due to the characteristics of the data structure, the uploading of the approval chain only realizes the updating operation, so that the Insert and Mix modes are not needed any more, the initialization is a pure Insert operation, and in the actual use process of a user, the content of the approval chain corresponding to the original approval chain _ ID is cleared first, and then the new content of the approval chain is written.
It should be further noted that, in the actual application process, after the configuration update is performed on the approval chain of a certain functional page module in the local system, the corresponding document to be approved can be approved through the approval chain after the configuration update, in the approval process, the document to be approved needs to pass the approval of the approvers of each node on the approval chain in sequence, if the document to be approved passes the approval of the approvers of all nodes of the approval chain after the configuration update, it is determined that the document to be approved passes the approval, and subsequently, the business operation corresponding to the document to be approved can be executed.
In addition, it should be emphasized that, in order to further ensure the privacy and security of the data used in the above approval chain configuration updating method, the real-time configuration file, the preset configuration file template and the preset verification rule may all be stored in the nodes of the block chain.
According to the embodiment, the method for updating the configuration of the approval chain can flexibly control the retrieval range of each node in the approval nodes through the real-time configuration file, and each node in the approval chain finally falls to a specific approver. In addition, the examination and approval chain is decoupled from the corresponding codes, the examination and approval chain is configured and updated through the configuration information in the real-time configuration file, and the number of nodes on the examination and approval chain can be flexibly adjusted according to the uploaded configuration file, so that the business examination and approval process is suitable for different scenes. In addition, in the configuration process, the page of the module unit can be independently rendered according to the real-time configuration file (the page rendering, namely the display operation at the front end of the page, is realized by approval chain configuration updating), compared with the traditional mode that the page rendering can be realized only by background developers by using change codes, the hard coding mode such as node number can be avoided, the operation of submitting data modification notification to enable the developers to perform configuration updating is omitted, and the efficiency of configuration updating can be remarkably improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by functions and internal logic of the process, and should not constitute any limitation to the implementation process of the embodiments of the present application.
As shown in fig. 2, the present invention further provides an approval chain configuration updating apparatus 100, which can be installed in an electronic device. According to the realized functions, the approval chain configuration updating device 100 may include a configuration file setting unit 101, a file verifying unit 102, and a configuration updating unit 103. The unit provided by the invention refers to a series of computer program segments which can be executed by a processor of the electronic equipment and can complete fixed functions, and the computer program segments are stored in a memory of the electronic equipment.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the configuration file setting unit 101 is configured to set a corresponding real-time configuration file according to a real-time process approval requirement of a to-be-approved file;
the file checking unit 102 is configured to check configuration information of the real-time configuration file, and determine a to-be-configured approval chain of a to-be-updated functional page module in the local system according to the real-time configuration file that passes the configuration information check;
and the configuration updating unit 103 is configured to update the configuration of the approval chain to be configured according to the real-time configuration file.
The configuration file setting unit 101 further includes a configuration information determining unit and a template storing unit, wherein the configuration information determining unit is configured to determine configuration information according to a real-time process approval requirement of a to-be-approved file, and the template storing unit is configured to store each configuration information into a preset configuration file template to form the real-time configuration file.
Further, the configuration information includes at least: functional page module information, approval node information and approval flow list information; and,
the preset configuration file template is a table format type file, and different cells of the preset configuration file template are respectively predefined with file information types corresponding to the functional page module information, the approval node information and the approval flow list information; and,
and storing each configuration information into a corresponding cell in the preset configuration file template according to the file information type of each configuration information to form the real-time configuration file.
In addition, the file checking unit 102 includes a cell checking unit and an information modifying unit, wherein the cell checking unit is configured to check the configuration information in the real-time configuration file cell by cell, and the information modifying unit is configured to, if the configuration information in the current cell fails to be checked, modify the configuration information in the current cell according to the generated check error log and then check the modified configuration information in the current cell again until the configuration information in the current cell passes the check.
Specifically, the cell check unit comprises a character length check unit and a data check unit, wherein the character length check unit is used for judging whether the character length of the configuration information in the current cell is within a corresponding preset character length range; if so, judging that the configuration information in the current cell passes the character length check; if not, judging that the configuration information in the current cell does not pass the character length check; the data checking unit is used for judging whether the configuration information in the current cell is in a corresponding preset data table or not; if yes, judging that the configuration information in the current cell passes data verification; if not, judging that the configuration information in the current cell does not pass the data verification; and if the configuration information in the current cell passes both the character length check and the data check, determining that the configuration information in the current cell passes the check.
In addition, the system also comprises a preprocessing unit which is used for determining the approval chain to be configured of the function module page to be updated in the local system before determining the approval chain to be configured of the function module page to be updated according to the real-time configuration file verified by the configuration information,
code decoupling is carried out on each functional page module in the local system and the corresponding approval chain;
pre-embedding a functional page module ID in a code layer of each functional page module;
and associating the ID of each functional page module with the ID of the corresponding examination and approval chain.
In addition, the file verifying unit 102 further includes an approval chain determining unit, configured to determine the functional module to be updated according to the functional page module information in the real-time configuration file verified by the configuration information, and acquire a corresponding functional page module ID;
determining a related approval chain ID according to the function page module ID corresponding to the function module to be updated;
and determining the approval chain to be configured according to the associated approval chain ID.
In addition, the configuration updating unit 103 includes a node information updating unit and a list information updating unit, where the node information updating unit is configured to update the number of approval nodes of the approval chain to be configured and the flow relationship between the approval nodes according to approval node information in the real-time configuration file, and the list information updating unit is configured to update each approval list of the approval chain to be configured according to approval flow list information in the real-time configuration file.
As shown in fig. 3, the present invention further provides an electronic device 1 for an approval chain configuration updating method.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as an approval chain configuration update program 12, stored in the memory 11 and operable on said processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of an approval chain configuration update program, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., an approval chain configuration update program, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used to establish a communication connection between the electronic device 1 and another electronic device.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The approval chain configuration update program 12 stored in the memory 11 of the electronic device 1 is a combination of instructions, which when executed in the processor 10, can implement:
setting a corresponding real-time configuration file according to the real-time process approval requirement of the files to be approved;
verifying the configuration information of the real-time configuration file, and determining a to-be-configured approval chain of a to-be-updated function page module in the local system according to the real-time configuration file which passes the configuration information verification;
and updating the configuration of the examination and approval chain to be configured according to the real-time configuration file.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not repeated herein. It should be emphasized that, in order to further ensure the privacy and security of the approval chain configuration update, the approval chain configuration update data is stored in the node of the blockchain where the server cluster is located.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM).
An embodiment of the present invention further provides a computer-readable storage medium, where the storage medium may be nonvolatile or volatile, and the storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements:
setting a corresponding real-time configuration file according to the real-time process approval requirement of the document to be approved;
checking the configuration information of the real-time configuration file, and determining a to-be-configured approval chain of a to-be-updated function page module in the local system according to the real-time configuration file checked by the configuration information;
and updating the configuration of the examination and approval chain to be configured according to the real-time configuration file.
Specifically, the specific implementation method of the computer program when executed by the processor may refer to the description of the relevant steps in the approval chain configuration updating method in the embodiment, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not to denote any particular order.
Finally, it should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the same, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. An approval chain configuration update method, the method comprising:
setting a corresponding real-time configuration file according to the real-time process approval requirement of the document to be approved;
verifying the configuration information of the real-time configuration file, and determining a to-be-configured approval chain of a to-be-updated function page module in the local system according to the real-time configuration file which passes the configuration information verification;
updating the configuration of the examination and approval chain to be configured according to the real-time configuration file; wherein,
before determining a to-be-configured approval chain of a to-be-updated functional module page in a local system according to a real-time configuration file verified by configuration information, the method further comprises the following steps:
code decoupling is carried out on each functional page module in the local system and the corresponding approval chain;
pre-embedding a functional page module ID in a code layer of each functional page module;
associating each functional page module ID with the corresponding examination and approval chain ID of the examination and approval chain; and,
the determining the approval chain to be configured of the functional module page to be updated in the local system according to the real-time configuration file verified by the configuration information comprises the following steps:
determining the functional module to be updated according to the functional page module information in the real-time configuration file verified by the configuration information, and acquiring a corresponding functional page module ID;
determining a related approval chain ID according to the function page module ID corresponding to the function module to be updated;
and determining the approval chain to be configured according to the associated approval chain ID.
2. The approval chain configuration updating method according to claim 1, wherein the setting of the corresponding real-time configuration file according to the real-time process approval requirement of the document to be approved comprises:
determining configuration information according to the real-time process approval requirement of the files to be approved;
and storing all the configuration information into a preset configuration file template to form the real-time configuration file.
3. The approval chain configuration updating method according to claim 2, wherein the configuration information at least comprises: functional page module information, approval node information and approval flow list information; and the number of the first and second groups is,
the preset configuration file template is a table format type file, and different cells of the preset configuration file template are respectively predefined with file information types corresponding to the functional page module information, the approval node information and the approval flow list information; and,
and storing each configuration information into a corresponding cell in the preset configuration file template according to the file information type of each configuration information to form the real-time configuration file.
4. The approval chain configuration updating method according to claim 3, wherein the verifying the configuration information of the real-time configuration file comprises:
checking the configuration information in the real-time configuration file cell by cell;
if the configuration information in the current cell does not pass the verification, modifying the configuration information in the current cell according to the generated verification error log, and verifying the modified configuration information in the current cell again until the configuration information in the current cell passes the verification;
and if the configuration information in each cell passes the verification, judging that the real-time configuration file passes the verification of the configuration information.
5. The approval chain configuration updating method of claim 4, wherein the cell-by-cell verification of the configuration information in the real-time configuration file comprises:
judging whether the character length of the configuration information in the current cell is within a corresponding preset character length range or not; if yes, judging that the configuration information in the current cell passes the character length check; if not, judging that the configuration information in the current cell does not pass the character length check;
judging whether the configuration information in the current cell is in a corresponding preset data table or not; if yes, judging that the configuration information in the current cell passes data verification; if not, judging that the configuration information in the current cell does not pass the data verification;
and if the configuration information in the current cell passes both the character length check and the data check, judging that the configuration information in the current cell passes the check.
6. The approval chain configuration updating method according to claim 3, wherein the updating the configuration of the approval chain to be configured according to the real-time configuration file comprises:
updating the number of the approval nodes of the approval chain to be configured and the flow relation among the approval nodes according to the approval node information in the real-time configuration file;
and updating each approval list of the approval chain to be configured according to the approval flow list information in the real-time configuration file.
7. An approval chain configuration update apparatus, comprising:
the configuration file setting unit is used for setting a corresponding real-time configuration file according to the real-time process approval requirement of the files to be approved;
the file verification unit is used for verifying the configuration information of the real-time configuration file and determining a to-be-configured approval chain of the to-be-updated functional page module in the local system according to the real-time configuration file verified by the configuration information;
the configuration updating unit is used for updating the configuration of the examination and approval chain to be configured according to the real-time configuration file; wherein,
the system also comprises a preprocessing unit, the preprocessing unit is used for determining the functional module page to be updated in the local system before the approval chain to be configured of the functional module page to be updated is determined according to the real-time configuration file verified by the configuration information,
code decoupling is carried out on each functional page module in the local system and the corresponding approval chain;
pre-embedding a functional page module ID in a code layer of each functional page module;
associating each functional page module ID with the corresponding examination and approval chain ID of the examination and approval chain;
the file checking unit comprises an approval chain determining unit used for,
determining the functional module to be updated according to the functional page module information in the real-time configuration file verified by the configuration information, and acquiring a corresponding functional page module ID;
determining an associated approval chain ID according to the function page module ID corresponding to the function module to be updated;
and determining the approval chain to be configured according to the associated approval chain ID.
8. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the approval chain configuration update method of any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps in the approval chain configuration update method according to any one of claims 1 to 6.
CN202110737317.3A 2021-06-30 2021-06-30 Approval chain configuration updating method and device, electronic equipment and storage medium Active CN113362040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110737317.3A CN113362040B (en) 2021-06-30 2021-06-30 Approval chain configuration updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110737317.3A CN113362040B (en) 2021-06-30 2021-06-30 Approval chain configuration updating method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113362040A CN113362040A (en) 2021-09-07
CN113362040B true CN113362040B (en) 2023-02-03

Family

ID=77537510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110737317.3A Active CN113362040B (en) 2021-06-30 2021-06-30 Approval chain configuration updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113362040B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833714A (en) * 2010-06-12 2010-09-15 山东中创软件工程股份有限公司 Method, device and system for controlling power of examination and approval
CN109032590A (en) * 2018-09-26 2018-12-18 山东鲁能软件技术有限公司 A kind of configuration method, device, terminal and the storage medium of visual development environment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106779613A (en) * 2016-12-28 2017-05-31 北京奇鱼时代科技有限公司 A kind of method and apparatus for examining configuration
CN109165856B (en) * 2018-08-31 2023-08-08 平安科技(深圳)有限公司 Dynamic configuration method, device and storage medium of approval chain
CN109543959A (en) * 2018-11-01 2019-03-29 平安科技(深圳)有限公司 Examine chain generation method, device, computer equipment and storage medium
CN109784829A (en) * 2018-12-11 2019-05-21 平安科技(深圳)有限公司 Approval process Dynamic Configuration, device, computer equipment and storage medium
CN110765741A (en) * 2019-09-09 2020-02-07 重庆金融资产交易所有限责任公司 Data processing method and device, computer equipment and storage medium
CN112667244A (en) * 2020-12-30 2021-04-16 平安证券股份有限公司 Data verification method and device, electronic equipment and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833714A (en) * 2010-06-12 2010-09-15 山东中创软件工程股份有限公司 Method, device and system for controlling power of examination and approval
CN109032590A (en) * 2018-09-26 2018-12-18 山东鲁能软件技术有限公司 A kind of configuration method, device, terminal and the storage medium of visual development environment

Also Published As

Publication number Publication date
CN113362040A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN112052242B (en) Data query method, device, electronic equipment and storage medium
CN111429121B (en) Block chain-based electronic ticket processing method, device, equipment and storage medium
CN112115145A (en) Data acquisition method and device, electronic equipment and storage medium
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN112685117A (en) System language internationalization maintenance method, device and computer readable storage medium
CN114185895A (en) Data import and export method and device, electronic equipment and storage medium
CN113032275A (en) Method and device for testing field, electronic equipment and storage medium
CN113297180A (en) Data migration method and device, electronic equipment and storage medium
CN111985194A (en) Data storage method and device, electronic equipment and storage medium
CN114385497A (en) Test environment generation method and device, electronic equipment and storage medium
CN112948380A (en) Data storage method and device based on big data, electronic equipment and storage medium
CN112685384A (en) Data migration method and device, electronic equipment and storage medium
CN113362040B (en) Approval chain configuration updating method and device, electronic equipment and storage medium
CN116028045A (en) Third party application code rapid distribution method, device, equipment and storage medium
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN114611477A (en) Design recommendation method and device for data table, electronic equipment and medium
CN114510400A (en) Task execution method and device, electronic equipment and storage medium
CN112686759A (en) Account checking monitoring method, device, equipment and medium
CN112380820A (en) Automatic data backfilling method and device, electronic equipment and computer storage medium
CN111552631A (en) System testing method, device and computer readable storage medium
CN113704109B (en) Front-end and back-end data interaction method and device, electronic equipment and storage medium
CN113421009B (en) Accessory approval method and device, electronic equipment and readable storage medium
CN112637280B (en) Data transmission method, device, electronic equipment and storage medium
CN111625538B (en) Data processing method and device based on virtual data table technology and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant