CN111274202A - Electronic contract generating method and device, computer equipment and storage medium - Google Patents
Electronic contract generating method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111274202A CN111274202A CN202010039479.5A CN202010039479A CN111274202A CN 111274202 A CN111274202 A CN 111274202A CN 202010039479 A CN202010039479 A CN 202010039479A CN 111274202 A CN111274202 A CN 111274202A
- Authority
- CN
- China
- Prior art keywords
- contract
- rule
- base
- target electronic
- electronic
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Operations Research (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses an electronic contract generating method, which comprises the steps of acquiring contract data, wherein the contract data comprises a plurality of contract terms; carrying out rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause; the method comprises the steps that a contract rule base is subjected to flow analysis through a preset workflow engine, a contract flow base is generated, the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule; executing a contract rule base according to the contract flow base to generate a target electronic contract; the target electronic contract is stored in the block chain, so that the digitization of the target electronic contract is realized, the authenticity and the effectiveness of the target electronic contract are ensured, and the safety of the target electronic contract is improved. In addition, an electronic contract generating device, a computer device and a storage medium are also provided.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for generating an electronic contract, a computer device, and a storage medium.
Background
With the use of electronic contracts becoming more and more popular, electronic contracts are also used in more and more business scenes, such as the internet of things, the e-commerce, and the bulk trade business contracts, however, most of the current electronic contracts are converted into codes executable by machines according to certain rules and processes; or each line of electronic contracts are examined directly through an intelligent contract function, but most of the electronic contracts generated by the methods can only execute some very simple business rules, and the requirements of most of complex business rules and the safety, the performability and the trust of the contracts are difficult to meet.
Disclosure of Invention
In view of the above, it is necessary to provide an electronic contract generating method, an electronic contract generating apparatus, a computer device, and a storage medium, which can realize digitization of an electronic contract and are safe and convenient.
An electronic contract generating method, characterized in that the method comprises:
obtaining contract data, the contract data including a plurality of contract terms;
performing rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause;
performing process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule;
executing the contract rule base according to the contract process base to generate a target electronic contract;
storing the target electronic contract in a blockchain.
An electronic contract generating apparatus, the apparatus comprising:
an acquisition module for acquiring contract data, the contract data including a plurality of contract terms;
the first analysis module is used for carrying out rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause;
the second analysis module is used for carrying out process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule;
the execution module is used for executing the contract rule base according to the contract flow base to generate a target electronic contract;
a storage module to store the target electronic contract in a blockchain.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
obtaining contract data, the contract data including a plurality of contract terms;
performing rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause;
performing process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule;
executing the contract rule base according to the contract process base to generate a target electronic contract;
storing the target electronic contract in a blockchain.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
obtaining contract data, the contract data including a plurality of contract terms;
performing rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause;
performing process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule;
executing the contract rule base according to the contract process base to generate a target electronic contract;
storing the target electronic contract in a blockchain.
According to the electronic contract generating method, the electronic contract generating device, the computer equipment and the storage medium, contract data are obtained, and the contract data comprise a plurality of contract terms; performing rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause; performing process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule; executing the contract rule base according to the contract process base to generate a target electronic contract; the target electronic contract is stored in the block chain, so that not only is the digitization of the target electronic contract realized, but also the authenticity and the effectiveness of the target electronic contract are ensured, and the safety of the target electronic contract is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram of a method for electronic contract generation in one embodiment;
FIG. 2 is a flow diagram of a method of storing a target electronic contract, under an embodiment;
FIG. 3 is a flowchart of an electronic contract generation method in another embodiment;
FIG. 4 is a flow diagram of a method for contract rule base generation in one embodiment;
FIG. 5 is a flow diagram of a method for contract flow library generation in one embodiment;
FIG. 6 is a flowchart of an electronic contract generation method in yet another embodiment;
FIG. 7 is a block diagram showing the structure of an electronic contract generating apparatus according to an embodiment;
FIG. 8 is a block diagram of a computer device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, in one embodiment, an electronic contract generating method is provided, which can be applied to both a terminal and a server, and is exemplified by being applied to a terminal. The electronic contract generating method specifically comprises the following steps:
The contract data is data composing the electronic contract, and includes a plurality of contract terms, which are used as a unit composing the contract content. Optionally, the contract data of the buying and selling contract of the bulk transaction can be obtained from the order provided by the contract parties or the multiple parties in the background; but also by collecting agreement information of both parties or parties to the contract as contract data.
And 104, carrying out rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause.
The rule engine is a component embedded in the application program, and realizes the separation of business decisions from application program codes and the writing of business decisions by using a predefined semantic module. And the component tool receives data input, explains the business rules and makes business decisions according to the business rules. The contract rule means that the business logic executed by the contract comprises execution information, default information and the like. The preset rule engine in this embodiment is a rule engine obtained by pre-configuring a rule analysis code for a contract clause, and may establish a business logic according to contract execution information and contract default information in the contract data to form a rule engine, which is used for analyzing and extracting the contract execution rule in the contract data. Specifically, each contract clause in the contract data is analyzed by a preset rule engine to obtain a corresponding contract rule, and all the contract rules are combined into a contract rule base. It can be understood that, the rule engine can realize the separation of the logic and execution decision of the contract, so as to facilitate the arrangement, analysis, modification and the like of the contract data, thereby improving the flexibility, convenience and maintainability of the contract data, and facilitating the subsequent further processing of the contract data based on the contract rule.
And 106, performing process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule.
The workflow engine is used for determining information transfer routing, content level and other core solutions which have determination effects on various application systems and are determined according to different roles, division of labor and conditions. The flow node is used for identifying the contract rule circulation sequence and determining the work flow of each contract rule. Specifically, the workflow engine may perform flow analysis on the contract rules to determine the flow nodes of each contract rule, and all the flow nodes are combined into a contract flow library. It can be understood that by determining the flow node of each contract rule, the execution sequence and priority of each contract rule can be ensured, the execution sequence of each contract clause can be clearly defined, and the orderliness and the definition of the contract clauses are improved. Further, the workflow engine realizes automatic flow control of each contract rule in the contract rule base, and is beneficial to improving the generation efficiency of subsequent electronic contracts.
And 108, executing a contract rule base according to the contract flow base to generate the target electronic contract.
The electronic contract is an agreement between two parties or multiple parties to establish, change and terminate property civil right obligation relation electronically through an electronic information network, and includes but is not limited to a trading contract, a borrowing contract, a service agreement or an authorization book and the like. Specifically, each contract rule in the contract rule base is circulated according to the corresponding flow node sequence in the contract flow base, so that the target electronic contract is generated. It can be understood that, since the target electronic contract is generated after being parsed by the rule engine and the workflow engine, the target electronic contract is digitized.
The Blockchain (Blockchain) is a decentralized database for ensuring the security and non-tampering of the stored data. Specifically, the target electronic contract is linked on the block chain, and the characteristic of block chain decentralization is fully utilized, so that the target electronic contract is prevented from being tampered or lost, the authenticity and the effectiveness of the target electronic contract are ensured, and the safety of the target electronic contract is improved.
The electronic contract generating method comprises the steps of acquiring contract data, wherein the contract data comprises a plurality of contract terms; carrying out rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause; the method comprises the steps that a contract rule base is subjected to flow analysis through a preset workflow engine, a contract flow base is generated, the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule; executing a contract rule base according to the contract flow base to generate a target electronic contract; the target electronic contract is stored in the block chain, so that the digitization of the target electronic contract is realized, the authenticity and the effectiveness of the target electronic contract are ensured, and the safety of the target electronic contract is improved.
As shown in fig. 2, in one embodiment, storing the target electronic contract in a blockchain includes:
The block structure is a unit structure forming a block chain, the target electronic contract can be directly converted into a contract block by adopting a function hook _ block _ view (), and then the contract block addition of the block chain is operated through a command line, so that the target electronic contract is uplinked in the block chain.
As shown in fig. 3, in one embodiment, after storing the target electronic contract in the blockchain, the method further includes:
and step 114, modifying the target electronic contract on the block chain corresponding to the block chain link point according to the modification information.
In this embodiment, in order to record the target electronic contract, so that subsequent certified searching is possible, when a contract modification instruction is received, the contract modification instruction is obtained, and the target electronic contract is modified on the block chain corresponding to the block chain link point according to the modification information. During modification, in order to ensure consistency of the target electronic contract, modification operation needs to be performed in the blockchain, and the target electronic contract needs to be updated in the blockchain.
As shown in fig. 4, in an embodiment, rule parsing is performed on the contract data through a preset rule engine to generate a contract rule base, where the contract rule base includes a plurality of contract rules, and each contract rule corresponds to a contract term, including:
and step 104C, determining a contract rule base according to each contract rule.
In this embodiment, at least one execution element matching each contract term is detected using a matching algorithm in the rule engine, which includes, but is not limited to, Rete matching algorithm, LFA matching algorithm, TREAI matching algorithm, LEAPS matching algorithm, or the like. In the execution process of the execution element, the execution condition has a rule executed by contract clauses, the execution condition can be converted into a contract rule by a coding mode, such as a natural language coding mode, and then all the contract rules are combined into a contract rule base. It can be understood that the preset rule engine detection realizes the separation of logic and execution decision, so that the contract rule base can adapt to the scene with large business change and fast requirement iteration.
As shown in fig. 5, in an embodiment, a preset workflow engine performs a process parsing on a contract rule base to generate a contract process base, where the contract process base includes a plurality of process nodes, and each process node corresponds to one contract rule, including:
and step 106C, determining a contract process library according to each process node.
In this embodiment, a preset workflow engine is used to detect an execution flow direction matching the execution flow, that is, the execution flow direction matching the execution flow is detected by a flow direction management component configured in the workflow engine, flow nodes of execution conditions corresponding to the execution flow are determined according to the execution flow direction, and each execution node is combined into a contract flow library, so that contract rules are configured in the workflow and executed according to the flow nodes, and the efficiency of generating a target electronic contract is further improved.
In one embodiment, executing the rule base according to the process base to generate the target electronic contract comprises: and processing the corresponding execution elements according to the execution flow direction and the contract rules corresponding to the process nodes in sequence to generate the target electronic contract.
In this embodiment, the contract rules include execution elements, and the contract rules all correspond to process nodes, in order to ensure the accuracy and the normalization of the target electronic contract generation, the execution elements of each contract rule need to be sequentially transferred, and the target electronic contract is generated after the execution work of the workflow engine is completed, so that the generation efficiency of the target electronic contract is greatly improved.
As shown in fig. 6, in an embodiment, after executing the rule base according to the flow base to generate the target electronic contract, the method further includes:
and step 120, receiving the signed electronic contract returned by the server.
In this embodiment, converting the target electronic contract into the electronic contract to be signed includes format conversion, for example, the target electronic contract in the HTML format may be converted into the electronic contract to be signed in the PDF format. And ensuring the validity of the electronic contract to be signed. Then, the two parties or the multiple parties to be signed the electronic contract respectively sign, so as to obtain the signed electronic contract. The server is used as a third party to store the signing electronic contract, and can accurately record contract signing time and sign a party, so that the electronic contract signing is guaranteed to be just effective.
As shown in fig. 7, in one embodiment, there is provided an electronic contract generating apparatus including:
an obtaining module 702, configured to obtain contract data, where the contract data includes a plurality of contract terms;
a first parsing module 704, configured to perform rule parsing on the contract data through a preset rule engine to generate a contract rule base, where the contract rule base includes a plurality of contract rules, and each contract rule corresponds to one contract clause;
a second analysis module 706, configured to perform process analysis on the contract rule base through a preset workflow engine, so as to generate a contract process base, where the contract process base includes multiple process nodes, and each process node corresponds to one contract rule;
an executing module 708, configured to execute the contract rule base according to the contract flow base, and generate a target electronic contract;
a storage module 710 for storing the target electronic contract in a blockchain.
In one embodiment, the storage module includes a build unit and an add unit.
A construction unit for constructing contract blocks of a block structure based on the target electronic contract;
an adding unit, configured to add the contract block to a block chain
In one embodiment, the electronic-contract generating apparatus further includes an acquiring unit and a modifying unit.
The contract modification device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring block chain nodes and modification information contained in a contract modification instruction if the contract modification instruction is received;
and the modification unit is used for modifying the target electronic contract on the block chain corresponding to the block chain link point according to the modification information.
In one embodiment, the first parsing module includes a first detection unit, a conversion unit, and a first determination unit.
The first detection unit is used for detecting at least one execution element matched with each contract clause by adopting the preset rule engine, and the execution element comprises an execution condition and an execution flow;
a conversion unit, configured to convert the execution condition into the contract rule in an encoded manner;
a first determining unit, configured to determine the contract rule base according to each contract rule.
In one embodiment, the second parsing module includes a second detection unit, a second determination unit, and a third determination unit.
The second detection unit is used for detecting the execution flow direction matched with the execution flow by adopting the preset workflow engine;
a second determining unit, configured to determine the flow node according to the execution flow direction and an execution condition corresponding to the execution flow;
and the third determining unit is used for determining the contract process library according to each process node.
In one embodiment, the execution module includes a processing unit, configured to process, according to the execution flow direction, the corresponding execution elements according to the contract rules corresponding to the process nodes in sequence, so as to generate the target electronic contract.
In one embodiment, the electronic contract generating apparatus further includes a conversion module, a signing module, and a receiving module.
The conversion module is used for converting the target electronic contract into an electronic contract to be signed;
the signing module is used for uploading the electronic contract to be signed to a server so that the server signs the electronic contract to be signed to obtain a signed electronic contract;
and the receiving module is used for receiving the signed electronic contract returned by the server.
FIG. 8 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a server including, but not limited to, a high performance computer and a cluster of high performance computers. As shown in fig. 8, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the electronic contract generating method. The internal memory may also have a computer program stored therein, which, when executed by the processor, causes the processor to perform the electronic contract generating method. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the electronic contract generating method provided by the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 8. The memory of the computer device may store therein the respective program templates constituting the electronic-contract generating apparatus. For example, the obtaining module 702, the first parsing module 704, the second parsing module 706, the executing module 708, and the storing module 710.
A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program: obtaining contract data, the contract data including a plurality of contract terms; performing rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause; performing process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule; executing the contract rule base according to the contract process base to generate a target electronic contract; storing the target electronic contract in a blockchain.
In one embodiment, the storing the target electronic contract in a blockchain includes: constructing a contract block of a block structure based on the target electronic contract; adding the contract chunk to a blockchain.
In one embodiment, after the storing the target electronic contract in the blockchain, further comprising: if a contract modification instruction is received, acquiring block chain nodes and modification information contained in the contract modification instruction; and modifying the target electronic contract on the block chain corresponding to the block chain link point according to the modification information.
In one embodiment, rule parsing is performed on the contract data through a preset rule engine to generate a contract rule base, where the contract rule base includes a plurality of contract rules, and each contract rule corresponds to one contract term, including: detecting at least one execution element matched with each contract clause by adopting the preset rule engine, wherein the execution element comprises an execution condition and an execution flow; converting the execution condition into the contract rule in a coding mode; and determining the contract rule base according to each contract rule.
In one embodiment, a preset workflow engine performs process parsing on the contract rule base to generate a contract process base, where the contract process base includes a plurality of process nodes, and each process node corresponds to one contract rule, including: detecting an execution flow direction matched with the execution flow by adopting the preset workflow engine; determining the process node according to the execution flow direction and the execution condition corresponding to the execution process; and determining the contract process library according to each process node.
In one embodiment, executing the rule base according to the process base to generate the target electronic contract includes: and processing the corresponding execution elements according to the execution flow direction and the contract rules corresponding to the process nodes in sequence to generate the target electronic contract.
In one embodiment, after the executing the rule base according to the flow base to generate the target electronic contract, the method further includes: converting the target electronic contract into an electronic contract to be signed; uploading the electronic contract to be signed to a server so that the server signs the electronic contract to be signed to obtain a signed electronic contract; receiving the signed electronic contract returned by the server.
A computer-readable storage medium storing a computer program, the computer program when executed by a processor implementing the steps of: obtaining contract data, the contract data including a plurality of contract terms; performing rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause; performing process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule; executing the contract rule base according to the contract process base to generate a target electronic contract; storing the target electronic contract in a blockchain.
In one embodiment, the storing the target electronic contract in a blockchain includes: constructing a contract block of a block structure based on the target electronic contract; adding the contract chunk to a blockchain.
In one embodiment, after the storing the target electronic contract in the blockchain, further comprising: if a contract modification instruction is received, acquiring block chain nodes and modification information contained in the contract modification instruction; and modifying the target electronic contract on the block chain corresponding to the block chain link point according to the modification information.
In one embodiment, rule parsing is performed on the contract data through a preset rule engine to generate a contract rule base, where the contract rule base includes a plurality of contract rules, and each contract rule corresponds to one contract term, including: detecting at least one execution element matched with each contract clause by adopting the preset rule engine, wherein the execution element comprises an execution condition and an execution flow; converting the execution condition into the contract rule in a coding mode; and determining the contract rule base according to each contract rule.
In one embodiment, a preset workflow engine performs process parsing on the contract rule base to generate a contract process base, where the contract process base includes a plurality of process nodes, and each process node corresponds to one contract rule, including: detecting an execution flow direction matched with the execution flow by adopting the preset workflow engine; determining the process node according to the execution flow direction and the execution condition corresponding to the execution process; and determining the contract process library according to each process node.
In one embodiment, executing the rule base according to the process base to generate the target electronic contract includes: and processing the corresponding execution elements according to the execution flow direction and the contract rules corresponding to the process nodes in sequence to generate the target electronic contract.
In one embodiment, after the executing the rule base according to the flow base to generate the target electronic contract, the method further includes: converting the target electronic contract into an electronic contract to be signed; uploading the electronic contract to be signed to a server so that the server signs the electronic contract to be signed to obtain a signed electronic contract; receiving the signed electronic contract returned by the server.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. An electronic contract generating method, comprising:
obtaining contract data, the contract data including a plurality of contract terms;
performing rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause;
performing process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule;
executing the contract rule base according to the contract process base to generate a target electronic contract;
storing the target electronic contract in a blockchain.
2. The electronic contract generation method according to claim 1, wherein said storing the target electronic contract in a blockchain includes:
constructing a contract block of a block structure based on the target electronic contract;
adding the contract chunk to a blockchain.
3. The electronic contract generation method according to claim 1, further comprising, after said storing the target electronic contract in a blockchain:
if a contract modification instruction is received, acquiring block chain nodes and modification information contained in the contract modification instruction;
and modifying the target electronic contract on the block chain corresponding to the block chain link point according to the modification information.
4. The electronic contract generating method according to claim 1, wherein said rule parsing the contract data by a preset rule engine to generate a contract rule base, said contract rule base comprising a plurality of contract rules, each of the contract rules corresponding to one of the contract terms, comprises:
detecting at least one execution element matched with each contract clause by adopting the preset rule engine, wherein the execution element comprises an execution condition and an execution flow;
converting the execution condition into the contract rule in a coding mode;
and determining the contract rule base according to each contract rule.
5. The electronic contract generating method according to claim 4, wherein the process parsing is performed on the contract rule base through a preset workflow engine to generate a contract process base, the contract process base includes a plurality of process nodes, each process node corresponds to one contract rule, and the method includes:
detecting an execution flow direction matched with the execution flow by adopting the preset workflow engine;
determining the process node according to the execution flow direction and the execution condition corresponding to the execution process;
and determining the contract process library according to each process node.
6. The electronic contract generating method according to claim 5, wherein executing the rule base according to the flow base to generate a target electronic contract comprises:
and processing the corresponding execution elements according to the execution flow direction and the contract rules corresponding to the process nodes in sequence to generate the target electronic contract.
7. The electronic contract generating method according to claim 1, further comprising, after the executing the rule base according to the flow base to generate a target electronic contract:
converting the target electronic contract into an electronic contract to be signed;
uploading the electronic contract to be signed to a server so that the server signs the electronic contract to be signed to obtain a signed electronic contract;
receiving the signed electronic contract returned by the server.
8. An electronic-contract generating apparatus, characterized by comprising:
an acquisition module for acquiring contract data, the contract data including a plurality of contract terms;
the first analysis module is used for carrying out rule analysis on the contract data through a preset rule engine to generate a contract rule base, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract clause;
the second analysis module is used for carrying out process analysis on the contract rule base through a preset workflow engine to generate a contract process base, wherein the contract process base comprises a plurality of process nodes, and each process node corresponds to one contract rule;
the execution module is used for executing the contract rule base according to the contract flow base to generate a target electronic contract;
a storage module to store the target electronic contract in a blockchain.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the electronic contract generation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the electronic contract generating method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010039479.5A CN111274202B (en) | 2020-01-15 | 2020-01-15 | Electronic contract generation method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010039479.5A CN111274202B (en) | 2020-01-15 | 2020-01-15 | Electronic contract generation method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111274202A true CN111274202A (en) | 2020-06-12 |
CN111274202B CN111274202B (en) | 2023-07-14 |
Family
ID=71003027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010039479.5A Active CN111274202B (en) | 2020-01-15 | 2020-01-15 | Electronic contract generation method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111274202B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112199735A (en) * | 2020-09-25 | 2021-01-08 | 博雅正链(北京)科技有限公司 | Vertical e-commerce transaction platform based on block chain |
CN113660322A (en) * | 2021-08-05 | 2021-11-16 | 好享家舒适智能家居股份有限公司 | Offline cloud-sharing method and system |
CN113723059A (en) * | 2021-07-29 | 2021-11-30 | 微易签(杭州)科技有限公司 | Method and system for converting HTML (hypertext markup language) into PDF (Portable document Format) based on block chain |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542382A (en) * | 2010-12-14 | 2012-07-04 | 中国移动通信集团贵州有限公司 | Method and device for managing business rule |
CN102855304A (en) * | 2012-08-20 | 2013-01-02 | 清华大学 | Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction |
CN109582289A (en) * | 2017-09-28 | 2019-04-05 | 阿里巴巴集团控股有限公司 | The processing method of regular flow, system, storage medium and processor in regulation engine |
CN109615096A (en) * | 2018-12-20 | 2019-04-12 | 北京比新科技有限公司 | A kind of Nonexpendable Item source tracing method based on block chain |
CN109657216A (en) * | 2018-09-28 | 2019-04-19 | 平安科技(深圳)有限公司 | Contract generation method, device, equipment and storage medium |
CN110297840A (en) * | 2019-05-22 | 2019-10-01 | 平安银行股份有限公司 | Data processing method, device, equipment and the storage medium of rule-based engine |
CN110400217A (en) * | 2018-04-25 | 2019-11-01 | 中国移动通信集团广东有限公司 | The regular changing process method and device of intelligent contract |
CN110610352A (en) * | 2019-09-16 | 2019-12-24 | 中国铁塔股份有限公司 | Flow processing method and device, electronic equipment and computer readable storage medium |
CN110689459A (en) * | 2019-09-27 | 2020-01-14 | 北京百度网讯科技有限公司 | Contract processing method, contract processing device, contract processing equipment and storage medium |
-
2020
- 2020-01-15 CN CN202010039479.5A patent/CN111274202B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542382A (en) * | 2010-12-14 | 2012-07-04 | 中国移动通信集团贵州有限公司 | Method and device for managing business rule |
CN102855304A (en) * | 2012-08-20 | 2013-01-02 | 清华大学 | Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction |
US20140052575A1 (en) * | 2012-08-20 | 2014-02-20 | Tsinghua University | METHOD FOR AUTOMATICALLY GENERATING ELECTRONIC CONTRACT WITH VARIABLE TERMS IN B-to-C E-COMMERCE TRADE |
CN109582289A (en) * | 2017-09-28 | 2019-04-05 | 阿里巴巴集团控股有限公司 | The processing method of regular flow, system, storage medium and processor in regulation engine |
CN110400217A (en) * | 2018-04-25 | 2019-11-01 | 中国移动通信集团广东有限公司 | The regular changing process method and device of intelligent contract |
CN109657216A (en) * | 2018-09-28 | 2019-04-19 | 平安科技(深圳)有限公司 | Contract generation method, device, equipment and storage medium |
CN109615096A (en) * | 2018-12-20 | 2019-04-12 | 北京比新科技有限公司 | A kind of Nonexpendable Item source tracing method based on block chain |
CN110297840A (en) * | 2019-05-22 | 2019-10-01 | 平安银行股份有限公司 | Data processing method, device, equipment and the storage medium of rule-based engine |
CN110610352A (en) * | 2019-09-16 | 2019-12-24 | 中国铁塔股份有限公司 | Flow processing method and device, electronic equipment and computer readable storage medium |
CN110689459A (en) * | 2019-09-27 | 2020-01-14 | 北京百度网讯科技有限公司 | Contract processing method, contract processing device, contract processing equipment and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112199735A (en) * | 2020-09-25 | 2021-01-08 | 博雅正链(北京)科技有限公司 | Vertical e-commerce transaction platform based on block chain |
CN112199735B (en) * | 2020-09-25 | 2024-04-26 | 博雅正链(北京)科技有限公司 | Vertical E-commerce transaction platform based on block chain |
CN113723059A (en) * | 2021-07-29 | 2021-11-30 | 微易签(杭州)科技有限公司 | Method and system for converting HTML (hypertext markup language) into PDF (Portable document Format) based on block chain |
CN113660322A (en) * | 2021-08-05 | 2021-11-16 | 好享家舒适智能家居股份有限公司 | Offline cloud-sharing method and system |
CN113660322B (en) * | 2021-08-05 | 2022-09-09 | 好享家舒适智能家居股份有限公司 | Offline cloud-sharing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN111274202B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109032662B (en) | Code file generation method and device, computer equipment and storage medium | |
CN111274202B (en) | Electronic contract generation method, device, computer equipment and storage medium | |
CN112579462B (en) | Test case acquisition method, system, equipment and computer readable storage medium | |
CN113157315A (en) | Method, device, equipment and medium for identifying difference information of different versions of software | |
CN108282484B (en) | Password acquisition method and device, computer equipment and storage medium | |
CN111667141A (en) | Pending task case processing method, device, equipment and storage medium | |
CN113228017B (en) | Attack tree generation device, attack tree generation method, and computer-readable recording medium | |
CN111666393A (en) | Verification method and device of intelligent question-answering system, computer equipment and storage medium | |
CN117171711B (en) | Cloud platform-based enterprise internal and external data fusion sharing method and system | |
US20200202233A1 (en) | Future scenario generating device and method, and computer program | |
CN112364022B (en) | Information deduction management method, device, computer equipment and readable storage medium | |
CN111858467B (en) | File data processing method, device, equipment and medium based on artificial intelligence | |
CN112529543A (en) | Method, device and equipment for verifying mutual exclusion relationship of workflow and storage medium | |
CN115314268B (en) | Malicious encryption traffic detection method and system based on traffic fingerprint and behavior | |
CN115147020B (en) | Decoration data processing method, device, equipment and storage medium | |
CN110866007A (en) | Information management method, system and computer equipment for big data application and table | |
CN114527974B (en) | Method and device for realizing business function of software product and computer equipment | |
CN115268847A (en) | Block chain intelligent contract generation method and device and electronic equipment | |
CN112631719B (en) | Data prediction model calling method, device, equipment and storage medium | |
CN114238822A (en) | Identification method and device of Web service equipment | |
CN113407495A (en) | SIMHASH-based file similarity determination method and system | |
CN110909761A (en) | Image recognition method and device, computer equipment and storage medium | |
CN112732335B (en) | Object code extraction method, device, computer equipment and storage medium | |
CN116383883B (en) | Big data-based data management authority processing method and system | |
CN114356405B (en) | Matching method and device of open source component function, computer equipment and storage medium |
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 |