CN114449063A - Message processing method, device and equipment - Google Patents

Message processing method, device and equipment Download PDF

Info

Publication number
CN114449063A
CN114449063A CN202210049397.8A CN202210049397A CN114449063A CN 114449063 A CN114449063 A CN 114449063A CN 202210049397 A CN202210049397 A CN 202210049397A CN 114449063 A CN114449063 A CN 114449063A
Authority
CN
China
Prior art keywords
message
field
policy
processing
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210049397.8A
Other languages
Chinese (zh)
Other versions
CN114449063B (en
Inventor
刘攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Ant Blockchain Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ant Blockchain Technology Shanghai Co Ltd filed Critical Ant Blockchain Technology Shanghai Co Ltd
Priority to CN202210049397.8A priority Critical patent/CN114449063B/en
Publication of CN114449063A publication Critical patent/CN114449063A/en
Application granted granted Critical
Publication of CN114449063B publication Critical patent/CN114449063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Abstract

The embodiment of the specification discloses a message processing method, a message processing device and message processing equipment. The scheme can comprise the following steps: after determining the message change field which changes relative to the target message of the version to be updated in the target message of the updated version, the user can send a processing strategy configuration instruction for the message change field to the message processing application, so that the message processing application generates a message processing strategy for analyzing or generating the message change field, and the target message of the updated version can be processed based on the generated message processing strategy.

Description

Message processing method, device and equipment
Technical Field
The present application relates to the field of packet processing technologies, and in particular, to a packet processing method, apparatus, and device.
Background
With the popularization of the internet business model, the data interaction process among all business participants is more and more frequent. Currently, target messages for data interaction can be preset among all business participants, and message processing application programs capable of processing the target messages are respectively developed so as to improve the business cooperation and data sharing levels. However, because the internet service iteration speed is fast, the target message transmitted among the service participants is often changed, and thus, the service participants are required to frequently develop new message processing applications to process the changed message.
Therefore, how to improve the processing convenience for the changed message becomes a technical problem to be solved urgently.
Disclosure of Invention
The message processing method, device and equipment provided by the embodiment of the specification can improve the processing convenience for the changed message.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
a method for processing a packet provided in an embodiment of the present specification includes:
a message processing application acquires a processing strategy configuration instruction aiming at a message change field; the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version;
responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
A message processing apparatus provided in an embodiment of this specification, includes:
the strategy configuration instruction acquisition module is used for acquiring a processing strategy configuration instruction aiming at a message change field by a message processing application; the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version;
the message processing strategy generating module is used for responding to the processing strategy configuration instruction and generating a message processing strategy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
A message processing apparatus provided in an embodiment of the present specification, includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
enabling the message processing application to acquire a processing strategy configuration instruction aiming at a message change field; the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version;
responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
At least one embodiment provided in the present specification can achieve the following advantageous effects:
after determining the message change field which changes relative to the target message of the version to be updated in the target message of the updated version, the user can send a processing strategy configuration instruction for the message change field to the message processing application, so that the message processing application generates a message processing strategy for analyzing or generating the message change field. According to the scheme, the message processing strategy is conveniently set at the message processing application to process the target message of the updated version, and because a set of message processing application program does not need to be re-developed manually, not only can the labor be saved, but also the efficiency is higher, and the requirement of each application scene on conveniently and efficiently completing message version iteration can be met.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic view of an application scenario of a message processing method in an embodiment of the present specification;
fig. 2 is a schematic flowchart of a message processing method provided in an embodiment of the present specification;
fig. 3 is a schematic diagram of an application interface of a message processing application according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of another application interface of a message processing application according to an embodiment of the present disclosure;
FIG. 5 is a schematic swimlane flow chart corresponding to the message processing method in FIG. 2 according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a message processing apparatus corresponding to fig. 2 according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a message processing apparatus corresponding to fig. 2 according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of one or more embodiments of the present disclosure more apparent, the technical solutions of one or more embodiments of the present disclosure will be clearly and completely described below with reference to specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present specification, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from the embodiments given herein without making any creative effort fall within the scope of protection of one or more embodiments of the present specification.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
In the prior art, a need exists for data interaction by using messages in various application scenarios. For example, for money laundering scenarios, the payment authority needs to provide a message to the regulatory authority indicating whether the user is at risk for money laundering. Or, for a user portrait scene, the service platform needs to provide a message carrying user portrait information to the user management platform. Or, for a credit scenario, the credit service provider needs to provide a message containing information of the borrower and the credit service applied by the borrower to the funder; the fund side needs to identify risks based on the message containing the borrower information, the credit service applied by the borrower and other information to generate a credit service approval result, and sends the message carrying the credit service approval result to a credit service provider; the credit service provider may then decide whether to provide credit service to the borrower based on the credit service approval results in the message.
When the internet service is updated and iterated, messages used for data interaction among all the participants are also changed frequently. This requires each participant to manually develop a new message processing application to parse or generate the updated version of the message. Currently, a participant may develop a Software Development Kit (SDK) for processing the message change content according to the message change content, and adaptively modify program codes of a message processing application program to access the newly developed SDK to the message processing application program, so that the modified message processing application program can process an updated version of the message.
In this scheme, when the changed packet is processed, not only a new SDK needs to be developed, but also an application program applied to packet processing needs to be modified to access the SDK, so that the problems of high cost, low efficiency and poor convenience exist.
In order to solve the defects in the prior art, the scheme provides the following embodiments:
fig. 1 is a schematic view of an application scenario of a message processing method in an embodiment of this specification.
As shown in fig. 1, a user may utilize a device 101 to communicate with a server 102 of a service provider to request to obtain a service provided by the service provider. The server 102 of the service provider may then use the message to perform data interaction with the devices 103 of the other participants to process the user's request for obtaining the service.
Since the content of the messages transmitted between the service provider and the other parties may change when the service provided by the service provider changes, the updated version of the target message may be sent to the devices 103 of the other parties through the server 102 of the service provider. The device 103 of the other party also usually has a target message of a version to be updated, so that an operator at the other party can determine a message change field of the target message according to the target message of the updated version and the target message of the version to be updated.
The operators at the other participants may also trigger the application interfaces of the message processing applications installed at the devices 103 of the other participants, so that the message processing applications can obtain the processing policy configuration instruction for the message change field. The message processing application is further capable of generating a message processing policy for processing the message change field in response to the processing policy configuration instruction.
In practical application, the target packet may be a packet that a service provider needs to send to other participants, and at this time, the packet processing policy may be used to analyze the packet change field in the updated version of the target packet. In addition, the target packet may also be a packet that needs to be sent to the service provider by another party, and at this time, the packet processing policy may be used to generate the packet change field in the updated version of the target packet.
The solution in fig. 1 enables an operator to input an instruction at a message processing application to conveniently set a message processing policy, thereby implementing processing of a target message of an updated version; because the target processing application or the SDK does not need to be re-developed by manual programming, the labor can be saved, the efficiency is higher, and the requirements of each application scene on conveniently and efficiently completing the message version iteration can be met.
Next, a message processing method provided in the embodiments of the description will be specifically described with reference to the accompanying drawings:
the message processing method provided in the embodiment of the present description may be applied to various scenarios that require processing of a changed message, and therefore, a specific application scenario of the message processing method is not specifically limited. For convenience of understanding, the message processing method provided in the embodiment of the present description will be explained with a message interaction scenario involved in the credit field.
Fig. 2 is a schematic flowchart of a message processing method provided in an embodiment of this specification. From a program perspective, the execution subject of the flow may be a device that hosts a message processing application, or an application program of the message processing application. As shown in fig. 2, the process may include the following steps:
step 202: a message processing application acquires a processing strategy configuration instruction aiming at a message change field; and the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version.
In the embodiments of the present specification, it is assumed that the credit service provided by the credit service provider to the user is changed, for example, the type of information to be provided by the borrower is increased, or the loan method to be selected by the borrower is increased. At this time, the messages that the credit service provider needs to provide to the fund party and/or the messages that the fund party needs to feed back to the credit service provider need to be changed. The credit service provider can make the target message of the updated version according to the actual requirement and send the target message of the updated version to the funder. The fund party can compare the target message of the updated version based on the target message of the version to be updated, so as to determine the message change field of the target message of the updated version.
In this embodiment of the present specification, the updated version of the target packet may be a JSON (JavaScript Object Notation) file. The writing format of the JSON data is a JSON name/value pair form, wherein the JSON name can be a field name, and the JSON value corresponding to the JSON name can be a field content, so that one message change field can correspond to one JSON name/value pair in the JSON file of the updated version of the target message.
For example, if the JSON name/value pair of "{" age ":30} is added to the JSON file of the updated version of the target packet relative to the JSON file of the target packet of the to-be-updated version, the" { "age":30} is the packet change field.
In practical application, the updated version of the target packet may also be an Extensible Markup Language (XML) file, but for convenience of processing, the XML file of the updated version of the target packet may be converted into a JSON file, and then a packet change field is determined based on the JSON file of the updated version of the target packet.
In this embodiment of the present description, a preset control for setting a message processing policy may be provided in an application interface of a message processing application. After determining the message change fields, the fund party can trigger the preset control in the application interface of the message processing application according to the actual situation of each message change field to send a processing strategy configuration instruction aiming at the message change fields to the message processing application.
Step 202: responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
In this embodiment of the present description, when a target packet is a packet that a credit service provider needs to feed back to a funding party, the funding party needs to parse the target packet to obtain information carried by the target packet. Therefore, the processing policy configuration instruction sent by the fund direction message processing application may instruct to generate a message processing policy for analyzing the message change field, so that the updated version of the target message may be automatically analyzed based on the message processing policy.
And when the target message is a message which needs to be fed back to the credit service provider by the fund party, the fund party needs to generate the target message. Therefore, the fund party can instruct to generate the message processing strategy for generating the message change field by operating the generated processing strategy configuration instruction, so that the updated version of the target message can be automatically generated based on the message processing strategy.
The method of fig. 2 enables an operator to input an instruction at a message processing application to conveniently set a message processing policy, thereby implementing processing of a target message of an updated version; because the target processing application or the SDK does not need to be re-developed by manual programming, the labor can be saved, the efficiency is higher, and the requirements of each application scene on conveniently and efficiently completing the message version iteration can be met.
Based on the method in fig. 2, some specific embodiments of the method are also provided in the examples of this specification, which are described below.
The target message generally comprises two categories, one category is the message which needs to analyze the message content to determine the information transmitted by others; another type is messages that require the generation of message content to convey information to others. Because the configuration process of the message processing strategy for different types of messages has larger difference, the two are introduced separately.
For the first type of message, that is, when the target message is a message that needs to be analyzed, a message analysis policy for extracting the message content may be configured.
Specifically, step 202: the obtaining of the processing policy configuration instruction for the message change field may include:
acquiring an analysis strategy configuration instruction aiming at a message change field; the analysis policy configuration instruction carries field identification information of the message change field in the updated version of the target message.
Correspondingly, step 204: in response to the processing policy configuration instruction, generating a message processing policy for processing the message change field may specifically include:
responding to the analysis strategy configuration instruction, and generating a message analysis strategy aiming at the message change field; and the message analysis strategy is used for acquiring the field content corresponding to the field identification information from the updated version of the target message.
In this embodiment of this specification, a message change field in a target message of an updated version generally has field identification information and a field value corresponding to the field identification information, where the field identification information may be used to identify the message change field, and the field value may be field content of the message change field. Therefore, when the message change field in the updated version of the target message needs to be analyzed, the field value corresponding to the field identification information of the message change field can be extracted.
Based on this, when configuring the message parsing rule, the operator may input the field identification information of the message change field in an application interface of the message processing application, so that the message processing application may obtain a processing policy configuration instruction carrying the field identification information of the message change field, and further, the message processing application may configure a message parsing policy for obtaining field content corresponding to the field identification information from the updated version of the target message.
For ease of understanding, the configuration process of the message parsing policy is illustrated with reference to the content shown in fig. 3. Fig. 3 is a schematic diagram of an application interface of a message processing application according to an embodiment of the present disclosure.
For example, assume that the updated version of the target packet is a JSON file, and the JSON file of the updated version of the target packet is added with a JSON name/value pair of "{" age ":30 }" relative to the JSON file of the target packet of the version to be updated, at this time, the field identification information of the message change field may be "age".
Based on this, the operator may click on an edit control (not shown in fig. 3) for the message parsing policy in an application interface of the message processing application to enter the edit page 31 for the message parsing policy. The operator may also operate the message source control 301 to select a target message, so as to start setting a message parsing policy for the target message.
Specifically, when the field identification information of the message change field is "age", the operator may operate the control 302 for setting the field identification information to input "age". The operator may also click the control 303 submitted by the instruction, so that the message processing application may obtain the processing policy configuration instruction carrying the field identification information of the message change field.
In this embodiment of the present description, according to actual requirements, it may be necessary to directly extract a field value of a message change field, or perform a specified processing operation on the field value of the message change field to obtain a processing result, so that an operator may further set an analysis manner for field content of the message change field.
Based on this, the analysis policy configuration instruction obtained in step 202 may also carry message analysis mode information. The message parsing method information may include: information indicating that a field value is extracted, or information indicating that a specified processing operation is performed on a field value.
Correspondingly, in step 204, in response to the parsing policy configuration instruction, generating a message parsing policy for the message change field may specifically include:
and if the analysis strategy configuration instruction carries information for indicating extraction of a field value, generating a message analysis strategy for extracting the field value corresponding to the field identification information. Alternatively, the first and second electrodes may be,
and if the analysis strategy configuration instruction carries information for indicating that appointed processing operation is executed on the field value, generating a message analysis strategy for determining an operation processing result, wherein the operation processing result is a processing result obtained by executing the appointed processing operation on the field value corresponding to the field identification information.
In this embodiment of the present description, when configuring a message parsing rule, an operator may select, in an application interface of a message processing application, message parsing manner information for a message change field, in addition to field identification information of the message change field, so that a parsing policy configuration instruction may carry the message parsing manner information selected by a user. The target processing application can generate a message analysis strategy for extracting the field content corresponding to the message change field according to the message analysis mode selected by the user according to the analysis strategy configuration instruction.
In practical applications, the type of the designated processing operation that can be used when extracting the field content may be various, for example, a compare size operation, a convert measure unit operation, a perform four arithmetic operations, and the like. An operator can pre-make scripts for executing the specified processing operation according to actual requirements, and the message processing application can call each script for executing the specified processing operation, so that a message analysis strategy can be realized based on each script. Based on this, when the message parsing manner information is information for instructing execution of a specified processing operation on a field value, the message parsing manner information may include information of a script specified by an operator, so as to implement a message parsing policy based on the script.
For the convenience of understanding, the configuration process of the message parsing policy is illustrated with reference to fig. 3. As shown in fig. 3, it is assumed that a control for setting a message parsing manner, such as a control 304 for indicating to extract a field value and a control 305 for indicating to perform a specified processing operation on the field value, may be exposed in an application interface of the message processing application. When an operator needs to configure a message parsing policy for extracting field values of message change fields (e.g., { "age":30}), a control 304 for indicating the extracted field values may be selected, so that the parsing policy configuration instruction carries information for indicating the extracted field values. And the message parsing strategy generated based on the parsing strategy configuration instruction can be used for extracting the field value of '30'.
When the operator needs to configure the packet parsing policy for performing the specified processing operation on the field value of the modified field of the packet, the specified processing operation (for example, comparing whether the field value is greater than 18) may be selected by the control 305, so that the parsing policy configuration instruction carries information for instructing to perform the specified processing operation on the field value. And the message analysis strategy generated based on the analysis strategy configuration instruction can be used for comparing whether the field value of 30 is greater than 18, and the comparison result is used as the analysis result of the message change field.
In practical applications, when processing a credit service application of a borrower, a fund party may need to extract information from a target message of an updated version sent by a credit service provider and use constant information which is not partially recorded in the target message of the updated version. Based on this, when configuring the message analysis policy for the updated version of the target message, the policy for acquiring the constant information that is not recorded in the updated version of the target message may be further configured, so that after executing the message analysis policy for the updated version of the target message, the message analysis result may include the constant information, thereby facilitating the funder to process the credit service application of the borrower based on the message analysis result.
Specifically, when the operator sets the message parsing policy for the constant information, the operator may select the control 306 for instructing to obtain the constant information, and input the specified constant value by manipulating the control (not shown in fig. 3) for inputting the constant value. In addition, the operator can set the field identification information corresponding to the constant information to be null through the control 302, so that the specified constant value can be directly output when the message parsing policy for the constant information is executed.
In this embodiment of the present specification, since field identification information set for the same type of information in different messages may be different, for example, for information of age, some of the field identification information set in a message is "age", and some of the field identification information set in a message is "ss-age". Meanwhile, the fund party also has custom identification information for the information of the age, such as the age of the borrower. Therefore, the fund side can also set analysis result identification information aiming at the analysis result of the message change field, and the analysis result identification information is usually self-defined identification information of the fund side, so that the fund side can analyze and utilize the message analysis result.
Based on this, the analysis policy configuration instruction obtained in step 202 may also carry analysis result identification information. The parsing result identification information may specifically include an attribute name and/or an attribute code. The attribute name may be text information convenient for a user to understand, and the attribute code may be a random character string.
In practical applications, the parsing result identification information may further include an attribute type, and the attribute type may include a common attribute or a unique attribute. For example, in the credit field, the message content such as the age and income of the borrower may belong to a common attribute, and the message content such as the identity information of the borrower and the application form number generated when the borrower applies for the credit service may belong to a unique attribute.
Correspondingly, the message parsing policy generated in step 204 may also be used to establish a corresponding relationship between the parsing result identification information and the field content corresponding to the obtained field identification information.
In the embodiment of the present specification, in the credit field, when a target message is a message of a borrower for requesting to obtain a specified credit service, after a funder parses the target message to obtain a message parsing result, the funder generally needs to analyze the message parsing result by using a wind control system to obtain a credit approval result output by the wind control system. That is, the message parsing result generated by running the message parsing strategy may need to be used as input information required by the wind control system.
Since each piece of input information required to be used by the wind control system usually has the identifier information (e.g., attribute name, attribute code, attribute type, etc.) defined by the funding party, the identifier information required to be used by the wind control system can be used as the identifier information of the parsing result. Subsequently, after the message analysis strategy establishes the corresponding relationship between the analysis result identification information and the field content extracted from the target message, the corresponding relationship between the input information required by the wind control system and the message analysis result is established, so that the extraction of the input information required by the wind control system can be facilitated, and the running of the wind control system is facilitated.
For the convenience of understanding, the configuration process of the message parsing policy is illustrated with reference to fig. 3. As shown in fig. 3, it is assumed that the target message includes a message change field of { "age":30} for indicating the age of the borrower, and if the input information required to be used by the wind control system includes the age of the borrower, the specific identification information set by the fund party for the input information includes: the attribute name is "borrower age", the attribute is coded as 123abc, and the attribute type is a common attribute.
After the field identification information of the message change field of "age" is input through the control 302, the operator may further input the analysis result identification information corresponding to the field identification information of the message change field of "age" (for example, the attribute name is "borrower age", the attribute code is 123abc, and the attribute type is a common attribute) by operating the control 307 corresponding to the control 302, so that the analysis policy configuration instruction may further carry the analysis result identification information. Assuming that the operator selects a message analysis mode for extracting a field value, the message analysis policy generated based on the analysis policy configuration instruction is used for analyzing the updated version of the target message containing { "age":30} information, and the obtained message analysis result may contain information of "borrower age-123 abc-common attribute-30". After the message analysis result is sent to the wind control system, the wind control system can automatically identify the meaning of the message analysis result and generate a credit approval result based on the message analysis result.
In the embodiment of the present specification, an operator can set the analysis result identification information corresponding to the message change field, so that the message analysis result generated by the message analysis rule can meet the identification requirements of the fund party on various information, and the convenience of the subsequent fund party on the use of the message analysis result and the analysis process is facilitated to be simplified.
In practical applications, because the input information required to be used by the wind control system at the funding side is often changed, for example, the input information is newly added, the existing input information is deleted, the specified identification information of the existing input information is modified, and the like, even if the version of the target packet is not changed, the packet parsing policy of the target packet may need to be reconfigured, so that the corresponding relationship between the input information required to be used by the wind control system at present and the packet parsing result is conveniently established, and further, the operation of the wind control system is convenient. Based on the method, the fund side can also create, delete and modify a message analysis strategy according to the change condition of the input information of the wind control system.
In order to improve the management convenience for the message parsing policy, a control (not shown in fig. 3) for performing addition, deletion, and modification on the message parsing policy may be further configured in the application interface of the message processing application. Specifically, if the fund party adds some input information needed by the wind control system, after determining the corresponding relationship between the input information and the message analysis result of the target message, the fund party may use the added control to generate a message analysis policy for establishing the corresponding relationship between the specified identification information (i.e., the analysis result identification information) of the input information and the message analysis result. If the fund party deletes certain input information which is needed by the wind control system once, the message analysis strategy that the analysis result identification information is the designated identification information of the input information can be deleted by using the deletion control. If the fund side modifies the specified identification information of certain input information needed by the wind control system, the modification control can be used for modifying the analysis result identification information in the message analysis strategy from the historical specified identification information of the input information to the current specified identification information.
In this embodiment of the present description, since the execution conditions of different message parsing policies may not be completely the same, an operator may also set the execution conditions of each message parsing policy according to actual requirements, so that the message parsing result generated based on the message parsing policy meets the actual requirements.
Based on this, the analysis policy configuration instruction obtained in step 202 may also carry a policy execution condition.
Correspondingly, the message parsing policy generated in step 204 may be specifically configured to obtain, after the policy execution condition is satisfied, field content corresponding to the field identification information from the updated version of the target message.
In the embodiment of the present specification, the policy execution condition may be set according to an actual requirement, and is not particularly limited. For example, in a credit scenario, a credit approval process may involve multiple stages, such as a primary approval stage, a secondary approval stage, and an approval result output stage, and since the message contents required for each approval stage may not be completely the same, the message parsing strategies required for different approval stages are not completely the same. Based on this, the examination and approval stage can be used as a policy execution condition of the message analysis policy.
Or, when the field identification information set for the same message content in multiple messages to be analyzed is the same, the message analysis policies used for analyzing the message content in different messages may be the same, and based on this, the message to be analyzed may be used as a policy execution condition of the message analysis policy, or a credit service to which the message to be analyzed belongs may be used as a policy execution condition of the message analysis policy.
For the convenience of understanding, the configuration process of the message parsing policy is illustrated with reference to fig. 3. As shown in fig. 3, an operator may manipulate the control 308 to input a policy execution condition, so that the analysis policy configuration instruction may further carry policy execution condition information.
In the embodiment of the present specification, by setting the policy execution condition of the message parsing policy, not only can the message parsing result generated based on the message parsing policy be made to meet the actual requirement, but also the message parsing policy can be multiplexed, thereby reducing the setting operation of the message parsing policy, and being convenient and fast.
In this embodiment of the present description, in order to facilitate subsequent management of a message parsing policy, policy identification information may also be set for the message parsing policy, where the policy identification information may include a policy name or a policy code, and this is not particularly limited.
In practical application, when there are multiple message change fields, it may be necessary to configure a message parsing policy for the multiple message change fields, and to improve the efficiency of configuring the message parsing policy, multiple sets of setting controls for the message parsing policy may be displayed in an application interface of a message processing application, for example, 3 sets of setting controls for the message parsing policy are shown in fig. 3, so that the message parsing policies for the 3 message change fields may be set at one time, which is convenient and fast.
In this embodiment of the present description, a message generation policy for generating message content may be configured for a second type of message, that is, when a target message is a message that needs to be generated to be provided to another person.
Specifically, step 202: the obtaining of the processing policy configuration instruction for the message change field may include:
acquiring a generation strategy configuration instruction aiming at a message change field; the generation policy configuration instruction carries field identification information of the message change field in the updated version of the target message, and data source information.
Correspondingly, step 204: in response to the processing policy configuration instruction, generating a message processing policy for processing the message change field may specifically include:
responding to the strategy configuration generating instruction, and generating a message generating strategy aiming at the message change field; and the message generation strategy is used for generating field content corresponding to the field identification information in the updated version of the target message according to the target data at the data source information.
In this embodiment of this specification, when the target packet is a packet that the funder needs to generate to feed back to the credit service provider, the credit service provider may send an updated version of the target packet to the funder, where field identification information in the updated version of the target packet conforms to a field identification rule of the credit service provider, and packet content in the updated version of the target packet conforms to a data requirement of the credit service provider.
Based on this, after determining the message change field in the updated version of the target message, the funder may obtain the field identification information carried by the updated version of the target message and corresponding to the message change field from the updated version of the target message, so as to use the field identification information as the field identification information set in the message generation policy and corresponding to the message change field. The fund party can also determine the source of the information required to be used for generating the field content of the message change field according to the message content carried by the message change field, so as to serve as the data source information set for the message change field in the message generation strategy.
For example, assume that the updated version of the target packet is a JSON file, and the JSON file of the updated version of the target packet is added with a JSON name/value pair of "{" isarge ": YES/NO }" relative to the JSON file of the target packet of the version to be updated, and at this time, "isarge" may be used as field identification information of the message change field. If the isAgree field is used for indicating whether the loan service applied by the borrower passes examination and approval, the wind control system at the fund side can output an examination and approval result indicating whether the loan service applied by the borrower passes examination and approval, and therefore the examination and approval result output by the wind control system can be used as an information source of the message change field.
For ease of understanding, the configuration process of the message generation policy is illustrated with reference to the content shown in fig. 4. Fig. 4 is a schematic diagram of another application interface of a message processing application according to an embodiment of the present disclosure.
Assume that the operator can click on an edit control (not shown in fig. 4) of the message generation policy for the target message to enter the edit page 41 for the message generation policy. If the field identification information of the message change field corresponding to the target message is "isAgree", the operator may operate the control 401 for setting the field identification information to input "isAgree". The operator may also input data source information (e.g., identification information of the approval result output by the wind control system) by operating a control 402 for setting the data source information. When an operator triggers a submission control (not shown in fig. 4), the message processing application can obtain a processing policy configuration instruction carrying field identification information of the message change field and corresponding data source information, and then can generate a corresponding message generation policy based on the processing policy configuration instruction.
In this embodiment, an operator may further enable a generation policy configuration instruction to carry a data type (including a JSON character string or a JSON object) of the message change field, so that a message processing application configures a message generation policy for the message change field based on the data type of the message change field.
Correspondingly, in step 204, in response to the policy generation configuration instruction, generating a packet generation policy for the packet change field may specifically include:
and if the data type of the message change field carried in the generated strategy configuration instruction is a JSON character string, generating a message generation strategy for determining a JSON name/value pair corresponding to the message change field, wherein the JSON name in the JSON name/value pair is field identification information of the message change field, and the JSON value in the JSON name/value pair is target data at the data source information. Alternatively, the first and second electrodes may be,
and if the data type of the message change field carried in the generation strategy configuration instruction is a JSON object, generating a message generation strategy for determining a JSON name/value pair corresponding to the message change field, wherein the JSON name in the JSON name/value pair is field identification information of the message change field, the JSON value in the JSON name/value pair is a target JSON object, and the target JSON object is generated based on target data at the data source information by using other message generation strategies.
In this embodiment of the specification, the data type in the JSON file may include a JSON string and a JSON object, where a JSON value in a JSON name/value pair of the JSON string type may be an array, a number, a string, or three literal values (false, null, true); and the JSON value in a JSON name/value pair of a JSON object type is an object, where an object may refer to a JSON name/value pair of a JSON string type. For example, for JSON data of { "address": { "city": Beijing } }, wherein { "city": Beijing } belongs to a JSON name/value pair of a JSON string type, and { "address": … } belongs to a JSON name/value pair of a JSON object type.
In practical application, when the data type of the message change field is a JSON character string, an operator can directly input the data source information corresponding to the message change field. When the data type of the message change field is the JSON object type, the operator may specify the execution result of the other message generation policy as the data source information corresponding to the message change field after establishing the other message generation policy because the data source information corresponding to the message change field is the execution result of the other message generation policy.
For ease of understanding, the description is made in conjunction with what is shown in fig. 4. Assuming that the message change field is { "city": Beijing }, the operator can input the field identification information and the data source information of the message change field through the control 401 and the control 402, and can also input the data type of the message change field as the JSON string type through the control 403.
Aiming at a message change field of { "address": { "city": Beijing } }, an operator needs to generate two message generation strategies. When a message generation strategy aiming at { "city": Beijing } is set, in addition to inputting the field identification information and the data source information of the message change field through the control 401 and the control 402, the data type of the message change field can be input through the control 403 to be the JSON character string type. When the message generation strategy aiming at the { "address": … } is set, in addition to the field identification information of the message change field which can be input through the control 401, the data type of the message change field which can be input through the control 403 can be a JSON object type, and the execution result of the message generation strategy aiming at the { "city": Beijing } can be used as the data source information of the message generation strategy aiming at the { "address": … }.
In this embodiment of the present description, since the execution conditions of different message generation policies may not be completely the same, an operator may also set the policy execution conditions of each message generation policy according to the actual requirements, so that the target message generated based on the message generation policy meets the actual requirements.
Based on this, the policy configuration generating instruction obtained in step 202 may also carry a policy execution condition.
Correspondingly, the message generation policy generated in step 204 may be specifically configured to generate, according to the target data at the data source information, field content corresponding to the field identification information in the updated version of the target message after the policy execution condition is satisfied.
In the embodiment of the present specification, the policy execution condition may be set according to an actual requirement, and is not particularly limited. For example, in a credit scenario, a credit approval process may involve multiple stages, such as a primary approval stage, a secondary approval stage, and an approval result output stage, and since the contents of messages required to be fed back in each approval stage may not be completely the same, the message generation strategies required to be used in different approval stages are not completely the same. Based on this, the examination and approval stage can be used as the policy execution condition of the message generation policy.
Or, when a plurality of messages required to be fed back for a plurality of credit services all contain message contents with the same field identification information and data source information, a message generation policy for generating the message contents may be multiplexed, so that a specific credit service may be used as a policy execution condition of the message generation policy.
For ease of understanding, the description is made in conjunction with what is shown in fig. 4. Based on the assumption that the policy execution conditions of the multiple message generation policies are the same, an operator can configure multiple message generation policies with the same policy execution conditions in the edit page 41 for the message generation policies, and input the policy execution conditions through the control 404, so that the policy configuration instruction can also carry policy execution condition information, which is convenient and fast.
In the embodiment of the present specification, by setting the policy execution condition of the message generation policy, not only can the target message generated based on the message generation policy be made to meet the actual requirement, but also the message generation policy can be multiplexed, so that the setting operation of the message generation policy is reduced, and convenience and rapidness are achieved.
In this embodiment, an operator may also set a feedback condition of the message content generated by each message generation policy according to an actual requirement, so that a target message generated based on the message generation policy meets the actual requirement.
Based on this, the generation policy configuration instruction obtained in step 202 may also carry a field content feedback condition.
Correspondingly, the message generation policy generated in step 204 may be further configured to add the generated field content corresponding to the field identification information to the updated version of the target message after the field content feedback condition is satisfied.
In this embodiment of the present specification, a corresponding field content feedback condition may be set for each packet generation policy, where the field content feedback condition may be set according to an actual requirement, and this is not particularly limited. For example, in a credit scenario, part of the message content may need to be fed back to the credit service provider after the credit application approval is passed, and therefore, whether the credit application approval is passed or not may be used as a field content feedback condition. And part of the message content may always need to be fed back to the credit service provider, so that the message content can also be always fed back as a field content feedback condition and the like.
For ease of understanding, the description is made in conjunction with what is shown in fig. 4. For example, after the operator inputs the field identification information, the data source information, and the data type of the message change field through the control 401, the control 402, and the control 403, the operator may also input the field content feedback condition through the control 405, so as to generate a message generation policy based on the above content, which is convenient and fast.
In this embodiment of the present specification, in order to facilitate subsequent management of a message generation policy, policy identification information may also be set for the message generation policy, where the policy identification information may include a policy name or a policy code, and this is not particularly limited.
In practical application, when there are multiple message change fields, it may be necessary to configure a message generation policy for the multiple message change fields, and to improve the efficiency of configuring the message generation policy, multiple sets of setting controls for the message generation policy may be displayed in an application interface of a message processing application, for example, 3 sets of setting controls for the message generation policy are shown in fig. 4, so that the message generation policy for the 3 message change fields may be set at one time, which is convenient and fast.
In practical application, an operator may also need to delete and modify an existing message generation policy, and based on this, a control (not shown in fig. 4) for deleting and modifying the existing message generation policy may also be set in an application interface of the message processing application, so as to improve convenience in configuring the message generation policy.
Fig. 5 is a schematic swimlane flow chart corresponding to the message processing method in fig. 2 according to an embodiment of the present disclosure. When the message processing method is applied to the credit field, as shown in fig. 5, the message processing flow may involve the execution subject of a credit service provider, a funding party, a message processing application, and the like.
In the message change field determining stage, the credit service provider can generate and send the updated version of the target message to the fund side, and the fund side can receive the updated version of the target message and obtain the locally stored version of the target message to be updated, so that the message change field can be determined according to the updated version of the target message and the version of the target message to be updated.
In the message processing policy generation stage, if the target message is a message to be analyzed, the fund party may set field identification information, message analysis mode information, analysis result identification information, and policy execution conditions for the message change field at the message processing application. Therefore, the message processing application can acquire field identification information carrying a message change field, message analysis mode information, analysis result identification information and an analysis strategy configuration instruction of a strategy execution condition, and generate a message analysis strategy aiming at the message change field in response to the analysis strategy configuration instruction, wherein the message analysis strategy can be used for acquiring field content corresponding to the field identification information from a target message of an updated version by using a message analysis mode indicated by the message analysis mode information after the strategy execution condition is met, and establishing a corresponding relation between the acquired field content and the analysis result identification information.
If the target message is a message to be generated, the fund party can set field identification information, data types, data source information, analysis result identification information, policy execution conditions and field content feedback conditions aiming at the message change field at the message processing application. Therefore, the message processing application can acquire an analysis strategy configuration instruction carrying field identification information, a data type, data source information, analysis result identification information, a strategy execution condition and a field content feedback condition of a message change field, and generate a message generation strategy aiming at the message change field in response to the generated strategy configuration instruction, wherein the message generation strategy can be used for generating field content corresponding to the field identification information according to target data at the data type and the data source information after the strategy execution condition is met, and adding the generated field content corresponding to the field identification information into a target message of an updated version after the field content feedback condition is met.
Based on the method, when data interaction is carried out between the credit service provider and the fund party by using the updated version of the target message subsequently, the fund party can process the updated version of the target message by using the generated message analysis strategy and the generated message generation strategy, and because the target processing application or the SDK is not required to be re-developed by manual programming, the labor can be saved, the efficiency is higher, and the requirements of each application scene on conveniently and efficiently completing message version iteration can be met.
Based on the same idea, the embodiment of the present specification further provides a device corresponding to the above method. Fig. 6 is a schematic structural diagram of a message processing apparatus corresponding to fig. 2 according to an embodiment of the present disclosure. As shown in fig. 6, the apparatus may include:
a policy configuration instruction obtaining module 602, configured to obtain, by the message processing application, a processing policy configuration instruction for the message change field; and the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version. The updated version of the target message can be a JSON file; one of the message change fields may correspond to a JSON name/value pair in the JSON file.
A message processing policy generating module 604, configured to generate, in response to the processing policy configuration instruction, a message processing policy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
The examples of this specification also provide some specific embodiments of the apparatus based on the apparatus of fig. 6, which is described below.
Optionally, the policy configuration instruction obtaining module 602 may be specifically configured to:
acquiring an analysis strategy configuration instruction aiming at a message change field; the analysis policy configuration instruction carries field identification information of the message change field in the updated version of the target message.
The message processing policy generating module 604 may be specifically configured to:
responding to the analysis strategy configuration instruction, and generating a message analysis strategy aiming at the message change field; the message analysis strategy is used for acquiring the field content corresponding to the field identification information from the updated version of the target message.
Optionally, the parsing policy configuration instruction further carries message parsing mode information, where the message parsing mode information includes: information indicating that a field value is extracted, or information indicating that a specified processing operation is performed on a field value.
The message processing policy generating module 604 may include:
and the first policy generation module is configured to generate a packet analysis policy for extracting a field value corresponding to the field identification information if the analysis policy configuration instruction carries information for indicating extraction of the field value.
A second policy generating module, configured to generate a packet parsing policy for determining an operation processing result if the parsing policy configuration instruction carries information for indicating that a specified processing operation is performed on a field value, where the operation processing result is a processing result obtained by performing the specified processing operation on the field value corresponding to the field identification information.
Optionally, the analysis policy configuration instruction further carries analysis result identification information.
The message analysis strategy is also used for establishing a corresponding relation between the analysis result identification information and the field content corresponding to the acquired field identification information.
Optionally, the analysis policy configuration instruction further carries a policy execution condition.
The message analysis policy is specifically configured to obtain field content corresponding to the field identification information from the updated version of the target message after the policy execution condition is satisfied.
Optionally, the policy configuration instruction obtaining module 602 may be specifically configured to:
acquiring a generation strategy configuration instruction aiming at a message change field; the generation policy configuration instruction carries field identification information of the message change field in the updated version of the target message, and data source information.
The message processing policy generating module 604 may be specifically configured to:
responding to the strategy configuration generating instruction, and generating a message generating strategy aiming at the message change field; and the message generation strategy is used for generating field content corresponding to the field identification information in the updated version of the target message according to the target data at the data source information.
Optionally, the policy configuration generating instruction further carries a data type of the message change field; the data types include: a JSON string or JSON object.
The message processing policy generating module 604 may include:
and a third policy generation module, configured to generate a packet generation policy for determining a JSON name/value pair corresponding to the packet change field if the data type of the packet change field carried in the generated policy configuration instruction is a JSON character string, where a JSON name in the JSON name/value pair is field identification information of the packet change field, and a JSON value in the JSON name/value pair is target data at the data source information.
And a fourth policy generation module, configured to generate a packet generation policy for determining a JSON name/value pair corresponding to the packet change field if the data type of the packet change field carried in the generated policy configuration instruction is a JSON object, where a JSON name in the JSON name/value pair is field identification information of the packet change field, a JSON value in the JSON name/value pair is a target JSON object, and the target JSON object is a JSON name/value pair generated based on target data in the data source information by using another packet generation policy.
Optionally, the policy configuration generating instruction further carries a policy executing condition.
The message generation policy is specifically configured to generate, according to the target data at the data source information, field content corresponding to the field identification information in the updated version of the target message after the policy execution condition is satisfied.
Optionally, the generation policy configuration instruction further carries a field content feedback condition.
And the message generation strategy is also used for adding the generated field content corresponding to the field identification information into the updated version of the target message after meeting the field content feedback condition.
Based on the same idea, the embodiment of the present specification further provides a device corresponding to the above method.
Fig. 7 is a schematic structural diagram of a message processing apparatus corresponding to fig. 2 according to an embodiment of the present disclosure. As shown in fig. 7, the apparatus 700 may include:
at least one processor 710; and the number of the first and second groups,
a memory 730 communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory 730 stores instructions 720 executable by the at least one processor 710 to enable the at least one processor 710 to:
enabling the message processing application to acquire a processing strategy configuration instruction aiming at a message change field; and the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version.
Responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus shown in fig. 7, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital character system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: the ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (20)

1. A message processing method comprises the following steps:
a message processing application acquires a processing strategy configuration instruction aiming at a message change field; the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version;
responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
2. The method according to claim 1, wherein the obtaining of the configuration instruction of the processing policy for the message change field specifically includes:
acquiring an analysis strategy configuration instruction aiming at a message change field; the analysis strategy configuration instruction carries field identification information of the message change field in the updated version of the target message;
the generating, in response to the processing policy configuration instruction, a packet processing policy for processing the packet change field specifically includes:
responding to the analysis strategy configuration instruction, and generating a message analysis strategy aiming at the message change field; and the message analysis strategy is used for acquiring the field content corresponding to the field identification information from the updated version of the target message.
3. The method according to claim 2, wherein the parsing policy configuration instruction further carries message parsing mode information, and the message parsing mode information includes: information indicating an extracted field value, or information indicating that a specified processing operation is performed on a field value;
the generating a message analysis policy for the message change field in response to the analysis policy configuration instruction specifically includes:
if the analysis strategy configuration instruction carries information for indicating to extract a field value, generating a message analysis strategy for extracting the field value corresponding to the field identification information; alternatively, the first and second electrodes may be,
and if the analysis strategy configuration instruction carries information for indicating that appointed processing operation is executed on the field value, generating a message analysis strategy for determining an operation processing result, wherein the operation processing result is a processing result obtained by executing the appointed processing operation on the field value corresponding to the field identification information.
4. The method according to claim 2, wherein the parsing policy configuration instruction further carries parsing result identification information;
the message analysis strategy is also used for establishing a corresponding relation between the analysis result identification information and the field content corresponding to the acquired field identification information.
5. The method according to claim 2, wherein the policy configuration parsing instruction further carries a policy execution condition;
the message analysis policy is specifically configured to obtain field content corresponding to the field identification information from the updated version of the target message after the policy execution condition is satisfied.
6. The method according to claim 1, wherein the obtaining of the processing policy configuration instruction for the message change field specifically includes:
acquiring a generation strategy configuration instruction aiming at a message change field; the generation policy configuration instruction carries field identification information of the message change field in the updated version of the target message and data source information;
the generating, in response to the processing policy configuration instruction, a packet processing policy for processing the packet change field specifically includes:
responding to the strategy configuration generating instruction, and generating a message generating strategy aiming at the message change field; the message generation strategy is used for generating field content corresponding to the field identification information in the updated version of the target message according to the target data at the data source information.
7. The method according to claim 6, wherein the policy configuration generation instruction further carries a data type of the message change field; the data types include: a JSON string or JSON object;
the generating a message generation policy for the message change field in response to the generation policy configuration instruction specifically includes:
if the data type of the message change field carried in the generated policy configuration instruction is a JSON character string, generating a message generation policy for determining a JSON name/value pair corresponding to the message change field, wherein the JSON name in the JSON name/value pair is field identification information of the message change field, and the JSON value in the JSON name/value pair is target data at the data source information; alternatively, the first and second liquid crystal display panels may be,
and if the data type of the message change field carried in the generated strategy configuration instruction is a JSON object, generating a message generation strategy for determining a JSON name/value pair corresponding to the message change field, wherein the JSON name in the JSON name/value pair is field identification information of the message change field, the JSON value in the JSON name/value pair is a target JSON object, and the target JSON object is the JSON name/value pair generated based on target data at the data source information by using other message generation strategies.
8. The method of claim 6, wherein the generating the policy configuration instruction further carries a policy execution condition;
the message generation policy is specifically configured to generate, according to the target data at the data source information, field content corresponding to the field identification information in the updated version of the target message after the policy execution condition is satisfied.
9. The method according to claim 8, wherein the policy configuration generating instruction further carries a field content feedback condition;
and the message generation strategy is also used for adding the generated field content corresponding to the field identification information into the updated version of the target message after meeting the field content feedback condition.
10. The method according to any one of claims 1 to 9, wherein the updated version of the target packet is a JSON file; and one message change field corresponds to one JSON name/value pair in the JSON file.
11. A message processing apparatus comprising:
the message processing module is used for processing a message change field according to the message configuration command; the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version;
the message processing strategy generating module is used for responding to the processing strategy configuration instruction and generating a message processing strategy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
12. The apparatus according to claim 11, wherein the policy configuration instruction obtaining module is specifically configured to:
acquiring an analysis strategy configuration instruction aiming at a message change field; the analysis strategy configuration instruction carries field identification information of the message change field in the updated version of the target message;
the message processing policy generation module is specifically configured to:
responding to the analysis strategy configuration instruction, and generating a message analysis strategy aiming at the message change field; and the message analysis strategy is used for acquiring the field content corresponding to the field identification information from the updated version of the target message.
13. The apparatus according to claim 2, wherein the parsing policy configuration instruction further carries message parsing manner information, where the message parsing manner information includes: information indicating an extracted field value, or information indicating that a specified processing operation is performed on a field value;
the message processing policy generation module includes:
a first policy generation module, configured to generate a packet analysis policy for extracting a field value corresponding to the field identification information if the analysis policy configuration instruction carries information for indicating to extract the field value;
a second policy generating module, configured to generate a packet parsing policy for determining an operation processing result if the parsing policy configuration instruction carries information for indicating that a specified processing operation is performed on a field value, where the operation processing result is a processing result obtained by performing the specified processing operation on the field value corresponding to the field identification information.
14. The apparatus according to claim 12, wherein the parsing policy configuration instruction further carries parsing result identification information;
the message analysis strategy is also used for establishing a corresponding relation between the analysis result identification information and the field content corresponding to the acquired field identification information.
15. The apparatus according to claim 12, wherein the policy configuration parsing instruction further carries a policy execution condition;
the message analysis policy is specifically configured to obtain field content corresponding to the field identification information from the updated version of the target message after the policy execution condition is satisfied.
16. The apparatus according to claim 11, wherein the policy configuration instruction obtaining module is specifically configured to:
acquiring a generation strategy configuration instruction aiming at a message change field; the generation policy configuration instruction carries field identification information of the message change field in the updated version of the target message and data source information;
the message processing policy generation module is specifically configured to:
responding to the strategy configuration generating instruction, and generating a message generating strategy aiming at the message change field; and the message generation strategy is used for generating field content corresponding to the field identification information in the updated version of the target message according to the target data at the data source information.
17. The apparatus according to claim 16, wherein the policy configuration generation instruction further carries a data type of the message change field; the data types include: a JSON string or JSON object;
the message processing strategy generation module comprises:
a third policy generation module, configured to generate a packet generation policy for determining a JSON name/value pair corresponding to a packet change field if a data type of the packet change field carried in the generated policy configuration instruction is a JSON character string, where a JSON name in the JSON name/value pair is field identification information of the packet change field, and a JSON value in the JSON name/value pair is target data at the data source information;
and a fourth policy generation module, configured to generate a packet generation policy for determining a JSON name/value pair corresponding to the packet change field if the data type of the packet change field carried in the generated policy configuration instruction is a JSON object, where a JSON name in the JSON name/value pair is field identification information of the packet change field, a JSON value in the JSON name/value pair is a target JSON object, and the target JSON object is a JSON name/value pair generated based on target data in the data source information by using another packet generation policy.
18. The apparatus according to claim 16, wherein the policy configuration generating instruction further carries a policy executing condition;
the message generation policy is specifically configured to generate, according to the target data at the data source information, field content corresponding to the field identification information in the updated version of the target message after the policy execution condition is satisfied.
19. The apparatus according to claim 18, wherein the policy configuration generation instruction further carries a field content feedback condition;
and the message generation strategy is also used for adding the generated field content corresponding to the field identification information into the updated version of the target message after meeting the field content feedback condition.
20. A message processing apparatus comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
enabling the message processing application to acquire a processing strategy configuration instruction aiming at a message change field; the message change field is a message field which is changed relative to the target message of the version to be updated in the target message of the updated version;
responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing strategy is used for analyzing the message change field in the updated version of the target message, or the message processing strategy is used for generating the message change field in the updated version of the target message.
CN202210049397.8A 2022-01-17 2022-01-17 Message processing method, device and equipment Active CN114449063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210049397.8A CN114449063B (en) 2022-01-17 2022-01-17 Message processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210049397.8A CN114449063B (en) 2022-01-17 2022-01-17 Message processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN114449063A true CN114449063A (en) 2022-05-06
CN114449063B CN114449063B (en) 2024-03-26

Family

ID=81367605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210049397.8A Active CN114449063B (en) 2022-01-17 2022-01-17 Message processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN114449063B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086442A (en) * 2022-08-15 2022-09-20 恒生电子股份有限公司 Data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108353022A (en) * 2015-11-05 2018-07-31 华为技术有限公司 A kind of processing method of data message, apparatus and system
WO2020186786A1 (en) * 2019-03-20 2020-09-24 平安科技(深圳)有限公司 File processing method and apparatus, computer device and storage medium
CN111967269A (en) * 2020-08-13 2020-11-20 支付宝(杭州)信息技术有限公司 Business risk identification method and device and electronic equipment
CN112003769A (en) * 2020-09-11 2020-11-27 支付宝(杭州)信息技术有限公司 Message processing method, device and equipment
CN113852551A (en) * 2021-09-13 2021-12-28 新华三大数据技术有限公司 Message processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108353022A (en) * 2015-11-05 2018-07-31 华为技术有限公司 A kind of processing method of data message, apparatus and system
WO2020186786A1 (en) * 2019-03-20 2020-09-24 平安科技(深圳)有限公司 File processing method and apparatus, computer device and storage medium
CN111967269A (en) * 2020-08-13 2020-11-20 支付宝(杭州)信息技术有限公司 Business risk identification method and device and electronic equipment
CN112003769A (en) * 2020-09-11 2020-11-27 支付宝(杭州)信息技术有限公司 Message processing method, device and equipment
CN113852551A (en) * 2021-09-13 2021-12-28 新华三大数据技术有限公司 Message processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086442A (en) * 2022-08-15 2022-09-20 恒生电子股份有限公司 Data processing method and device
CN115086442B (en) * 2022-08-15 2022-12-27 恒生电子股份有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN114449063B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN107644286B (en) Workflow processing method and device
CN107038042B (en) Service execution method and device
CN110244942B (en) Page generation method, device and system
CN111427561A (en) Service code generation method and device, computer equipment and storage medium
CN107943465B (en) Method and device for generating HTML (Hypertext markup language) form
CN110941428A (en) Website creation method and device
WO2019039255A1 (en) Terminal device, ui extension method, and ui extension program
CN108459846B (en) Software cloud customization method and platform
CN114449063A (en) Message processing method, device and equipment
CN108153745B (en) Application data calling method and application development system
CN115469849B (en) Service processing system, method, electronic equipment and storage medium
CN112084446A (en) Webpage editing method, editor, electronic equipment and readable storage medium
CN113918198B (en) Model-code synchronization method
US10061686B2 (en) Method, electronic apparatus, system, and storage medium for automated testing of application user interface
CN112860247B (en) Custom generation method, device, equipment and medium of model component
US8615744B2 (en) Methods and system for managing assets in programming code translation
CN114816361A (en) Method, device, equipment, medium and program product for generating splicing project
CN113901025A (en) Database management method, device, equipment and storage medium
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN112597023A (en) Case management method and device based on guide picture, computer equipment and storage medium
CN110704742A (en) Feature extraction method and device
KR102385381B1 (en) Method and system for generating script forcamera effect
CN114610204B (en) Auxiliary device and method for data processing, storage medium and electronic equipment
CN117234512B (en) Method, system, electronic equipment and storage medium for rapidly developing business
CN115587888A (en) Method, device, equipment and medium for generating intelligent contract

Legal Events

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