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

Message processing method, device and equipment Download PDF

Info

Publication number
CN114449063B
CN114449063B CN202210049397.8A CN202210049397A CN114449063B CN 114449063 B CN114449063 B CN 114449063B CN 202210049397 A CN202210049397 A CN 202210049397A CN 114449063 B CN114449063 B CN 114449063B
Authority
CN
China
Prior art keywords
message
field
strategy
policy
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210049397.8A
Other languages
Chinese (zh)
Other versions
CN114449063A (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

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the specification discloses a message processing method, a message processing device and message processing equipment. The scheme may include: after a user determines a message change field of a target message of an updated version, which changes relative to a target message of a version to be updated, the message processing application can generate a message processing policy for analyzing or generating the message change field by sending a processing policy configuration instruction for the message change field to the message processing application, so that the updated version of the target message can be processed based on the generated message processing policy.

Description

Message processing method, device and equipment
Technical Field
The present disclosure relates to the field of message processing technologies, and in particular, to a method, an apparatus, and a device for processing a message.
Background
As internet traffic patterns become popular, the process of data interaction between individual traffic participants is also becoming more frequent. At present, target messages for data interaction can be preset among all service participants, and message processing application programs capable of processing the target messages are respectively developed so as to improve service coordination and data sharing level. However, since the iteration speed of the internet service is high, the target message transmitted between the service participants is often changed, so that each service participant is required to frequently develop a new message processing application program to process the changed message.
Based on this, how to improve the convenience of processing 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 problems, the embodiments of the present specification are implemented as follows:
the message processing method provided by the embodiment of the specification comprises the following steps:
the message processing application obtains a processing strategy configuration instruction aiming at a message change field; the message change field is a message field which changes in the updated version of the target message relative to the target message of the version to be updated;
responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy is used for generating the message change field in the updated version of the target message.
The message processing device provided in the embodiment of the present specification includes:
the strategy configuration instruction acquisition module is used for acquiring a processing strategy configuration instruction aiming at the message change field by the message processing application; the message change field is a message field which changes in the updated version of the target message relative to the target message of the version to be updated;
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 policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy is used for generating the message change field in the updated version of the target message.
The message processing device provided in the embodiment of the present specification includes:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
enabling a 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 changes in the updated version of the target message relative to the target message of the version to be updated;
responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy is used for generating the message change field in the updated version of the target message.
At least one embodiment provided in this specification enables the following benefits:
after a user determines a message change field of a target message of an updated version, which changes relative to a target message of a version to be updated, the message processing application can generate a message processing strategy for analyzing or generating the message change field by sending a processing strategy configuration instruction for the message change field to the message processing application. According to the scheme, the message processing strategy is conveniently set at the message processing application part so as to process the updated version target message, and as a set of message processing application program is not required to be manually redeveloped, not only can the manpower be saved, but also the efficiency is higher, so that the requirement of each application scene on conveniently and efficiently completing the iteration of the message version can be met.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a message processing method in an embodiment of the present disclosure;
fig. 2 is a flow chart of a message processing method according to an embodiment of the present disclosure;
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 diagram of a lane flow 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
For the purposes of making the objects, technical solutions and advantages of one or more embodiments of the present specification more clear, the technical solutions of one or more embodiments of the present specification will be clearly and completely described below in connection with specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without undue burden, are intended to be within the scope of one or more embodiments herein.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
In the prior art, the requirement of utilizing messages to conduct data interaction exists in various application scenes. For example, for money laundering scenarios, the payment mechanism needs to provide a message to the regulatory body indicating whether the user is at risk of money laundering. Or, for the user portrait scene, the service platform needs to provide the message carrying the user portrait information to the user management platform. Or, for the credit scenario, the credit service provider needs to provide a message containing information of borrower information, credit service applied by the borrower, and the like to the fund party; the fund party needs to perform risk identification based on the message containing borrower information, credit service applied by the borrower and other information so as 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 services to the borrower based on the credit service approval results in the message.
Since messages for data interaction between the various parties are also often changed during the internet service update iterations. This requires each participant to manually develop a new message handling application to parse or generate the updated version of the message. Currently, the participants can develop a software development kit (Software Development Kit, SDK) for processing the message change content according to the message change content, and adaptively modify the program code of the message processing application program so as to access the newly developed SDK into the message processing application program, thereby enabling the modified message processing application program to process the updated version of the message.
In this scheme, when processing a changed message, not only a new SDK needs to be developed, but also an application program of a message processing application 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 drawbacks of the prior art, the present solution provides the following embodiments:
fig. 1 is an application scenario schematic diagram of a message processing method in an embodiment of the present disclosure.
As shown in fig. 1, a user may utilize a device 101 to communicate with a server 102 of a service provider to request acquisition of services provided by the service provider. The service provider's server 102 may then interact with the other participants ' devices 103 using messages to process the user's request to obtain service.
Since the content of the messages transmitted between the service provider and the other parties may also 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 via the server 102 of the service provider. The other party's device 103 typically also has a target message of the 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 updated version of the target message 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 application carried at the devices 103 of the other participants, so that the message processing application may 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 applications, the target message may be a message that the service provider needs to send to other parties, and at this time, the message processing policy may be used to parse the message change field in the updated version of the target message. In addition, the target message may be a message that needs to be sent to the service provider by another party, and at this time, the message processing policy may be used to generate the message change field in the updated version of the target message.
In the scheme in fig. 1, an operator can input an instruction at a message processing application to conveniently set a message processing policy, so as to process an updated version of a target message; because the programming is not needed manually to redevelop the target processing application or the SDK, not only can the manpower be saved, but also the efficiency is higher, thereby meeting the requirement of each application scene on conveniently and efficiently completing the iteration of the message version.
Next, a specific description will be given of a message processing method provided for an embodiment of the specification with reference to the accompanying drawings:
the message processing method provided in the embodiment of the present disclosure may be applied to various scenarios in which a changed message needs to be processed, so that a specific application scenario of the message processing method is not specifically limited. For easy understanding, the message processing method provided in the present illustrative embodiment will be explained in the context of message interaction scenarios involved in the credit field.
Fig. 2 is a flow chart of a message processing method according to an embodiment of the present disclosure. From a program perspective, the execution body of the flow may be a device on which the message processing application is installed, or an application program of the message processing application. As shown in fig. 2, the process may include the steps of:
step 202: the message processing application obtains a processing strategy configuration instruction aiming at a message change field; the message change field is a message field which changes in the updated version of the target message relative to the target message of the version to be updated.
In the embodiment of the present description, it is assumed that the credit service provided by the credit service provider to the user is changed, for example, the kind of information to be provided by the borrower is increased, or the loan mode available for the borrower to select is increased. At this point, the messages that the credit service provider needs to provide to the funding party and/or the messages that the funding party needs to feed back to the credit service provider need to be changed. The credit service provider may make an updated version of the target message based on the actual demand and generate the updated version of the target message to the fund party. The fund party can compare the updated version of the target message based on the target message of the version to be updated, so as to determine the message change field of the updated version of the target message.
In the embodiment of the present disclosure, the updated version of the target message may be a JSON (JavaScript Object Notation, JS object numbered musical notation) file. Because the writing format of the JSON data is in the form of JSON name/value pair, wherein the JSON name can be a field name, and the JSON value corresponding to the JSON name can be a field content, 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, assume that the JSON file of the target message of the updated version is increased by "{" age ":30}" as compared with the JSON file of the target message of the version to be updated, and then "{" age ":30}" is the message change field.
In practical application, the updated version of the target message may be an extensible markup language (Extensible Markup Language, XML) file, but for convenience in processing, the XML file of the updated version of the target message may be converted into a JSON file, and then the message change field may be determined based on the JSON file of the updated version of the target message.
In the embodiment of the present disclosure, 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 a preset control in an application interface of the message processing application according to the actual condition of each message change field so as 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 policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy is used for generating the message change field in the updated version of the target message.
In the embodiment of the present disclosure, when the target message is a message that the credit service provider needs to feed back to the fund party, the fund party needs to parse the target message to obtain information carried by the target message. Therefore, the processing policy configuration instruction sent by the fund direction message processing application can instruct to generate a message processing policy for analyzing the message change field, so that the updated version of the target message can 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 through 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 in 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 an updated version of a target message; because the programming is not needed manually to redevelop the target processing application or the SDK, not only can the manpower be saved, but also the efficiency is higher, thereby meeting the requirement of each application scene on conveniently and efficiently completing the iteration of the message version.
Based on the method in fig. 2, the examples of the present specification also provide some specific embodiments of the method, as described below.
The target message can generally comprise two major categories, one category is a message which needs to analyze the content of the message to determine information transmitted by other people; the other is a message that requires the generation of message content to communicate information to others. Because the configuration process of the message processing strategy for different types of messages has large difference, the two messages are introduced separately.
For the first type of message, namely when the target message is the message needing to be analyzed, a message analysis strategy for extracting the message content can be configured.
Specifically, step 202: the obtaining a processing policy configuration instruction for the message change field may include:
Acquiring an analysis strategy configuration instruction aiming at a message change field; and the analysis strategy configuration instruction carries field identification information of the message change field in the updated version of the target message.
Correspondingly, step 204: responding to the processing strategy configuration instruction, generating a message processing strategy for processing the message change field can specifically comprise:
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.
In this embodiment of the present disclosure, a message change field in an updated version of a target message 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 a 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 the above, when configuring the message parsing rule, an operator can input the field identification information of the message change field in the application interface of the message processing application, so that the message processing application can acquire the processing policy configuration instruction carrying the field identification information of the message change field, and further, the message processing application can configure a message parsing policy for acquiring the 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 in conjunction with what is 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 message is a JSON file, and the JSON file of the updated version of the target message is added with a JSON name/value pair of "{" age ":30}" relative to the JSON file of the target message to be updated, where at this time, the field identification information of the message change field may be "age".
Based on this, the operator can click on an edit control (not shown in fig. 3) for the message parsing policy in the application interface of the message processing application to enter an edit page 31 for the message parsing policy. The operator may also operate the message source control 301 to select the target message, thereby starting to set 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 on the control 303 indicating submission to allow the message processing application to obtain a processing policy configuration instruction carrying field identification information for the message change field.
In the embodiment of the present disclosure, according to actual needs, 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 an operator may also set an analysis manner for field contents of the message change field.
Based on this, the parsing scheme information may also be carried in the parsing scheme configuration instruction obtained in step 202. The message parsing method information may include: information indicating extraction of the field value, or information indicating execution of a specified processing operation on the field value.
Correspondingly, in step 204, in response to the parsing policy configuration instruction, a message parsing policy for the message change field is generated, which may specifically include:
And if the analysis strategy configuration instruction carries information for indicating extraction of the field value, generating a message analysis strategy for extracting the field value corresponding to the field identification information. Or,
if the analysis policy configuration instruction carries information for indicating to execute the specified processing operation on the field value, generating a message analysis policy for determining an operation processing result, wherein the operation processing result is a processing result obtained by executing the specified processing operation on the field value corresponding to the field identification information.
In this embodiment of the present disclosure, when configuring a message parsing rule, an operator may select, in an application interface of a message processing application, message parsing mode information for the message change field, in addition to field identification information of the message change field, so that the parsing policy configuration instruction may carry the message parsing mode information selected by the 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, there are various types of specified processing operations that can be used in extracting field contents, for example, a comparison size operation, a conversion unit operation, a four-rule operation execution operation, and the like. The operator can pre-make scripts for executing the specified processing operation according to the actual requirement, and the message processing application can call each script for executing the specified processing operation so as to realize the message analysis strategy based on each script. Based on this, when the message parsing scheme information is information for indicating that a specified processing operation is performed on the field value, the message parsing scheme information may include information of a script specified by an operator in order to implement a message parsing policy based on the script.
For ease of understanding, the configuration process of the message parsing policy is illustrated in conjunction with the description of fig. 3. As shown in fig. 3, it is assumed that the application interface of the message processing application may have a control for setting a message parsing manner, for example, a control 304 for indicating extraction of a field value and a control 305 for indicating execution of a specified processing operation on the field value. When the operator needs to configure the message parsing policy for extracting the field value of the message change field (e.g., { "age":30 }), the control 304 for indicating the extracting field value may be selected, so that the parsing policy configuration instruction carries information for indicating the extracting field value. And further, 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 message parsing policy for performing the specified processing operation on the field value of the message change field, the control 305 may select the specified processing operation (e.g. compare whether the field value is greater than 18), so that the parsing policy configuration instruction carries information for indicating that the specified processing operation is performed on the field value. And further, the message analysis strategy generated based on the analysis strategy configuration instruction can be used for comparing whether the field value of '30' is larger than 18, and the comparison result is used as the analysis result of the message change field.
In practice, in processing a borrower's credit service application, the funding party may need to use constant information that is not partially recorded in the updated version of the target message, in addition to extracting information from the updated version of the target message sent by the credit service provider. Based on the above, when the message analysis policy for the updated version of the target message is configured, a policy for acquiring constant information in the target message which is not recorded in the updated version of the target message may be further configured, so that after the message analysis policy for the updated version of the target message is executed, the constant information may be included in the message analysis result, thereby facilitating the fund party to process the credit service application of the borrower based on the message analysis result.
Specifically, when the operator sets a message parsing policy for constant information, the operator may select a control 306 for instructing to acquire constant information and input a specified constant value by manipulating a 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 strategy for the constant information is executed.
In the embodiment of the present disclosure, since the field identification information set for the same information in different messages may not be the same, for example, for the information of age, some of the field identification information set in the messages is "age", and some of the field identification information set in the messages is "ss-age". Meanwhile, the fund party also has customized identification information for the information of age, such as 'borrower age'. Therefore, the fund party can set the analysis result identification information aiming at the analysis result of the message change field, and the analysis result identification information is usually the identification information customized by the fund party, so that the fund party can analyze and utilize the message analysis result.
Based on this, the analysis result identification information may also be carried in the analysis policy configuration instruction obtained in step 202. The parsing result identification information may specifically contain attribute names and/or attribute codes. The attribute name may be text information that is convenient for the user to understand, and the attribute code may be a random character string.
In practical applications, the parsing result identification information may also include an attribute type, where the attribute type may include a common attribute or a unique attribute. For example, in the credit field, the content of a message such as age and income of a borrower may belong to a common attribute, and the content of a message such as an application form number generated when the borrower applies for a credit service may belong to a unique attribute.
Correspondingly, the message parsing policy generated in step 204 may also be used to establish a correspondence between the parsing result identification information and the obtained field content corresponding to the field identification information.
In the embodiment of the present disclosure, in the credit field, when the target message is a message of a borrower for requesting to obtain a specified credit service, after the target message is parsed by the fund party to obtain a message parsing result, the fund party generally needs to use the wind control system to analyze the message parsing result to obtain a credit approval result output by the wind control system. That is, the message parsing result generated by running the message parsing policy may be required as input information required for the wind control system.
Since each input information required to be used by the wind control system generally has specified identification information (such as attribute name, attribute code, attribute type, etc.) customized by the funding party, the specified identification information of the input information required to be used by the wind control system can be used as analysis result identification information. Subsequently, after the message analysis strategy establishes the corresponding relation between the analysis result identification information and the field content extracted from the target message, the corresponding relation between the input information required to be used by the wind control system and the message analysis result is established, so that the extraction of the input information required to be used by the wind control system can be facilitated, and the operation of the wind control system is facilitated.
For ease of understanding, the configuration process of the message parsing policy is illustrated in conjunction with the description of 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, if the input information required to be used by the wind-control system includes the information of the age of the borrower, and the designated identification information set by the fund policy for the input information includes: the attribute name is "borrower age", the attribute code is 123abc, and the attribute type is a common attribute.
After the operator inputs the field identification information of the message change field of "age" through the control 302, the operator may also operate the control 307 corresponding to the control 302 to 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: common attribute), so that the analysis result identification information may also be carried in the analysis policy configuration instruction. Assuming that an operator selects a message analysis mode for extracting a field value, a message analysis strategy generated based on the analysis strategy configuration instruction analyzes a target message of an updated version containing the information of { "age":30}, and the obtained message analysis result can contain the 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 specification, the 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 in the use of the message analysis result and the analysis process is facilitated.
In practical application, since the input information required by the wind control system at the fund party also often changes, for example, newly adding input information, deleting existing input information, modifying the designated identification information of the existing input information, and the like, even if the version of the target message is not changed, the message analysis strategy of the target message may need to be reconfigured so as to establish the corresponding relationship between the input information required to be used by the wind control system at present and the message analysis result, thereby facilitating the operation of the wind control system. Based on the information, the fund party can also establish, delete and modify the message analysis strategy according to the change condition of the input information of the wind control system.
In order to improve the convenience of management for the message parsing policy, controls (not shown in fig. 3) for performing new addition, deletion and modification for the message parsing policy may be further set in an application interface of the message processing application. Specifically, if the fund party newly adds some input information required to be used by the wind control system, after determining the corresponding relation between the input information and the message analysis result of the target message, the fund party can use the newly added control to generate a message analysis strategy for establishing the corresponding relation between the appointed identification information (i.e. analysis result identification information) of the input information and the message analysis result. If the fund party deletes certain input information needed to be used by the wind control system, a deletion control can be utilized to delete the message analysis strategy of which the analysis result identification information is the appointed identification information of the input information. If the fund party modifies the appointed identification information of certain input information required to be used by the wind control system, a modification control can be utilized to modify the analysis result identification information in the message analysis strategy from the historical appointed identification information of the input information to the current appointed identification information.
In the embodiment of the present disclosure, because the execution conditions of different message parsing strategies may not be completely the same, an operator may set the execution conditions of each message parsing strategy according to the actual needs, so that the message parsing result generated based on the message parsing strategy meets the actual needs.
Based on this, the analysis policy configuration instruction obtained in step 202 may further carry a policy execution condition.
Correspondingly, the message parsing policy generated in step 204 may be specifically used to obtain, after the policy execution condition is satisfied, the field content corresponding to the field identification information from the updated version of the target message.
In the embodiment of the present disclosure, the policy execution conditions may be set according to the actual requirements, which is not specifically limited. For example, in a credit scenario, the credit approval process may involve multiple stages, such as an initial review stage, a review stage, and an approval result output stage, and since the message content required for each approval stage may not be identical, the message parsing strategies required for different approval stages are not identical. Based on the above, the approval stage can be used as a policy execution condition of the message analysis policy.
Or when field identification information set for the same message content in a plurality of messages to be analyzed is the same, the message analysis strategies required for analyzing the message content in different messages can be the same, based on the same, the message to be analyzed can be used as the strategy execution condition of the message analysis strategy, or the credit service to which the message to be analyzed belongs can be used as the strategy execution condition of the message analysis strategy.
For ease of understanding, the configuration process of the message parsing policy is illustrated in conjunction with the description of fig. 3. As shown in fig. 3, an operator may control 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 specification, by setting the policy execution conditions of the message analysis policy, the message analysis result generated based on the message analysis policy can meet the actual requirement, the message analysis policy can be multiplexed, and the setting operation of the message analysis policy is reduced, so that the method is convenient and quick.
In the embodiment of the present disclosure, in order to facilitate the management of the message parsing policy in the following, 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, which is not limited specifically.
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, so as to improve the configuration efficiency of the message parsing policy, and multiple groups of setting controls for the message parsing policy may be displayed in an application interface of a message processing application, as 3 groups of setting controls for the message parsing policy are shown in fig. 3, so that the message parsing policy for 3 message change fields may be set at one time, which is convenient and fast.
In the embodiment of the present disclosure, for the second type of message, that is, when the target message is a message that needs to be generated to be provided to another person, a message generation policy for generating the message content may be configured.
Specifically, step 202: the obtaining a processing policy configuration instruction for the message change field may include:
acquiring a generation strategy configuration instruction aiming at a message change field; and the generation strategy configuration instruction carries field identification information of the message change field in the updated version target message and data source information.
Correspondingly, step 204: responding to the processing strategy configuration instruction, generating a message processing strategy for processing the message change field can specifically comprise:
Responding to the generation strategy configuration instruction, and generating a message generation 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.
In this embodiment of the present disclosure, when the target message is a message that needs to be generated by the fund party to be fed back to the credit service provider, the credit service provider may send an updated version of the target message to the fund party, where field identification information in the updated version of the target message conforms to a field identification rule of the credit service provider, and where message contents in the updated version of the target message conform to a data requirement of the credit service provider.
Based on the above, after determining the message change field in the updated version of the target message, the fund party can acquire the field identification information carried by the updated version of the target message and aiming at the message change field from the updated version of the target message, so as to be used as the field identification information set for the message change field in the message generation strategy. The fund party can also determine the source of the information needed 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 be used 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 message is a JSON file, and the JSON file of the updated version of the target message is added with a JSON name/value pair of "{" isarges ": YES/NO }" relative to the JSON file of the target message to be updated, where "isarges" may be used as field identification information of the message change field. If the isarge field is used for indicating whether the loan service applied by the borrower is approved or not, the air control system at the fund party can output an approval result indicating whether the loan service applied by the borrower is approved or not, so that the approval result output by the air 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 in connection with what is 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.
It is assumed 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 an edit page 41 for the message generation policy. If the field identification information of the message change field corresponding to the target message is "isarge", the operator may operate on the control 401 for setting the field identification information to input "isarge". The operator may also input data source information (e.g., identification information of the approval results output by the wind control system described above) by operating the control 402 for setting the data source information. When an operator triggers a submit control (not shown in fig. 4), the message processing application can acquire the field identification information carrying the message change field and the corresponding processing policy configuration instruction of the data source information, and then can generate a corresponding message generation policy based on the processing policy configuration instruction.
In this embodiment of the present disclosure, the operator may further cause the generating policy configuration instruction to carry a data type (including a JSON string or a JSON object) of the message change field, so that the message processing application configures the message generating policy for the message change field based on the data type of the message change field.
Correspondingly, in step 204, generating a message generating policy for the message change field in response to the generating policy configuration instruction may specifically include:
and if the data type of the message change field carried in the generation 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. Or,
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 a JSON name/value pair generated by utilizing other message generation strategies based on target data at the data source information.
In the embodiment of the specification, since the data types in the JSON file may include the JSON string and the JSON object, the JSON value in the JSON name/value pair of the JSON string type may be a group, a number, a string or three literal values (false, null, true); and the JSON value in the JSON name/value pair of the JSON object type is an object, wherein the object may refer to a JSON name/value pair of the JSON string type. For example, for JSON data of { "address": { "city": beijin }, where { "city": beijin } belongs to JSON name/value pair of JSON string type, and { "address": … } belongs to JSON name/value pair of JSON object type.
In practical application, when the data type of the message change field is JSON string, the operator can directly input the data source information corresponding to the message change field. When the data type of the message change field is JSON object type, because the data source information corresponding to the message change field is the execution result of other message generation strategies, the operator can designate the execution result of the other message generation strategies as the data source information corresponding to the message change field after establishing the other message generation strategies.
For ease of understanding, the description is illustrated in connection with what is shown in fig. 4. Assuming that the message change field is { "city": beijin }, 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 input the data type of the message change field into the control 403 as JSON string type.
For the message change field of { "address": { "city": beijin }, the operator needs to generate two message generation strategies. When setting the message generation strategy aiming at { "nature": beijin }, the field identification information and the data source information of the message change field can be input through the control 401 and the control 402, and the data type of the message change field can be input through the control 403 as a JSON string type. When setting the message generation strategy aiming at { "address": … }, besides the field identification information of the message change field can be input through the control 401, the data type of the message change field can be JSON object type through inputting the message change field into the control 403, and the execution result of the message generation strategy aiming at { "city": beijin } is used as the data source information of the message generation strategy aiming at { "address": … }.
In the embodiment of the present disclosure, because the execution conditions of different message generating policies may not be completely the same, an operator may also set the policy execution conditions of each message generating policy according to the actual requirement, so that the target message generated based on the message generating policy meets the actual requirement.
Based on this, the generated policy configuration instruction obtained in step 202 may further carry a policy execution condition.
Correspondingly, the message generating policy generated in step 204 may specifically be used to generate, according to the target data at the data source information, the 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 disclosure, the policy execution conditions may be set according to the actual requirements, which is not specifically limited. For example, in a credit scenario, the credit approval process may involve multiple stages, such as an initial review stage, a review stage, and an approval result output stage, and since the message content of the feedback required in each approval stage may not be identical, the message generation policies required for different approval stages are not identical. Based on this, the approval stage can be used as a policy execution condition of the message generation policy.
Or when the plurality of messages which are required to be fed back for a plurality of credit services all contain the message content with the same field identification information and data source information, the message generation strategy for generating the message content can be multiplexed, so that the specific credit service can be used as the strategy execution condition of the message generation strategy.
For ease of understanding, the description is illustrated in connection with what is shown in fig. 4. Assuming that the policy execution conditions of the plurality of message generation policies are the same, based on this, an operator can configure the plurality of message generation policies with the same policy execution conditions in the editing page 41 for the message generation policies, and input the policy execution conditions through the control 404, so that the policy execution condition information can be carried in the policy configuration instruction, which is convenient and fast.
In the embodiment of the specification, by setting the policy execution condition of the message generation policy, not only the target message generated based on the message generation policy can 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 the method is convenient and quick.
In this embodiment of the present disclosure, an operator may set, according to an actual requirement, a feedback condition of a message content generated by each message generating policy, so that a target message generated based on the message generating policy meets the actual requirement.
Based on this, the generated policy configuration instruction obtained in step 202 may further carry a field content feedback condition.
Correspondingly, the message generating 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 feedback condition of the field content is satisfied.
In the embodiment of the present disclosure, a corresponding field content feedback condition may be set for each message generating policy, where the field content feedback condition may be set according to an actual requirement, and this is not limited specifically. For example, in a credit scenario, some of the message content may need to be fed back to the credit service provider after the credit application approval passes, so whether the credit application approval passes or not may be fed back as a field content feedback condition. While some of the message content may always need to be fed back to the credit service provider, it may also be returned all the time as field content feedback conditions, etc.
For ease of understanding, the description is illustrated in connection 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 can also input the field content feedback condition through the control 405 to generate a message generation strategy based on the content, which is convenient and fast.
In the embodiment of the present disclosure, in order to facilitate the subsequent management of the 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, which is not limited specifically.
In practical application, when there are multiple message change fields, it may be necessary to configure a message generating policy for the multiple message change fields, so as to improve the configuration efficiency of the message generating policy, and multiple sets of setting controls for the message generating policy may be displayed in an application interface of a message processing application, as 3 sets of setting controls for the message generating policy are shown in fig. 4, so that the message generating policy for 3 message change fields may be set at one time, which is convenient and fast.
In practical application, an operator may need to delete and modify the 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 be further 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 flow chart of a lane 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 an execution body of a credit service provider, a funding party, a message processing application, or the like.
In the message change field determining stage, the credit service provider may generate and send an updated version of the target message to the fund party, and the fund party may receive the updated version of the target message and obtain a locally stored target message to be updated, so as to determine the message change field according to the updated version of the target message and the target message to be updated.
In the generation stage of the message processing strategy, if the target message is the message to be analyzed, the fund party can set field identification information, message analysis mode information, analysis result identification information and strategy execution conditions aiming at the message change field at the message processing application. The message processing application can acquire the field identification information, the message analysis mode information, the analysis result identification information and the analysis strategy configuration instruction of the strategy execution condition carried by the message change field, and respond to the analysis strategy configuration instruction to generate the message analysis strategy aiming at the message change field, wherein the message analysis strategy can be used for acquiring the field content corresponding to the field identification information from the updated version target message by utilizing the message analysis mode indicated by the message analysis mode information after meeting the strategy execution condition, and establishing the 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 type, data source information, analysis result identification information, strategy execution conditions and field content feedback conditions aiming at the message change field at the message processing application. The message processing application can acquire the analysis strategy configuration instruction carrying the field identification information, the data type, the data source information, the analysis result identification information, the strategy execution condition and the field content feedback condition of the message change field, and respond to the generation strategy configuration instruction to generate a message generation strategy aiming at the message change field, wherein the message generation strategy can be used for generating the field content corresponding to the field identification information according to the target data at the data type and the data source information after meeting the strategy execution condition, and adding the generated field content corresponding to the field identification information into the updated version target message after meeting the field content feedback condition.
Based on the above, when the credit service provider and the fund party perform data interaction by using the updated version of the target message, the fund party can process the updated version of the target message by using the generated message analysis strategy and the message generation strategy, and because the target processing application or the SDK is not required to be manually programmed to be redeveloped, the labor can be saved, the efficiency is higher, and the requirements of each application scene on conveniently and efficiently completing the iteration of the message version can be met.
Based on the same thought, the embodiment of the specification also provides a device corresponding to the 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 a processing policy configuration instruction for a message change field by a message processing application; the message change field is a message field which changes in the updated version of the target message relative to the target message of the version to be updated. The updated version of the target message may be a JSON file; one of the message change fields may correspond to one of the JSON name/value pairs in the JSON file.
A message processing policy generation module 604, configured to generate a message processing policy for processing the message change field in response to the processing policy configuration instruction; the message processing policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy is used for generating the message change field in the updated version of the target message.
The present description example also provides some specific embodiments of the device based on the device of fig. 6, which is described below.
Optionally, the policy configuration instruction obtaining module 602 may specifically be configured to:
acquiring an analysis strategy configuration instruction aiming at a message change field; and 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 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 extraction of the field value, or information indicating execution of a specified processing operation on the field value.
The message processing policy generation module 604 may include:
the first policy generation module is configured to generate a message parsing policy for extracting a field value corresponding to the field identification information if the parsing policy configuration instruction carries information for indicating to extract the field value.
And the second policy generation module is used for generating a message analysis policy for determining an operation processing result if the analysis policy configuration instruction carries information for indicating to execute the specified processing operation on the field value, wherein the operation processing result is a processing result obtained by executing 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 acquired field content corresponding to the field identification information.
Optionally, the analysis policy configuration instruction further carries a policy execution condition.
The message analysis strategy is specifically configured to obtain, after the strategy execution condition is satisfied, field content corresponding to the field identification information from the updated version of the target message.
Optionally, the policy configuration instruction obtaining module 602 may specifically be configured to:
acquiring a generation strategy configuration instruction aiming at a message change field; and the generation strategy configuration instruction carries field identification information of the message change field in the updated version target message and data source information.
The message processing policy generation module 604 may be specifically configured to:
responding to the generation strategy configuration instruction, and generating a message generation 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.
Optionally, the generating policy configuration instruction further carries a data type of the message change field; the data types include: JSON strings or JSON objects.
The message processing policy generation module 604 may include:
and a third policy generating module, configured to generate a message generating policy for determining a JSON name/value pair corresponding to the message change field if the data type of the message change field carried in the generating policy configuration instruction is a JSON string, where 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.
And a fourth policy generation module, configured to generate a message generation policy for determining a JSON name/value pair corresponding to the message change field if the data type of the message change field carried in the generation policy configuration instruction is a JSON object, where 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 a JSON name/value pair generated by using other message generation policies based on target data at the data source information.
Optionally, the generating policy configuration instruction further carries a policy execution condition.
The message generation strategy 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 strategy execution condition is satisfied.
Optionally, the generating 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 target message after the field content feedback condition is met.
Based on the same thought, the embodiment of the specification also provides equipment corresponding to the 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; the method comprises the steps of,
a memory 730 communicatively coupled to the at least one processor; wherein,
the memory 730 stores instructions 720 executable by the at least one processor 710, the instructions being executable by the at least one processor 710 to enable the at least one processor 710 to:
Enabling a 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 changes in the updated version of the target message relative to the target message of the version to be updated.
Responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy is used for generating the message change field in the updated version of the target message.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus shown in fig. 7, the description is relatively simple, as it is substantially similar to the method embodiment, with reference to the partial description of the method embodiment.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. The designer programs itself to "integrate" a digital system onto a single PLD without requiring the chip manufacturer to design and fabricate application specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of 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, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, 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 functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
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 storage media for a computer 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 Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that 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 foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (20)

1. A message processing method comprises the following steps:
the message processing application obtains a processing strategy configuration instruction aiming at a message change field; the message change field is a message field which changes in the updated version of the target message relative to the target message of the version to be updated;
responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy is used for generating the message change field in the updated version of the target message.
2. The method of claim 1, wherein the obtaining the processing policy configuration instruction 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 responding to the processing strategy configuration instruction generates a message processing strategy for processing the message change field, and specifically comprises the following steps:
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.
3. The method of claim 2, wherein the parsing policy configuration instruction further carries message parsing mode information, and the message parsing mode information includes: information for indicating extraction of the field value or information for indicating execution of a specified processing operation on the field value;
the responding to the analysis policy configuration instruction generates a message analysis policy for the message change field, which specifically comprises the following steps:
if the analysis strategy configuration instruction carries information for indicating extraction of field values, generating a message analysis strategy for extracting the field values corresponding to the field identification information; or,
if the analysis policy configuration instruction carries information for indicating to execute the specified processing operation on the field value, generating a message analysis policy for determining an operation processing result, wherein the operation processing result is a processing result obtained by executing the specified processing operation on the field value corresponding to the field identification information.
4. The method of claim 2, wherein 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 acquired field content corresponding to the field identification information.
5. The method of claim 2, wherein the parsing policy configuration instruction further carries a policy execution condition;
the message analysis strategy is specifically configured to obtain, after the strategy execution condition is satisfied, field content corresponding to the field identification information from the updated version of the target message.
6. The method of claim 1, wherein the obtaining 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 strategy configuration instruction carries field identification information of the message change field in the updated version of the target message and data source information;
the responding to the processing strategy configuration instruction generates a message processing strategy for processing the message change field, and specifically comprises the following steps:
responding to the generation strategy configuration instruction, and generating a message generation 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 of claim 6, wherein the generating policy configuration instruction further carries a data type of the message change field; the data types include: JSON strings or JSON objects;
the responding to the generating strategy configuration instruction generates a message generating strategy aiming at the message change field, which specifically comprises the following steps:
if the data type of the message change field carried in the generation 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; or,
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 a JSON name/value pair generated by utilizing other message generation strategies based on target data at the data source information.
8. The method of claim 6, wherein the generating policy configuration instruction further carries a policy execution condition;
the message generation strategy 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 strategy execution condition is satisfied.
9. The method of claim 8, wherein the generating policy configuration instruction further carries field content feedback conditions;
and the message generation strategy is also used for adding the generated field content corresponding to the field identification information into the updated version target message after the field content feedback condition is met.
10. The method of any of claims 1-9, wherein the updated version of the target message is a JSON file; one of the message change fields corresponds to one of the JSON name/value pairs in the JSON file.
11. A message processing apparatus, comprising:
the strategy configuration instruction acquisition module is used for acquiring a processing strategy configuration instruction aiming at the message change field by the message processing application; the message change field is a message field which changes in the updated version of the target message relative to the target message of the version to be updated;
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 policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy is used for generating the message change field in the updated version of the target message.
12. The apparatus of claim 11, the policy configuration instruction acquisition 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; 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 of claim 12, wherein the parsing policy configuration instruction further carries message parsing mode information, and the message parsing mode information includes: information for indicating extraction of the field value or information for indicating execution of a specified processing operation on the field value;
The message processing strategy generation module comprises:
the first strategy generation module is used for generating a message analysis strategy for extracting a field value corresponding to the field identification information if the analysis strategy configuration instruction carries information for indicating to extract the field value;
and the second policy generation module is used for generating a message analysis policy for determining an operation processing result if the analysis policy configuration instruction carries information for indicating to execute the specified processing operation on the field value, wherein the operation processing result is a processing result obtained by executing the specified processing operation on the field value corresponding to the field identification information.
14. The apparatus of claim 12, wherein the parsing result identification information is further carried in the parsing policy configuration instruction;
the message analysis strategy is also used for establishing a corresponding relation between the analysis result identification information and the acquired field content corresponding to the field identification information.
15. The apparatus of claim 12, wherein the parsing policy configuration instruction further carries a policy execution condition;
the message analysis strategy is specifically configured to obtain, after the strategy execution condition is satisfied, field content corresponding to the field identification information from the updated version of the target message.
16. The apparatus of claim 11, the policy configuration instruction acquisition module is specifically configured to:
acquiring a generation strategy configuration instruction aiming at a message change field; the generation strategy 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 generation strategy configuration instruction, and generating a message generation 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.
17. The apparatus of claim 16, wherein the generating policy configuration instruction further carries a data type of the message change field; the data types include: JSON strings or JSON objects;
the message processing strategy generation module comprises:
a third policy generation module, configured to generate a message generation policy for determining a JSON name/value pair corresponding to the message change field if the data type of the message change field carried in the policy configuration generation instruction is a JSON string, where 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;
And a fourth policy generation module, configured to generate a message generation policy for determining a JSON name/value pair corresponding to the message change field if the data type of the message change field carried in the generation policy configuration instruction is a JSON object, where 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 a JSON name/value pair generated by using other message generation policies based on target data at the data source information.
18. The apparatus of claim 16, wherein the generating policy configuration instruction further carries a policy execution condition;
the message generation strategy 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 strategy execution condition is satisfied.
19. The apparatus of claim 18, wherein the generating 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 target message after the field content feedback condition is met.
20. A message processing apparatus comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
enabling a 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 changes in the updated version of the target message relative to the target message of the version to be updated;
responding to the processing strategy configuration instruction, and generating a message processing strategy for processing the message change field; the message processing policy is used for analyzing the message change field in the updated version of the target message, or the message processing policy 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 CN114449063A (en) 2022-05-06
CN114449063B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086442B (en) * 2022-08-15 2022-12-27 恒生电子股份有限公司 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

Also Published As

Publication number Publication date
CN114449063A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN109597661B (en) Service function configuration method and device
CN111966334B (en) Service processing method, device and equipment
CN112162915A (en) Test data generation method, device, equipment and storage medium
CN112214210A (en) Logistics business rule engine and configuration method, device, equipment and storage medium thereof
CN112685030A (en) Method, device, storage medium and electronic equipment for generating service code
CN110704749A (en) Recommendation engine customization system, recommendation method, recommendation system and electronic equipment
CN110888756A (en) Diagnostic log generation method and device
JP2005018114A (en) Program maintenance support device, program maintenance support method, and program
CN114449063B (en) Message processing method, device and equipment
CN111144132B (en) Semantic recognition method and device
CN116360735A (en) Form generation method, device, equipment and medium
CN115061673A (en) Low-code visual expression based arranging and executing method and system
CN111144837A (en) Flow arrangement method and device, storage medium and electronic equipment
US20220343901A1 (en) Systems and methods of implementing platforms for bot interfaces within an intelligent development platform
CN112860247B (en) Custom generation method, device, equipment and medium of model component
CN108459846B (en) Software cloud customization method and platform
CN115469849B (en) Service processing system, method, electronic equipment and storage medium
US20220360545A1 (en) Graph-Based Natural Language Generation for Conversational Systems
CN113485686B (en) Information system program generation method and device, electronic equipment and storage medium
CN110874322A (en) Test method and test server for application program
CN114661826A (en) Data processing method, device and equipment based on block chain
CN110704742B (en) Feature extraction method and device
CN111124378B (en) Code generation method and device
CN113761863A (en) List page configuration method, device and storage medium
CN111401020A (en) Interface loading method and system and computing equipment

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