Method, system and device for recording and replaying Internet business processes
By recording the events and execution content of the Internet business system on the client, and generating credible operation credentials and message summaries, it solves the problems in the existing technology of non-disclosure of business operation process recording and playback processes and uncertain versions, and realizes user and Trusted credentials between service providers and true replay of operational processes.
Patent Information
- Application Number
- CN202010750894.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-08-01
AI Technical Summary
When the existing technology records the business operation process and playback process in the Internet business system, the data storage and simulation playback process are not public and difficult to trust, the program version is uncertain, and the program status during user operation cannot be accurately played back, and the user operation behavior data and Server response data cannot cover the entire business process, making it difficult for users and service providers to locate problems during disputes.
Record the events and execution content during the running of the business program on the client, generate instruction records or data records, and generate message digests through summary algorithms to ensure data consistency and trusted credentials, record external requests and operating environment information, and simulate the playback process Use recorded data for interaction to ensure the authenticity of the playback process.
It generates operational credentials that both users and business providers can trust, ensuring the integrity and credibility of business process records, enabling the true restoration of business operation processes, and reducing the risk of disputes and tampering.
Smart Images

Figure CN112131085B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a method, system and device for recording and replaying an Internet business process. Background Art
[0002] In the Internet business systems that people use daily, situations where it is necessary to record the business operation process are often encountered. The existing technology collects user operation behavior data and records the interactive data of the business system server response. Based on the above data, simulated playback is performed to restore the user's Internet business operation process, and a video is generated based on the simulated playback process. A message digest algorithm is used to generate a summary based on the video as the credential of the user's business operation.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: the implementation scheme of the prior art contains a process of storing data, simulating playback, and generating video on the server side, which is not open to users, and the relevant data is likely to be tampered with, and the results of program execution are difficult to trust; the simulation process is based on the program version of the corresponding business system to achieve playback, and the program version cannot be confirmed to be exactly the same as the program when the user performs the operation, and cannot obtain user approval; if a dispute arises between the user and the business provider over the business process record, it is impossible to locate which link or which party has a problem; the collected user operation behavior data and the data responded by the server cannot cover all data of the business process.
[0004] Based on the above, although the solutions provided by the prior art have achieved the recording and playback of business operation processes to a certain extent, the generated result data cannot be used as the credentials for users to perform business operations and cannot gain the trust of users. The above problems need to be solved urgently. Summary of the invention
[0005] The present application provides a method, system and device for recording and replaying Internet business processes to solve the following problems: for Internet business processes and user operations, data is collected to generate recorded data that can be used for playback, and operation credentials that can be trusted by both the service provider and the user are generated.
[0006] In a first aspect, the present application provides an Internet business process recording method, which is applied to an Internet business process recording device, wherein the device also includes a client running a business program, and the method includes:
[0007] On the client, based on an event occurring during the operation of the business program, an instruction record is generated according to the event and / or the execution content corresponding to the event, or a data record is generated according to the event and / or the execution content corresponding to the event, wherein the instruction record is used to be executed during the playback of the business process, and the data record is used to generate and execute a playback instruction based on the data record during the playback of the business process;
[0008] Adding the instruction record or the data record to the business process record data, wherein the business process record data is used to record the current Internet business process;
[0009] A digest algorithm is used to generate a message digest for the business process record data. The message digest is used to verify the consistency of the business process record data and serves as an identifier of this Internet business process.
[0010] Through the solution provided in the embodiment of the present application, on the client side where the business program is running, "events" occurring during the operation of the business program are collected and instruction records or data records for playback are generated, thereby completing the recording of the business process and generating a message summary for the recorded data on the client side, wherein operations such as data collection and summary generation are all completed on the client side, thereby generating trusted operation credentials.
[0011] In one implementation of the present application, an instruction record or a data record is generated based on the event occurring on the client and / or the execution content corresponding to the event, and additional information is further collected for the instruction record and the data record:
[0012] Generate a corresponding type of instruction record or data record according to the event or the execution content corresponding to the event;
[0013] According to the type of the instruction record or data record, based on the event and / or the execution content corresponding to the event, collecting data to generate additional information of the instruction record or data record, wherein the additional information is used to provide execution support for the instruction record, or to provide support for generating playback instructions for the data record and providing execution support for the generated playback instructions;
[0014] The additional information is added to the business process record data, and the corresponding relationship between the additional information and the instruction record or the data record is recorded, or the additional information is added to the corresponding instruction record or data record.
[0015] In the above implementation, the additional information includes one or more of the event occurrence time, source, event nature, execution parameters, reference data, and generated data. The reference data of the event is the data used by the event and / or the execution content corresponding to the event, and the generated data of the event is the result data generated after the event and / or the execution content corresponding to the event is executed.
[0016] In this implementation, support information for the execution of the instruction record or data record is collected, and by applying the support information collected during the business process to business playback, the instruction record or data record obtains exactly the same execution effect during playback as during business recording.
[0017] In another implementation of the present application, when the event occurring in the client and / or its corresponding execution content includes an external request, an instruction record of the corresponding external request type is generated based on the nature of the external request, and additional information of the instruction record is generated based on the data collected by the external request. The external request is a request occurring between the client and the outside of the client; the data collected based on the external request includes one or more of the request information, the sent request data, and the received response data; the instruction record of the external request type is used to execute during playback, and during the playback process, the corresponding external request instruction record is executed to return the response data according to the external request captured during the playback.
[0018] In the above implementation, the client is a logically independent operating environment, and requests between the client and the outside of the client include but are not limited to network requests, requests between the client and the locally supported operating environment, etc. according to their nature.
[0019] Through the above implementation method, during the business playback process, when a request occurs between the client and the outside of the client, the instruction record of executing the external request type replaces the actual external request to return response data. Since the data source used is limited to the data recorded in the business process, the restored process of interaction between the client and the outside is authentic and reliable.
[0020] In another implementation of the present application, when the event occurring in the client and / or its corresponding execution content includes an external request, request type record data is generated based on the external request, and the content of the request type record data includes one or more of the request information, the sent request data, and the received response data. Among them, the external request is a request between the client and the outside of the client; the request type record data is used to simulate the service to provide the request result during the playback process. During the playback process, according to the external request occurring during the playback, the corresponding request type record data record is searched in the business process record data to obtain the corresponding request type record data record, and the response data contained in the request type record data record is returned.
[0021] The above implementation method adopts the method of recording request type record data, and the functions implemented are basically the same as the previous implementation method. Furthermore, an independent external request simulation service is constructed according to the record data of the request type stored in the business process record data to provide response data for external requests occurring during playback.
[0022] In another implementation of the present application, the operating environment information of the business program is also recorded:
[0023] At the client, obtaining the operating environment information of the business program;
[0024] Based on the operating environment information, an instruction record is generated for judging and / or setting the playback client operating environment during the playback process, and the instruction record is added to the business process record data. Alternatively, based on the operating environment information, a business program operating environment data record is generated, and the business program operating environment data record is added to the business process record data.
[0025] The operating environment information includes one or more of server information, business service program information, client operating system information, network information, client information, operating environment information provided by the client for the business program, business program information, time information, and location information.
[0026] The above implementation method collects the operating environment information of the business program to determine whether the operating environment of the playback client meets the playback requirements when the business is played back, and sets the playback client operating environment based on it to achieve a consistent playback effect.
[0027] In another implementation of the present application, at the client, the program content of the business program running on the client is obtained as business program content record data, and the business program content record data is added to the business process record data.
[0028] The business program content recorded in the above implementation is the front-end business program run by the client during the business process. By recording the program content, the business processing logic is saved for inspection. On the other hand, the recorded program content is also used to verify the business program included in the playback client, or to provide a business program for business playback.
[0029] In another implementation of the present application, when obtaining the program content of the business program, the program content of all programs running on the client is obtained as all program content record data, and all program content record data is added to the business process record data.
[0030] The above implementation is an effective supplement to the previous implementation, that is, saving all the running program contents of the client for playback and inspection. Among them, the programs running on the client include at least business programs and recording programs, and the recording program is a program provided for implementing the Internet business process recording method provided by this application.
[0031] By implementing the above method, the front-end program content running in the business process can be effectively proved, which is equivalent to completely preserving the business processing logic and recording logic of this business process during the recording process.
[0032] In another implementation of the present application, it also includes:
[0033] At the client, before the business program runs, obtaining data in the client data environment;
[0034] Generate an instruction record for setting the playback client data environment based on the acquired data, and add the instruction record to the business process record data, or add the acquired data as a data record of the client data environment type to the business process record data.
[0035] The above implementation method, from the data perspective, saves the data environment of the client at the beginning of the business execution, so as to set the initial data environment during playback.
[0036] In another implementation of the present application, when the event occurring on the client or its corresponding execution content includes collecting external environment data, it also includes:
[0037] On the client side, based on the properties of the external environment data, a corresponding type of instruction record for playing the external environment data is generated, and the external environment data is collected to generate additional information of the instruction record, or,
[0038] On the client side, a data record of a corresponding type of external environment data type is generated based on the properties of the external environment data, and the external environment data is collected to generate additional information of the data record.
[0039] In the above implementation, the collected external environment data includes but is not limited to audio data, video data, location data, etc., which adds a new recording dimension, broadens the use of the generated recording data, and is also conducive to user authentication and authenticated users.
[0040] In another implementation of the present application, when the event occurring on the client or its corresponding execution content includes jumping to a third-party program for execution or jumping back from a third-party program, it also includes:
[0041] On the client, before the business program jumps to the third-party program for execution, based on the jump, an instruction record of a jump-to-third-party processing type is generated, and the third-party program information and data sent to the third-party program at the time of the jump are collected to generate additional information of the instruction record, or, based on the jump, a data record of a jump-to-third-party type is generated, and the third-party program information and data sent to the third-party program at the time of the jump are collected to generate additional information of the data record;
[0042] On the client, after jumping from a third-party program to the business program, based on the jump, an instruction record of a jump back processing type from a third party is generated, and the third-party program information and the data received from the third-party program at the time of the jump are collected to generate additional information of the instruction record. Alternatively, a data record of a jump back type from a third party is generated based on the jump, and the third-party program information and the data received from the third-party program at the time of the jump are collected to generate additional information of the data record.
[0043] In the above implementation, combined with the running characteristics of Internet programs, processing is provided for program jumps and returns, and the jump targets and data are recorded in detail to provide support for completely restoring the jumps in the business process.
[0044] In another implementation of the present application, the client adds data records or instruction records to the business process record data, which also includes adding one or more of the time information, type information, relationship information between data records, and relationship information between instruction records corresponding to the data record or the instruction record to the business process record data.
[0045] This implementation adds information such as time and type to the collected data or instructions to facilitate arrangement during playback and facilitate structured storage of data.
[0046] In another implementation of the present application, on the client side, based on the business stage pre-defined in the business procedure and in combination with the business stage, in the above implementations, a business stage identifier is added to the collected data records or instruction records, or is stored according to the business stage when added to the business process record data, so as to extract part of the business process record data according to the business stage.
[0047] The above implementation method collects data in combination with the actual business stages of the business process and generates phased business process record data, which is conducive to controlling the playback of segments during playback and quickly locating the business processing link.
[0048] In another implementation of the present application, a message digest algorithm is used to generate a message digest for the business process record data, further comprising:
[0049] On the client, a message digest algorithm is used to generate a message digest for the sub-data included in the business process record data, wherein the message digest is used to verify the consistency of the sub-data;
[0050] The sub-data is part of the business process record data.
[0051] According to the above implementation method, a message digest is generated for the sub-data contained in the business process record data, such as: a data set of instruction record type, a data set of data record type, a phased business process record data, an instruction record set of external request type, a business program running environment data record, etc., which is conducive to separately verifying the consistency of the corresponding sub-data and quickly locating problem data, and is also conducive to distributed storage.
[0052] In another implementation of the present application, each time new content is added to the business process record data, a summary algorithm is used on the client to regenerate a message summary for the business process record data, and the message summary is added to a message summary history record, which is used to save the change process of the message summary.
[0053] The above implementation method generates a message digest for the business process record data under each business operation state according to the changes in the business process record data generated during the business process, and provides verifiable credentials for each step of each business process based on the historical records generated by the message digest.
[0054] In another implementation of the present application, when generating a message digest for any two or more data contents contained in the business process record data, it also includes, on the client, merging the data content or the message digest of the data content with another data content or the message digest of another data content to generate new data content, and using a message digest algorithm to generate a message digest for the new data content.
[0055] The message digest generation method provided by the above implementation can choose to perform calculations based on the content or the message digest, thereby avoiding the situation where the calculation efficiency is reduced due to excessive content.
[0056] In another implementation of the present application, the client displays or stores a message summary of the business process record data or its sub-data in the user operation interface of the client during the Internet business process or when the operation is completed. The storage method includes one or more of storage by the client operation user, sending to the server for storage, using blockchain storage, and using external media storage as the credential of this Internet business process.
[0057] In the above implementation, the relevant message summary is displayed on the customer operation interface, which is conducive to the customer's evidence storage. At the same time, since the method provided in this application completes the message summary calculation on the client, the generated operation credentials are open and fair.
[0058] In another implementation of the present application, the message summary is displayed in the user operation interface of the client, and on the client, based on the message summary information displayed on the user operation interface, the operating user of the client is required to report based on the displayed message summary information, and the reported content is collected as external environment data, the instruction record or data record generated by the external environment data is added to the business process record data, new message summary information is generated again according to the new business process record data, and the message summary information displayed on the user operation interface is updated.
[0059] The above implementation method provides users with a method to interact with the message summary, while solving the problem of real-person verification of the operator. By interacting with the message summary to generate video or audio, it verifies that "someone does something in a certain business operation state", which is suitable for key business operation points.
[0060] In another implementation of the present application, the client further includes that the above implementations can be executed according to a preset time interval.
[0061] This implementation provides another way for client business process collection, which is convenient for periodic collection of instructions, data and program content in the business process.
[0062] In another implementation of the present application, the client must include the program content of any of the above-mentioned implementation methods used to implement the business process recording method of the present application; before the final credentials that can be saved by the client operating user and the business system provider are generated, any of the above-mentioned implementation methods are restricted to running in the client.
[0063] The above implementation method limits all business programs and recording programs to be executed in the client, generating valid credentials of "running a program to do something".
[0064] According to all the implementation methods of the first aspect above, the client, as the place for "transactions" between users and service providers, is limited to the client, and conducts all-round data collection and recording around the operating environment, data, programs, external interactions, external environment, third-party jumps, etc., to generate tamper-proof credentials for each step of the business process, and ultimately generate true and fair business process credentials.
[0065] In a second aspect, the present application provides an Internet business process playback method, the method is applied to an Internet business process playback device, the playback device includes a client for performing playback, and a playback program is run on the client to perform the playback method, the method includes:
[0066] Reading playback data, wherein the playback data includes business process record data or business process record data of a corresponding business stage;
[0067] Parse playback data, arrange and generate playback instructions, parse the instruction record data, data record data and additional information data contained in the playback data, and generate playback instructions that can be used for playback program execution, including converting the instruction record data into playback instructions, generating corresponding playback instructions based on the data record data and additional information data; arranging the generated playback instructions based on the time information contained in the instruction record data and data record data, and specifying the execution time or sequence for the playback instructions; wherein the instruction record data includes generating instruction records according to the event and / or the execution content corresponding to the event, instruction records of external request types, judging and / or setting playback client The data record data includes one or more of the following: a command record of the client operating environment, a command record of setting the playback client data environment, a command record of the corresponding type of playing external environment data, a command record of the jump to third-party processing type, and a command record of the jump back processing type from the third party; the data record data includes one or more of the following: generating a data record according to the event and / or the execution content corresponding to the event, a request type record data, a business program operating environment data record, a business program content record data, all program content record data, a client data environment type data record, an external environment data type data record, a jump to a third party type data record, and a jump back from a third party type data record;
[0068] Execute the playback instruction, and execute the playback instruction according to the playback instruction obtained by parsing and arranging, based on the execution time or sequence information contained therein.
[0069] Through the solution provided in the embodiment of the present application, the business process recording data recorded in the first aspect is used to realize the playback of the business process, achieving a playback effect consistent with the recorded process.
[0070] In one implementation of the present application, when an external request is monitored during playback, the following is further included:
[0071] Capturing requests from the current client and external to the client;
[0072] According to the information of the external request, the instruction record data of the external request type is searched for to obtain the instruction record of the corresponding external request type, and the response data part is obtained based on the instruction record or its corresponding additional information data, and the response data is returned as the result data of this request. Alternatively, according to the information of the external request, the record data of the request type is searched for to obtain the record data record of the corresponding request type, and the response data part is obtained based on the record data record of the request type or its corresponding additional information data, and the response data is returned to the client as the result data of this request.
[0073] The above implementation method avoids external interactions during the playback process, and completely uses the data recorded in the business process to simulate responses to external requests, ensuring that the playback process is not interfered with by external programs and data, so as to restore the actual situation of external requests when the business process is recorded. In addition, the external dependence of the playback process is reduced.
[0074] In another implementation of the present application, after reading the business process record data or the business process record data of the corresponding stage, it also includes using a pre-stored message digest to verify its data consistency, wherein the verification includes one or more of message digest verification based on the business process record data, message digest verification based on the sub-data of the business process record data, and verification based on the message digest historical record.
[0075] According to the above implementation, after the data for playback is read in, the consistency of the data is first verified to ensure that the playback is performed when the data is authentic. Optionally, during the playback process, each piece of data for playback is verified.
[0076] In a third aspect, the present application further provides an Internet business process recording system, which is established based on any one of the Internet business process recording methods in the first aspect above, and includes the following modules:
[0077] An event monitoring module, used to monitor events occurring during the operation of the business program;
[0078] The event and execution content analysis module analyzes the type of business program execution or operation in this event based on the event obtained by the event monitoring module and / or the execution content corresponding to the event, and calls the business process data collection module to perform corresponding data collection based on the analysis results;
[0079] The business process data collection module calls the corresponding data collection method according to the type of business program execution or operation obtained by the event and execution content analysis module, and collects and generates instruction record data, data record data, and the record data and additional information data of the data record data based on the events occurring in the current business program operation and / or the execution content corresponding to the events;
[0080] A data storage module is used to generate business process record data based on structured storage of collected data;
[0081] The summary information generation and recording module is used to generate a message summary for the business process record data or its sub-data.
[0082] In a possible implementation, the summary information generation and recording module is also used to, during the business recording process, record the message summary information one by one based on changes in the message summary of the business process recording data or its sub-data, and generate a message summary history record of the business process recording data or its sub-data.
[0083] In a fourth aspect, the present application further provides an Internet business process playback system, which is established based on any one of the Internet business process playback methods in the second aspect above, and includes the following modules:
[0084] A data reading module, used to read the business process record data or the business process record data of the corresponding business stage as playback data;
[0085] A data parsing and arranging module, used to parse the instruction record data, data record data and additional information data contained in the playback data, and generate playback instructions that can be used for playback program execution, including converting the instruction record data into playback instructions, generating playback instructions based on the data record data and additional information data; arranging the generated playback instructions based on the time information contained in the instruction record data and data record data, and specifying the execution time or sequence for the playback instructions;
[0086] The business playback module is used to execute the playback instruction according to the playback instruction obtained by the parsing and arrangement module based on the execution time or sequence information contained therein.
[0087] In one possible implementation, the playback system also includes a data verification module for verifying the consistency of the playback data or its sub-data using a pre-stored message digest, wherein the verified content includes one or more of the following: verifying the consistency of the overall playback data based on the message digest of the overall business process recording data, verifying the consistency of the playback data used in the corresponding steps in the playback process based on the message digest historical records, verifying the consistency of the playback data of the corresponding stage based on the message digest of the corresponding operation stage, and verifying the consistency of the corresponding sub-data in the playback data based on the message digest of the corresponding sub-data in the playback data.
[0088] In a fifth aspect, the present application also provides an Internet business process recording device, which is used to implement any one of the methods in the first aspect above.
[0089] In a sixth aspect, the present application also provides an Internet business process playback device, which is used to implement any one of the methods in the second aspect above.
[0090] In the seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed on a computer, enables the computer to execute any Internet business process recording method of the first aspect and / or any Internet business process playback method of the second aspect.
[0091] In an eighth aspect, the present application provides a computer program, which, when executed by a computer, is used to execute any Internet business process recording method of the first aspect and / or any Internet business process playback method of the second aspect.
[0092] It can be seen that in all aspects above, by recording the operation and operation process of the business program in all aspects on the client, on the one hand, complete data recording the business process is generated, and on the other hand, valid credentials of the business process are generated. Based on the stored data and message digest, on the basis of verifying the consistency of the data, playback is performed to restore the real business process. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Figure 1 A schematic diagram of an Internet business process recording process provided in an embodiment of the present application;
[0094] Figure 2 A schematic diagram of interaction between a user and a business system provided in an embodiment of the present application;
[0095] Figure 3 A schematic diagram of internal and external interactions of a client provided in an embodiment of the present application;
[0096] Figure 4 A schematic diagram of an Internet business process recording process provided in an embodiment of the present application;
[0097] Figure 5 A schematic diagram of the composition of programs and data in a client provided in an embodiment of the present application;
[0098] Figure 6 A schematic diagram of a process for recording external request information provided in an embodiment of the present application;
[0099] Figure 7 A schematic diagram of collecting various data and instruction records according to a timeline provided in an embodiment of the present application;
[0100] Figure 8 A schematic diagram of a tree-like storage structure of business process record data provided in an embodiment of the present application;
[0101] Fig. 9 A schematic diagram of an operation interface for displaying a message summary during a business process provided by an embodiment of the present application;
[0102] Fig.10 A schematic diagram of an Internet business process recording system provided in an embodiment of the present application;
[0103] Fig.11 A schematic diagram of an Internet service process playback process provided in an embodiment of the present application;
[0104] Fig.12 A schematic diagram of an Internet business process playback system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0105] The implementation mode part of this application is only used to explain this application but is not intended to limit this application.
[0106] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0107] Below, some terms in this application are explained to facilitate understanding by those skilled in the art:
[0108] 1) Client: Corresponding to the server that provides the business system, the client is a business program provided to the user or a container that runs the business program. For example, if the business program is a web page, the client is a web browser; an independent Android APP itself can be used as a client.
[0109] 2) Events. The definition of events in this application is slightly different from the definition in the general computer field. Events in this application can be generally understood as anything that occurs during the operation of a business program in the client, such as: user operations on any component on the display interface, user cursor movement, interface sliding, internal triggering of certain content execution during the operation of the business program (such as a program started using a timer), changes in the client's operating environment, triggering the execution of certain content by the operating system, triggering the execution of certain content by a request between the client and the outside (such as sending a request to a server, selecting a local file), changes in the running program in the client (such as jumping to a third-party program for execution), changes in the script content contained in the client, etc.
[0110] 3) And / or describes the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, B exists alone, and A and B exist at the same time. The character " / " generally indicates that the related objects are in an "or" relationship.
[0111] The present application provides an Internet business process recording method, which is used to record the entire process of a user browsing and operating a business system, and to generate record data that can be used for backtracking, while generating authentic and reliable operation credentials. The following is a brief description of the principles adopted by the method of the present application.
[0112] First, let's make a simple analogy. When a customer withdraws cash from a bank, the customer and the teller conduct a "transaction" at the counter. Therefore, the transaction process at the counter is credible to both parties. In order to avoid disputes and obtain valid "transaction" credentials, the "transaction process" must be recorded at the "transaction location". According to the characteristics of Internet business, such as Figure 2 As shown, when a user performs an Internet business operation, it can be understood as a "transaction" between the user and the service provider. In this system, the business system server is the representative of the service provider. Referring to the above analogy, the place where the two parties trade is the client operated by the user. Therefore, the area formed by the client is the "trusted area", and the areas of the user and the system server are both "untrusted areas". Operations occurring within the "untrusted area" are difficult to gain the trust of the other party. Therefore, although the existing technology has basically achieved the playback of the business process technically, it cannot generate credentials for the business process due to the existence of related processing in the "untrusted area".
[0113] The method provided in this application is based on the above principles, records all business processes in the client, and generates business process credentials that are trusted by both parties. Figure 3 , which is a schematic diagram of the internal and external interactions of a client provided in an embodiment of the present application. Inside the client, it includes an operation interface (UI), business programs, recording programs, data for user operation, and may also include third-party programs for jump execution; outside the client, it includes the network, server, the operating environment where the client is located, the operating system, the external data of the client, and the user. According to the above interaction diagram, the core of the implementation of this application is to record the initial status inside the client and any changes that occur during the business process, and to record any interactions between the client and the outside. At the same time, all recording and credential generation operations are required to be completed in the trusted area.
[0114] Figure 1 A possible flow chart of recording an Internet business process is shown, including the following steps:
[0115] S101, on the client side, based on an event occurring during the operation of the business program, generating an instruction record according to the event and / or the execution content corresponding to the event, or generating a data record according to the event and / or the execution content corresponding to the event;
[0116] S102, at the client, adding the instruction record or the data record to the business process record data;
[0117] S103: At the client, a digest algorithm is used to generate a message digest for the business process record data.
[0118] The following is a detailed description of the above steps:
[0119] In S101, the event and / or the execution content corresponding to the event is what happened in the business program. Its main purpose is to obtain what happened in the business program. Generally, there are two ways to obtain the event:
[0120] Active acquisition, actively triggering the declaration of itself as an event when a program is executed;
[0121] Passive acquisition is obtained by monitoring the program running or the results of the program running.
[0122] For different forms of business programs, the methods for obtaining events are also different. For example, when the business program is a web page and the client is a browser, the methods for obtaining events and / or execution contents corresponding to the events include but are not limited to one or more of the following methods:
[0123] Obtained by establishing a listener for HTML DOM, such as using JavaScript HTML DOM event listener to listen for acquisition, that is, establishing a listener for web page elements through the addEventListener() method. Optionally, directly establish a listener on the document to monitor and obtain events for all elements in the web page.
[0124] Use MutationObserver, which provides the ability to monitor changes made to the DOM tree. After a DOM is changed, an event is generated by the change. Optionally, all changes on the DOM tree can be obtained by monitoring the root node through MutationObserver;
[0125] The Service Worker listens to and intercepts HTTP requests of all pages within the scope to obtain corresponding events;
[0126] Obtain corresponding events by monitoring and intercepting Websocket.
[0127] In this step, two collection methods are provided according to the acquired events and / or the execution contents corresponding to the events: the first is a program method, that is, the collected information is generated as an instruction record, such as for a web page business program, the generated instruction record is in the form of a Javascript method; the second is a data method, that is, collecting content related to the event or its execution content to generate a data record. The instruction record is used to call during playback, and it has the same execution effect as the execution of the event and / or the execution content corresponding to the event in the business process; the data record provides support for the generation of corresponding playback instructions during playback, which records the relevant information of the event and / or the execution content corresponding to the event in the business process, and is used for the playback program to process the data to obtain the corresponding playback instructions. In the method provided in the present application and the method provided in the embodiment of the present application, the collection of various data, events, and execution contents supports the above two collection methods, that is, the collection is instruction records or data records.
[0128] In S102, the instruction record or the data record is added to the business process record data. The business process record data is used to record the overall process of this business. It can be an independent data or multiple data that logically become a whole. The data can be stored in the form of a two-dimensional table or key-value pair. The storage method includes but is not limited to files, databases, program variables, etc.
[0129] In S103, a digest algorithm is used to generate a message digest for the business process record data. The digest algorithm used is, for example, MD5, SHA-1, etc. It should be noted that the message digest is generated on the client side.
[0130] Through the above embodiments, the steps of business process data collection, instruction record or data record generation, business process data record, message summary generation, etc. are completed on the client side, and finally a reliable business record and credential are generated.
[0131] For ease of understanding, this application embodiment provides a possible Internet business process recording flow diagram, please refer to Figure 4 , including the following steps:
[0132] S401, loading the recording program;
[0133] S402, loading the business program;
[0134] S403, obtaining the operating environment information of the business program and adding it as a data record to the business process record data;
[0135] S404, obtaining the program content running on the client, and adding it as a data record to the business process record data;
[0136] S405: Obtain data from the client's initial data environment and add it to the business process record data as a data record
[0137] S406, monitoring events occurring during the operation of the business program, and analyzing the events and / or execution contents corresponding to the events;
[0138] S407, determining the execution content type;
[0139] S408, generating an instruction record of the user operation behavior type;
[0140] S409, collecting additional information for the instruction record of the user's operation behavior;
[0141] S410, generating an instruction record of a business program behavior type;
[0142] S411, collecting additional information for the instruction record of the business program behavior;
[0143] S412, generating an instruction record for playing the external environment data type;
[0144] S413, collecting external environment data and other additional information;
[0145] S414, determining the external request type;
[0146] S415, generating an instruction record for processing the network request type;
[0147] S416, collecting request information, request data, response data and other additional information for processing network request instruction records;
[0148] S417, generating an instruction record for processing a local operating environment request type;
[0149] S418, collecting request information, request data, response data and other additional information for processing the instruction record of the local operating environment request;
[0150] S419, generating an instruction record for processing a third-party jump type;
[0151] S420, collecting third-party program information, sending data and other additional information for processing the third-party jump instruction record;
[0152] S421, generating an instruction record for processing a third-party jump return type;
[0153] S422, collecting third-party program information, return data and other additional information for processing the third-party jump return instruction record;
[0154] S423, generating business process record data;
[0155] S424, generating a message digest;
[0156] S425, storing the message digest;
[0157] S426, storing the business process record data.
[0158] In the above step S401, the recording program loaded is a program provided for implementing the Internet business process recording method provided by the present application, and the business program loaded in step S402 is a front-end business operation program provided by the business provider to the user. The execution order of S401 and S402 is not particularly limited. In the specific implementation, they can be executed simultaneously, or they can be executed sequentially according to a preset order. However, before starting the business process recording, both S401 and S402 are required to be executed.
[0159] Step S403 is an optional step. Depending on the type of business program and the business process recording requirements, the acquired operating environment information includes but is not limited to server information, client operating system information, network information, client information, operating environment information provided by the client for the business program, business program information, time information, location information, etc. The acquired operating environment information is used to determine whether the client operating environment meets the playback requirements during business playback and to set the client operating environment.
[0160] The purpose of obtaining the program content running on the client in S404 is to provide a front-end execution program for playback and retain the business program for verification. In actual implementation, program content is collected according to the type of business program. For example, for web business programs, the collected content is related programs running in the browser, including Javascript, HTML, CSS, etc. In an optional implementation, in the case where the program content cannot be obtained (such as a compiled and executed program), the digital signature certificate of the business program is obtained as an identifier of the program content, and the identifier is used to replace the program content for recording. It should be noted that the digital signature certificate of the program must be obtained by the client program from a trusted third party.
[0161] In a preferred implementation of S404, all program contents running in the client are collected, including business programs, recording programs and other programs in the client, to achieve the purpose of verifying the program contents. The reason is that part of the program contents are not enough to prove the functions implemented by the program. For example, program A sets the variable value to 1, and program B increases the variable value by 1. It can be seen that when program A and program B exist at the same time, the final result of the variable is 2. At this time, if the collected program contents only include program A, the stored program is not enough to prove the result recorded in the business process, and the two parties have a dispute. Figure 5The composition diagram of the client's internal programs and data shown in this embodiment at least includes the collection of program contents of business programs and recording programs.
[0162] In a specific implementation, according to the characteristics of Internet programs, the running programs stored in the client may change during the running process. Therefore, the above collection of program content of the running program in the client is not limited to S404, but also includes, after the client makes a request with the outside, executing the same function as S404 to collect the program content and changes during the running process.
[0163] Optionally, encrypt the program content running in the client. The main purpose is that since the method provided by this application requires that the final generated record data include the entire content of the business program and the record program, which is easy to cause the program source code to be leaked, encrypting the program content can effectively prevent this problem from happening, while not affecting the validity of the final generated credentials.
[0164] The above S404 and related implementation methods of recording program contents provide a way for business programs and recording programs to "prove themselves".
[0165] In the above step S405, the data stored in the client data environment is obtained for the purpose of recording the client data environment when the business program starts running or starts recording. Taking the web business program as an example, the obtained data includes the local database, local storage, cache and other contents stored in the browser.
[0166] It should be noted that the implementation order of the above steps S403, S404, and S405 is not particularly limited. In specific implementation, they can be executed simultaneously, or can be executed sequentially according to a preset order.
[0167] It should also be noted that the above steps S403, S404, and S405 are in the form of generating data records. Optionally, instruction records for execution during the playback process are directly generated based on the collected data, and the data in the playback operating environment, program, and client data environment are set through the instruction records.
[0168] In the above step S406, events occurring during the operation of the business program are monitored, and the events and / or the execution content corresponding to the events are analyzed. The purpose is to execute a corresponding recording method according to changes occurring during the operation of the business program. According to the characteristics of Internet programs, taking a web page type business program as an example, the events include but are not limited to the following types: user operation behavior, program behavior of the business program, external environment data input, a request between the client and the outside, the business program jumping to a third-party program for execution, the execution of the third-party program jumping back to the business program, termination of the current business operation based on user or system triggers, etc., wherein the requests between the client and the outside also include network requests, requests between the client and the local operating environment, etc. S406 refers to the type of business program and adopts the corresponding method of identifying event types. Taking the web business program as an example, by establishing a monitor on the document, all user behaviors can be identified, including user clicks, inputs, cursor movements, dragging, web page sliding, etc. All HTTP requests can be obtained through Service Worker monitoring, and related WebSocket data transmissions can be monitored through WebSocket. The page jump is obtained through onbeforeunload. After MutationObserver monitors that the content of the web page has changed, but there is no user behavior interaction or external interaction on the current web page, it is considered that program behavior has occurred inside the business program, etc. The above are some examples of methods for identifying events and / or the execution content type corresponding to the events in web pages. They are only used to illustrate the execution principle of step S406, and the application should not be limited by the examples.
[0169] S407: judging according to the type of the event identified and / or the execution content corresponding to the event in S406, and calling corresponding data collection methods according to different types.
[0170] When S407 determines that the execution content type is a user operation behavior, S408 is executed to generate an instruction record of the user operation behavior type, wherein the generated instruction record is used to execute during the playback process to restore the user operation effect. Taking a web page type business program as an example, if the user clicks the btn button, an instruction record for executing onclick for the button is generated: click(). According to the instruction record obtained in S408, depending on the type of instruction record, it requires corresponding parameters or data as support during operation. Therefore, it is necessary to collect relevant data according to S409 to generate additional information of the instruction record to provide description and execution support for the instruction record. The additional information includes the occurrence time, source, event nature (click, input, cursor movement, etc.), execution parameters, reference data, generated data, etc. of the user behavior event. For example, for the button click above, the execution parameters (HTML element name: btn), event nature (click), and occurrence time can be collected as additional information. During playback, according to the above instruction record and additional information, a playback instruction is generated: document.getElementById("btn").click(), and its execution time is calculated based on the time information in the instruction record or additional information, and the playback instruction is called to execute using a timer.
[0171] When S407 determines that the execution content type is a business program behavior, S410 is executed to generate an instruction record of the business program behavior type. At the same time, S411 is executed to collect additional information for the instruction record of the business program behavior. In a specific implementation, the recording program identifies the operation behavior of the business program by judging the operation result. For example, for a web page type business program, if the HTML content of the web page is changed without monitoring user operation behavior or external interaction, it is considered that an internal program behavior has occurred. At this time, an instruction record for replacing the HTML content or DOM content is generated based on the behavior. At the same time, the changed HTML content or part of the HTML content is used as additional information of the instruction record. In a possible implementation method, the recording program analyzes the content of the business program (in a non-encrypted state) and identifies the operation behavior of the business program, such as identifying the timer execution code therein and obtaining detailed execution information.
[0172] When S407 determines that the execution content type is external environment data input, S412 is executed to generate an instruction record for playing the external environment data type, and at the same time, S413 is executed to collect the external environment data and other additional information. In actual implementation, the external environment data includes audio data, video data, location information, etc. received by the client, and the collected data is used for playback during playback. The instruction record includes: play video, play audio, display location information, etc., and the additional information includes audio data, video data, location information, etc.
[0173] When S407 determines that the execution content type is an external request, S414 is executed to further determine the type of the external request. The external request refers to a request between the client and its external device, and its types include network requests, local operating environment requests, and other external requests. According to the type of the external request, the corresponding method for processing the external request and generating the instruction record is called, specifically:
[0174] When S414 determines that the external request type is a network request, S415 is executed to generate an instruction record for processing the network request type. At the same time, S416 is executed to collect network request information, sending data, response data and other additional information. The network request is such as an HTTP request or a Socket request. The request information includes the request method (GET request, POST request, etc.), the request address, the protocol version number, the information contained in the request header, etc. The sending data is the data sent by the request, and the response data is the data returned by the request. According to the network request, the generated instruction record is used to execute during playback. Then, according to the network request captured during the playback process, the corresponding instruction record is called, and the instruction record obtains the response data part contained in the data based on the data contained in it or its additional information, and returns the response data to the client as the result data of this request.
[0175] When S414 determines that the external request type is a local operating environment request, S417 is executed to generate an instruction record for processing the local operating environment request type. At the same time, S418 is executed to collect local operating environment request information, send data, response data and other additional information. The local operating environment refers to the operating environment where the client is located, including an operating system, etc. The local operating environment request is an interaction between the client and the local operating environment, such as: reading and writing local files, reading and writing data stored in the local database, reading and writing cached data, etc. For example, when a business program of the web page type runs on the WebView in Android, the WebView is logically a client running the business program, and the interaction request between the WebView and the Android local program is a local operating environment request. The way to generate instruction records is basically the same as that of processing network requests, which will not be repeated here.
[0176] There is no particular limitation on the execution order of the above steps S415 and S416, and steps S417 and S418. In a specific implementation, they may be executed simultaneously, or may be executed sequentially according to a preset order.
[0177] In the above steps S414, S415, S416, S417, and S418, the data collected and generated are instruction records. Optionally, the data records are collected and generated according to the method of Figure 6 The implementation is shown in the following steps:
[0178] S601, external request is monitored;
[0179] S602, generating record data of the request type based on the information of the external request;
[0180] S603: Add the record data of the request type to the business process record data.
[0181] In the above implementation, when the event or its corresponding execution content of the client includes an external request, S601 monitors the external request, S602 generates request type record data based on the information of the external request; S603 adds the request type record data to the business process record data. The content of the request type record data includes one or more of the request information, the data sent by the request, and the received response data, and the request type record data is used to simulate the provision of request results during playback. During playback, according to the external request that occurred, the corresponding request type record data is searched in the business process record data, and the response data contained in the request type record data is returned. The advantage of the above implementation is that an independent external request simulation service is constructed according to the request type record data stored in the business process record data, and the simulation service searches for the corresponding request type record data in the request type record data according to the captured request information, and returns the request data contained in the request type record data, thereby achieving the response data without making an actual external request, and simulating the request process in the business process. Optionally, during the playback process, an external request service is uniformly constructed for the network request and the external environment request, or a separate network request service and external environment request service are constructed. It should be noted that the request services are all run on the playback client.
[0182] When S407 determines that the execution content type is to jump to a third party, S419 is executed to generate an instruction record for processing the third-party jump type. At the same time, S420 is executed to collect third-party program information, send data and other additional information. The instruction record generated in S419 is used for execution during playback. Its functions include: displaying the jump of the current business program during execution and displaying relevant information of the jump target (third-party program). The third-party program information collected by S420 is, for example, the website address of the third-party program.
[0183] When S407 determines that the execution content type is a jump return from a third-party program, S421 is executed to generate an instruction record for processing the third-party jump return type, and at the same time, S422 is executed to collect third-party program information, return data and other additional information. The instruction record generated in S421 is used for execution during the playback process, and its function is, for example, to process a request sent by the business program to the third-party program according to the return data of the third-party program.
[0184] The above jumps to the third-party program for execution and is returned by the third-party program. For example, in the scenario of third-party payment in the business program, the business program sends the relevant data about the payment settings, jumps to the payment page for the user to perform the payment operation, and then returns to the business program according to the result of the user's payment. Since the third-party payment page is not within the recording scope of the recording program provided in this application, it is impossible to record the operation process in the third-party program. However, from the three aspects of third-party program information, sending data, and returning data, the interaction process with the third-party program can be fully recorded. When the two parties have a dispute over the business process record, the above recorded data can be checked through the third-party program platform. Therefore, the recorded data does not affect the authenticity of the business process record data. In a possible implementation method for jumping with a third-party program, the above two implementation methods for processing external requests are used to process the third-party jump. The reason is that the business program jumps to the third-party program for execution and jumps back after the third-party program is executed. The process of sending data to a third party, executing processing by the third-party program, and returning data is logically equivalent to an external request.
[0185] There is no particular limitation on the execution order of the above steps S419 and S420, and steps S421 and S422. In a specific implementation, they may be executed simultaneously, or may be executed sequentially according to a preset order.
[0186] In an optional implementation scenario, a timer is established in the business recording program, and any group of methods among S408 and S409, S410 and S411, S412 and S413, S415 and S416, S417 and S418, S419 and S420, S421 and S422 are executed according to a preset time interval. For example, for audio and video data in the external environment data, data is periodically collected and added to the business process recording data to avoid the problem of reduced storage efficiency due to excessive data volume. At the same time, the number of collection times is increased to facilitate multiple message summary generation calculations and enhance the validity of the credentials.
[0187] The business process records in S406 to S422 above, in a preferred implementation scenario, perform data collection according to the business stages pre-defined in the business program, add business stage identifiers to the collected data records or instruction records, or store them according to the business stages when adding them to the business process record data, so as to extract part of the business process record data according to the business stages.
[0188] For the business process records in S401 to S422 above, please refer to Figure 7 A schematic diagram of various data collections according to a timeline is shown, wherein the operating environment information, program content, and client initial data environment data are recorded at the beginning of the business process record, and then various operation process data are collected to generate corresponding instruction records. In addition, during the time period when jumping to the execution of a third-party program, there is no recorded content in the timeline.
[0189] The business process records from S406 to S422 are collected and generated into different types of data (including various types of instruction records and data records) according to the judgment of S407 and S414, and S423 is executed. Various types of instruction records and data records collected in the business process are structured and stored on the client to generate business process record data. The structured storage may be in the form of a two-dimensional table, a tree structure, etc. Figure 8 The tree-like storage structure diagram of a business process record data is shown, and the collected data of different types are stored in a hierarchical structure. Preferably, when stored in a tree structure, the time information corresponding to the data, the collected data type information, the relationship information between the collected data and other data, etc. are stored in each data node or its child node. When stored in a two-dimensional table form, the above time information, collected data type information, etc. are stored in the field of each record.
[0190] In an optional implementation of S423, data is stored based on predefined business stages. For example, when a tree structure is used for storage, a corresponding sub-node is established for each business stage to store data, or stage identification information is stored within each data node or its sub-node. For example, when a two-dimensional table is used for storage, stage identification information is added to the field of each record.
[0191] S424, based on the business process record data in S423, a message digest is generated for it using a message digest algorithm, such as MD5, SHA-1, etc. Optionally, a message digest is generated for the sub-data contained in the business process record data, and the message digest is used to verify the consistency of the sub-data, such as: generating a message digest of the corresponding type of record data for different types of record data sets contained in the business process record data, and the message digest is used to verify the consistency of the record data contained in the corresponding type; generating a message digest of the corresponding business stage for the record data sets of different business stages contained in the business process record data, and the message digest is used to verify the consistency of the record data contained in the corresponding operation stage (further, the message digest of the overall record data is generated by combining the message digests of the record data of each stage).
[0192] In a preferred implementation process, instruction records and data records are generated according to the monitoring and collection business process of S406. Each time S423 is executed to generate new business process record data, S424 is executed to add the message summary generated each time to the message summary history record, and the message summary history record is used to save the historical change information of the message summary.
[0193] In a preferred implementation, S424 also includes generating a message digest for the data (partial or complete) in the client data environment during the operation of the business program, and adding it to the message digest history record for verifying and comparing the operation results during the playback process.
[0194] In a preferred implementation, S424 also includes generating a message digest for the specified data output by the business program during or after the business program is run, and adding it to the message digest history record for verifying and comparing the running results of the specified data during playback.
[0195] In a preferred implementation process, when generating a message digest for any two or more data contents included in the business process record data, S424, at the client, combines the data content or the message digest of the data content with another data content or the message digest of another data content to generate a new data content, and uses a message digest algorithm to generate a message digest for the new data content. For example, generating a message digest for combining data A and data B includes the following methods:
[0196] Merge the content of data A with the content of data B, and calculate and generate a message digest based on the merged content;
[0197] The content of data A is combined with the message digest of data B, and a message digest is calculated based on the combined content;
[0198] The message digest of data A is combined with the content of data B, and a message digest is calculated based on the combined content;
[0199] The message digest of data A is combined with the message digest of data B, and a message digest is generated based on the combined content.
[0200] After each step S424 generates a message digest for the current business process record data, continue S406 to monitor and collect the next execution content until receiving an instruction to end the business operation, execute S425 to store the message digest generated by the business process record data, and the message digest will serve as the final credential of this business process. At the same time, execute S426 to store the business process record data. In an optional implementation process, the instruction to end the business operation notifies S406 to stop monitoring, and executes S425 and S426.
[0201] In a preferred implementation scenario, the recording programs used to implement the above implementation methods are all included in the client, and all the above steps are executed in the client before the final credentials that can be saved by both the business operation user and the business system provider are generated.
[0202] In an optional implementation scenario, the recording program used to implement each of the above implementations is partially contained in the client and partially runs on the server, but in the recording program running on the client, it is necessary to obtain the digital signature certificate of the server-side recording program as an identifier of the server-side recording program content. Preferably, the digital signature certificate of the server-side recording program needs to be obtained by the client-side recording program from a trusted third party.
[0203] In a preferred implementation scenario, during the process of the user performing a business operation, the summary information generated by the current business process record data or its sub-data is displayed in the operation interface. Fig. 9 This is a schematic diagram of an operation interface that generates and displays a message summary during a business process. The "dynamic credentials for business operations" in the upper right corner of the figure is the message summary generated by the current business process record data or its sub-data. This implementation scheme shows the user a credible operation process. When any event occurs on the client, such as the client receiving data, the user clicking, or the cursor moving, the credentials will change, and each change reflects the "transaction" between the user and the system. Optionally, after the business process is completed, the message summary information will be reflected in the final output result. For example, when the user performs an Internet insurance purchase operation, the final generated message summary will be printed in the insurance policy as a valid credential for the insurance process.
[0204] Combined with the above preferred implementation scenarios, further, the client requires the operating user to read the summary information displayed on the user operation interface, and collects the reading content as external environment data and adds it to the business process record data, and generates new summary information again based on the new business process record data. The above implementation method realizes the verification of user identity. For example, in the above Internet insurance underwriting operation, when the user is required to confirm at a key business node, the generated audio or video data is read and recorded, and the reading data is collected again as external environment data and added to the business process record data, and a new message summary is generated from the business process record data, generating verification credentials combining user operation and identity.
[0205] In order to facilitate understanding of the method provided by the above Internet business process recording embodiment, Fig.10 A possible Internet business process recording system is shown, the system includes: an event monitoring module 1001, an event and execution content analysis module 1002, a business process data collection module 1003, a data storage module 1004, and a summary information generation and recording module 1005. Those skilled in the art can understand that Fig.10 The structure of the Internet business process recording system shown in the figure does not constitute a limitation on the Internet business process recording method of the present application. The Internet business process recording system provided by the embodiment of the present application may include more or fewer modules than shown in the figure, or a combination of certain modules, or a different module arrangement.
[0206] Combine the following Fig.10 The various components of the Internet business process recording system are introduced in detail:
[0207] An event monitoring module 1001 is used to monitor events occurring during the operation of the business program;
[0208] The event and execution content analysis module 1002 analyzes the type of business program execution or operation in this event based on the event obtained by the event monitoring module 1001 and the event and / or the execution content corresponding to the event, and calls the business process data collection module to collect corresponding data according to the analysis result;
[0209] The business process data collection module 1003 calls a corresponding data collection method according to the type of business program execution or operation obtained by the event and execution content analysis module 1002, and collects and generates instruction record data, data record data, and the record data and additional information data of the data record data based on the events occurring in the current business program operation and / or the execution content corresponding to the events;
[0210] The data storage module 1004 is used to generate business process record data according to the structured storage of the collected data;
[0211] The summary information generation and recording module 1005 is used to generate a message summary for the business process record data or its sub-data. Preferably, the module is also used to record the summary information one by one according to the change of the summary information corresponding to the corresponding data, and generate a message summary history record of the corresponding data.
[0212] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.
[0213] An embodiment of the present application also provides an Internet business process recording device, which includes a processor and a memory for storing processor-instructable records; wherein the processor is configured to execute any one of the above Internet business process recording methods.
[0214] Fig.11 A possible process flow diagram of replaying an Internet service operation process is shown, including the following steps:
[0215] S1101, reading business process record data;
[0216] S1102, verify data consistency;
[0217] S1103, parsing and arranging playback data;
[0218] S1104, determining and setting the operating environment;
[0219] S1105, initializing the client data environment;
[0220] S1106, determining whether the data in the playback instruction queue is empty;
[0221] S1107, read a playback instruction and additional information;
[0222] S1108: Execute the playback instruction according to the execution time requirement of the playback instruction and based on the support information in the additional information.
[0223] The following is a detailed description of the above steps:
[0224] The above steps are executed on the client for business playback, where a playback program for playback and playback process control is first loaded, and playback is performed based on the business process record data or the business process record data of a certain stage.
[0225] The data read in S1101 includes the business process record data of the whole or a certain stage.
[0226] S1102 verifies the consistency of data, that is, uses a pre-stored message digest to perform verification, and the verified data includes: overall business process record data, a certain type of record data, business record data of a certain business stage, etc.
[0227] S1103 parses the recorded data according to the storage structure and content of the recorded data, parses the instruction recorded data, data recorded data and its additional information data contained therein, and generates playback instructions that can be used for playback execution. Specifically, for example, the instruction recorded data is converted into playback instructions, and corresponding playback instructions are generated based on the data recorded data and its additional information data. The arrangement is performed based on the above data analysis, that is, based on the time information contained in the instruction recorded data and the data recorded data, the generated playback instructions are arranged, and the execution time or sequence is specified for the playback instructions. Among them, the instruction record data includes but is not limited to: generating instruction records according to the event and / or the execution content corresponding to the event, instruction records of external request type, instruction records of judging and / or setting the playback client operating environment, instruction records of setting the playback client data environment, instruction records of corresponding types of playing external environment data, instruction records of jump to third-party processing type, instruction records of jump back from third party processing type, etc.; the data record data includes but is not limited to: generating data records according to the event and / or the execution content corresponding to the event, request type record data, business program operating environment data record, business program content record data, all program content record data, client data environment type data record, external environment data type data record, jump to third party type data record, jump back from third party type data record, etc. The above generation of corresponding playback instructions based on data record data and its additional information data is a way of using data to generate execution instructions in the playback environment, such as: generating playback instructions for judging and setting the playback client operating environment based on the business program operating environment data record.
[0228] Based on the parsed data and arrangement results of S1103, the arranged playback instructions are added to the playback instruction queue. S1104 is executed to determine whether the client operating environment currently executing the playback meets the playback requirements, the playback client operating environment is set, and S1105 is executed to perform initial data settings on the data environment of the current client.
[0229] Optionally, in a specific implementation scenario, part of the client playback program is initialized based on the business program content obtained by parsing in S1103, that is, the playback instruction is executed based on the business program when the business process is recorded.
[0230] After S1104 and S1105 complete the setting of the client operating environment and data environment, execute S1106 to make a judgment, execute S1107 based on the playback instruction queue, obtain a playback instruction according to the time or execution order, execute S1108, and execute the playback instruction according to the execution time requirement of the playback instruction.
[0231] Optionally, the playback instructions for the client operating environment and data environment settings are uniformly added to the playback instruction queue, and are not individually performed in S1104 and S1105, but are uniformly judged and executed by S1106.
[0232] It should be noted that the execution order of the above S1104 and S1105 is not particularly limited. In the specific implementation, they can be executed simultaneously, or they can be executed sequentially according to a preset order. In addition, in the specific implementation, some of the above steps are non-essential steps (such as: S1104, S1105), which are specifically determined according to the content of the business process recording data and the playback requirements.
[0233] In one possible implementation, when the playback instruction is executed in S1108 above, if it is determined that its nature is an external request, the external request is first captured, and then based on the data collected for the external request in the additional information corresponding to the playback instruction, the response data contained in the data is obtained, and the response data is returned as the result data of this request.
[0234] In another possible implementation, when an external request is monitored during the playback process, the external request is first captured, and then based on the captured request information, the business record data is searched for the record data record of the corresponding request type, the response data contained in the record data record of the request type is obtained, and the response data is returned as the result data of this request.
[0235] In a preferred implementation, a unified external request processing service program is constructed on the playback client to monitor external requests occurring during the playback process, search for recorded data of the request type, and calculate and return response data.
[0236] In a preferred implementation process, a piece of data is read from the business process record data in the above steps, and before executing according to the data in the playback, consistency verification is first performed. Specifically, according to the message digest algorithm adopted in the recording process, a message digest is generated for the data part that has been executed in the playback. When a new piece of data is read in the playback process, a message digest is generated for the new data and the original data according to the same algorithm as when recording, and the digest is compared with the corresponding record in the message digest history record to verify the consistency of the data. Preferably, the above verification is implemented in combination with the message digest verification of the corresponding type of recorded data and the message digest of the corresponding business stage.
[0237] The above preferred implementation method is conducive to verifying data and locating tampered records during playback.
[0238] In a preferred implementation, the data in the data environment in the client is verified and compared during the playback process according to the message digest generated for the data in the client data environment during the business recording process.
[0239] In a preferred implementation, based on a message digest generated for designated data output from a business recording program, during playback, the message digest is used to verify the value or content of the data during playback.
[0240] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.
[0241] In order to facilitate understanding of the method provided by the above Internet business process playback embodiment, Fig.12 A possible Internet business process playback system is shown, the system includes: a data reading module 1201, a data parsing and arrangement module 1202, and a business operation playback module 1203. Those skilled in the art can understand that Fig.12 The structure of the Internet business process playback system shown in the does not constitute a limitation on the Internet business process playback method of the present application. The Internet business process playback system provided by the embodiment of the present application may include more or fewer modules than shown in the figure, or combine certain modules, or have different module arrangements.
[0242] Combine the following Fig.12 The various components of the Internet business process playback system are specifically introduced as follows:
[0243] The data reading module 1201 is used to read the business process record data or the business process record data of a certain business stage as playback data;
[0244] The data parsing and arranging module 1202 is used to parse the instruction record data, data record data and additional information data contained in the playback data, and generate playback instructions that can be used for playback program execution, including converting the instruction record data into playback instructions, generating playback instructions based on the data record data and additional information data; arranging the generated playback instructions based on the time information contained in the instruction record data and data record data, and specifying the execution time or sequence for the playback instructions;
[0245] The service playback module 1203 is used to execute the playback instruction according to the playback instruction obtained by the parsing and arrangement module based on the execution time or sequence information contained therein.
[0246] Preferably, the above Internet business process playback system also includes a data verification module 1204, which is used to verify the consistency of the playback data or its sub-data using a pre-stored message digest, wherein the verified content includes but is not limited to: verifying the consistency of the overall playback data based on the message digest of the overall business process recording data, verifying the consistency of the playback data used in the corresponding steps in the playback process based on the message digest historical records, verifying the consistency of the playback data of the corresponding stage based on the message digest of the corresponding operation stage, verifying the consistency of the corresponding sub-data in the playback data based on the message digest of the corresponding sub-data in the playback data, etc.
[0247] An embodiment of the present application also provides an Internet business process playback device, which includes a processor and a memory for storing processor executable instructions; wherein the processor is configured to execute any one of the above Internet business process playback methods.
[0248] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer executes the Internet business process recording and playback method described in the above embodiment.
[0249] In addition, an embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the Internet business process recording and playback method described in the above embodiment.
[0250] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.
[0251] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present application, which should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.
Claims
1. A method for recording an Internet business process, characterized in that: Applied to an Internet business process recording device, the device also includes a client running a business program, and the method includes: On the client side, based on events occurring during the operation of the business program: Generate an instruction record according to the event and / or the execution content corresponding to the event, or generate a data record according to the event and / or the execution content corresponding to the event, wherein the instruction record is used to be executed during the playback of the business process, and the data record is used to generate and execute a playback instruction based on the data record during the playback of the business process; Adding the instruction record or the data record to the business process record data, wherein the business process record data is used to record the current Internet business process; A digest algorithm is used to generate a message digest for the business process record data, wherein the message digest is used to verify the consistency of the business process record data and serves as an identifier of this Internet business process; The collection of the business process record data and the generation of the message digest are both completed at the client, thereby generating a credible operation credential.
2. The method according to claim 1, characterized in that Generating an instruction record or a data record based on the event occurring on the client and / or the execution content corresponding to the event, further comprising: Generate a corresponding type of instruction record or data record according to the event or the execution content corresponding to the event; According to the type of the instruction record or data record, based on the event and / or the execution content corresponding to the event, collecting data to generate additional information of the instruction record or data record, wherein the additional information is used to provide execution support for the instruction record, or to provide support for generating playback instructions for the data record and providing execution support for the generated playback instructions; The additional information is added to the business process record data, and the corresponding relationship between the additional information and the instruction record or the data record is recorded, or the additional information is added to the corresponding instruction record or data record.
3. The method according to claim 2, characterized in that When the event occurring on the client and / or its corresponding execution content includes an external request, it also includes: generating an instruction record of a corresponding external request type based on the nature of the external request; Collecting data based on the external request and generating additional information for the instruction record; Among them, the external request is a request occurring between the client and the outside of the client; the data collected based on the external request includes one or more of the request information, the request data sent, and the response data received; the instruction record of the external request type is used to be executed during playback. During the playback process, according to the external request captured during the playback, the corresponding external request instruction record is executed to return the response data.
4. The method according to claim 2, characterized in that: When the event occurring on the client and / or its corresponding execution content includes an external request, it also includes: Generate request type record data based on the external request, wherein the content of the request type record data includes one or more of request information, sent request data, and received response data; Among them, the external request is a request between the client and the outside of the client; the record data of the request type is used to simulate the service provision request result during the playback process. During the playback process, according to the external request occurring during the playback, the corresponding request type record data record is searched in the business process record data, and the response data contained in the request type record data record is returned.
5. The method according to claim 1, characterized in that Also includes: At the client, obtaining the operating environment information of the business program; Generate an instruction record for determining and / or setting the playback client operating environment during playback according to the operating environment information, and add the instruction record to the business process record data; or, generate a business program operating environment data record according to the operating environment information, and add the business program operating environment data record to the business process record data; The operating environment information includes one or more of server information, business service program information, client operating system information, network information, client information, operating environment information provided by the client for the business program, business program information, time information, and location information.
6. The method according to claim 1, characterized in that The method further includes obtaining, at the client, program content of the business program running on the client as business program content record data, and adding the business program content record data to the business process record data.
7. The method according to claim 6, characterized in that When acquiring the program content of the business program, it also includes acquiring the program content of all programs running on the client as all program content record data, and adding all program content record data to the business process record data.
8. The method according to claim 1, characterized in that: Also includes: At the client, before the business program runs, obtaining data in the client data environment; Generate an instruction record for setting the playback client data environment based on the acquired data, and add the instruction record to the business process record data, or add the acquired data as a data record of the client data environment type to the business process record data.
9. The method according to claim 2, characterized in that: When the event occurring on the client or its corresponding execution content includes collecting external environment data, it also includes: On the client side, based on the properties of the external environment data, a corresponding type of instruction record for playing the external environment data is generated, and the external environment data is collected to generate additional information of the instruction record, or, On the client side, a data record of a corresponding type of external environment data type is generated based on the properties of the external environment data, and the external environment data is collected to generate additional information of the data record.
10. The method according to claim 2, characterized in that When the event occurring on the client or its corresponding execution content includes jumping to a third-party program for execution or jumping back from a third-party program, it also includes: On the client, before the business program jumps to the third-party program for execution, based on the jump, an instruction record of a jump-to-third-party processing type is generated, and the third-party program information and data sent to the third-party program at the time of the jump are collected to generate additional information of the instruction record, or, based on the jump, a data record of a jump-to-third-party type is generated, and the third-party program information and data sent to the third-party program at the time of the jump are collected to generate additional information of the data record; On the client, after jumping from a third-party program to the business program, based on the jump, an instruction record of a jump back processing type from a third party is generated, and the third-party program information and the data received from the third-party program at the time of the jump are collected to generate additional information of the instruction record. Alternatively, a data record of a jump back type from a third party is generated based on the jump, and the third-party program information and the data received from the third-party program at the time of the jump are collected to generate additional information of the data record.
11. The method according to claim 1, characterized in that: Adding data records or instruction records to the business process record data on the client also includes adding one or more of the time information, type information, relationship information between data records, and relationship information between instruction records corresponding to the data record or the instruction record to the business process record data.
12. The method according to claim 1, characterized in that Also includes, On the client side, according to the business stage pre-defined in the business procedure, a business stage identifier is added to the collected data record or instruction record based on the business stage, or it is stored according to the business stage when added to the business process record data, so as to extract part of the business process record data according to the business stage.
13. The method according to claim 1, characterized in that Using a message digest algorithm to generate a message digest for the business process record data also includes: On the client, a message digest algorithm is used to generate a message digest for the sub-data included in the business process record data, wherein the message digest is used to verify the consistency of the sub-data; The sub-data is part of the business process record data.
14. The method according to claim 1, characterized in that Using a digest algorithm to generate a message digest for the business process record data also includes: At the client, after each time new content is added to the business process record data, a summary algorithm is used to regenerate a message summary for the business process record data, and the message summary is added to a message summary history record, and the message summary history record is used to save the change process of the message summary.
15. The method according to claim 1, using a digest algorithm to generate a message digest for the business process record data, also includes, at the client, when generating a message digest for any two or more data contents contained in the business process record data, merging the data content or the message digest of the data content with another data content or the message digest of another data content to generate a new data content, and using a message digest algorithm to generate a message digest for the new data content.
16. The method according to claim 1, characterized in that Also includes: On the client, during the Internet business process or when the operation is completed, a message summary of the business process record data or its sub-data is displayed or stored in the user operation interface of the client. The storage method includes one or more of storage by the client operation user, sending to the server for storage, using blockchain storage, and using external media storage, as the credential of this Internet business process.
17. The method according to claim 16, characterized in that Displaying the message summary in the user operation interface of the client further includes: On the client, based on the message summary information displayed on the user operation interface, the operating user of the client is required to report based on the displayed message summary information, and the reported content is collected as external environment data, and the instruction record or data record generated by the external environment data is added to the business process record data, and new message summary information is generated again according to the new business process record data, and the message summary information displayed on the user operation interface is updated.
18. The method according to claim 1, characterized in that The client also includes executing the following steps according to a preset time interval: generating an instruction record or a data record according to the event and / or the execution content corresponding to the event, adding the instruction record or the data record to the business process record data, and using a summary algorithm to generate a message summary for the business process record data.
19. The method according to claim 1, characterized in that The client needs to include program content for implementing the Internet business process recording method; before the final credentials that can be saved by the client operating user and the business system provider are generated, the Internet business process recording method is limited to running in the client.
20. A method for replaying an Internet business process, characterized in that: The method is applied to a playback device for an Internet business process recorded by any Internet business process recording method according to any one of claims 1 to 19, the playback device comprises a client for performing playback, a playback program is run on the client to perform the playback method, and the method comprises: Reading playback data, wherein the playback data includes business process recording data; Parse playback data, arrange and generate playback instructions, parse the instruction record data, data record data and additional information data contained in the playback data, and generate playback instructions that can be used for playback program execution, including converting the instruction record data into playback instructions, generating corresponding playback instructions based on the data record data and additional information data; arranging the generated playback instructions based on the time information contained in the instruction record data and data record data, and specifying the execution time or sequence for the playback instructions; wherein the instruction record data includes generating instruction records according to the event and / or the execution content corresponding to the event, instruction records of external request types, judging and / or setting playback client The data record data includes one or more of the following: a command record of the client operating environment, a command record of setting the playback client data environment, a command record of the corresponding type of playing external environment data, a command record of the jump to third-party processing type, and a command record of the jump back processing type from the third party; the data record data includes one or more of the following: generating a data record according to the event and / or the execution content corresponding to the event, a request type record data, a business program operating environment data record, a business program content record data, all program content record data, a client data environment type data record, an external environment data type data record, a jump to a third party type data record, and a jump back from a third party type data record; Execute the playback instruction, and execute the playback instruction according to the playback instruction obtained by parsing and arranging, based on the execution time or sequence information contained therein.
21. The method according to claim 20, characterized in that When external requests are monitored during playback, it also includes: Capturing requests from the current client and external to the client; According to the information of the external request, the instruction record data of the external request type is searched for to obtain the instruction record of the corresponding external request type, and the response data part is obtained based on the instruction record or its corresponding additional information data, and the response data is returned as the result data of this request. Alternatively, according to the information of the external request, the record data of the request type is searched for to obtain the record data record of the corresponding request type, and the response data part is obtained based on the record data record of the request type or its corresponding additional information data, and the response data is returned to the client as the result data of this request.
22. The method according to claim 21, characterized in that After reading the business process record data or the business process record data of the corresponding stage, it also includes using a pre-stored message digest to verify its data consistency, wherein the verification includes one or more of message digest verification based on the business process record data, message digest verification based on the sub-data of the business process record data, and verification based on the message digest historical record.
23. An Internet business process recording system established according to any one of the Internet business process recording methods of claims 1 to 19, characterized in that: The system comprises: An event monitoring module, used to monitor events occurring during the operation of the business program; The event and execution content analysis module analyzes the type of business program execution or operation in this event based on the event obtained by the event monitoring module and / or the execution content corresponding to the event, and calls the business process data collection module to perform corresponding data collection based on the analysis results; The business process data collection module calls the corresponding data collection method according to the type of business program execution or operation obtained by the event and execution content analysis module, and collects and generates instruction record data, data record data, and the record data and additional information data of the data record data based on the events occurring in the current business program operation and / or the execution content corresponding to the events; A data storage module is used to generate business process record data based on structured storage of collected data; The summary information generation and recording module is used to generate a message summary for the business process record data or its sub-data.
24. The Internet business process recording system according to claim 23, characterized in that: The summary information generation and recording module is also used to, during the business recording process, record the message summary information one by one based on the changes in the message summary of the business process recording data or its sub-data, and generate a message summary history record of the business process recording data or its sub-data.
25. An Internet business process playback system established according to any one of the Internet business process playback methods of claims 20 to 22, characterized in that: The system comprises: A data reading module, used to read the business process record data or the business process record data of the corresponding business stage as playback data; A data parsing and arranging module, used to parse the instruction record data, data record data and additional information data contained in the playback data, and generate playback instructions that can be used for playback program execution, including converting the instruction record data into playback instructions, generating playback instructions based on the data record data and additional information data; arranging the generated playback instructions based on the time information contained in the instruction record data and data record data, and specifying the execution time or sequence for the playback instructions; The business playback module is used to execute the playback instruction according to the playback instruction obtained by the parsing and arrangement module based on the execution time or sequence information contained therein.
26. The system according to claim 25, characterized in that: It also includes a data verification module, which is used to verify the consistency of the playback data or its sub-data using a pre-stored message digest, wherein the verified content includes one or more of the following: verifying the consistency of the overall playback data based on the message digest of the overall business process recording data, verifying the consistency of the playback data used in the corresponding steps in the playback process based on the message digest historical records, verifying the consistency of the playback data of the corresponding stage based on the message digest of the corresponding operation stage, and verifying the consistency of the corresponding sub-data in the playback data based on the message digest of the corresponding sub-data in the playback data.
27. An Internet business process recording device, the device implementing any one of the methods in claims 1 to 19.
28. An Internet business process playback device, the device implementing any one of the methods in claims 20 to 22.
29. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 19 are implemented; or, when the program is executed by a processor, the steps of the method described in any one of claims 20 to 22 are implemented.
30. A computer program product, characterized in that The method comprises instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 19, or cause the computer to execute the method according to any one of claims 20 to 22.
