An agent-oriented service page data change perception method and system
By determining the data formation path and business identifier of the perceived item, the problem of ambiguous attribution of the perceived item in multiple candidate business contexts is solved, and accurate perception of changes in business page data is achieved.
Patent Information
- Application Number
- CN202611586055.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-14
- Publication Date
- 2026-11-27
AI Technical Summary
When an intelligent agent performs data perception on a business page, there is a problem that the perceived item cannot uniquely determine the business affiliation. Especially in the case of multiple candidate business contexts, existing technologies have difficulty accurately distinguishing their business affiliation, leading to incorrect data association.
By determining the data formation path of the sensing item, the business identifier is determined along the data formation path, and the identifier value of the sensing data and the business identifier is obtained at the target collection point. Based on the identifier value, the business context to which the sensing data belongs is accurately determined.
This reduces errors in the attribution of perceived data services caused by insufficient existing information on the page, and improves the accuracy of data change perception.
Smart Images

Figure CN123178740A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer data processing technology, and specifically to a method and system for sensing changes in business page data for intelligent agents. Background Technology
[0002] During the continuous data perception of business pages by intelligent agents, it is usually necessary to acquire the target data on the page and determine changes in the page data by comparing the current data with historical data. For business objects such as contracts, orders, and projects, the same type of perception item may exist in different business objects or different versions of the same business object. Therefore, accurately determining the business context to which the perception data belongs is the basis for associating historical data and making change judgments.
[0003] Existing technologies already include solutions for tracing the source of data using data lineage relationships. For example, CN113138990B discloses a data lineage construction, tracing method, apparatus, and equipment that establishes a lineage relationship between target data and source data to achieve the tracing of the source of target data.
[0004] However, when different business objects or business versions have the same or similar page field values, and the perceived data in the current business page lacks information that can uniquely indicate its business affiliation, it is difficult to determine its specific business context based solely on the page data. Even if the source of the perceived data can be traced through data lineage, in cases where multiple candidate business contexts may correspond to the perceived item, it is still necessary to further determine the correspondence between the traced source record and the specific business context; otherwise, it is easy to cause incorrect data association in different business contexts.
[0005] Therefore, there is a need for a method to perceive changes in business page data that can accurately determine the business affiliation of the data when there is ambiguity in the business affiliation of the data perceived on the page. Summary of the Invention
[0006] In order to overcome the above-mentioned defects of the prior art, the purpose of this invention is to provide a business page data change perception method and system for intelligent agents, so as to solve the problem that when there are multiple candidate business contexts for the perception items in the current business page and the existing information of the page is insufficient to determine its unique ownership, the perception data is easy to establish a correspondence with the wrong business context.
[0007] To achieve the above objectives, the present invention provides a method for sensing changes in business page data for intelligent agents, comprising: Identify the perception items with ambiguous attribution in the current business page and their multiple candidate business contexts. Ambiguity means that the perception item cannot be uniquely mapped to one of the multiple candidate business contexts based on the context information of the current business page. The data formation path is determined based on the derivation relationship in the data formation process of the sensing item, and the service identifier used to uniquely distinguish the multiple candidate service contexts is determined along the data formation path. The target collection point is determined on the condition that the identification value of the sensing item corresponding data or its necessary source data and the identification value of the service identifier can be obtained together and correspond to the same source record. At the target collection point, obtain the sensing data and the identification value of the business identifier corresponding to the sensing item, and determine the business context to which the sensing data belongs based on the identification value.
[0008] Specifically, during the data perception task performed by the intelligent agent, it first determines whether the perception item can be uniquely mapped to a specific business context based on the context information related to the perception item in the current business page. When the same perception item corresponds to multiple candidate business contexts, and the context information in the current business page cannot uniquely map the perception item to one of the candidate business contexts, it is determined that the perception item has an attribution ambiguity.
[0009] After determining that there is an ambiguity in the attribution of the sensing item, the data corresponding to the sensing item is used as the starting point for tracing to determine the source data at each level and their derivation relationship, thereby obtaining the data formation path of the sensing item; along the data formation path, a service identifier corresponding to the source record of the data corresponding to the sensing item and used to uniquely distinguish the multiple candidate service contexts is determined; the target collection point is determined based on the condition that the identification value of the data corresponding to the sensing item or its necessary source data and the identification value of the service identifier can be obtained together and correspond to the same source record.
[0010] The sensing data and the identifier value of the service identifier corresponding to the source record of the sensing data are obtained at the target collection point. Based on the identifier value, the service context to which the sensing data belongs is determined from the multiple candidate service contexts, thereby establishing the correspondence between the sensing data and the specific service context.
[0011] This invention also provides a business page data change perception system for intelligent agents, comprising: The ambiguity determination module is used to determine the perception items with ambiguity in the current business page and their multiple candidate business contexts. Ambiguity means that the perception item cannot be uniquely mapped to one of the multiple candidate business contexts based on the context information of the current business page. The acquisition determination module is used to determine the data formation path based on the derivation relationship in the data formation process of the sensing item, and to determine the service identifier along the data formation path to uniquely distinguish the multiple candidate service contexts. The target acquisition point is determined based on the condition that the identification value of the sensing item corresponding data or its necessary source data and the identification value of the service identifier can be obtained together and correspond to the same source record. The context determination module is used to obtain the perception data and the identification value of the service identifier corresponding to the perception item at the target acquisition point, and determine the service context to which the perception data belongs based on the identification value.
[0012] Compared with existing technologies, this invention addresses the ambiguous attribution of perceived items by determining the target collection point and corresponding business identifier based on the data formation path. This ensures that the business identifier corresponds to the source record of the perceived data and can distinguish multiple candidate business contexts. Thus, the business context to which the perceived data belongs is determined based on the identifier value of the business identifier, reducing errors in the business attribution of perceived data caused by insufficient existing information on the page. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings.
[0014] Figure 1 Here is a flowchart of the business page data change perception method for intelligent agents provided in Embodiment 1 of the present invention; Figure 2 This is a schematic diagram illustrating the data formation path and source record tracing of the data corresponding to the sensing item in Embodiment 1 of the present invention; Figure 3 This is a flowchart illustrating the determination of target acquisition points in Embodiment 1 of the present invention; Figure 4 This is a schematic diagram of the structure of the business page data change perception system for intelligent agents provided in Embodiment 2 of the present invention. Detailed Implementation
[0015] To enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings. It should be noted that the division of steps in the following embodiments is for the purpose of clearly expressing the technical logic. The steps can be executed in the order of their functional logic, or they can be executed in parallel or cross-cuttingly without conflict.
[0016] Example 1 like Figure 1 As shown, this embodiment provides a business page data change perception method for intelligent agents, which is applicable to scenarios where intelligent agents continuously acquire specified data in the business page according to data perception tasks, and determine the changes in business page data based on the data obtained in different perception cycles.
[0017] It should be noted that in this embodiment, the business system manages business objects such as contracts, orders, and projects, and saves the business data of each business object through corresponding business records. When the business system stores different versions or business states of the same business object separately, each version or business state is distinguished through the corresponding business records. The business page reads the data from the corresponding business records according to the current business processing procedure, and forms page data after data mapping, data transformation, or page processing. Fields in the business records that can characterize the identity, business scope, version, or business state of a business object are called business attributes. According to the requirements of the data awareness task, specific business objects that need to be distinguished as independent business entities, or specific versions or business states of the same business object, are called the corresponding business contexts.
[0018] The data perception task specifies the business fields that the intelligent agent needs to continuously perceive, along with their corresponding business objects and business scopes. These business fields are called perception items, and the data in the current business page corresponding to a perception item is called the perception item's corresponding data. Information in the current business page that reflects the identity, business scope, version, or business status of a business object is called the context information related to the perception item. The process of determining which specific business context the perception item's corresponding data belongs to is called determining the perception item's business affiliation. During the process of business data being transmitted through interfaces, mapped, and processed by the page to form the perception item's corresponding data, the specific records that actually participate in forming the perception item's corresponding data are called source records. After subsequently determining the target collection point along the data formation path, the data actually obtained at the target collection point or formed based on the data processing relationship at that collection point, corresponding to the perception item, is called perception data.
[0019] In actual business pages, when displaying data or processing interactions, only the necessary business data for the current process is retained. Therefore, although data corresponding to perception items exists on the current business page, it may not simultaneously retain all business attributes that uniquely identify the business affiliation. When different business objects, or different versions or business states of the same business object, have the same data corresponding to perception items, and the context information retained on the current business page cannot distinguish them, the perception item cannot be directly and uniquely mapped to one of the business contexts.
[0020] To address the above situation, this embodiment first determines candidate business contexts based on the data perception task and the context information related to the perception item in the current business page, and then determines whether there is any ambiguity in the attribution of the perception item. When there is ambiguity, the source record is determined by tracing the data corresponding to the perception item along its data formation process, and the business identifier that can uniquely distinguish multiple candidate business contexts and the corresponding target collection point are determined from the data corresponding to the source record. Subsequently, the identifier value of the perception data and the business identifier is obtained at the target collection point, and the business context to which the perception data belongs is determined based on the identifier value. After the business attribution is determined, the data change result of the business page is determined based on the current perception snapshot and the historical perception snapshot of the same business context.
[0021] Specifically, the following steps are included: S1. Identify the perception items with ambiguous attribution in the current business page and their multiple candidate business contexts; This step is used to limit the current sensing object and business scope using data awareness tasks, and to filter the corresponding business context using the context information already obtained from the current business page; if a unique business context still cannot be determined after field matching and page component data binding parsing, it is determined that there is an ambiguity in the attribution of the sensing item.
[0022] This embodiment first reads the sensing items, their corresponding business objects, and business scope from the configuration content of the data sensing task. Then, it obtains the context information of the current business page using a business page status reading method, and filters the business records within the business scope using field mapping and condition filtering. If multiple candidate business contexts still exist after filtering, it further uses a page component data binding parsing method to locate the data actually bound to the sensing item in the current business page, and determines whether the data can uniquely correspond to one of the candidate business contexts.
[0023] In this embodiment, step S1 includes the following steps: S11. Based on the data perception task of the intelligent agent and the context information related to the perception item in the current business page, determine the candidate business context that matches the perception item; To determine the business context that matches the current sensing item within the scope of the data sensing task, the sensing item, the corresponding business object, and the business scope are first read from the configuration content of the data sensing task. Then, based on the business object and the business scope, business records containing the corresponding business fields of the sensing item are retrieved from the business system.
[0024] The business page state reading method is used to obtain the context information related to the perception item in the current business page, including the routing parameters, query parameters, current tab, component attributes, and business data already saved in the front-end state management data.
[0025] After obtaining the context information, a field mapping method is used to convert information that can represent the identity, version, business status, or business scope of a business object into corresponding business fields in the business system. Specifically, based on the existing interface field definitions, page data models, field configurations, or data dictionaries in the business system, the correspondence between page fields and business fields is determined; when the data types or representation formats of fields are inconsistent, the field values are unified according to the data types of the business fields and the existing data formats.
[0026] The business fields and their values after field mapping are used as filtering criteria to filter the aforementioned business records. For each business record, the field values in the filtering criteria are compared with the corresponding field values in that business record; if all obtained field values match, the business record is retained; if any field value does not match, the business record is excluded. Business attributes for which corresponding field values have not been obtained in the current business page are not included in this filtering.
[0027] Based on the business object, version, or business status corresponding to the retained business records after filtering, determine the corresponding business context and use it as a candidate business context to match the current perception item.
[0028] Among these, the data corresponding to the perception item is not used as the above filtering condition. That is, the candidate business context is not determined based on whether the data corresponding to the perception item is consistent with the existing data of the corresponding business field in each business record, so as to avoid affecting the business attribution judgment when the data corresponding to the perception item changes.
[0029] If only one candidate business context is retained after filtering, determine that the existing field information on the current business page can uniquely map the perception item to that business context; if at least two candidate business contexts are still retained after filtering, proceed to step S12.
[0030] S12. When there are at least two candidate service contexts, and the context information cannot uniquely map the perception item to one of the candidate service contexts, it is determined that the perception item has an attribution ambiguity. After step S11 completes the filtering using information that can be directly mapped to business fields in the current business page, if there are still at least two candidate business contexts, the page component data binding parsing method is further adopted to determine the record that the perception item is actually bound to in the current business page, and to determine whether the business context can be uniquely determined based on the business attributes retained in the record.
[0031] Specifically, the data source configuration or binding expression of the page component containing the perceived item is read to obtain the front-end state data path accessed by the page component when reading the data corresponding to the perceived item, and the actual data currently bound to the page component is located according to the data path.
[0032] When the data source of a page component is a list containing multiple records, the currently bound record is located from the list data based on the currently selected index, the key value of the selected record, or the record parameter passed to the page component. When the page component directly binds to a single record, the corresponding record is located based on the binding expression.
[0033] Read the business attributes that have been retained in the located record, and obtain the business fields and field values corresponding to the business attributes according to the field mapping and field value unification method in step S11.
[0034] The obtained business fields and their values are compared with the corresponding business field values in the business records of each candidate business context. When a obtained field value matches only one business record corresponding to a candidate business context, the perception item is determined to uniquely correspond to that business context.
[0035] When the located record does not retain business attributes that can distinguish multiple candidate business contexts, or when the retained business attributes are still consistent with the business records corresponding to at least two candidate business contexts, it is determined that the context information in the current business page cannot uniquely map the perceived item to one of the candidate business contexts, and it is determined that there is an ambiguity in the attribution of the perceived item.
[0036] Multiple business contexts that still match the perception item at this time are identified as candidate business contexts for the perception item.
[0037] Specifically, the determination of attribution ambiguity employs a step-by-step filtering approach using candidate business contexts. First, the initial filtering scope is defined by the business scope of the data perception task. Based on the context information of the current business page, candidate business contexts consistent with the obtained business field values are retained. When at least two candidate business contexts are retained, further filtering is performed based on the business attributes in the actual binding record of the page component containing the perception item. For any candidate business context, if the field value of the corresponding business field in its corresponding business record is inconsistent with the field value of the corresponding business attribute in the actual binding record, it is excluded. If only one candidate business context is retained after filtering, it is determined that the perception item has no attribution ambiguity; if at least two candidate business contexts are still retained, it is determined that the perception item has attribution ambiguity, and the finally retained business contexts are taken as multiple candidate business contexts for the perception item.
[0038] To illustrate situations where there is ambiguity in the attribution of a perceived item, let's take the continuous perception of contract amount by an intelligent agent as an example. The business scope of the data perception task is limited to project P001, and the perceived item is "contract amount". Some business records in the business system corresponding to project P001 are shown in Table 1.
[0039] Table 1 Examples of Candidate Business Contexts
[0040] In the current business page, the data for the perceived item "Contract Amount" is displayed as 10000. The only contextual information available on the current business page is project number P001; the contract number and version number are not available. Following step S11, when filtering business records based on project P001 as defined by the data perception task, the data in Table 1... , and All of them meet the scope of this business, and therefore are all retained as candidate business contexts that match the perception item.
[0041] The contract amount of 10,000 is data corresponding to the perception item whose business attribution needs to be determined in this instance, and is not used as a basis for filtering candidate business contexts. Therefore, the current perception item cannot be directly mapped to a business record simply because the contract amount in another business record is also 10,000.
[0042] In step S12, the data source configuration or binding expression of the page component containing the perceived item is further parsed to locate the currently bound record. If the data retained in this record still only includes the project number P001 and the contract amount 10000, and does not retain the contract number, version number, or other distinguishable information... , and Based on the business attributes and the context information available on the current business page, it is impossible to determine the actual source of the currently displayed contract amount of 10,000. , or Which one?
[0043] Therefore, it was determined that the perceived item "contract amount" had an attribution ambiguity, and... , and This serves as a candidate business context for subsequent business attribution determination.
[0044] S2. Based on the data formation path of the sensing item, determine the target collection point and the corresponding business identifier. The business identifier corresponds to the source record of the data corresponding to the sensing item and is used to uniquely distinguish multiple candidate business contexts. After step S1 determines that there is ambiguity in the attribution of the perceived item, this step no longer uses the existing information on the current business page to determine the business attribution. Instead, it starts from the formation process of the data corresponding to the perceived item. First, a combination of static data flow analysis and runtime data tracing is used to determine the source data at each level and the data formation path that forms the data corresponding to the perceived item. Then, the source records that actually participate in the formation of the data corresponding to the perceived item are determined along the data formation path, and the business identifiers that can distinguish multiple candidate business contexts are determined from the data items corresponding to the source records. Finally, the identifier values of the source data and business identifiers required to simultaneously obtain the data corresponding to the perceived item or to form the data are determined along the data formation path, and the data processing positions that maintain the corresponding source records are used as the target collection points.
[0045] In this embodiment, step S2 includes the following steps: S21. Taking the data corresponding to the sensing item as the starting point for tracing, determine the source data at each level used to form the data corresponding to the sensing item based on the data lineage and along the data source direction; In order to obtain the source data at all levels that form the data corresponding to the current perception item, this embodiment adopts a combination of static data flow analysis based on abstract syntax tree and runtime instrumentation to trace the data source.
[0046] Based on the data source configuration or binding expression of the page component containing the perceived item, determine the page field carrying the corresponding data of the perceived item, and use this page field as the starting point for tracing the data source. Perform abstract syntax tree parsing on the front-end program code containing this page field, locate the variable reading node or property reading node corresponding to the page field, and find the assignment node that writes data to this field based on the variable definition location. For the found assignment node, read the source field corresponding to the assignment result, and record the program location, input field, and output field corresponding to the assignment node. If the assignment result comes from another variable or object field, use that variable or object field as the upper-level source field, and continue to search for its definition location and assignment location; if the assignment result comes from a function return value, locate the corresponding function and parse the actual return expression, extracting the source field that forms the return value from the return expression; if the assignment result is formed by the transformation or calculation of multiple fields, extract each input field that actually participated in the processing, and use them as upper-level source data to continue tracing.
[0047] The search proceeds step-by-step from the data source using the method described above until the interface response field or business system output field is obtained. Simultaneously, the program location corresponding to each level of source field and the program location where data transfer actually occurs between adjacent fields are recorded. This yields the source data of each level of the perceived item's data within the program's static structure. When the same field has multiple assignment nodes, conditional branches, array filtering, or dynamic object processing, and the actual data source used by the current business page cannot be determined solely based on the static program structure, runtime instrumentation is performed at the corresponding program location.
[0048] Specifically, data acquisition code is inserted at interface response processing locations, front-end state writing locations, data transformation locations related to perception items, and page component data writing locations, and corresponding program location identifiers are set for each instrumentation location. When the program executes to the corresponding location, the program location identifier, input data, output data, and execution order are recorded.
[0049] When the current business page loads or updates, a batch identifier is assigned to this data processing process, and the data collected at each instrumentation location is saved along with that batch identifier. When the same program location is executed multiple times during a single page load or update, the input and output data for each execution are saved in the order of execution.
[0050] Based on the actual execution records of each program location within the same batch, multiple source branches obtained from static data flow analysis are verified. For program locations that are actually executed in the current batch and ultimately form the data corresponding to the perception item, the corresponding source fields are retained; for program locations that are not executed in the current batch or whose output does not participate in forming the data corresponding to the perception item, the corresponding source branches are excluded.
[0051] This allows us to obtain the source data at each level that actually participates in forming the data corresponding to the perception item during the current business page loading or update process, and to determine the program location and actual execution order corresponding to the source data at each level.
[0052] S22. Determine the data formation path of the sensing item based on the derivation relationship between data from different levels of sources and between data from different levels of sources and the corresponding data of the sensing item; In order to determine how the data from each level of the source data obtained in step S21 are progressively formed into the corresponding data of the perception items in the current business page, this embodiment adopts the method of data dependency graph construction and reverse traversal to organize the actual data processing process between the data from each level of the source data.
[0053] Based on the source data at each level and their corresponding program positions determined in step S21, read the program statements actually executed between two adjacent source data levels, extract the input fields, output fields, and specific processing operations for obtaining the output fields from the input fields from the program statements, and use the input fields and output fields as data nodes respectively, and record the corresponding processing operations between the data nodes.
[0054] For data in the next layer that is directly assigned from data in the previous layer, establish a data dependency between the source field and the target field based on the assignment statement; for field renaming or object reorganization, determine the correspondence between the fields before and after processing based on the actual field assignment; for type conversion, unit conversion, or format conversion, record the actual conversion function called, the input fields, and the output fields after conversion; for data in the next layer formed by multiple source fields, record each input field that actually participated in the processing and its corresponding calculation expression; for array filtering, record searching, or conditional branching, retain the filtering results or execution branches of the data that actually participated in forming the perception item in the current batch based on the runtime execution results recorded in step S21.
[0055] Following the above method, data dependencies are established level by level for the source data obtained in step S21. The input fields, output fields, and corresponding processing operations that actually participate in the data formation during this page loading or update process are connected in sequence to obtain the data dependency graph corresponding to the current perception item.
[0056] Using the page field that carries the data corresponding to the perception item in the current business page as the endpoint, perform a reverse traversal along the data dependency graph in the direction of data source. For each data node traversed, continue to search for the input field of the previous layer that forms that node, until the upstream source data determined in step S21 is reached.
[0057] The data nodes obtained through traversal and their actual processing operations are rearranged according to the data formation direction to obtain the data formation path of the perception item. For data formed by field transformation or calculation in the path, the transformation functions, input parameters, or calculation expressions in the corresponding program statements are saved to record the actual processing of the source data at this level to form the data of the next layer.
[0058] like Figure 2 As shown, taking the contract amount in the current business page as the perceived item, the page component reads the front-end state field state.contractAmount through data binding. This field is formed by converting the numerical type and unit of the interface response field response.amount.
[0059] For example, the corresponding data processing statement in the front-end program is state.contractAmount=Number(response.amount) / 100, where the value of response.amount is 1000000 in cents, and after conversion, the value of state.contractAmount is 10000 in yuan.
[0060] First, `state.contractAmount` is located based on the binding expression of the page component. The corresponding assignment statement is then found through abstract syntax tree parsing. The source field `response.amount`, along with corresponding numerical conversions and unit conversions, is extracted from the assignment expression, establishing a static data dependency between the two fields. Next, runtime instrumentation is performed at the interface response processing location and the front-end state writing location to record the actual program execution location, input / output data, and execution order within the same page update batch. Based on this, it is confirmed that `response.amount` is transformed into `state.contractAmount`, which is then read by the page component to display the contract amount. Based on the confirmed data dependency, `response.amount`, `state.contractAmount`, and the page contract amount field are used as data nodes. A data dependency graph is built according to the data transformation and page binding relationship. The process then traverses backward from the page contract amount field to `response.amount`. The traversed data nodes and corresponding processing operations are arranged according to the data formation direction to obtain the data formation path of the perception item.
[0061] Therefore, the data formation path of the perceived item is determined from the upstream source data through various levels of program processing to the current business page.
[0062] S23. Based on the data formation path, determine the candidate identifier data items corresponding to the source records of the data corresponding to the perception item; The data formation path obtained in step S22 can determine which upstream fields form the data corresponding to the perception item step by step. However, when there are multiple business records with the same field structure in the same data set, it is still necessary to further determine which record the data corresponding to the current perception item actually comes from.
[0063] Therefore, this embodiment uses a combination of record identification field association and record instance tracking to track records in the data formation path.
[0064] The system checks whether the primary key, record number, or other fields that can continuously identify the same record are retained in the data at each level along the data formation path. When the corresponding record identification fields are retained in all levels of data, the system associates the data belonging to the same record in the interface response data, front-end status data, and data bound to page components based on the field values of the record identification fields. Then, it performs a reverse query from the data corresponding to the current awareness item level by level to locate the specific record that actually provides the data.
[0065] When the record identification field is not retained during array filtering, object reorganization, or front-end state writing, a tracking mark is attached to each record instance when the record enters the current data formation process, and the correspondence between the tracking mark and the processed data is saved in the subsequent processing.
[0066] When records are filtered through an array, the tracking tags corresponding to the filtered record instances are associated with the filtering results; when records are reassembled into objects, the tracking tags of the input records are associated with the reassembled data based on the correspondence between the input records and the output data; when the reassembled data is written to the front-end state or passed to page components, the corresponding tracking tags are retained.
[0067] Based on the tracking marker associated with the data corresponding to the current sensing item, the system searches backwards along the data formation path until it locates the specific record that actually participated in forming the data corresponding to the current sensing item, and identifies that specific record as the source record.
[0068] After identifying the source record, the data structure and field definitions of the source record are read. Based on the existing primary key constraints, unique constraints, and business field definitions in the business system, data items that can represent the identity, version, business status, or business relationship of the business object are extracted from the data items corresponding to the source record and identified as candidate identifier data items. Business primary keys, business numbers, version fields, and business relationship fields are within the selection scope of candidate identifier data items; data items that are only used to record the operator, update time, or page display status and cannot be used to distinguish the current candidate business context are not included in the candidate identifier data items.
[0069] Specifically, the selection of candidate identifier data items adopts a field attribute filtering method. First, based on the field definitions and business constraints of the source records, data items used to characterize the identity, version, business status, or business relationship of the business object are filtered. Then, based on the record identification fields or tracking tags of the source records, the correspondence between the filtered data items and the source records of the corresponding data of the perception items is confirmed, and data items used only to record operation information, update time, or page display status are excluded, and the remaining data items are determined as candidate identifier data items.
[0070] For example, taking the contract amount of the aforementioned project P001 as the perceived item, after determining the source record corresponding to the contract amount along the data formation path, the field definitions of that source record are read. Among these, the contract number is used to identify different contract objects, and the version number is used to distinguish different versions of the same contract. Both belong to the business attributes of the same source record corresponding to the contract amount; therefore, the contract number and version number are determined as candidate identifier data items. The project number is used to limit the business scope, and the project number corresponding to each candidate business context is P001, so further distinction between candidate business contexts is not possible. The contract amount belongs to the data corresponding to this perceived item and is not considered as a candidate identifier data item.
[0071] S24. Obtain the identifier content of the candidate identifier data item corresponding to each candidate business context; In order to determine whether the candidate identifier data items obtained in step S23 can distinguish the multiple candidate business contexts determined in step S1, this embodiment adopts field value normalization and value taking for each candidate business context to determine the identifier content corresponding to each candidate business context.
[0072] For each candidate identifier data item, the corresponding field value is read from the business record corresponding to each candidate business context, based on the business field corresponding to that data item.
[0073] When the data type or representation format of the same candidate identifier data item is inconsistent in different data layers, the field value is unified according to the existing data type and representation rules of the field in the business system, so that the identifier content of the same candidate identifier data item has a consistent data representation in different candidate business contexts.
[0074] The normalized field values are used as the identifier content of the corresponding candidate identifier data item in the relevant candidate business context.
[0075] S25. Based on the identifier content, determine at least one candidate identifier data item from the candidate identifier data items to constitute a business identifier, so as to uniquely distinguish multiple candidate business contexts. This embodiment uses a single-field uniqueness check to judge each candidate identifier data item obtained in step S23 one by one.
[0076] For any candidate identifier data item, compare its identifier content in each candidate business context. When the identifier content corresponding to different candidate business contexts is different, determine that the candidate identifier data item can be uniquely distinguished within the current candidate business context.
[0077] For candidate identifier data items that meet the uniqueness requirement, the process further checks whether the data item corresponds to the source record of the data corresponding to the current sensing item along the data formation path determined in step S22, and confirms that its field value can be obtained during the data processing in the data formation path. If the above conditions are met, the candidate identifier data item is determined as a business identifier. If the candidate identifier data item cannot correspond to the source record of the data corresponding to the current sensing item, or its field value cannot be obtained in the data formation path, the candidate identifier data item is not determined as a business identifier, and other candidate identifier data items are checked.
[0078] For candidate identifier data items that cannot be identified as business identifiers, the other individual candidate identifier data items are checked. If none of the individual candidate identifier data items are identified as business identifiers, the business identifier is determined from the multiple candidate identifier data items according to the combined judgment method described in steps S251 to S253.
[0079] S251. When a single candidate identifier data item cannot uniquely distinguish multiple candidate business contexts, select multiple candidate identifier data items from the candidate identifier data items. This embodiment uses a field combination enumeration method to select two or more data items from the candidate identifier data items obtained in step S23 to form a combination to be judged.
[0080] When combining data items, the candidate identifier data items are selected from the fewest to the most numerous, and priority is given to data items that coexist in the source record and can maintain their correspondence with the source record along the data formation path.
[0081] For field combinations that have already been judged but cannot uniquely distinguish multiple candidate business contexts, the uniqueness judgment of the same combination will not be repeated if the candidate business context and the identifier content have not changed.
[0082] S252. Determine the combination of identifier content for multiple candidate identifier data items corresponding to each candidate business context; According to the data items and fixed field order determined in step S251, the field values corresponding to each candidate business context are extracted from the identifier content obtained in step S24, and the identifier content is combined in the same order.
[0083] Let the number of candidate service contexts determined in step S1 be . , No. Each candidate business context is denoted as ,in Let the number of candidate identifier data items currently selected be... The fields in the combination are recorded in the following order: ,in ,and The number of candidate identifier data items is not greater than the number determined in step S23. The candidate service context... Candidate Identifier Data Items The corresponding identifier content is recorded as ,in .
[0084] Then the first The combination of identifier content corresponding to each candidate business context is represented as follows: (1) In the formula, Indicates the first The combination of identifier content corresponding to each candidate business context; Indicates the first One candidate business context; Indicates the first in the current combination One candidate identifier data item; Indicates candidate business context Candidate Identifier Data Items Corresponding label content; Indicates the number of candidate business contexts; This indicates the number of candidate identifier data items in the current combination.
[0085] In the same combination judgment, each candidate business context uses the same candidate identifier data item, the same field order, and the same field value normalization method.
[0086] S253. When the combinations of identifier content corresponding to different candidate business contexts are different, multiple candidate identifier data items will be jointly determined as the business identifier.
[0087] The combination of identifier content obtained in step S252 is compared using a combination uniqueness test.
[0088] When the combination of identifier content corresponding to any two different candidate business contexts satisfies: (2) in, Indicates the first The combination of identifier content corresponding to each candidate business context; Indicates the first The combination of identifier content corresponding to each candidate business context; and These represent the sequence numbers of two different candidate business contexts.
[0089] Further check along the data formation path whether each candidate identifier data item that makes up the current combination corresponds to the source record of the data corresponding to the current sensing item. When the above requirements are met, the current multiple candidate identifier data items are jointly determined as the business identifier.
[0090] If there are still duplicates in the combination of identifier content, return to step S251 to select other candidate identifier data item combinations that have not yet been judged.
[0091] To facilitate the explanation of the judgment process for a single candidate identifier data item and a combination of multiple candidate identifier data items, the aforementioned candidate business context will still be used. , and For example, after determining the source record along the data formation path of the perception item, the contract number and version number are determined as candidate identifier data items from the data items corresponding to the source record. The identifier content corresponding to each candidate business context is shown in Table 2.
[0092] Table 2 Examples of Identifier Content for Candidate Identifier Data Items
[0093] When using the contract number alone for judgment. and The corresponding identifier is HT01, therefore the contract number cannot uniquely distinguish the three candidate business contexts; when using the version number alone for judgment... and The corresponding identifiers are all V1, so the version number cannot uniquely distinguish the three candidate business contexts.
[0094] Following steps S251 to S253, the contract number and version number are used together as candidate identifier data items for the current judgment. Based on the field order of contract number first, followed by version number, the corresponding identifier combinations for each candidate business context are as follows:
[0095]
[0096]
[0097] visible , and Each pair of elements is distinct, satisfying the uniqueness condition of equation (2). Therefore, the combination of the contract number and version number can uniquely distinguish the elements. , and The contract number and version number are used together to identify the business.
[0098] S26. Based on the data of the sensing items, form a path and determine the target collection point; like Figure 3 As shown, after the business identifier is determined, this embodiment uses a method of searching node by node along the data formation path and verifying the consistency of source records to determine the target collection point.
[0099] Following the data formation path determined in step S22, check each data processing location sequentially from the current business page toward the data source direction, including the page component data writing location, the front-end state writing location, the data conversion location, and the interface response processing location.
[0100] For any data processing location, first check whether the location already contains the data corresponding to the sensing item; if the final sensing item data has not yet been formed, check whether the location contains all the source data required to form the sensing item data according to the actual program processing recorded in step S22. Specifically, for data forming the next layer through field assignment or field mapping, check whether the corresponding source fields have been obtained; for data forming the next layer through a conversion function, check whether the input fields required by the conversion function are complete; for data forming the next layer through calculation, check whether all the input fields required by the corresponding calculation expression have been obtained.
[0101] At the same time, check whether the data processing location contains all the candidate identifier data items that constitute the business identifier, and be able to obtain the corresponding identifier value.
[0102] After satisfying the above data integrity conditions, based on the record tracking results established in step S23, a source record consistency check is performed on the data corresponding to the perceived item or its source data and the identifier value of the business identifier. When tracking is performed using a record identification field, the corresponding record identification fields of the two are compared; when tracking is performed using a tracking tag, the corresponding tracking tags of the two are compared. If the two correspond to the same record, it is determined that their source records are consistent.
[0103] Further, based on the batch identifier and data execution order recorded in step S21, confirm that the data corresponding to the perception item or its source data and the identifier value of the business identifier belong to the same data processing process that forms the current business page data.
[0104] The data processing location that simultaneously meets the following conditions is determined as the target collection point: it can obtain the data corresponding to the perception item or all the source data required to form the data; it can obtain all the identifier values that constitute the business identifier; the two types of data correspond to the same source record; and it belongs to the current data formation process of the current business page.
[0105] When there are multiple data processing locations that meet the above conditions in the data formation path, the data processing location that first meets the above conditions will be determined as the target collection point according to the retrieval order from the current business page to the data source.
[0106] After checking all data processing locations along the data formation path, if the identifier value of the service identifier can be obtained together with the data corresponding to the sensing item or its source data, but the requirements of consistency of source record and consistency of data processing batch cannot be met at the same time, it is determined that the target collection point cannot be obtained, and the service affiliation of the sensing data is not determined.
[0107] When the identified service identifier cannot be obtained simultaneously with the data corresponding to the sensing item or its source data in the data formation path, the current service identifier is recorded as unavailable in this data formation path, and the process returns to step S25 to re-determine the service identifier. During the re-determination, the service identifier that has been recorded as unavailable is no longer selected, and the target collection point is re-determined in the manner described above.
[0108] When the candidate identifier data items and their combinations determined in step S23 have been judged, and it is still impossible to determine the business identifier and target collection point that can be obtained together with the data corresponding to the sensing item or its source data, it is determined that the business affiliation of the current sensing data is not determined, and the current sensing data is not assigned to any candidate business context, nor is a current sensing snapshot with a determined business affiliation generated based on the sensing data.
[0109] When the target acquisition point stores the source data required to form the corresponding data of the sensing item, rather than the final corresponding data of the sensing item, retain the field assignment, conversion function or calculation expression actually executed between the target acquisition point and the corresponding data of the sensing item in step S22; after obtaining the corresponding source data, process it according to the corresponding actual program to form the sensing data.
[0110] S3. Obtain the sensing data and the identifier value of the service identifier corresponding to the sensing item at the target collection point, and determine the service context to which the sensing data belongs based on the identifier value; Step S2 has identified the target collection point that ensures the source data corresponding to the perceived item or the data required to form that data maintains the source record corresponding to the business identifier. In this step, during the actual operation of the current business page, the corresponding runtime data is obtained based on the program location corresponding to the target collection point, forming perceived data and obtaining the identifier value of the business identifier. Then, the obtained identifier value is matched with the identifier content determined in step S24 for each candidate business context to determine the actual business context to which the perceived data belongs.
[0111] In this embodiment, step S3 includes the following steps: S31. Obtain the sensing data and the identification value of the service identifier corresponding to the sensing item at the target collection point; Based on the target data collection point determined in step S26, data collection logic is set at the corresponding program location. When the program executes to the target data collection point during the loading or updating of the current business page, it reads the input or output data actually processed in the current batch at that program location.
[0112] It should be noted that the runtime instrumentation in step S21, the record instance tracking in step S23, and the data acquisition logic in this step all apply to the actual observed data processing process. When the current batch has already saved the runtime data required for subsequent processing, source tracing and business attribution determination are performed based on the runtime data of this batch; if the relevant data processing of the current batch has been completed when the corresponding target collection point is determined, and the data required for subsequent processing has not been saved, then the data will be re-collected during the next complete business page load or update, and subsequent processing will be performed using the batch data corresponding to this load or update.
[0113] Based on the business record primary key, record number or tracking mark used when determining the source record in step S23, locate the data with the same source record as the data corresponding to the sensing item from the data currently being processed at the target collection point, so as to avoid using the data of other business records in the same data processing location as the sensing result.
[0114] If the target acquisition point already contains the data corresponding to the final sensing item, then the corresponding field value is directly read as the sensing data; if the target acquisition point stores the source data required to form the sensing item data, then the sensing data is formed according to the actual program executed between the target acquisition point and the sensing item data as determined in step S22.
[0115] Specifically, for data corresponding to sensing items formed through field assignment or object recombination, the corresponding source field is read, and the corresponding field value is obtained according to the field assignment process determined in step S22; for data corresponding to sensing items formed through conversion functions, the source field obtained from the target acquisition point is used as input, the same conversion function recorded in step S22 is called, and the same input parameters are used for processing; for data corresponding to sensing items formed through calculation, each input field obtained from the target acquisition point is substituted into the calculation expression recorded in step S22 to obtain the corresponding calculation result.
[0116] The final data obtained through the above processing is used as the sensing data collected in this study.
[0117] While obtaining the perception data, the field values of each candidate identifier data item constituting the business identifier are read from the corresponding data recorded from the same source, and normalized according to the data type and representation format adopted in step S24 to obtain the identifier value of the business identifier.
[0118] When a business identifier is composed of multiple candidate identifier data items, the identifier values are arranged according to the candidate identifier data items and field order determined in step S252, so that the identifier values obtained at runtime are consistent with the identifier content corresponding to each candidate business context in terms of data item composition and arrangement order.
[0119] Thus, during the same target acquisition process, the identification values of sensing data and business identifiers with the same source records and the same operating batch are obtained.
[0120] S32. Determine the business context to which the perceived data belongs based on the identifier value; Based on the identifier value of the service identifier obtained in step S31, it is matched with the identifier content corresponding to each candidate service context determined in step S24 to determine the service context to which the perception data belongs.
[0121] When a service identifier is composed of a single candidate identifier data item, the identifier value of the candidate identifier data item obtained and normalized in step S31 is read, and the identifier value is compared with the identifier content corresponding to the candidate identifier data item in each candidate service context.
[0122] When the identifier value matches the identifier content of only one candidate service context, the candidate service context is determined as the candidate service context that matches the current identifier value; when there is no matching identifier content, or when there are still at least two candidate service contexts whose identifier content matches the identifier value, the current identifier value is determined to be unable to uniquely determine the service context to which the perceived data belongs.
[0123] When a business identifier is composed of multiple candidate identifier data items, the identifier values of each candidate identifier data item obtained in step S31 are arranged according to the order of the candidate identifier data items and fields used when determining the identifier content combination in step S252, forming the identifier value combination obtained during the current business page operation, denoted as... .
[0124] It should be noted that the combination of identifier values and the combination of identifier content corresponding to each candidate business context are composed of the same candidate identifier data items arranged in the same field order. Specifically, the identifier content corresponding to each candidate business context is the field value of the candidate identifier data item obtained from the corresponding business record and normalized. The identifier value is the field value of the candidate identifier data item obtained from the same source record corresponding to the perceived data and normalized during the current business page operation.
[0125] Therefore, the identifier values obtained at runtime will be combined. Each of these is combined with the identifier content corresponding to each candidate service context determined in step S252. The comparisons are performed to determine the number of candidate business contexts that match the runtime identifier value combination. (3) In the formula, This indicates the number of candidate business contexts whose corresponding identifier content combination matches the runtime identifier value combination. This indicates the number of elements in the set.
[0126] when At that time, it will be combined with the runtime identifier value. Consistent candidate business contexts are identified as matching candidate business contexts.
[0127] when At that time, determine the combination of identifier values obtained at runtime. It cannot establish a correspondence with the current candidate business context; when When it is determined that the combination of identifier values obtained at runtime cannot uniquely correspond to a candidate business context, for business identifiers that have passed the combination uniqueness check in step S253, the runtime matching result should be unique if the candidate business context, the candidate identifier data items constituting the business identifier, and the field value normalization method remain unchanged; otherwise, If necessary, the criteria for judgment mentioned above should be re-examined to see if they have changed.
[0128] For a unique matching candidate business context determined by a single candidate identifier data item or multiple candidate identifier data items, when the data perception task also limits the project, organization, or other business scope, the business scope information corresponding to the candidate business context is read and compared with the corresponding business scope limited by the data perception task; if the business scope is consistent, the candidate business context is determined as the business context to which the perception data belongs.
[0129] If the complete identifier value required to constitute the business identifier is not obtained, or the business context to which the perceived data belongs cannot be uniquely determined in accordance with the above method, proceed to step S33.
[0130] S33. When the identifier value of the service identifier is not obtained at the target collection point, or the identifier value cannot uniquely determine the service context to which the perceived data belongs, the target collection point and the corresponding service identifier are re-determined based on the data path of the perceived item. Read the program execution location, input data, output data and execution order recorded in step S21 during the current loading or update process of the current business page, and compare them with the runtime execution result used when determining the data formation path in step S22.
[0131] When the data branch being executed changes, causing the original target collection point to be not executed or the actual source of the data corresponding to the sensing item to change, the source data at each level that actually participates in forming the data corresponding to the sensing item is re-determined according to step S21, and the data formation path is re-determined according to step S22. When the re-determined data formation path is different from the original data formation path, steps S23 to S26 are executed according to the re-determined data formation path to re-determine the source record, candidate identifier data item, business identifier, and target collection point, and step S34 is executed based on the re-determined result.
[0132] When the data formation path remains unchanged, but one or more data items of the original business identifier are not obtained at the original target collection point, the actual retention status of the data items constituting the business identifier in each data processing location is re-examined along the current data formation path.
[0133] For data that can be obtained from other data processing locations along with the corresponding data of the sensing item or the source data required to form the data, the target collection point is re-determined according to step S26.
[0134] When the data item in the original business identifier cannot maintain the source record corresponding to the data of the perception item in the current data formation path and be obtained together, the identification content comparison and uniqueness check of steps S24 and S25 are re-executed from the candidate identifier data items determined in step S23 to determine other business identifiers that can uniquely distinguish multiple candidate business contexts, and the target collection point corresponding to the business identifier is re-determined according to step S26.
[0135] If a complete identifier value has been obtained in step S31, but no uniquely matching candidate business context exists based on the identifier value, the context information in the current business page and the business record corresponding to the candidate business context are reread. If the candidate business context or its corresponding identifier content has changed, the identifier content of the candidate identifier data item is re-obtained according to the updated candidate business context, and the business identifier and target collection point that can uniquely distinguish the updated candidate business context are re-determined.
[0136] If the candidate business context and its corresponding identifier content have not changed, and the obtained complete identifier value still cannot uniquely determine the business context to which the perceived data belongs, the business affiliation of the perceived data is determined and step S34 is not executed.
[0137] S34. Obtain the perception data and the identification value of the service identifier corresponding to the perception item at the newly determined target collection point, and determine the service context to which the perception data belongs based on the newly obtained identification value. When the program reaches the target collection point redefined in step S33, it reads the data corresponding to the source record in the current batch according to the method in step S31.
[0138] When the newly determined target acquisition point already contains the data corresponding to the sensing item, the corresponding data is directly obtained as the sensing data; when the target acquisition point obtains the source data required to form the data corresponding to the sensing item, the corresponding source data is processed according to the actual field assignment, conversion function or calculation expression determined in step S22 to form the sensing data.
[0139] Simultaneously, the identifier value of the re-determined business identifier is read from the data corresponding to the records from the same source, and the re-acquired identifier value is compared with the identifier content or combination of identifier content corresponding to each candidate business context in accordance with the method of step S32, so as to redetermine the business context to which the perception data belongs.
[0140] If the complete identifier value required to constitute the business identifier is still not obtained after reacquisition, or if the business context to which the perceived data belongs cannot be uniquely determined according to the method in step S32, the perceived data obtained this time will not be assigned to any business context, nor will a current perceived snapshot with a determined business affiliation be generated based on the perceived data.
[0141] S4. Generate the current perception snapshot based on the perception data and its business context, and perform a difference between it and the corresponding historical perception snapshot to obtain the page data change results corresponding to the business context. Step S3 has determined the business context to which the perceived data belongs. This step, according to the data perception task, organizes the perceived data belonging to the same business context into a current perception snapshot, and uses this business context as the historical data retrieval condition to obtain the corresponding historical perception snapshot. Then, it compares the business data to be perceived in the two perception snapshots to obtain the page data change results corresponding to the current business context.
[0142] In this embodiment, step S4 includes the following steps: S41. Based on the perception data and its associated business context, generate the current perception snapshot corresponding to the business context; Based on the business context determined in step S32 or step S34, read the business object identity, version, or business status information used to distinguish the business context, and establish a correspondence between the perception data obtained in step S31 or step S34 and the corresponding perception items.
[0143] Based on the perception items set in the data perception task, perception data belonging to the same business context are organized according to perception items to form the current perception snapshot. The current perception snapshot records at least the information corresponding to the business context, the perception items, and the perception data obtained by each perception item in this instance.
[0144] When a data perception task includes multiple perception items, the business affiliation of the perception data corresponding to each perception item is determined according to steps S1 to S3. For perception data determined to belong to the same business context, the corresponding perception item and its perception data are written into the same current perception snapshot; for perception data belonging to different business contexts, current perception snapshots of the corresponding business contexts are generated separately.
[0145] When generating the current perception snapshot, only perception data whose business affiliation has been determined is written. For perception data whose business context cannot be uniquely determined after step S34, no current perception snapshot with a determined business affiliation is written.
[0146] Therefore, each sensing item and its sensing data in the current sensing snapshot corresponds to a defined business context.
[0147] S42. Obtain the historical awareness snapshot corresponding to the business context; Based on the business context corresponding to the current perception snapshot in step S41, retrieve the historical perception snapshot corresponding to the business context from the already saved perception snapshots.
[0148] During retrieval, the system compares the relevant information recorded in the saved perception snapshots with the business object identity, version, or business status information used to determine the business context. If all information matches the current business context, the corresponding perception snapshot is determined to belong to the same business context.
[0149] When multiple historical perception snapshots have been saved in the same business context, the most recently generated perception snapshot before the current perception snapshot is selected as the historical perception snapshot used for this differential calculation, according to the generation time or perception order of the perception snapshot.
[0150] When the sensing items included in the data sensing task change in different sensing cycles, the sensing items corresponding to the current data sensing task in the historical sensing snapshot are retained for subsequent data comparison of the same sensing item.
[0151] If no historical perception snapshot corresponding to the current business context is found, the current perception snapshot generated in step S41 is saved as the historical perception snapshot used for data comparison in subsequent perception cycles of the business context. Step S43 is not executed this time.
[0152] When a historical perception snapshot corresponding to the current business context can be retrieved, the above processing is used to obtain a historical perception snapshot that belongs to the same business context as the current perception snapshot and is located before the current perception cycle, and step S43 is executed.
[0153] S43. Difference the current perception snapshot with the historical perception snapshot to obtain the page data change results corresponding to the business context; After obtaining the current perception snapshot and the historical perception snapshot, determine the perception items that need to be compared this time according to the data perception task, and read the current perception data and historical perception data corresponding to each perception item under the same business context.
[0154] Step S43 further includes steps S431 and S432.
[0155] S431. Based on the data perception task of the intelligent agent, obtain the current perception data and historical perception data corresponding to the perception item from the current perception snapshot and the historical perception snapshot respectively. Read the perception items set in the data perception task, and use the perception items as the data search conditions in the current perception snapshot and historical perception snapshots.
[0156] When the same sensing item exists in both the current sensing snapshot and the historical sensing snapshot, the sensing data obtained for that sensing item in the current sensing snapshot is read from the current sensing snapshot and used as the current sensing data; the sensing data saved for that sensing item in the previous valid sensing period is read from the historical sensing snapshot and used as the historical sensing data.
[0157] Current and historical sensing data are mapped to the same sensing item, and data from different sensing items are not directly compared.
[0158] When a data perception task includes multiple perception items, the current perception data and historical perception data corresponding to each perception item are obtained in the manner described above.
[0159] S432. Compare the current perception data and historical perception data corresponding to the perception item under the same business context, and determine the page data change result based on the comparison result.
[0160] For the current sensing data and historical sensing data obtained in step S431, the corresponding data comparison method is adopted according to the data type of the corresponding sensing item.
[0161] For numerical data, the current and historical data are converted to the same data type and unit of measurement before comparison. For text or enumerated data, the field content is compared according to the existing data representation of the corresponding business field. For date, time, or other data with a fixed format, the comparison is performed after unifying the existing format used by the business system for that field.
[0162] When the current sensing data is consistent with the historical sensing data, it is determined that the corresponding sensing item has not changed in the current sensing cycle; when the two are inconsistent, the current sensing data, historical sensing data, and the corresponding sensing item are recorded as data that has changed in this business context.
[0163] For multiple sensing items included in the data sensing task, after completing the above comparisons, the comparison results of each sensing item are aggregated according to the current business context to obtain the page data change results corresponding to that business context.
[0164] The results of page data changes are used at least to indicate the changed sensing items and their current sensing data; where it is necessary to retain data before and after the change, the corresponding historical sensing data are also recorded.
[0165] After completing this differential process, the current perception snapshot generated in step S41 is saved as a historical perception snapshot used for data comparison in subsequent perception cycles of this business context.
[0166] S5. When the current business page is switched or refreshed, the perception data and the identification value of the business identifier are re-acquired, and the usage method of the historical perception snapshot is determined according to the business context after the switch or refresh. When the current business page is switched or refreshed, page components, front-end state, and corresponding data processing procedures may be re-executed. To avoid directly using the business context from before the switch or refresh, this embodiment re-obtains the perception data and the identifier value of the business identifier corresponding to the perception item, and redetermines the business context to which the perception data belongs.
[0167] When the business context after switching or refreshing remains consistent with that before switching or refreshing, the historical awareness snapshot corresponding to that business context continues to be used as the differential benchmark; when the business context changes, the historical awareness snapshot corresponding to other business contexts before switching or refreshing is not used.
[0168] In this embodiment, step S5 includes the following steps: S51. When the current business page is switched or refreshed, obtain the perception data and the identification value of the business identifier corresponding to the perception item, and determine the business context to which the perception data belongs based on the identification value. Detects route changes, tab switching, page reloads, or page data re-requests for the current business page. When such switching or refreshing occurs, it reads the actual program position, input data, output data, and execution order during this page processing.
[0169] Based on the data perception task and the context information in the current business page after switching or refreshing, the candidate business context matching the perception item is re-determined in accordance with step S11, and the current identifier content corresponding to the original business identifier in each candidate business context is read to verify whether the candidate business context and identifier content on which the original business identifier is based have changed.
[0170] If the newly determined candidate service context is consistent with the candidate service context used when determining the service identifier before the switch or refresh, and the identifier content corresponding to the original service identifier in each candidate service context has not changed, then continue to determine whether the data formation path, target collection point, and service identifier determined in step S2 can still correspond to the currently executed data processing process. If the above conditions are met, continue to obtain the sensing data corresponding to the sensing item and the identifier value of the service identifier at the corresponding target collection point.
[0171] When the candidate business context or the identifier content corresponding to the original business identifier changes, but the data formation path of the perception item remains unchanged, steps S24 to S26 are executed according to the redefined candidate business context to redefine the business identifier and target collection point.
[0172] When switching or refreshing causes changes in the binding relationship of page components, the front-end state data path, or the actual data branch being executed, making the original data formation path or target collection point no longer correspond to the current data processing process, the source data and data formation path of each level of the data corresponding to the perception item are re-determined according to steps S21 and S22, and the source record, business identifier, and target collection point are re-determined according to steps S23 to S26.
[0173] After determining the current target collection point, the identification value of the sensing data and the service identifier is obtained according to the method in step S31, and the obtained identification value is matched with the identification content corresponding to the candidate service context according to the method in step S32 to determine the service context to which the sensing data belongs after switching or refreshing.
[0174] When a business identifier is composed of a single candidate identifier data item, the obtained identifier value is compared with the single identifier content corresponding to each candidate business context; when a business identifier is composed of multiple candidate identifier data items, a runtime identifier value combination is formed according to the field order determined in step S252, and compared with the identifier content combination corresponding to each candidate business context.
[0175] This allows us to obtain the actual business context corresponding to the current business page after switching or refreshing.
[0176] S52. When the business context determined after switching or refreshing is the same as the business context before switching or refreshing, obtain the historical perception snapshot corresponding to the business context, and use the historical perception snapshot as the differential benchmark of the current perception snapshot after switching or refreshing. Read the current perception snapshot that was last completed before the switch or refresh, and obtain the business context information corresponding to that perception snapshot.
[0177] Compare the business context determined in step S51 after switching or refreshing with the business context before switching or refreshing.
[0178] When both correspond to the same business object and the version, business status, or other business scope information that needs to be distinguished is consistent, it is determined that the switch or refresh belongs to the same business context.
[0179] In this case, the most recent valid historical perception snapshot corresponding to the business context is obtained from the saved perception snapshots, and it is used as the differential benchmark for the current perception snapshot generated after switching or refreshing.
[0180] Following the method in step S41, the perception data obtained after switching or refreshing is organized into a current perception snapshot. Then, following the methods in steps S431 and S432, the current perception data in the current perception snapshot is compared with the historical perception data in the aforementioned historical perception snapshot to obtain the page data change results after switching or refreshing.
[0181] When the business context determined after switching or refreshing is inconsistent with the business context before switching or refreshing, the historical perception snapshot corresponding to the business context before switching or refreshing is not used as the basis for this differential analysis. Instead, the historical perception snapshot corresponding to the business context after switching or refreshing is retrieved again according to the method in step S42.
[0182] When there is no available historical perception snapshot after switching or refreshing the business context, save the current perception snapshot generated this time as the historical perception snapshot when judging page data changes in subsequent perception cycles of the business context.
[0183] Example 2 like Figure 4 As shown, this embodiment provides a business page data change perception system for intelligent agents, including: The ambiguity determination module is used to determine the perception items with ambiguity in the current business page and their multiple candidate business contexts. Ambiguity means that the perception item cannot be uniquely mapped to one of the multiple candidate business contexts based on the context information of the current business page. The acquisition determination module is used to determine the data formation path based on the derivation relationship in the data formation process of the sensing item, and to determine the service identifier along the data formation path to uniquely distinguish the multiple candidate service contexts. The target acquisition point is determined based on the condition that the identification value of the sensing item corresponding data or its necessary source data and the identification value of the service identifier can be obtained together and correspond to the same source record. The context determination module is used to obtain the perception data and the identification value of the service identifier corresponding to the perception item at the target acquisition point, and determine the service context to which the perception data belongs based on the identification value.
[0184] In this embodiment, the system runs in a browser or a data perception component that communicates with the browser. It obtains the page data, front-end running data and business record data of the current business page through the page component interface, the front-end status data interface and the business system data interface, and completes the attribution ambiguity judgment, data formation path tracing, business identifier and target collection point determination and perception data business context determination according to the method described in Embodiment 1.
[0185] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for sensing changes in business page data for intelligent agents, characterized in that, include: Identify the perception items with ambiguous attribution in the current business page and their multiple candidate business contexts. Ambiguity means that the perception item cannot be uniquely mapped to one of the multiple candidate business contexts based on the context information of the current business page. The data formation path is determined based on the derivation relationship in the data formation process of the sensing item, and the service identifier used to uniquely distinguish the multiple candidate service contexts is determined along the data formation path. The target collection point is determined on the condition that the identification value of the sensing item corresponding data or its necessary source data and the identification value of the service identifier can be obtained together and correspond to the same source record. At the target collection point, obtain the sensing data and the identification value of the business identifier corresponding to the sensing item, and determine the business context to which the sensing data belongs based on the identification value.
2. The method for sensing changes in business page data for intelligent agents according to claim 1, characterized in that, The determination of the business identifier includes: Based on the data formation path, candidate identifier data items corresponding to the source record of the data corresponding to the perception item are determined; Obtain the identifier content of the candidate identifier data item corresponding to each candidate business context; Based on the identification content, at least one candidate identification data item is determined from the candidate identification data items to constitute the business identifier, so as to uniquely distinguish the multiple candidate business contexts.
3. The method for sensing changes in business page data for intelligent agents according to claim 2, characterized in that, When a single candidate identifier data item cannot uniquely distinguish the multiple candidate business contexts: Select multiple candidate identifier data items from the candidate identifier data items; Determine the combination of identifier content for each of the multiple candidate identifier data items corresponding to each candidate business context; When the combinations of identifier content corresponding to different candidate business contexts are different, the multiple candidate identifier data items are jointly determined as the business identifier.
4. The method for sensing changes in business page data for intelligent agents according to claim 1, characterized in that, The determination of the attribution ambiguity includes: Based on the data perception task of the intelligent agent and the context information related to the perception item in the current business page, determine the candidate business context that matches the perception item; When there are at least two candidate service contexts, and the context information cannot uniquely map the perception item to one of the candidate service contexts, it is determined that the perception item has an attribution ambiguity.
5. The method for sensing changes in business page data for intelligent agents according to claim 1, characterized in that, The determination of the data formation path includes: Taking the data corresponding to the perceived item as the starting point for tracing, the source data at each level used to form the data corresponding to the perceived item are determined based on the data lineage and along the data source direction; The data formation path of the sensing item is determined based on the derivation relationships between the data from each level of the source data and between the data from each level of the source data and the corresponding data of the sensing item.
6. The method for sensing changes in business page data for intelligent agents according to claim 1, characterized in that, The method further includes: When the identifier value of the service identifier is not obtained at the target collection point, or the identifier value cannot uniquely determine the service context to which the perceived data belongs, the target collection point and the corresponding service identifier are re-determined based on the data path of the perceived item. At the newly determined target collection point, the sensing data corresponding to the sensing item and the identification value of the service identifier are obtained, and the service context to which the sensing data belongs is determined based on the newly obtained identification value.
7. The method for sensing changes in business page data for intelligent agents according to claim 1, characterized in that, The method further includes: Based on the perceived data and its associated business context, a current perceived snapshot corresponding to the business context is generated; Obtain the historical awareness snapshot corresponding to the business context; The current perception snapshot is compared with the historical perception snapshot to obtain the page data change result corresponding to the business context.
8. The method for sensing changes in business page data for intelligent agents according to claim 7, characterized in that, The determination of the page data change results includes: According to the data perception task of the intelligent agent, the current perception data and historical perception data corresponding to the perception item are obtained from the current perception snapshot and the historical perception snapshot, respectively. The current perception data and historical perception data corresponding to the perception item under the same business context are compared, and the change result of the page data is determined based on the comparison result.
9. The method for sensing changes in business page data for intelligent agents according to claim 7, characterized in that, The method further includes: When the current business page is switched or refreshed, the perception data corresponding to the perception item and the identification value of the business identifier are obtained, and the business context to which the perception data belongs is determined based on the identification value; When the business context determined after switching or refreshing is the same as the business context before switching or refreshing, the historical perception snapshot corresponding to the business context is obtained, and the historical perception snapshot is used as the differential benchmark of the current perception snapshot after switching or refreshing.
10. A business page data change perception system for intelligent agents, characterized in that, include: The ambiguity determination module is used to determine the perception items with ambiguity in the current business page and their multiple candidate business contexts. Ambiguity means that the perception item cannot be uniquely mapped to one of the multiple candidate business contexts based on the context information of the current business page. The acquisition determination module is used to determine the data formation path based on the derivation relationship in the data formation process of the sensing item, and to determine the service identifier along the data formation path to uniquely distinguish the multiple candidate service contexts. The target acquisition point is determined based on the condition that the identification value of the sensing item corresponding data or its necessary source data and the identification value of the service identifier can be obtained together and correspond to the same source record. The context determination module is used to obtain the perception data and the identification value of the service identifier corresponding to the perception item at the target acquisition point, and determine the service context to which the perception data belongs based on the identification value.
Citation Information
Patent Citations
A method, apparatus and equipment for constructing and tracing data lineage
CN113138990B
