CN111274202B - Electronic contract generation method, device, computer equipment and storage medium - Google Patents

Electronic contract generation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN111274202B
CN111274202B CN202010039479.5A CN202010039479A CN111274202B CN 111274202 B CN111274202 B CN 111274202B CN 202010039479 A CN202010039479 A CN 202010039479A CN 111274202 B CN111274202 B CN 111274202B
Authority
CN
China
Prior art keywords
contract
flow
rule
base
execution
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
CN202010039479.5A
Other languages
Chinese (zh)
Other versions
CN111274202A (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.)
Shenzhen Agricultural Products Co ltd
Original Assignee
Shenzhen Agricultural Products 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 Shenzhen Agricultural Products Co ltd filed Critical Shenzhen Agricultural Products Co ltd
Priority to CN202010039479.5A priority Critical patent/CN111274202B/en
Publication of CN111274202A publication Critical patent/CN111274202A/en
Application granted granted Critical
Publication of CN111274202B publication Critical patent/CN111274202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • 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

Abstract

The embodiment of the invention discloses an electronic contract generation method, which comprises the steps of acquiring contract data, wherein the contract data comprises a plurality of contract clauses; the method comprises the steps of carrying out rule analysis on 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 term; carrying out flow analysis on a contract rule base through a preset workflow engine to generate a contract flow base, wherein 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 blockchain, 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

Electronic contract generation method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for generating an electronic contract, a computer device, and a storage medium.
Background
Along with the increasing popularity of electronic contract use, electronic contracts are also used in more and more business scenes, such as the internet of things, electronic commerce, bulk transaction buying and selling, and the like, however, most of the current electronic contracts are converted into machine executable codes according to certain rules and flows; or directly checking each row of electronic contracts through the function of intelligent contracts, but most of electronic contracts generated by the methods can only execute some very simple business rules, and most of complex business rules are difficult to meet and ensure the safety, the executable performance and the trust requirements of the contracts.
Disclosure of Invention
In view of the above, it is necessary to provide an electronic contract generation method, apparatus, computer device, and storage medium that can realize electronic contract digitization and that are safe and convenient.
A method of electronic contract generation, the method comprising:
acquiring contract data, the contract data including a plurality of contract terms;
the contract data is subjected to rule analysis through a preset rule engine, and a contract rule base is generated, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract term;
performing flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule;
executing the contract rule base according to the contract flow base to generate a target electronic contract;
the target electronic contract is stored in a blockchain.
An electronic contract generation apparatus, the apparatus comprising:
an acquisition module for acquiring contract data, the contract data comprising 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 term;
the second analysis module is used for carrying out flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow 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;
and the storage module is used for storing the target electronic contract in a blockchain.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring contract data, the contract data including a plurality of contract terms;
the contract data is subjected to rule analysis through a preset rule engine, and a contract rule base is generated, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract term;
performing flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule;
executing the contract rule base according to the contract flow base to generate a target electronic contract;
the target electronic contract is stored 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:
acquiring contract data, the contract data including a plurality of contract terms;
the contract data is subjected to rule analysis through a preset rule engine, and a contract rule base is generated, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract term;
performing flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule;
executing the contract rule base according to the contract flow base to generate a target electronic contract;
the target electronic contract is stored in a blockchain.
The electronic contract generation method, the electronic contract generation device, the computer equipment and the storage medium are used for acquiring contract data, wherein the contract data comprises a plurality of contract clauses; the contract data is subjected to rule analysis through a preset rule engine, and a contract rule base is generated, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract term; performing flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule; executing the contract rule base according to the contract flow base to generate a target electronic contract; the target electronic contract is stored in the blockchain, 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.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flow diagram of a method of electronic contract generation, in one embodiment;
FIG. 2 is a flow diagram of a method of storing targeted electronic contracts in one embodiment;
FIG. 3 is a flow chart of a method of electronic contract generation in another embodiment;
FIG. 4 is a flow diagram of a method of contract rule base generation, in one embodiment;
FIG. 5 is a flow chart of a contract flow library generation method, in one embodiment;
FIG. 6 is a flow chart of a method of electronic contract generation in yet another embodiment;
FIG. 7 is a block diagram showing the construction of an electronic contract generating apparatus in one embodiment;
FIG. 8 is a block diagram of a computer device in one embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, in one embodiment, an electronic contract generation method is provided, which is applicable to both a terminal and a server, and this embodiment is exemplified as being applied to the terminal. The electronic contract generation method specifically comprises the following steps:
step 102, contract data is obtained, the contract data including a plurality of contract terms.
Wherein the contract data refers to data constituting an electronic contract including a plurality of contract terms for constituting a unit of contract contents. Alternatively, the contract data for the buy and sell contracts for bulk transactions may be obtained from orders provided in the background by the parties or parties to the contract; contract data may also be collected by collecting agreement information for both or multiple parties.
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 term.
Wherein the rule engine is a component embedded in the application program, which enables the separation of business decisions from the application program code and the writing of business decisions using predefined semantic modules. And the component tool is used for receiving data input, interpreting the business rules and making business decisions according to the business rules. Contract rules refer to business logic for contract execution including execution information, breach information, and the like. The preset rule engine in this embodiment is a rule engine obtained by pre-configuring a rule analysis code for the contract terms, and can establish service logic according to contract execution information and contract violation information in contract data to form the rule engine, which is used for analyzing and extracting the contract execution rules in the contract data. Specifically, a preset rule engine is adopted to analyze each contract term in the contract data, so as to obtain a corresponding contract rule, and all the contract rules are combined into a contract rule base. It can be appreciated that, since the rule engine can separate logic and execution decisions of the contract, so as to facilitate arrangement, analysis, modification and the like of the contract data, flexibility, convenience and maintainability of the contract data are improved, so that the contract data can be further processed based on the contract rules.
And 106, carrying out flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule.
The workflow engine is used for taking workflow as a part of application systems and providing core solutions for determining information transmission routes, content levels and the like according to different roles, division and conditions, wherein the core solutions have a determining effect on each application system. The flow node is used for identifying the circulation order of the contract rules and determining the workflow of each contract rule. Specifically, the workflow of each contract rule can be determined by analyzing the contract rule to form a preset workflow engine, the workflow engine performs flow analysis according to the contract rule to determine the flow node of each contract rule, and all the flow nodes are combined into a contract flow library. It can be appreciated that by determining the flow node of each contract rule, the execution order and priority of each contract rule can be ensured, the execution order of each contract term can be clearly defined, and the regularity and definition of the contract terms can be 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 the subsequent electronic contracts.
And step 108, executing a contract rule base according to the contract flow base to generate a target electronic contract.
Wherein, the electronic agreement is an agreement between two or more parties in electronic form through an electronic information network to establish, change and terminate property civil right obligation relation, including but not limited to buying and selling contracts, borrowing contracts, service agreements or rights agreements, and the like. Specifically, each contract rule in the contract rule base is sequentially circulated according to the corresponding flow nodes in the contract flow base, so that a target electronic contract is generated. It will be appreciated that the target electronic contract is digitized as it is generated after parsing by the rules engine and workflow engine.
At step 110, the target electronic contract is stored in the blockchain.
Among them, blockchain (Blockchain) is a decentralised database for ensuring the security and tamper-proof of stored data. Specifically, the target electronic contract is uplink in the blockchain, and the characteristic of decentralization of the blockchain 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.
According to the electronic contract generation method, contract data is obtained, and the contract data comprises a plurality of contract terms; the method comprises the steps of carrying out rule analysis on 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 term; carrying out flow analysis on a contract rule base through a preset workflow engine to generate a contract flow base, wherein 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 blockchain, 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 the blockchain includes:
step 110A, constructing a contract block of the block structure based on the target electronic contract;
in step 110B, the contract block is added to the blockchain.
The block structure refers to a unit structure forming a block chain, a function hook_block_view () can be adopted to directly convert a target electronic contract into a contract block, and then the contract block of the block chain is operated through a command line to add, so that the target electronic contract is uplink in the block chain.
As shown in fig. 3, in one embodiment, after storing the target electronic contract in the blockchain, further includes:
step 112, if the contract modification instruction is received, obtaining the blockchain node and the modification information contained in the contract modification instruction;
and 114, modifying the target electronic contract on the blockchain corresponding to the blockchain node according to the modification information.
In this embodiment, in order to record the target electronic contract so that the subsequent license can be found, when a contract modification instruction is received, the contract modification instruction is acquired, and the target electronic contract is modified on the blockchain corresponding to the blockchain node according to the modification information. Wherein, in order to ensure the consistency of the target electronic contract during modification, modification operation is required to be performed in the blockchain, and the target electronic contract is updated in the blockchain.
As shown in fig. 4, in one embodiment, the rule parsing is performed on the contract data by 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, and includes:
104A, detecting at least one execution element matched with each contract term by adopting a preset rule engine, wherein the execution element comprises an execution condition and an execution flow;
104B, converting the execution condition into a contract rule in an encoding mode;
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 a preset rules engine, including, but not limited to, a Rete matching algorithm, LFA matching algorithm, TREAI matching algorithm, or LEAPS matching algorithm, etc. In the execution of the execution element, the execution condition has a rule of executing contract terms, 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 appreciated that the separation of logic and execution decisions is realized by the preset rule engine detection, so that the contract rule base can adapt to the scene with large service variation and fast requirement iteration.
As shown in fig. 5, in one embodiment, the process parsing is performed on the contract rule base by a preset workflow engine to generate a contract flow base, where the contract flow base includes a plurality of flow nodes, and each flow node corresponds to a contract rule, and includes:
step 106A, detecting an execution flow direction matched with the execution flow by adopting a preset workflow engine;
step 106B, determining a flow node according to the execution flow direction and the execution condition corresponding to the execution flow;
and 106C, determining a contract flow library according to each flow node.
In this embodiment, a preset workflow engine is adopted to detect an execution flow direction matched with an execution flow, that is, a flow direction management component configured in the workflow engine detects the execution flow direction matched with the execution flow, 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 into 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 a rule base according to a flow base to generate a target electronic contract includes: and processing corresponding execution elements according to the execution flow direction and the contract rule corresponding to the flow node in sequence to generate a target electronic contract.
In this embodiment, the contract rules include execution elements, and the contract rules correspond to flow nodes, so that in order to ensure the accuracy and standardization of the target electronic contract generation, the execution elements of each contract rule need to be sequentially circulated, 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 one embodiment, after executing the rule base according to the flow base to generate the target electronic contract, the method further includes:
step 116, converting the target electronic contract into an electronic contract to be signed;
step 118, uploading the electronic contract to be signed to the server, so that the server signs the electronic contract to be signed to obtain a signed electronic contract;
and 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 HTML format may be converted into the electronic contract to be signed in PDF format. The validity of the electronic contract to be signed is ensured. Then, the two parties or parties to be signed with the electronic contract are respectively signed, thereby obtaining the signed electronic contract. The server is used as a third party to store and sign the electronic contract, and can accurately record the signing time and signing parties, thereby ensuring the fairness and effectiveness of signing the electronic contract.
As shown in fig. 7, in one embodiment, an electronic contract generation apparatus is provided, the apparatus including:
an acquisition module 702 for acquiring contract data, the contract data comprising a plurality of contract terms;
the first parsing module 704 is configured to parse the rule of the contract data through a preset rule engine, and 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;
a second parsing module 706, configured to perform flow parsing on the contract rule base through a preset workflow engine, generate a contract flow base, where the contract flow base includes a plurality of flow nodes, and each flow node corresponds to one contract rule;
an execution 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, a storage module includes a build unit and an add unit.
A building unit, configured to build a contract block of a block structure based on the target electronic contract;
an adding unit for adding the same block to the blockchain
In one embodiment, the electronic contract generating apparatus further includes an acquisition unit and a modification unit.
The acquisition unit is used for acquiring the blockchain node and the modification information contained in the contract modification instruction if the contract modification instruction is received;
and the modification unit is used for modifying the target electronic contract on the blockchain corresponding to the blockchain node 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 term by adopting the preset rule engine, and the execution element comprises an execution condition and an execution flow;
a conversion unit for converting the execution condition into the contract rule by means of encoding;
and the first determining unit is used for determining 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 an execution flow direction matched with the execution flow by adopting the preset workflow engine;
the second determining unit is used for determining the flow node according to the execution flow direction and the execution condition corresponding to the execution flow;
and the third determining unit is used for determining the contract flow library according to each flow node.
In one embodiment, the execution module includes a processing unit, configured to process, according to the execution flow direction, corresponding execution elements sequentially according to a contract rule corresponding to the flow node, and 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 illustrates an internal block diagram of a computer device in one embodiment. The computer device may be, in particular, a server including, but not limited to, a high performance computer and a high performance computer cluster. As shown in fig. 8, the computer device includes a processor, a memory, and a network interface connected by a system bus. The memory includes a nonvolatile 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 a processor, causes the processor to implement an electronic contract generation method. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform the electronic contract generation method. It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the electronic contract generation 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 respective program templates constituting the electronic contract generating means. Such as an acquisition module 702, a first parsing module 704, a second parsing module 706, an execution module 708, and a storage 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 steps of when executing the computer program: acquiring contract data, the contract data including a plurality of contract terms; the contract data is subjected to rule analysis through a preset rule engine, and a contract rule base is generated, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract term; performing flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule; executing the contract rule base according to the contract flow base to generate a target electronic contract; the target electronic contract is stored 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; the same block is added to the blockchain.
In one embodiment, after said storing said target electronic contract in the blockchain, further comprising: if a contract modification instruction is received, acquiring a blockchain node and modification information contained in the contract modification instruction; and modifying the target electronic contract on the blockchain corresponding to the blockchain node according to the modification information.
In one embodiment, the rule parsing is performed on the contract data by 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 of the contract terms, and the method includes: detecting at least one execution element matched with each contract term 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 an encoding mode; and determining the contract rule base according to each contract rule.
In one embodiment, the process parsing is performed on the contract rule base by a preset workflow engine to generate a contract flow base, where the contract flow base includes a plurality of flow nodes, and each flow node corresponds to one of the contract rules, and the method includes: detecting an execution flow direction matched with the execution flow by adopting the preset workflow engine; determining the flow node according to the execution flow direction and the execution condition corresponding to the execution flow; and determining the contract flow library according to each flow node.
In one embodiment, executing the rule base according to the flow base to generate a target electronic contract includes: and processing corresponding execution elements according to the execution flow direction in turn according to contract rules corresponding to the flow nodes, and generating the target electronic contract.
In one embodiment, after the rule base is executed 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; and receiving the signed electronic contract returned by the server.
A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor performs the steps of: acquiring contract data, the contract data including a plurality of contract terms; the contract data is subjected to rule analysis through a preset rule engine, and a contract rule base is generated, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract term; performing flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule; executing the contract rule base according to the contract flow base to generate a target electronic contract; the target electronic contract is stored 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; the same block is added to the blockchain.
In one embodiment, after said storing said target electronic contract in the blockchain, further comprising: if a contract modification instruction is received, acquiring a blockchain node and modification information contained in the contract modification instruction; and modifying the target electronic contract on the blockchain corresponding to the blockchain node according to the modification information.
In one embodiment, the rule parsing is performed on the contract data by 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 of the contract terms, and the method includes: detecting at least one execution element matched with each contract term 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 an encoding mode; and determining the contract rule base according to each contract rule.
In one embodiment, the process parsing is performed on the contract rule base by a preset workflow engine to generate a contract flow base, where the contract flow base includes a plurality of flow nodes, and each flow node corresponds to one of the contract rules, and the method includes: detecting an execution flow direction matched with the execution flow by adopting the preset workflow engine; determining the flow node according to the execution flow direction and the execution condition corresponding to the execution flow; and determining the contract flow library according to each flow node.
In one embodiment, executing the rule base according to the flow base to generate a target electronic contract includes: and processing corresponding execution elements according to the execution flow direction in turn according to contract rules corresponding to the flow nodes, and generating the target electronic contract.
In one embodiment, after the rule base is executed 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; and receiving the signed electronic contract returned by the server.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (8)

1. An electronic contract generation method, characterized by comprising:
acquiring contract data, the contract data including a plurality of contract terms;
the contract data is subjected to rule analysis through a preset rule engine, and a contract rule base is generated, wherein the contract rule base comprises a plurality of contract rules, and each contract rule corresponds to one contract term;
performing flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow node corresponds to one contract rule;
executing the contract rule base according to the contract flow base to generate a target electronic contract;
storing the target electronic contract in a blockchain;
the rule analysis is performed on the contract data through a preset rule engine to generate a contract rule base, the contract rule base comprises a plurality of contract rules, each contract rule corresponds to one contract term, and the method comprises the following steps:
detecting at least one execution element matched with each contract term 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 an encoding mode;
determining the contract rule base according to each contract rule;
in addition, the process parsing is performed on the contract rule base through a preset workflow engine to generate a contract flow base, the contract flow base includes a plurality of flow nodes, each flow 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 flow node according to the execution flow direction and the execution condition corresponding to the execution flow;
and determining the contract flow library according to each flow node.
2. The electronic contract generation method of claim 1, characterized in that said storing the target electronic contract in a blockchain includes:
constructing a contract block of a block structure based on the target electronic contract;
the same block is added to the blockchain.
3. The electronic contract generation method of claim 1, characterized in that after said storing the target electronic contract in a blockchain, further comprising:
if a contract modification instruction is received, acquiring a blockchain node and modification information contained in the contract modification instruction;
and modifying the target electronic contract on the blockchain corresponding to the blockchain node according to the modification information.
4. The electronic contract generating method according to claim 1, wherein said executing the rule base according to the flow library generates a target electronic contract, comprising:
and processing corresponding execution elements according to the execution flow direction in turn according to contract rules corresponding to the flow nodes, and generating the target electronic contract.
5. The electronic contract generation method of claim 1, further comprising, after said executing said rule base according to said flow base, after generating 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;
and receiving the signed electronic contract returned by the server.
6. An electronic contract generation apparatus, characterized in that the electronic contract generation apparatus includes:
an acquisition module for acquiring contract data, the contract data comprising 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 term;
the second analysis module is used for carrying out flow analysis on the contract rule base through a preset workflow engine to generate a contract flow base, wherein the contract flow base comprises a plurality of flow nodes, and each flow 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 for storing the target electronic contract in a blockchain;
the first analysis module is configured to analyze the rules of 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, and the first analysis module includes:
detecting at least one execution element matched with each contract term 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 an encoding mode;
determining the contract rule base according to each contract rule;
in addition, the second parsing module is configured to parse the flow of the contract rule base through a preset workflow engine to generate a contract flow base, where the contract flow base includes a plurality of flow nodes, and each flow node corresponds to one step of the contract rule, and the method includes:
detecting an execution flow direction matched with the execution flow by adopting the preset workflow engine;
determining the flow node according to the execution flow direction and the execution condition corresponding to the execution flow;
and determining the contract flow library according to each flow node.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the electronic contract generation method according to any one of claims 1 to 5 when the computer program is executed by the processor.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the electronic contract generation method according to any one of claims 1 to 5.
CN202010039479.5A 2020-01-15 2020-01-15 Electronic contract generation method, device, computer equipment and storage medium Active CN111274202B (en)

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 CN111274202A (en) 2020-06-12
CN111274202B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN113660322B (en) * 2021-08-05 2022-09-09 好享家舒适智能家居股份有限公司 Offline cloud-sharing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542382A (en) * 2010-12-14 2012-07-04 中国移动通信集团贵州有限公司 Method and device for managing business rule
CN109582289A (en) * 2017-09-28 2019-04-05 阿里巴巴集团控股有限公司 The processing method of regular flow, system, storage medium and processor in regulation engine
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855304B (en) * 2012-08-20 2015-04-15 清华大学 Variable-clause electronic contract automatic generation method in business to customer (B2C) transaction
CN109657216B (en) * 2018-09-28 2023-04-07 平安科技(深圳)有限公司 Contract generation method, device, equipment and storage medium
CN109615096B (en) * 2018-12-20 2021-02-19 王春峰 Recyclable article tracing method based on block chain
CN110610352B (en) * 2019-09-16 2023-09-19 中国铁塔股份有限公司 Flow processing method and device, electronic equipment and computer readable storage medium
CN110689459B (en) * 2019-09-27 2022-12-27 北京百度网讯科技有限公司 Contract processing method, contract processing device, contract processing equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542382A (en) * 2010-12-14 2012-07-04 中国移动通信集团贵州有限公司 Method and device for managing business rule
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
CN110297840A (en) * 2019-05-22 2019-10-01 平安银行股份有限公司 Data processing method, device, equipment and the storage medium of rule-based engine

Also Published As

Publication number Publication date
CN111274202A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
CN111274202B (en) Electronic contract generation method, device, computer equipment and storage medium
CN112506894A (en) Service chain log processing method and device based on link tracking and computer equipment
CN110929879A (en) Business decision logic updating method based on decision engine and model platform
CN115618269B (en) Big data analysis method and system based on industrial sensor production
CN111338622B (en) Supply chain code identification method, device, server and readable storage medium
CN108282484B (en) Password acquisition method and device, computer equipment and storage medium
CN117171711B (en) Cloud platform-based enterprise internal and external data fusion sharing method and system
El Sadany et al. Assuring compliance with protection profiles with threatget
CN111405027B (en) Block chain consensus result screening method, device, computer equipment and storage medium
CN112559363A (en) Test case generation method, system, equipment and medium based on full link marking
CN114862372B (en) Intelligent education data tamper-proof processing method and system based on block chain
CN112667569B (en) Feature method, feature system, computer device, and computer-readable storage medium
CN114220191B (en) Driving state identification method and device, computer equipment and readable storage medium
Eisele et al. SolidWorx: A resilient and trustworthy transactive platform for smart and connected communities
CN112631719B (en) Data prediction model calling method, device, equipment and storage medium
CN114238822A (en) Identification method and device of Web service equipment
CN114913008A (en) Decision tree-based bond value analysis method, device, equipment and storage medium
CN112927076A (en) Securities trading risk control method and device, computer equipment and storage medium
CN115484105B (en) Modeling method and device for attack tree, electronic equipment and readable storage medium
CN116841564B (en) Data processing method, device, equipment and computer readable storage medium
US20230244590A1 (en) Log data compliance
CN109886554B (en) Illegal behavior discrimination method, device, computer equipment and storage medium
Banerjee et al. Improvising the Results of Misuse Case-Oriented Quality Requirements (MCOQR) Framework Metrics: Secondary Objective Perspective
CN117391632A (en) Case report processing method, device, computer equipment and storage medium
CN116823293A (en) Electronic contract tracing and checking method and system

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