CN101727466A - Method and device for verifying service data object - Google Patents

Method and device for verifying service data object Download PDF

Info

Publication number
CN101727466A
CN101727466A CN200810225627A CN200810225627A CN101727466A CN 101727466 A CN101727466 A CN 101727466A CN 200810225627 A CN200810225627 A CN 200810225627A CN 200810225627 A CN200810225627 A CN 200810225627A CN 101727466 A CN101727466 A CN 101727466A
Authority
CN
China
Prior art keywords
validity
attribute
object data
business object
user
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.)
Pending
Application number
CN200810225627A
Other languages
Chinese (zh)
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN200810225627A priority Critical patent/CN101727466A/en
Publication of CN101727466A publication Critical patent/CN101727466A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种业务对象数据的验证方法及其装置,用以解决现有技术对业务对象数据进行有效性验证的准确度低的问题。主要技术方案包括:根据用户请求扩展的业务对象的属性名称以及属性类型,从预先设定的有效性规则中查找与所述属性名称以及属性类型对应的有效性规则;根据查找到的有效性规则验证用户输入的业务对象数据,当验证通过时,保存所述业务对象数据。通过该技术方案,提高了用户输入的业务对象数据的有效性和可用性,并且提高了业务对象数据有效性验证的效率。

Figure 200810225627

The invention discloses a business object data verification method and a device thereof, which are used to solve the problem of low accuracy in validating business object data in the prior art. The main technical solution includes: according to the attribute name and attribute type of the extended business object requested by the user, search for the validity rule corresponding to the attribute name and attribute type from the preset validity rules; Verify the business object data input by the user, and save the business object data when the verification is passed. Through the technical solution, the validity and usability of the business object data input by the user are improved, and the efficiency of validating the business object data is improved.

Figure 200810225627

Description

一种业务对象数据的验证方法及其装置 Method and device for verifying business object data

技术领域technical field

本发明涉及信息处理领域,尤其涉及一种信息系统中业务对象数据的验证方法及其装置。The invention relates to the field of information processing, in particular to a method and device for verifying business object data in an information system.

背景技术Background technique

在信息系统(尤其是企业信息系统)的实施和使用过程中,随着业务的不断发展,信息系统中对同一业务对象的原有描述信息(即属性信息)渐渐不能满足业务多样性的需求,用户往往需要丰富原有业务对象的属性信息。为了避免对业务对象新增属性信息带来的大量程序代码修改,业界提出了扩展属性定义方法,该方法目前被信息系统普遍采用,用于满足业务对象的客户化需求。During the implementation and use of information systems (especially enterprise information systems), with the continuous development of business, the original description information (that is, attribute information) of the same business object in the information system gradually cannot meet the needs of business diversity. Users often need to enrich the attribute information of original business objects. In order to avoid a large number of program code modifications caused by adding attribute information to business objects, the industry has proposed an extended attribute definition method, which is currently widely used by information systems to meet the customization needs of business objects.

传统的扩展属性定义方法的主要技术原理为:在保证信息系统现有实现不变的前提下,用户向信息系统请求扩展业务对象的属性信息,该属性信息包括:基本信息(属性名称、属性类型)和辅助信息(默认值、表单展示方式等)。其中,基本信息作为描述业务对象的属性必不可少的信息,将决定扩展属性是否能够在数据库中生成相应的数据表的列信息。用户提交扩展属性信息的请求后,信息系统根据用户提交的属性信息,自动生成相应的数据库字段及业务对象表单。这样,在无需修改系统代码的情况下,用户可以使用扩展属性信息来描述业务对象,并在系统自动生成的业务对象表单里输入业务对象数据,这些数据将被系统存储到新生成物理数据库表里。The main technical principle of the traditional extended attribute definition method is: under the premise of ensuring that the existing implementation of the information system remains unchanged, the user requests the attribute information of the extended business object from the information system. The attribute information includes: basic information (attribute name, attribute type ) and auxiliary information (default value, form display, etc.). Among them, the basic information, as the essential information describing the attributes of the business object, will determine whether the extended attributes can generate the column information of the corresponding data table in the database. After the user submits a request for extended attribute information, the information system automatically generates the corresponding database fields and business object forms according to the attribute information submitted by the user. In this way, without modifying the system code, the user can use the extended attribute information to describe the business object, and enter the business object data in the business object form automatically generated by the system, and the data will be stored in the newly generated physical database table by the system .

在上述扩展属性定义方法中,对用户输入的业务对象数据的有效性进行验证是一个很重要的过程,目前所采用的验证方法主要是根据扩展属性信息中包括的属性类型对用户输入的业务对象数据的有效性进行验证,即根据用户输入的业务对象数据是否能正确转换为属性信息定义时对应的属性类型(即数据库数据类型)而确定用户输入的业务对象数据是否有效。然而,用户输入的业务对象数据的类型及格式往往是多样的,因此,简单地根据属性类型对用户输入的业务对象数据进行有效性验证的准确度比较低,很难满足信息系统对业务对象数据有效性的要求。In the above-mentioned extended attribute definition method, it is a very important process to verify the validity of the business object data input by the user. The validity of the data is verified, that is, to determine whether the business object data entered by the user is valid according to whether the business object data entered by the user can be correctly converted into the corresponding attribute type (that is, the database data type) when the attribute information is defined. However, the types and formats of business object data input by users are often diverse. Therefore, the accuracy of simply verifying the validity of business object data entered by users based on attribute types is relatively low, and it is difficult to satisfy the needs of information systems for business object data. Validity requirements.

发明内容Contents of the invention

本发明提供一种业务对象数据的验证方法及其装置,用以解决现有技术对业务对象数据进行有效性验证的准确度低的问题。The invention provides a business object data verification method and device thereof, which are used to solve the problem of low accuracy in validating business object data in the prior art.

本发明实施例通过如下技术方案实现:Embodiments of the present invention are realized through the following technical solutions:

本发明实施例提供了一种业务对象数据的验证方法,包括:An embodiment of the present invention provides a method for verifying business object data, including:

根据用户请求扩展的业务对象的属性名称以及属性类型,从预先设定的有效性规则中查找与所述属性名称以及属性类型对应的有效性规则;According to the attribute name and attribute type of the business object requested by the user to expand, the validity rule corresponding to the attribute name and attribute type is searched from the preset validity rules;

根据查找到的有效性规则验证用户输入的业务对象数据,当验证通过时,保存所述业务对象数据。Verify the business object data input by the user according to the found validity rules, and save the business object data when the verification is passed.

本发明实施例还提供了一种业务对象数据的验证装置,包括:The embodiment of the present invention also provides a verification device for business object data, including:

规则查找单元,用于根据用户请求扩展的业务对象的属性名称以及属性类型,从预先设定的有效性规则中查找与所述属性名称以及属性类型对应的有效性规则;A rule search unit, configured to search for a validity rule corresponding to the attribute name and attribute type from preset validity rules according to the attribute name and attribute type of the business object extended by the user request;

验证单元,用于根据所述规则查找单元查找到的有效性规则验证用户输入的业务对象数据;a verification unit, configured to verify the business object data input by the user according to the validity rules found by the rule search unit;

存储单元,用于当所述验证单元验证通过时,保存所述业务对象数据。A storage unit, configured to store the business object data when the verification unit passes the verification.

通过上述技术方案,本发明在对用户输入的业务对象数据进行验证之前,首先根据用户请求扩展的业务对象的属性名称以及属性类型,从预先设定的有效性规则中查找用于此次验证的有效性规则,并根据查找到的有效性规则验证用户输入的业务对象数据,当验证通过时,确定用户输入的业务对象数据有效,并保存该业务对象数据。与现有技术只验证业务对象数据的属性类型相比,能够更加准确地对用户输入的业务对象数据的有效性进行验证,提高了验证业务对象数据的准确度以及保存的业务对象数据的可用性。并且,本发明在验证业务对象数据之前预先设定了用于验证业务对象的有效性规则,在验证过程只需要根据预先定义的相应的有效性规则进行验证,从而提高了验证业务对象数据的效率。Through the above-mentioned technical solution, before verifying the business object data input by the user, the present invention firstly searches the validity rules for this verification from the preset validity rules according to the attribute name and attribute type of the extended business object requested by the user. Validity rules, and verify the business object data entered by the user according to the found validity rules, and when the verification is passed, determine that the business object data entered by the user is valid, and save the business object data. Compared with the prior art that only verifies the attribute type of business object data, it can more accurately verify the validity of the business object data input by the user, and improve the accuracy of verifying the business object data and the usability of the stored business object data. Moreover, the present invention pre-sets validity rules for verifying business objects before verifying business object data, and only needs to verify according to the corresponding predefined validity rules during the verification process, thereby improving the efficiency of verifying business object data .

附图说明Description of drawings

图1为本发明实施例中设定有效性规则的流程图;Fig. 1 is the flow chart of setting validity rule in the embodiment of the present invention;

图2为本发明实施例中对业务对象数据进行有效性验证的流程图;Fig. 2 is a flow chart of validating business object data in an embodiment of the present invention;

图3为本发明实施例中业务对象数据的验证装置第一示意图;FIG. 3 is a first schematic diagram of a verification device for business object data in an embodiment of the present invention;

图4为本发明实施例中业务对象数据的验证装置第二示意图;4 is a second schematic diagram of a verification device for business object data in an embodiment of the present invention;

图5为本发明实施例中业务对象数据的验证装置第三示意图。Fig. 5 is a third schematic diagram of an apparatus for verifying business object data in an embodiment of the present invention.

具体实施方式Detailed ways

为了提高对业务对象数据进行有效性验证的准确度,以满足信息系统对业务对象数据有效性的要求,本发明实施例提出了一种业务对象数据的验证方法及其装置,下面结合说明书附图对本发明实施例的主要实现原理、具体实施过程及其对应能够达到的有益效果进行详细的阐述。In order to improve the accuracy of the verification of the validity of business object data and meet the requirements of the information system for the validity of business object data, the embodiment of the present invention proposes a verification method and device for business object data. The main realization principles, specific implementation processes and corresponding beneficial effects that can be achieved in the embodiments of the present invention are described in detail.

本发明实施例中,在根据用户请求对用户输入的业务对象数据进行验证之前,需要根据不同业务对象的属性(包括属性名称以及属性类型)设定与不同属性分别对应的有效性规则。其中,属性名称对应扩展属性在关系数据库表中生成的数据列名称,属性类型对应关系型数据库中的数据类型,如字符串型(文本型)、数字型、日期型等。In the embodiment of the present invention, before verifying the business object data input by the user according to the user request, it is necessary to set validity rules corresponding to different attributes according to the attributes of different business objects (including attribute names and attribute types). Wherein, the attribute name corresponds to the data column name generated by the extended attribute in the relational database table, and the attribute type corresponds to the data type in the relational database, such as string type (text type), number type, date type, etc.

一个实施例中,设定有效性规则的具体过程如图1所示,包括如下步骤:In one embodiment, the specific process of setting validity rules is shown in Figure 1, including the following steps:

步骤101、根据业务对象的属性类型,设定与该属性类型对应的有效性规则模板。Step 101, according to the attribute type of the business object, set a validity rule template corresponding to the attribute type.

步骤102、根据为业务对象的属性类型设定的有效性规则模板以及该业务对象的属性名称,确定有效性规则。Step 102: Determine the validity rule according to the validity rule template set for the attribute type of the business object and the attribute name of the business object.

上述步骤101中,针对不同属性类型的特性,设定不同的有效性规则模板。例如,当属性类型为数字类型时,根据此类型的特性,即一个具体的数值,可以在有效性规则模板中对该数据所在的阈值区间进行限定,具体地可以限定该数值所在阈值区间的最大值和最小值;进一步地,针对属性类型为数字类型的特性,可以在有效性规则模板中对数值的精确度进行限定,具体地可以限定该数值的精度以及小数位数等。当属性类型为其它类型时,如字符串类型、文本类型或日期类型等,可依据与上述根据数字类型设定有效性规则模板基本相同的原理设定有效性规则模板,此处不一一列举。In the above step 101, different validity rule templates are set for characteristics of different attribute types. For example, when the attribute type is a number type, according to the characteristics of this type, that is, a specific value, the threshold interval of the data can be limited in the validity rule template, specifically, the maximum threshold interval of the value can be limited. value and minimum value; further, for the attribute type of the attribute type to be a number type, the precision of the value can be limited in the validity rule template, specifically, the precision and the number of decimal places of the value can be limited. When the attribute type is other types, such as string type, text type, or date type, etc., the validity rule template can be set based on the same principle as the above-mentioned setting of the validity rule template based on the number type, which will not be listed here. .

一个具体的实施例中,针对不同的属性类型设定的有效性规则模板可如下表:In a specific embodiment, the validity rule templates set for different attribute types can be as follows:

  属性类型attribute type   有效性规则模板包括的字段名称Field names included in the validity rule template   字符串/文本类型string/text type   文本长度、文本长度是否固定、包括固定字符串Text length, whether the text length is fixed, including fixed strings   数字类型Numeric type   最小值、最大值、数字精度、小数位数Min, Max, Numeric Precision, Scale   日期类型date type   起始日期、截止日期 Start Date, End Date

需要指出的是,上表中所示的有效性规则模板中包括的字段名称仅为本发明实施例实现时的一种方式。具体应用中,可根据不同的业务对象灵活设置该有效性规则模板,例如,当属性类型为文本类型时,设定的有效性规则模板中可以包括“文本长度”、“文本长度是否固定”、“包括固定字符串”中的任意一个或组合,也可进一步在上述字段基础上添加新的字段,如“排除字符串”;或者,当属性类型为文本类型时,设定的有效性规则模板可以为“正则表达式”。It should be pointed out that the field names included in the validity rule template shown in the above table are only one way of implementing the embodiments of the present invention. In specific applications, the validity rule template can be flexibly set according to different business objects. For example, when the attribute type is a text type, the set validity rule template can include "text length", "whether the text length is fixed", Any one or combination of "including fixed strings" can also further add new fields based on the above fields, such as "exclude strings"; or, when the attribute type is text type, the set validity rule template Can be "regular expression".

通过上述过程设定好与不同属性类型对应的有效性规则模板后,在步骤102中,可根据具体的业务对象的属性名称以及相应的有效性规则模板,确定有效性规则。例如,针对属性类型为数字类型而设定的有效性规则模板中包括的字段为“最小值”和“最大值”,当属性名称为“年龄”时,可以确定对应的有效性规则为“最小值=0、最大值=150”。After the validity rule templates corresponding to different attribute types are set through the above process, in step 102, the validity rule can be determined according to the attribute name of the specific business object and the corresponding validity rule template. For example, the fields included in the validity rule template set for the attribute type as numeric type are "minimum value" and "maximum value". When the attribute name is "age", it can be determined that the corresponding validity rule is "minimum value". Value = 0, Maximum = 150".

对于通过上述方式确定的有效性规则,可以作为业务对象的属性信息的附加属性信息,具体地,可以对传统扩展属性定义方法中扩展属性信息中的基本信息进行扩展,采用如下三元组形式描述(定义)扩展属性信息的基本信息:The validity rules determined by the above method can be used as additional attribute information of the attribute information of the business object. Specifically, the basic information in the extended attribute information in the traditional extended attribute definition method can be extended, and described in the form of the following triples (Definition) Basic information of extended attribute information:

扩展属性的基本信息=(属性名称,属性类型,有效性规则)。The basic information of the extended attribute = (attribute name, attribute type, validity rule).

当扩展属性的基本信息提交到系统中后,系统将保存这些信息,并根据属性名称以及属性类型生成关系数据库表数据列。After the basic information of the extended attributes is submitted to the system, the system will save the information and generate relational database table data columns according to the attribute name and attribute type.

通过上述过程设定好有效性规则后,对业务对象数据进行有效性验证的过程如图2所示,包括如下步骤:After setting the validity rules through the above process, the process of validating the business object data is shown in Figure 2, including the following steps:

步骤201、根据用户请求扩展的业务对象的属性名称以及属性类型,从预先设定的有效性规则中查找与该属性名称以及属性类型对应的有效性规则。Step 201, according to the attribute name and attribute type of the extended business object requested by the user, search for the validity rule corresponding to the attribute name and attribute type from the preset validity rules.

步骤202、根据查找到的有效性规则验证用户输入的业务对象数据,当验证通过时,执行步骤203,否则执行步骤204。Step 202. Verify the business object data input by the user according to the found validity rules. When the verification is passed, execute step 203; otherwise, execute step 204.

该步骤中,可以在利用查找到的有效性规则验证用户输入的业务对象数据之前,首先对用户输入的业务对象数据的属性类型进行验证,判断用户输入的业务对象数据是否与其请求的业务对象的属性类型一致,若判断不一致即验证未通过,则直接转入步骤204或者结束流程。In this step, before using the found validity rules to verify the business object data input by the user, first verify the attribute type of the business object data input by the user, and judge whether the business object data input by the user is consistent with the requested business object. The attribute types are consistent. If it is determined that they are inconsistent, that is, the verification fails, then directly go to step 204 or end the process.

步骤205、确定用户输入的业务对象数据有效,保存该业务对象数据。Step 205, determine that the business object data input by the user is valid, and save the business object data.

步骤204、要求用户重新输入业务对象数据,返回步骤202。Step 204 , request the user to re-input the business object data, return to step 202 .

该步骤204中,可以设定要求用户重新输入的次数阈值,若判断用户重新输入业务对象数据的次数已经达到该设定的次数阈值,则结束该流程。进一步地,可以向用户反馈验证未通过的原因,作为用户重新输入业务对象数据的参考依据。也可以只向用户反馈验证未通过的原因,然后结束流程,用户若想重新输入,则需要重新请求相应的业务。In step 204, a threshold value for the number of times that the user is required to re-input may be set, and if it is determined that the number of times the user re-enters the business object data has reached the set threshold value, the process ends. Furthermore, the reason why the verification fails can be fed back to the user as a reference for the user to re-enter the business object data. It is also possible to only feed back to the user the reason why the verification failed, and then end the process. If the user wants to re-enter, he needs to re-request the corresponding service.

上述步骤202中,根据查找到的有效性规则验证用户输入的业务对象数据的过程具体为:确定有效性规则中包括的有效性条件,并判断用户输入的业务对象数据是否满足这些有效性条件,当满足时,确定用户输入的业务对象数据验证通过,否则确定用户输入的业务对象数据验证未通过。例如,用户请求的业务对象的扩展属性信息的基本信息为(年龄,数字类型),对应的有效性规则为(最小值=0、最大值=150),若用户输入的业务对象数据为90,则符合有效性规则中包括的有效性条件,即符合大于0小于150,确定用户输入的90为有效的业务对象数据;若用户输入的业务对象数据为-20,则不符合有效性规则中包括的有效性条件,即不符合大于0小于150,确定用户输入的-20为无效的业务对象数据。In the above step 202, the process of verifying the business object data input by the user according to the found validity rules is specifically: determining the validity conditions included in the validity rules, and judging whether the business object data input by the user satisfies these validity conditions, When it is satisfied, it is determined that the verification of the business object data input by the user is passed; otherwise, it is determined that the verification of the business object data input by the user is not passed. For example, the basic information of the extended attribute information of the business object requested by the user is (age, number type), and the corresponding validity rule is (minimum value=0, maximum value=150), if the business object data input by the user is 90, Then it meets the validity conditions included in the validity rule, that is, if it meets the validity conditions greater than 0 and less than 150, it is determined that 90 entered by the user is valid business object data; if the business object data entered by the user is -20, it does not meet the validity rules included The validity condition of the value is greater than 0 and less than 150, and the -20 entered by the user is determined to be invalid business object data.

将上述实施例提供的对业务对象数据的验证方法应用到具体的信息系统中时,其实现过程为:用户通过信息系统提供的用户界面向信息系统提交加载包括扩展属性信息的业务对象表单的请求;系统根据用户的请求访问数据库,并将用户请求的扩展属性信息的基本信息(属性名称、属性类型、有效性规则)加载到内存中,根据属性类型自动生成扩展属性录入控件,以及根据有效性规则生成数据验证控件;用户根据信息系统提供的扩展属性录入控件输入业务对象数据并提交后,系统利用生成的数据验证控件自动调用系统的数据有效性验证组件进行数据有效性验证,如果数据有效性验证通过,系统访问数据访问组件,将用户提交的业务对象数据保存在数据库中;否则,系统将给出相应的提示,要求用户重新输入或中断用户请求。When the verification method for business object data provided by the above embodiments is applied to a specific information system, the implementation process is as follows: the user submits to the information system a request to load a business object form including extended attribute information through the user interface provided by the information system ; The system accesses the database according to the user's request, and loads the basic information (attribute name, attribute type, validity rule) of the extended attribute information requested by the user into the memory, automatically generates the extended attribute entry control according to the attribute type, and Rules generate data validation controls; after the user enters business object data and submits it according to the extended attribute input controls provided by the information system, the system uses the generated data validation controls to automatically call the data validation components of the system to perform data validation. If the verification is passed, the system accesses the data access component and saves the business object data submitted by the user in the database; otherwise, the system will give a corresponding prompt to require the user to re-enter or interrupt the user request.

本发明实施例还提供了一种业务对象数据的验证装置,如图3所示,该装置包括:规则查找单元301、验证单元302以及存储单元303。其中,The embodiment of the present invention also provides a business object data verification device, as shown in FIG. 3 , the device includes: a rule search unit 301 , a verification unit 302 and a storage unit 303 . in,

规则查找单元301,用于根据用户请求扩展的业务对象的属性名称以及属性类型,从预先设定的有效性规则中查找与该属性名称以及属性类型对应的有效性规则。The rule search unit 301 is configured to search for a validity rule corresponding to the attribute name and attribute type from preset validity rules according to the attribute name and attribute type of the business object extended by the user request.

验证单元302,用于根据规则查找单元301查找到的有效性规则验证用户输入的业务对象数据。The verification unit 302 is configured to verify the business object data input by the user according to the validity rules found by the rule search unit 301 .

存储单元303,用于当验证单元302验证通过时,保存用户输入的业务对象数据。The storage unit 303 is configured to save the business object data input by the user when the verification unit 302 passes the verification.

较佳地,上述验证单元302进一步用于,确定规则查找单元301查找到的有效性规则中包括的有效性条件,当用户输入的业务对象数据满足该有效性条件时,确定用户输入的业务对象数据验证通过。Preferably, the verification unit 302 is further configured to determine the validity conditions included in the validity rules found by the rule search unit 301, and when the business object data input by the user satisfies the validity conditions, determine the validity of the business object input by the user. Data verification passed.

如图4所示,一个实施例中,图3所示的验证装置还包括:信息反馈单元304,该单元用于当验证单元302验证未通过时,向用户反馈验证未通过的原因,或/和,要求用户重新输入业务对象数据。As shown in Figure 4, in one embodiment, the verification device shown in Figure 3 further includes: an information feedback unit 304, which is used to feed back to the user the reason why the verification fails when the verification unit 302 fails the verification, or/ and, require the user to re-enter business object data.

如图5所示,一个实施例中,图3所示的验证装置还包括:规则预设单元305,用于根据业务对象的属性名称以及属性类型预先设定与该属性名称以及属性类型对应的有效性规则。As shown in FIG. 5, in one embodiment, the verification device shown in FIG. 3 further includes: a rule preset unit 305, configured to preset the attribute name and attribute type corresponding to the attribute name and attribute type according to the business object. Validity rules.

较佳地,上述规则预设单元305进一步用于,根据业务对象的属性类型,设定与属性类型对应的有效性规则模板,并根据设定的有效性规则模板以及业务对象的属性名称,确定所述有效性规则。Preferably, the rule preset unit 305 is further configured to set a validity rule template corresponding to the attribute type according to the attribute type of the business object, and determine The validity rule.

通过上述技术方案,本发明在对用户输入的业务对象数据进行验证之前,首先根据用户请求扩展的业务对象的属性名称以及属性类型,从预先设定的有效性规则中查找用于此次验证的有效性规则,并根据查找到的有效性规则验证用户输入的业务对象数据,当验证通过时,确定用户输入的业务对象数据有效,并保存该业务对象数据。与现有技术只验证业务对象数据的属性类型相比,能够更加准确地对用户输入的业务对象数据的有效性进行验证,提高了验证业务对象数据的准确度以及保存的业务对象数据的可用性。Through the above-mentioned technical solution, before verifying the business object data input by the user, the present invention firstly searches the validity rules for this verification from the preset validity rules according to the attribute name and attribute type of the extended business object requested by the user. Validity rules, and verify the business object data entered by the user according to the found validity rules, and when the verification is passed, determine that the business object data entered by the user is valid, and save the business object data. Compared with the prior art that only verifies the attribute type of business object data, it can more accurately verify the validity of the business object data input by the user, and improve the accuracy of verifying the business object data and the usability of the stored business object data.

另外,本发明在验证业务对象数据之前预先设定了用于验证业务对象的有效性规则,在验证过程只需要根据预先定义的相应的有效性规则进行验证,从而提高了验证业务对象数据的效率。In addition, the present invention pre-sets validity rules for verifying business objects before verifying business object data, and only needs to verify according to the predefined corresponding validity rules during the verification process, thereby improving the efficiency of verifying business object data .

另外,本发明实施例中,当验证用户输入的业务对象数据未通过时,向用户反馈验证未通过的原因,使用户可以根据系统反馈的原因重新输入业务对象数据,提高了输入业务对象数据的正确率。In addition, in the embodiment of the present invention, when the verification of the business object data input by the user fails, the reason for the failure of the verification is fed back to the user, so that the user can re-input the business object data according to the reason fed back by the system, which improves the efficiency of entering the business object data. Correct rate.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (10)

1. A method for verifying business object data, comprising:
searching validity rules corresponding to the attribute names and the attribute types from preset validity rules according to the attribute names and the attribute types of the service objects expanded by the user request;
and verifying the business object data input by the user according to the searched validity rule, and storing the business object data when the verification is passed.
2. The method of claim 1, wherein verifying the business object data input by the user according to the found validity rule and passing the verification comprises:
determining a validity condition included in the validity rule;
and when the service object data input by the user meets the validity condition, determining that the service object data passes verification.
3. The method of claim 1, when the verification fails, further comprising:
feeding back a reason why the verification fails to the user;
or/and, requiring the user to re-input the business object data.
4. The method of any of claims 1 to 3, further comprising:
and presetting validity rules corresponding to the attribute names and the attribute types according to the attribute names and the attribute types of the service objects.
5. The method of claim 4, wherein presetting validity rules corresponding to the attribute name and the attribute type according to the attribute name and the attribute type of the service object comprises:
setting an effectiveness rule template corresponding to the attribute type according to the attribute type of the service object;
and determining the validity rule according to the validity rule template and the attribute name of the service object.
6. An apparatus for validating business object data, comprising:
the rule searching unit is used for searching validity rules corresponding to the attribute names and the attribute types from preset validity rules according to the attribute names and the attribute types of the service objects requested to be expanded by the user;
the verification unit is used for verifying the service object data input by the user according to the validity rule searched by the rule searching unit;
and the storage unit is used for storing the business object data when the verification unit passes the verification.
7. The apparatus according to claim 6, wherein the verification unit is further configured to determine a validity condition included in the validity rule found by the rule finding unit, and determine that the service object data passes verification when the service object data input by the user meets the validity condition.
8. The apparatus of claim 6, further comprising:
an information feedback unit, configured to feed back, to the user, a reason for the failure of the verification when the verification by the verification unit fails; or/and, requiring the user to re-input the business object data.
9. The apparatus of any of claims 6 to 8, further comprising:
and the rule presetting unit is used for presetting validity rules corresponding to the attribute names and the attribute types according to the attribute names and the attribute types of the service objects.
10. The apparatus of claim 9, wherein the rule presetting unit is further configured to set a validity rule template corresponding to an attribute type of a service object according to the attribute type, and determine the validity rule according to the validity rule template and an attribute name of the service object.
CN200810225627A 2008-10-31 2008-10-31 Method and device for verifying service data object Pending CN101727466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810225627A CN101727466A (en) 2008-10-31 2008-10-31 Method and device for verifying service data object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810225627A CN101727466A (en) 2008-10-31 2008-10-31 Method and device for verifying service data object

Publications (1)

Publication Number Publication Date
CN101727466A true CN101727466A (en) 2010-06-09

Family

ID=42448365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810225627A Pending CN101727466A (en) 2008-10-31 2008-10-31 Method and device for verifying service data object

Country Status (1)

Country Link
CN (1) CN101727466A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012100681A1 (en) * 2011-01-26 2012-08-02 北京京东世纪贸易有限公司 Data verification method and device
CN102819766A (en) * 2011-06-09 2012-12-12 金蝶软件(中国)有限公司 Method, device and enterprise system for checking forms
CN103020269A (en) * 2012-12-26 2013-04-03 广州市西美信息科技有限公司 Method and device for verifying data
CN103533522A (en) * 2013-10-25 2014-01-22 从兴技术有限公司 Short message auditing method and system
CN104317701A (en) * 2014-09-28 2015-01-28 用友优普信息技术有限公司 Device and method for realizing ERP (Enterprise Resource Planning) parameter check through preset data
CN104378207A (en) * 2014-10-29 2015-02-25 中国建设银行股份有限公司 Information verification handling method and device
CN104391934A (en) * 2014-11-21 2015-03-04 深圳市银雁金融配套服务有限公司 Data calibration method and device
CN105099813A (en) * 2015-06-12 2015-11-25 北京信而泰科技股份有限公司 Data verification method and device based on Ethernet tester
CN105653521A (en) * 2016-01-15 2016-06-08 杭州数梦工场科技有限公司 Data verification method and device
CN105760976A (en) * 2014-12-17 2016-07-13 阿里巴巴集团控股有限公司 Method and system for service verification
CN105989445A (en) * 2015-02-25 2016-10-05 阿里巴巴集团控股有限公司 Rule management method and system
CN106919542A (en) * 2015-12-24 2017-07-04 北京国双科技有限公司 Method and device for rule matching
CN107315958A (en) * 2016-04-26 2017-11-03 北京京东尚科信息技术有限公司 The legality identification method and device of data object
CN107643904A (en) * 2017-09-18 2018-01-30 泰康保险集团股份有限公司 Code submits detection method, device, medium and the electronic equipment of daily record
CN108647358A (en) * 2018-05-17 2018-10-12 东软集团股份有限公司 Quality of data method of calibration, device, storage medium and electronic equipment
CN109901892A (en) * 2017-12-11 2019-06-18 北京京东尚科信息技术有限公司 A kind of method and apparatus of dynamic attribute verifying
CN111209027A (en) * 2019-12-30 2020-05-29 航天信息股份有限公司广州航天软件分公司 Method and system for service verification based on dynamic verification algorithm
CN112988857A (en) * 2019-12-12 2021-06-18 北京沃东天骏信息技术有限公司 Service data processing method and device

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012100681A1 (en) * 2011-01-26 2012-08-02 北京京东世纪贸易有限公司 Data verification method and device
CN102819766A (en) * 2011-06-09 2012-12-12 金蝶软件(中国)有限公司 Method, device and enterprise system for checking forms
CN103020269B (en) * 2012-12-26 2016-09-07 广州市西美信息科技有限公司 A kind of method of data verification and device
CN103020269A (en) * 2012-12-26 2013-04-03 广州市西美信息科技有限公司 Method and device for verifying data
CN103533522A (en) * 2013-10-25 2014-01-22 从兴技术有限公司 Short message auditing method and system
CN104317701A (en) * 2014-09-28 2015-01-28 用友优普信息技术有限公司 Device and method for realizing ERP (Enterprise Resource Planning) parameter check through preset data
CN104317701B (en) * 2014-09-28 2018-01-12 用友优普信息技术有限公司 The device and method of ERP parameter testings is realized by prefab data
CN104378207A (en) * 2014-10-29 2015-02-25 中国建设银行股份有限公司 Information verification handling method and device
CN104378207B (en) * 2014-10-29 2019-05-07 中国建设银行股份有限公司 A kind of Information Authentication processing method and processing device
CN104391934B (en) * 2014-11-21 2016-03-16 深圳市银雁金融服务有限公司 Data verification method and device
CN104391934A (en) * 2014-11-21 2015-03-04 深圳市银雁金融配套服务有限公司 Data calibration method and device
CN105760976A (en) * 2014-12-17 2016-07-13 阿里巴巴集团控股有限公司 Method and system for service verification
CN105760976B (en) * 2014-12-17 2022-04-19 创新先进技术有限公司 Service checking method and system
CN105989445A (en) * 2015-02-25 2016-10-05 阿里巴巴集团控股有限公司 Rule management method and system
CN105099813B (en) * 2015-06-12 2019-03-05 北京信而泰科技股份有限公司 Data verification method and device based on ethernet test instrument
CN105099813A (en) * 2015-06-12 2015-11-25 北京信而泰科技股份有限公司 Data verification method and device based on Ethernet tester
CN106919542B (en) * 2015-12-24 2020-04-21 北京国双科技有限公司 Rule matching method and device
CN106919542A (en) * 2015-12-24 2017-07-04 北京国双科技有限公司 Method and device for rule matching
US10796077B2 (en) 2015-12-24 2020-10-06 Beijing Gridsum Technology Co., Ltd. Rule matching method and device
CN105653521A (en) * 2016-01-15 2016-06-08 杭州数梦工场科技有限公司 Data verification method and device
CN107315958A (en) * 2016-04-26 2017-11-03 北京京东尚科信息技术有限公司 The legality identification method and device of data object
CN107643904A (en) * 2017-09-18 2018-01-30 泰康保险集团股份有限公司 Code submits detection method, device, medium and the electronic equipment of daily record
CN109901892A (en) * 2017-12-11 2019-06-18 北京京东尚科信息技术有限公司 A kind of method and apparatus of dynamic attribute verifying
CN108647358A (en) * 2018-05-17 2018-10-12 东软集团股份有限公司 Quality of data method of calibration, device, storage medium and electronic equipment
CN112988857A (en) * 2019-12-12 2021-06-18 北京沃东天骏信息技术有限公司 Service data processing method and device
CN112988857B (en) * 2019-12-12 2024-10-18 北京沃东天骏信息技术有限公司 Service data processing method and device
CN111209027A (en) * 2019-12-30 2020-05-29 航天信息股份有限公司广州航天软件分公司 Method and system for service verification based on dynamic verification algorithm
CN111209027B (en) * 2019-12-30 2024-04-19 航天信息股份有限公司广州航天软件分公司 Method and system for business verification based on dynamic verification algorithm

Similar Documents

Publication Publication Date Title
CN101727466A (en) Method and device for verifying service data object
CN108388604B (en) User authority data management apparatus, method and computer readable storage medium
CN110134705A (en) A data query method, cache server and terminal
WO2019237546A1 (en) Sensitive word verification method and apparatus, computer device, and storage medium
CN105893476B (en) Intelligent answer method, knowledge base optimization method and device, Intelligence repository
CN112148509A (en) Data processing method, device, server and computer readable storage medium
US9721015B2 (en) Providing a query results page
CN110147402A (en) Excel file introduction method and equipment, deriving method and equipment
US20090006646A1 (en) System and Method of Auto Populating Forms on Websites With Data From Central Database
CN111274263B (en) Visual database change sentence generation method, device and storage medium
CN111666279B (en) Query data processing method, device, electronic device and computer storage medium
WO2022100067A1 (en) Method and apparatus for querying data in database, electronic device and storage medium
CN109190062B (en) Crawling method and device for target corpus data and storage medium
CN110309099A (en) Interface management method, device, device, and computer-readable storage medium
CN102541963B (en) Method and device for inquiring character identification
CN111445319A (en) Voucher generation method and device, computer equipment and storage medium
CN110362630A (en) Data managing method, device, equipment and computer readable storage medium
CN116628018A (en) A data query method, device, server and storage medium
US20220156245A1 (en) System and method for managing custom fields
US11030304B2 (en) Buffer overflow detection based on a synthesis of assertions from templates and k-induction
CN112363814A (en) Task scheduling method and device, computer equipment and storage medium
WO2018076971A1 (en) Xml data manipulation method and apparatus
CN118568128A (en) Method, apparatus, device and readable medium for query statement generation
CN109871372B (en) A method combining database tuning and program tuning
US20240037327A1 (en) Natural language query disambiguation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20100609