[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117592931A - Verification method, verification device and storage medium - Google Patents

Verification method, verification device and storage medium Download PDF

Info

Publication number
CN117592931A
CN117592931A CN202311576525.5A CN202311576525A CN117592931A CN 117592931 A CN117592931 A CN 117592931A CN 202311576525 A CN202311576525 A CN 202311576525A CN 117592931 A CN117592931 A CN 117592931A
Authority
CN
China
Prior art keywords
verification
check
interface
information
application form
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
CN202311576525.5A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202311576525.5A priority Critical patent/CN117592931A/en
Publication of CN117592931A publication Critical patent/CN117592931A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a verification method, a verification device and a storage medium, relates to the technical field of information data processing, and can improve the efficiency of verification of application forms. The method comprises the following steps: acquiring input form information of an application form and a check interface corresponding to the application form; the check interface is used for indicating the service corresponding to the check rule of the execution application form; checking the input form information through a checking interface to obtain a checking result; the verification result is used for representing whether the input form information accords with the verification rule.

Description

Verification method, verification device and storage medium
Technical Field
The present disclosure relates to the field of information data processing technologies, and in particular, to a verification method, a verification device, and a storage medium.
Background
In the process of flow approval, a user can fill in an application form, and before the application form is submitted, the information in the application form filled in by the user is verified, and the application form is allowed to be submitted under the condition that the information meets the verification rule of the application form. At present, the method for checking the information in the application form comprises the following steps: acquiring input form information of an application form and a pre-verification event corresponding to the application form, and verifying the input form information based on the pre-verification event to determine a verification result of the application form.
However, since the verification rules of different application forms may be different, in the process of verifying the application form, a pre-verification event for verifying the application form may need to be written, and the process of writing the pre-verification event is complex, which results in lower efficiency of verifying the input form information of the application form.
Disclosure of Invention
The application provides a verification method, a verification device and a storage medium, which can improve the efficiency of verification of application forms.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, the present application provides a verification method, the method comprising: acquiring input form information of an application form and a check interface corresponding to the application form; the check interface is used for indicating the service corresponding to the check rule of the execution application form; checking the input form information through a checking interface to obtain a checking result; the verification result is used for representing whether the input form information accords with the verification rule.
In one possible implementation, the service corresponding to the verification interface includes a local service or an external service.
In one possible implementation manner, the service corresponding to the check interface is an external service, and the check is performed on the input form information through the check interface to obtain a check result, including: determining return data obtained by executing the service corresponding to the check rule; the returned data comprises verification success prompt information or verification failure prompt information; the verification success prompt information is used for representing that the input form information accords with a verification rule; the verification failure prompt information is used for representing that the input form information does not accord with the verification rule.
In one possible implementation, where the return data includes verification success hint information, the return data also includes input form information.
In one possible implementation, in the case that the returned data includes verification failure prompt information, the returned data further includes a reason that the input form information does not conform to the verification rule.
In one possible implementation, in a case where the input form information meets the verification rule, the method further includes: acquiring a notification interface corresponding to an application form; the notification interface is used for indicating the service corresponding to the notification rule of the execution application form; calling a service corresponding to the notification rule based on the notification interface, and sending first indication information to the second equipment; the first indication information is used for indicating the second equipment to process the input form information.
In one possible implementation, the method further includes: determining at least one processing button corresponding to the application form; at least one processing button is in one-to-one correspondence with at least one processing operation; the at least one processing operation includes a commit operation, and/or a retirement operation, and/or a grant operation, and/or a retirement operation; configuring at least one verification event in one-to-one correspondence with at least one processing button; the check event is used for calling the service corresponding to the check interface.
In one possible implementation, the method further includes: configuring at least one notification event in one-to-one correspondence with at least one processing button; the notification event is used for calling the service corresponding to the notification interface.
In a second aspect, the present application provides a verification apparatus, applied to a first device, the apparatus comprising: a communication unit and a processing unit; the communication unit is used for acquiring the input form information of the application form and a check interface corresponding to the application form; the check interface is used for indicating the service corresponding to the check rule of the execution application form; the processing unit is used for checking the input form information through the checking interface to obtain a checking result; the verification result is used for representing whether the input form information accords with the verification rule.
In one possible implementation, the service corresponding to the verification interface includes a local service or an external service.
In a possible implementation manner, the processing unit is further configured to determine return data obtained by executing the service corresponding to the check rule; the returned data comprises verification success prompt information or verification failure prompt information; the verification success prompt information is used for representing that the input form information accords with a verification rule; the verification failure prompt information is used for representing that the input form information does not accord with the verification rule.
In one possible implementation, where the return data includes verification success hint information, the return data also includes input form information.
In one possible implementation, in the case that the returned data includes verification failure prompt information, the returned data further includes a reason that the input form information does not conform to the verification rule.
In one possible implementation manner, the communication unit is further configured to obtain a notification interface corresponding to the application form; the notification interface is used for indicating the service corresponding to the notification rule of the execution application form; the communication unit is also used for calling the service corresponding to the notification rule based on the notification interface and sending the first indication information to the second equipment; the first indication information is used for indicating the second equipment to process the input form information.
In a possible implementation manner, the processing unit is further configured to determine at least one processing button corresponding to the application form; at least one processing button is in one-to-one correspondence with at least one processing operation; the at least one processing operation includes a commit operation, and/or a retirement operation, and/or a grant operation, and/or a retirement operation; the processing unit is also used for configuring at least one check event corresponding to the at least one processing button one by one; the check event is used for calling the service corresponding to the check interface.
In a possible implementation manner, the processing unit is further configured to configure at least one notification event corresponding to at least one processing button one to one; the notification event is used for calling the service corresponding to the notification interface.
In a third aspect, the present application provides a verification apparatus, the apparatus comprising: a processor and a communication interface; the communication interface is coupled to a processor for running a computer program or instructions to implement the verification method as described in any one of the possible implementations of the first aspect and the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium having instructions stored therein which, when run on a terminal, cause the terminal to perform a verification method as described in any one of the possible implementations of the first aspect and the first aspect.
In a fifth aspect, the present application provides a computer program product comprising instructions which, when run on a verification apparatus, cause the verification apparatus to perform a verification method as described in any one of the possible implementations of the first aspect and the first aspect.
In a sixth aspect, the present application provides a chip comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being for running a computer program or instructions to implement the verification method as described in any one of the possible implementations of the first aspect and the first aspect.
In particular, the chip provided in the present application further includes a memory for storing a computer program or instructions.
In the verification method provided by the embodiment of the application, the first device acquires the input form information of the application form and the verification interface corresponding to the application form, and based on the verification interface, the service executing the verification rule corresponding to the application form verifies the input form information to determine whether the input form information accords with the verification rule, compared with the prior verification event requiring writing the verification of the application form in the general technology, the verification of the application form can be realized, the first device can directly determine the service corresponding to the verification rule of the application form by acquiring the verification interface corresponding to the application form, and the first device can realize the verification of the input form information by executing the service corresponding to the verification rule of the application form, so that the first device can quickly obtain the verification result, namely the first device can quickly determine whether the input form information of the application form accords with the verification rule, and the efficiency of verifying the input form information of the application form is improved.
Drawings
FIG. 1 is a schematic structural diagram of a verification system according to an embodiment of the present application;
Fig. 2 is a schematic structural diagram of a verification device according to an embodiment of the present application;
FIG. 3 is a flowchart of a verification method according to an embodiment of the present application;
FIG. 4 is a flowchart of another verification method according to an embodiment of the present application;
FIG. 5 is a flowchart of another verification method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another verification device according to an embodiment of the present application.
Detailed Description
The verification method, the verification device and the storage medium provided by the embodiment of the application are described in detail below with reference to the accompanying drawings.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms "first" and "second" and the like in the description and in the drawings are used for distinguishing between different objects or for distinguishing between different processes of the same object and not for describing a particular sequential order of objects.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the process of flow approval, a user can fill in an application form, and before the application form is submitted, the information in the application form filled in by the user is verified, and the application form is allowed to be submitted under the condition that the information meets the verification rule of the application form. Correspondingly, returning the application form under the condition that the information does not meet the check rule of the application form. Therefore, the application form is checked before the application form is submitted, the application form meeting the check rule is submitted, the approval success rate of the application form can be improved, and the repeated application form submitting condition is reduced, so that the working efficiency is improved.
At present, the method for checking the information in the application form comprises the following steps: acquiring input form information of an application form and a preposed check event corresponding to the application form, checking the input form information based on the preposed check event, and determining a check result of the application form, namely determining that the input form information meets the check rule under the condition that the input form information meets the check rule of the application form, and determining that the input form information does not meet the check rule under the condition that the input form information does not meet the check rule.
However, since the verification rules of different application forms may be different, different pre-verification events for verifying the application forms may need to be written in the process of verifying the application forms, and the process of writing the pre-verification events is complex, which results in lower efficiency of writing the pre-verification events and lower efficiency of verifying the input form information of the application forms. In addition, different application forms need to determine different pre-verification events, so that the pre-verification events need to be redeployed when different pre-verification events are used, code redundancy can be caused, the complexity of a system is increased, the difficulty of post-system maintenance is increased, and the experience of a user can be reduced.
In addition, when the input form information of the application form satisfies the verification rule and is submitted, the application form can be approved. After the submitted application form is approved, an approval result is determined, a notification flow is initiated, and the approval result is notified to an initiator of the application form or a responsible person of a next node so as to realize timely processing of the application form. In the process of notifying the approval result to the initiator of the application form or the responsible person of the next node, a set of codes needs to be customized and written for the notification flow, and the codes are complex, so that the problems of code redundancy and lower writing efficiency are possibly caused, and the notification flow is lower in efficiency are caused.
In view of this, the embodiment of the application provides a verification method, the first device obtains the input form information of the application form and the verification interface corresponding to the application form, and based on the verification interface, the service executing the verification rule corresponding to the application form verifies the input form information, so as to determine whether the input form information accords with the verification rule, compared with the case that the application form can be verified only by writing a pre-verification event for verifying the application form in the general technology, the first device obtains the verification interface corresponding to the application form and can directly determine the service corresponding to the verification rule of the application form, and the first device executes the service corresponding to the verification rule of the application form and can realize the verification of the input form information, so that the first device can quickly obtain the verification result, that is, the first device can quickly determine whether the input form information of the application form accords with the verification rule, and the efficiency of verifying the input form information of the application form is improved.
Illustratively, as shown in fig. 1, fig. 1 shows a schematic structural diagram of a verification system provided in an embodiment of the present application. The verification system comprises: a first device and a second device. Fig. 1 illustrates an example of a verification system comprising a first device 101 and a second device 102.
The first device 101 is configured to obtain input form information of an application form and a verification interface corresponding to the application form, and verify the input form information through the verification interface to obtain a verification result.
A second device 102 for providing input form information for the application form.
The check interface is used for indicating the service of executing the check rule corresponding to the application form. The verification result is used for representing whether the input form information accords with the verification rule.
The first device 101 may be an electronic device, for example. Specifically, the electronic device may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (ultra-mobilepersonal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digitalassistant, PDA), an augmented reality (augmented reality, AR) Virtual Reality (VR) device, and the embodiment of the present invention does not limit the specific form of the electronic device.
Alternatively, the first device 101 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (content deliverynetwork, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
The second device 102 may be a terminal (terminal equipment) or a User Equipment (UE) or a Mobile Station (MS) or a Mobile Terminal (MT), for example. Specifically, the second device 102 may be a mobile phone, a tablet computer, or a computer with a wireless transceiver function, and may also be a VR terminal, an AR terminal, a wireless terminal in industrial control, a wireless terminal in unmanned, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in a smart city (smart city), a smart home, a vehicle-mounted terminal, and the like. In the embodiment of the present application, the means for implementing the function of the second device 102 may be the second device 102, or may be a means capable of supporting the second device 102 to implement the function, for example, a chip or a chip system.
Alternatively, the second device 102 may be a server. The server may be a single server, or may be a server cluster formed by a plurality of servers. In some implementations, the server cluster may also be a distributed cluster.
In addition, the communication system described in the embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and does not constitute a limitation on the technical solution provided in the embodiments of the present application, and as a person of ordinary skill in the art can know, with evolution of the network architecture and appearance of a new communication system, the technical solution provided in the embodiments of the present application is equally applicable to similar technical problems.
In particular, the apparatus of fig. 1 may employ the constituent structure shown in fig. 2, or may include the components shown in fig. 2. Fig. 2 is a schematic diagram of a verification apparatus 200 provided in an embodiment of the present application, where the verification apparatus 200 may be the first device 101 or a chip or a system on a chip in the first device 101. Alternatively, the verification apparatus 200 may be the second device 102 or a chip or a system on chip in the second device 102. As shown in fig. 2, the verification device 200 may include a processor 201 and a communication line 202.
Further, the verification device 200 may further include a communication interface 203 and a memory 204. The processor 201, the memory 204, and the communication interface 203 may be connected through a communication line 202.
The processor 201 is a CPU, general-purpose processor, network processor (network processor, NP), digital signal processor (digital signal processing, DSP), microprocessor, microcontroller, programmable logic device (programmable logic device, PLD), or any combination thereof. The processor 201 may also be other devices with processing functions, such as, without limitation, circuits, devices, or software modules.
Communication line 202 is used to transfer information between the components included in verification device 200.
Communication interface 203 for communicating with other devices or other communication networks. The other communication network may be an ethernet, a radio access network (radio access network, RAN), a wireless local area network (wireless local area networks, WLAN), etc. The communication interface 203 may be a module, a circuit, a communication interface, or any device capable of enabling communication.
Memory 204 for storing instructions. Wherein the instructions may be computer programs.
The memory 204 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device capable of storing static information and/or instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device capable of storing information and/or instructions, an EEPROM, a CD-ROM (compact disc read-only memory) or other optical disk storage, an optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, etc.
It should be noted that the memory 204 may exist separately from the processor 201 or may be integrated with the processor 201. Memory 204 may be used to store instructions or program code or some data, etc. The memory 204 may be located inside the verification device 200 or outside the verification device 200, without limitation. The processor 201 is configured to execute instructions stored in the memory 204 to implement a verification method provided in the following embodiments of the present application.
In one example, processor 201 may include one or more CPUs, e.g., CPU0 and CPU1.
As an alternative implementation, the verification device 200 includes a plurality of processors.
As an alternative implementation, the verification apparatus 200 further comprises an output device and an input device. The output device is illustratively a display screen, speaker (spaker) or the like, and the input device is a keyboard, mouse, microphone or joystick or the like.
It should be noted that the verification apparatus 200 may be a desktop computer, a portable computer, a web server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system, or a device having a similar structure as in fig. 2. Furthermore, the constituent structures shown in fig. 2 do not constitute limitations on the respective apparatuses in fig. 1 and 2, and the respective apparatuses in fig. 1 and 2 may include more or less components than illustrated, or may combine some components, or may be arranged differently, in addition to the components shown in fig. 2.
In the embodiment of the application, the chip system may be formed by a chip, and may also include a chip and other discrete devices.
Further, actions, terms, etc. referred to between embodiments of the present application may be referred to each other without limitation. In the embodiment of the present application, the name of the message or the name of the parameter in the message, etc. interacted between the devices are only an example, and other names may also be adopted in the specific implementation, and are not limited.
The verification method provided in the embodiment of the present application is described below with reference to the verification system shown in fig. 1. In which, the terms and the like related to the embodiments of the present application may refer to each other without limitation. In the embodiment of the present application, the name of the message or the name of the parameter in the message, etc. interacted between the devices are only an example, and other names may also be adopted in the specific implementation, and are not limited. The actions involved in the embodiments of the present application are just an example, and other names may be used in specific implementations, for example: the "included" of the embodiments of the present application may also be replaced by "carried on" or the like.
In order to solve the problems in the prior art, the embodiment of the application provides a verification method, which can improve the efficiency of verifying the application form. As shown in fig. 3, the method includes:
s301, the first device acquires input form information of an application form and a check interface corresponding to the application form.
The check interface is used for indicating the service corresponding to the check rule of the execution application form.
As a possible implementation manner, the implementation process of S301 may be: in response to user operation, the first device can determine a verification event configured on the processing button under the condition that the user clicks the processing button corresponding to the application form, so as to process the approval process of the application form initiated by the user. The first device can execute the verification event, determine a verification interface called in the process of processing the application form by the first device, and determine the verification interface called in the process of processing the application form by the first device as a verification interface corresponding to the application form. The first device can call a check interface corresponding to the application form, execute a service corresponding to a check rule of the application form, and acquire information of the application form to obtain input form information of the application form.
In one possible embodiment, the service corresponding to the verification interface includes a local service or an external service.
It can be understood that, because the service corresponding to the check interface includes a local service or an external service, the first device can execute the local service to perform information collection on the application form and check the input form information, and also execute the external service to perform information collection on the application form and check the input form information, so that the first device can use more services, so that the first device can determine the check rule corresponding to the check rule of the application form from the service capable of being used, and further, new service is not required to be developed to check the application form, thereby not only improving the efficiency of checking the application form, but also saving the cost of developing the service.
Optionally, the service corresponding to the check interface may be a service corresponding to a nascent script determined by the first device based on a nascent language, so that the first device may execute the service corresponding to the nascent script.
As a possible implementation manner, in the case that the service corresponding to the verification interface is a local service, the first device may collect information on the application form based on the service corresponding to the nashun script, obtain input form information of the application form, and call the local service interface to execute the local service, where the input message transmitted to the local service interface by the first device is the input form information obtained by the first device based on the service corresponding to the nashun script.
It should be noted that, when the service corresponding to the check interface is a local service, if the check interfaces called by the first device are different, the order parameters of the application form obtained by the first device are also different, that is, the input form information of the application form obtained by the first device is different. The first device can directly modify the nashort script corresponding to the called check interface, so that the first device can obtain the order parameters of the required application form without modifying the service corresponding to the check interface, and the efficiency of acquiring the input form information of the application form is improved.
As another possible implementation manner, in the case that the service corresponding to the check interface is an external service, the first device may call the universal service interface to execute the external service based on the nashort script. The first device can determine the service corresponding to the actually-called interface through the external service to process the application form, and transmit the verification parameters for processing the application form to the first device through the universal service interface.
Illustratively, the above-mentioned verification parameters may include: the input form information (order) of the application form, the address of the generic service interface (uniform resource locator, url), the address of the external actual call interface (real uniform resource locator, reall), and the head node (req) of the actual call interface message body. The foregoing is merely an exemplary illustration of the verification parameters, and the verification parameters may further include other parameters, which are not limited in this application.
S302, the first device checks the input form information through the check interface to obtain a check result.
The verification result is used for representing whether the input form information accords with a verification rule or not.
In one possible implementation manner, the implementation process of S302 may be: and the first equipment invokes the service corresponding to the check rule through the check interface, and executes the service corresponding to the check rule to check the input form information to obtain a check result.
It may be understood that, because the service corresponding to the check interface includes a local service or an external service, the service corresponding to the check rule called by the first device based on the check interface may be a local service or an external service.
As a possible implementation manner, in the case that the service corresponding to the check interface is an external service, the implementation process of S302 may be: the first device may encapsulate the input form information of the application form, and call the service corresponding to the external actual call interface to verify the input form information based on the service corresponding to the verification rule, so as to obtain a verification parameter for verifying the application form. The first device processes the verification parameters to determine whether the input form information accords with the verification rule.
Optionally, the implementation process of the first device to process the verification parameter may be: the first device may put the input form information of the application form under the first node req of the external actual call interface message body, and create the request message header under the req peer node. The content of the header may include at least one of the following: an application identifier (app id), a timestamp, or a token, which are just one exemplary description of a header, the content of the header may also include other content, which is not limited in this application.
In one possible embodiment, when the service corresponding to the check interface is an external service, the first device may invoke, based on the check interface, the service corresponding to the check rule to check the input form information, so as to obtain the implementation process of the check result, where the implementation process may be: the first device determines return data obtained by executing the service corresponding to the check rule. The returned data comprises verification success prompt information or verification failure prompt information. The verification success prompt information is used for representing that the input form information accords with the verification rule. The verification failure prompt information is used for representing the reason that the input form information does not accord with the verification rule.
As a possible implementation, in the case where the returned data includes a verification success hint information, the verification success hint information may be a status code (status) that indicates a correct status. Accordingly, in the case that the returned data includes the verification failure notification information, the verification failure notification information may be a status code for indicating an error status.
It can be understood that the first device can directly determine whether the input form information of the application form accords with the verification rule according to the verification success prompt information or the verification failure prompt information included in the returned data by determining the returned data obtained by executing the service corresponding to the verification rule, so that the efficiency of verifying the application form can be improved.
In one possible embodiment, in the case where the returned data includes verification success hint information, the returned data also includes input form information.
It can be understood that under the condition that the returned data includes the verification success prompt information, the first device can directly obtain the input form information of the application form, that is, under the condition that the first device determines that the input form information of the application form accords with the verification rule, the first device can also determine the input form information of the application form, so that the first device can directly submit the input form information without re-acquiring or inquiring, and the approval efficiency of the subsequent application form can be improved.
In a possible embodiment, in the case that the returned data includes verification failure prompt information, the returned data further includes a reason why the input form information does not conform to the verification rule.
It can be understood that, under the condition that the returned data includes the verification failure prompt information, the first device can also obtain the reason that the input form information does not accord with the verification rule, so that the first device can return the reason that the input form information does not accord with the verification rule to the user under the condition that the input form information of the application form does not accord with the verification rule, so that the user can pertinently modify the input form information of the application form according to the reason, the efficiency of modifying the application form is improved, and the verification success rate of verifying the modified input form information can be improved.
Optionally, the first device may unify the data formats of the returned data, so that a data standard of a check interface corresponding to the invoked external service may be established, so that the universality and replicability of the returned data are improved, so that the first device may better receive and parse the returned data, and may reduce data conversion, further may reduce the redundancy of codes, and improve the efficiency of determining the check result of the application form.
Further, the first device may perform multiple adapting operations on the return data, so that the input form information obtained by the first device may be object data or list data, and thus, in the process of transmitting the return data, certain data format and adaptation may be performed on the return data, so that the first device uses the return data.
It should be noted that, when the first device invokes the external service, the first device may unify the specifications of the interface corresponding to the docking external service, so that the first device may invoke the external service.
In one possible implementation manner, when the service corresponding to the check interface is a local service, the first device may invoke, based on the check interface, the service corresponding to the check rule to check the input form information, so as to obtain an implementation process of the check result, where the implementation process may be: the first device can determine the service corresponding to the check rule from the local service based on the check interface, and call the service corresponding to the check rule to obtain the return data obtained by executing the service corresponding to the check rule. In the case where the returned data includes the input form information, the first device determines that the input form information complies with the verification rule.
Optionally, the first device may return the return data obtained by executing the service corresponding to the check rule to the check event configured on the processing button corresponding to the application form, so that the first device may determine a check result of the application form.
In the verification method provided by the embodiment of the application, the first device acquires the input form information of the application form and the verification interface corresponding to the application form, and based on the verification interface, the service executing the verification rule corresponding to the application form verifies the input form information to determine whether the input form information accords with the verification rule, compared with the prior verification event requiring writing the verification of the application form in the general technology, the verification of the application form can be realized, the first device can directly determine the service corresponding to the verification rule of the application form by acquiring the verification interface corresponding to the application form, and the first device can realize the verification of the input form information by executing the service corresponding to the verification rule of the application form, so that the first device can quickly obtain the verification result, namely the first device can quickly determine whether the input form information of the application form accords with the verification rule, and the efficiency of verifying the input form information of the application form is improved.
In a possible embodiment, in the case that the input form information accords with the verification rule, the application form may be submitted successfully, the first device may approve the submitted application form and notify the second device after the approval is completed, so that the second device processes the application form as soon as possible, and on the basis of the method embodiment shown in fig. 3, this embodiment provides a possible implementation manner, and in connection with fig. 3, as shown in fig. 4, the implementation process that the first device instructs the second device to process the input form information may be determined by the following S401 to S402.
S401, the first device acquires a notification interface corresponding to the application form.
The notification interface is used for indicating the service corresponding to the notification rule of the execution application form.
As a possible implementation manner, the implementation process of S401 may be: the first device can determine a notification event configured on a processing button corresponding to the application form, and call a notification interface corresponding to the application form based on the notification event, so that the first device can execute a service corresponding to a notification rule of the application form to notify the second device.
Optionally, the first device may add a tangent plane program on a processing button corresponding to the application form, so that when the first device determines that the input form information of the application form accords with the verification rule, the first device may jump to a button response function on the processing button corresponding to the application form. The first device may execute a button response function on a processing button corresponding to the application form, and execute a notification event configured on the processing button corresponding to the application form after the first device has executed the button response function.
Illustratively, the technique employed by the first device to add the facet procedure to the corresponding processing button of the application form may be a facet-oriented programming (aspect oriented programming, AOP) technique. The above is merely an exemplary illustration of a slice programming technique, which may also include other techniques, and the present application does not limit this.
It should be noted that, the first device executes the button response function on the processing button corresponding to the application form, and may submit the application form meeting the verification rule.
S402, the first device calls a service corresponding to the notification rule based on the notification interface, and sends first indication information to the second device.
The first indication information is used for indicating the second equipment to process the input form information.
As a possible implementation manner, the implementation process of S402 may be: the first device determines the second device based on the notification interface calling the service corresponding to the notification rule, and sends the first indication information to the second device in a manner (e.g., a short message) specified by the notification interface calling the service corresponding to the notification rule. The second device receives the first indication information from the first device and processes the input form information of the application form. The first indication information may include input form information of the application form.
As an example, the second device may be a terminal device (for example, a terminal device of an approver) corresponding to a next node after the application form is submitted in an approval process of the application form, so that the next node corresponds to the terminal device of the approver and can rapidly approve the application form, thereby accelerating the approval process. The second device may also be a terminal device of an initiator of the application form, so that the initiator of the application form may determine a verification result of the application form, and further determine whether to modify input form information of the application form.
In the verification method provided by the embodiment of the application form, the first device can acquire the notification interface corresponding to the application form, and call the service corresponding to the notification rule based on the notification interface, and the first indication information is sent to the second device, so that the second device processes the input form information, and therefore the first device can rapidly execute the service corresponding to the notification rule of the application form, the second device can timely obtain the first indication information and timely process the input form information of the application form, the residence time of the application form in each node of the approval process can be reduced, and the approval efficiency of the application form is further improved.
In a possible embodiment, before the first device invokes the service corresponding to the check interface, the first device may configure a check event on at least one processing button corresponding to the application form, so that the first device may perform a processing operation on the application form through the processing button, and may directly invoke the service corresponding to the check interface, and on the basis of the method embodiment shown in fig. 4, this embodiment provides a possible implementation manner, and in connection with fig. 4, as shown in fig. 5, an implementation process of configuring, by the first device, the check event for at least one processing button corresponding to the application form may be determined by the following S501 to S502.
S501, the first device determines at least one processing button corresponding to the application form.
Wherein the at least one processing button corresponds to the at least one processing operation one-to-one. The at least one processing operation includes a commit operation, and/or a retirement operation, and/or an agreement operation, and/or a retirement operation.
As a possible implementation manner, the implementation process of S501 may be: under the condition that a user initiates an approval process of the application form, the first device can determine a processing button corresponding to the application form from buttons which are included in the approval process and are used for processing the application form.
The first device may perform processing operations on the application form through a processing button corresponding to the application form, where the processing operations may include a submitting operation, and/or a withdrawing operation, and/or an agreeing operation, and/or a returning operation. The above is merely an exemplary illustration of a processing operation, and the processing operation may further include other operations (e.g., a temporary storage operation), which is not limited in any way herein.
S502, the first device configures at least one check event corresponding to at least one processing button one by one.
The check event is used for calling the service corresponding to the check interface.
As a possible implementation manner, the implementation process of S502 may be: the first device may click and add a check event on a configuration page of each of the at least one processing button, input an event identifier of the check event into the configuration page of the processing button, and establish an association between the processing button and the check event, so that the first device may query information such as script content of the check event in the event resource library through the event identifier of the check event configured on the processing button, thereby implementing check on input form information of an application form.
The event resource library may include a script definition table corresponding to each of the plurality of verification events. The fields in the script definition table may include at least one of: event identification (event id), event name (event name), event type (event type), script content (script content), and script asynchronous execution (event run sync type). The above is merely an exemplary description of fields in the script definition table, and the fields in the script definition table may further include other fields, which is not limited in any way by the present application.
It can be understood that, under the condition that the user initiates the approval process of the application form, if the approval process includes a requirement for checking the input form information of the application form, the first device can directly configure a check event on the processing button corresponding to the application form, so that the first device can check the application form based on the check event, and the code for checking the application form does not need to be redeveloped, thereby saving the time cost and the labor cost for developing the code.
And under the condition that the check event can not call the service corresponding to the check rule of the application form, the first equipment can create a new check event and check the application form based on the service corresponding to the check rule of the application form called by the new check event, so that the first equipment does not need to redevelop service codes required by the check application form, and the workload of code development is greatly reduced.
In addition, under the condition that the service corresponding to the check rule of the application form is not included in the service corresponding to the check interface, the first device can develop a service code required by checking the application form, so that the check of the application form is realized. Although in this case, the first device needs to develop the service code required for checking the application form, since the service for checking the application form in the general technology is more, the service corresponding to the check rule of most application forms can be satisfied, and therefore, the first device does not need to develop the service code frequently, that is, the first device can develop the service code only in the case that the service corresponding to the check rule of the application form is not included in the general technology, so that the workload can be greatly reduced, and the working efficiency can be further improved.
In one possible embodiment, the first device configures at least one notification event in one-to-one correspondence with at least one of the processing buttons. The notification event is used for calling the service corresponding to the notification interface.
Optionally, the event resource library may further include a script definition table corresponding to each notification event in the plurality of notification events. The implementation process of the first device configuration and the at least one notification event corresponding to the at least one processing button one to one may be understood by referring to the description of the corresponding position, which is not described herein.
As one possible implementation manner, the first device may divide the event configured corresponding to the at least one processing button into a check event and a notification event by type, and may divide each type of event into a synchronous execution script event and an asynchronous execution script event by call.
It should be noted that, the first device may set the verification event for verifying the input form information of the application form before the application form is submitted to be a synchronous execution script event, and may set the notification event for sending the second instruction information to the second device after the application form is submitted to be an asynchronous execution script event, so that the execution efficiency of the verification event and the notification event may be improved, and further the approval efficiency of the application form may be improved.
As a possible implementation manner, before the first device configures at least one check event and at least one notification event corresponding to at least one processing button, the first device may acquire a plurality of check events and a plurality of notification events, and sum up the plurality of check events and the plurality of notification events to obtain an event resource library, so that the first device may directly select an appropriate check event and notification event from the event resource library in the process of configuring the front event and notification event.
Optionally, the service invoked by the verification event may include a service corresponding to each of a plurality of service scenarios of the pre-verification, and the service invoked by the notification event may include a service corresponding to each of a plurality of service scenarios of the post-notification. The first device can encapsulate the service corresponding to each service scene of the pre-verification and encapsulate the service corresponding to a plurality of service scenes of the post-notification to obtain at least one service corresponding to each service scene, so that the first device can directly call the service corresponding to the service scene to which the application form belongs in the service corresponding to the verification interface based on the verification event, thereby improving the verification efficiency.
As a possible implementation manner, after the first device determines the event resource library, the first device may query the event resource library for a script definition table corresponding to the notification event according to an event identifier of the notification event configured on the processing button corresponding to the application form, and execute the notification event based on the content of the script definition table corresponding to the notification event.
In one possible implementation manner, the first device may set a tangent point on the processing button corresponding to the application form, so that in a case that the user clicks the processing button to process the application form, the first device may execute a verification event configured on the processing button before executing a button response function of the processing button, to implement verification of the application form, and may execute a notification event configured on the processing button after executing the button response function of the processing button.
Optionally, the first device may implement executing the above check event or notification event in java based on the ScriptContext. The first device may set the above-described execution environments for checking the event and notifying the event through the script context. The above-described operating environment may include at least one of: the hypertext transfer protocol (hypertext transfer protocol, http) environment, message queue (mq) environment, or data type environment, which are just one exemplary illustration of an operating environment, which may also include other environments, without any limitation in this application.
It can be understood that the first device sets an operation environment for the verification event or the notification event, so that the verification event or the notification event can be quickly and effectively executed, and further verification efficiency or notification efficiency can be improved, and approval efficiency of the application form is accelerated.
In the verification method provided by the embodiment of the application form, the first device configures the verification event for at least one processing button corresponding to the application form, so that under the condition of triggering the processing operation of the processing button, the first device can quickly determine the verification event and directly call the service corresponding to the verification interface, so that the first device can quickly obtain the service corresponding to the verification rule of the application form, and further can quickly verify the input form information of the application form, thereby improving the verification efficiency of verifying the input form information of the application form.
It will be appreciated that the above-described verification method may be implemented by a verification device. The verification device comprises a hardware structure and/or a software module corresponding to each function to realize the functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments.
The embodiment of the disclosure may divide the functional modules according to the verification device generated by the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment disclosed in the present application, the division of the modules is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 6 is a schematic structural diagram of a verification device according to an embodiment of the present invention. As shown in fig. 6, the verification device 60 may be used to perform the verification methods shown in fig. 3-5. The verification device 60 includes: a communication unit 601 and a processing unit 602.
The communication unit 601 is configured to obtain input form information of an application form and a check interface corresponding to the application form; the check interface is used for indicating the service corresponding to the check rule of the execution application form; the processing unit 602 is configured to verify, through a verification interface, the input form information to obtain a verification result; the verification result is used for representing whether the input form information accords with the verification rule.
In one possible implementation, the service corresponding to the verification interface includes a local service or an external service.
In a possible implementation manner, the processing unit 602 is further configured to determine return data obtained by executing the service corresponding to the check rule; the returned data comprises verification success prompt information or verification failure prompt information; the verification success prompt information is used for representing that the input form information accords with a verification rule; the verification failure prompt information is used for representing that the input form information does not accord with the verification rule.
In one possible implementation, where the return data includes verification success hint information, the return data also includes input form information.
In one possible implementation, in the case that the returned data includes verification failure prompt information, the returned data further includes a reason that the input form information does not conform to the verification rule.
In a possible implementation manner, the communication unit 601 is further configured to obtain a notification interface corresponding to the application form; the notification interface is used for indicating the service corresponding to the notification rule of the execution application form; the communication unit 601 is further configured to send first indication information to the second device based on the notification interface invoking a service corresponding to the notification rule; the first indication information is used for indicating the second equipment to process the input form information.
In a possible implementation manner, the processing unit 602 is further configured to determine at least one processing button corresponding to the application form; at least one processing button is in one-to-one correspondence with at least one processing operation; the at least one processing operation includes a commit operation, and/or a retirement operation, and/or a grant operation, and/or a retirement operation; the processing unit 602 is further configured to configure at least one verification event corresponding to at least one processing button one-to-one; the check event is used for calling the service corresponding to the check interface.
In a possible implementation, the processing unit 602 is further configured to configure at least one notification event corresponding to at least one processing button one-to-one; the notification event is used for calling the service corresponding to the notification interface.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The present disclosure also provides a computer-readable storage medium having instructions stored thereon that, when executed by a processor of an electronic device, enable the electronic device to perform the verification method provided by the embodiments of the present disclosure described above.
The disclosed embodiments also provide a computer program product containing instructions that, when run on an electronic device, cause the electronic device to perform the verification method provided by the disclosed embodiments described above.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access Memory (Random Access Memory, RAM), a Read-Only Memory (ROM), an erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a register, a hard disk, an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuit, ASIC). In the context of the present application, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method of verification, for use with a first device, the method comprising:
acquiring input form information of an application form and a check interface corresponding to the application form; the check interface is used for indicating the service corresponding to the check rule of the application form;
checking the input form information through the checking interface to obtain a checking result; and the check result is used for representing whether the input form information accords with the check rule.
2. The method of claim 1, wherein the service to which the verification interface corresponds comprises a local service or an external service.
3. The method according to claim 2, wherein the service corresponding to the check interface is the external service, and the checking the input form information through the check interface to obtain a check result includes:
Determining return data obtained by executing the service corresponding to the check rule; the returned data comprises verification success prompt information or verification failure prompt information; the verification success prompt information is used for representing that the input form information accords with the verification rule; and the verification failure prompt information is used for representing that the input form information does not accord with the verification rule.
4. A method according to claim 3, wherein in the event that the return data includes the verification success cue information, the return data further includes the input form information.
5. A method according to claim 3, wherein in the event that the return data includes the verification failure indication information, the return data further includes a reason why the input form information does not comply with the verification rule.
6. The method according to claim 3 or 4, wherein in case the input form information complies with the verification rule, the method further comprises:
acquiring a notification interface corresponding to the application form; the notification interface is used for indicating the service corresponding to the notification rule of the application form;
calling a service corresponding to the notification rule based on the notification interface, and sending first indication information to second equipment; the first indication information is used for indicating the second equipment to process the input form information.
7. The method of claim 6, wherein the method further comprises:
determining at least one processing button corresponding to the application form; the at least one processing button corresponds to the at least one processing operation one by one; the at least one processing operation includes a commit operation, and/or a retirement operation, and/or an agreement operation, and/or a retirement operation;
configuring at least one check event in one-to-one correspondence with the at least one processing button; and the check event is used for calling the service corresponding to the check interface.
8. The method of claim 7, wherein the method further comprises:
configuring at least one notification event in one-to-one correspondence with the at least one processing button; the notification event is used for calling the service corresponding to the notification interface.
9. A verification apparatus for use with a first device, said apparatus comprising: a communication unit and a processing unit;
the communication unit is used for acquiring the input form information of the application form and a check interface corresponding to the application form; the check interface is used for indicating the service corresponding to the check rule of the application form;
the processing unit is used for checking the input form information through the checking interface to obtain a checking result; and the check result is used for representing whether the input form information accords with the check rule.
10. The apparatus of claim 9, wherein the service to which the verification interface corresponds comprises a local service or an external service.
11. A verification device, comprising: a processor and a communication interface; the communication interface is coupled to the processor for running a computer program or instructions to implement the verification method as claimed in any one of claims 1-8.
12. A computer readable storage medium having instructions stored therein, characterized in that when executed by a computer, the computer performs the verification method of any one of the preceding claims 1-8.
CN202311576525.5A 2023-11-23 2023-11-23 Verification method, verification device and storage medium Pending CN117592931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311576525.5A CN117592931A (en) 2023-11-23 2023-11-23 Verification method, verification device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311576525.5A CN117592931A (en) 2023-11-23 2023-11-23 Verification method, verification device and storage medium

Publications (1)

Publication Number Publication Date
CN117592931A true CN117592931A (en) 2024-02-23

Family

ID=89917803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311576525.5A Pending CN117592931A (en) 2023-11-23 2023-11-23 Verification method, verification device and storage medium

Country Status (1)

Country Link
CN (1) CN117592931A (en)

Similar Documents

Publication Publication Date Title
US20220239508A1 (en) Blockchain message processing method and apparatus, computer, and readable storage medium
CN109284197B (en) Distributed application platform based on intelligent contract and implementation method
CN106998343B (en) Remote procedure call processing method, device and system
EP3839944B1 (en) Voice processing method and apparatus, device, and computer storage medium
KR102407334B1 (en) Gateway apparatus and operating method thereof
EP3319267A1 (en) Wireless system access control method and device
CN108762956B (en) Method for acquiring Native local data, server, mobile terminal and storage medium
US11182210B2 (en) Method for resource allocation and terminal device
CN112714158B (en) Transaction processing method, relay network, cross-link gateway, system, medium and equipment
CN109189509B (en) Interface calling method, interface calling response method and server
CN112954717B (en) Household appliance network distribution method and device based on H5 page
CN112491776A (en) Security authentication method and related equipment
EP3839945B1 (en) Speech processing method and system
CN112835632B (en) Method and equipment for calling end capability and computer storage medium
US10958726B2 (en) Method of synchronizing device list in a smart network system, apparatus, and computer storage medium thereof
CN111752728B (en) Message transmission method and device
CN114860468A (en) SDK calling method and device, computer equipment and storage medium
CN117592931A (en) Verification method, verification device and storage medium
CN111447262A (en) Request sending method, client and storage medium
CN110543360A (en) Task processing method and system
CN113326172B (en) Operation and maintenance knowledge processing method, device and equipment
CN115174665B (en) Login state determining method, device, equipment and storage medium
CN113746943A (en) Method and device for transmitting data, server and Internet of things system
CN112929453A (en) Method and device for sharing session data
CN112272211A (en) Service request processing method, device and system

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