CN116483420A - Method, apparatus and computer medium for coupling business logic and technical place understanding - Google Patents

Method, apparatus and computer medium for coupling business logic and technical place understanding Download PDF

Info

Publication number
CN116483420A
CN116483420A CN202210041592.6A CN202210041592A CN116483420A CN 116483420 A CN116483420 A CN 116483420A CN 202210041592 A CN202210041592 A CN 202210041592A CN 116483420 A CN116483420 A CN 116483420A
Authority
CN
China
Prior art keywords
processing
customized
query result
technology
tag
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
CN202210041592.6A
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.)
Dajia Pension Insurance Co ltd
Original Assignee
Dajia Pension Insurance 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 Dajia Pension Insurance Co ltd filed Critical Dajia Pension Insurance Co ltd
Priority to CN202210041592.6A priority Critical patent/CN116483420A/en
Publication of CN116483420A publication Critical patent/CN116483420A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Methods, apparatus, and computer media for coupling business logic to technology sites are provided. The method comprises the following steps: receiving a query request through a querier and querying the service model to return a customized query result; receiving a customized query result from the querier, and executing the processing of the business logic according to the customized query result; determining whether the customized query result includes a processing flag; and if the customized query result includes a processing tag, processing the processing tag to invoke technology processing logic corresponding to the processing tag to perform technology processing.

Description

Method, apparatus and computer medium for coupling business logic and technical place understanding
Technical Field
The present invention extends to methods, apparatus, and computer media for coupling business logic to technology. In particular, the invention relates to the field of software development, and in particular to decoupling of business from technology in software development.
Background
In the modern software development process, in most cases, developers will use technical modes to implement according to each link in the business process in turn.
For example, in an account management system, when a customer charges his account, the implementation of the existing system is as follows: 1. according to the account ID of the client, an SQL sentence is established, and a corresponding account is found from a database; 2. obtaining the balance of the account, and increasing the value of the balance by the number to be recharged; 3. after the balance is increased by the number, a new SQL sentence is spliced and executed in a database, and then a new value of the account balance is saved; 4. and various service related checks should be made in the process. In addition, the dirty reading is avoided by locking and the like, namely, the fact that other people cannot read and modify the balance of the account during the execution of the process is ensured.
The above-described process represents an existing daily software system development workflow. Here, a business activity may be summarized by a "business model", for example, when an account exists, the balance of the account may be increased, and various checks may be required in the process of the increase, such as whether or not the excess is exceeded, etc. The business model is typically developed by a business expert and implemented in coded form by a developer. Most of the time, the business model should be a bridge for the developer to communicate with the business specialist, and is a communication language that can be recognized by both parties.
In the development process of the software system, the service codes only contain service knowledge, accurately and simply express the essence of the service model, and express the knowledge from the perspective of service personnel so as to be convenient for the two parties to communicate. Meanwhile, along with the upgrading and updating of the technology, the implementation methods of many bottom technologies are changed continuously, and the changes are irrelevant to business knowledge, so that business codes are not affected by the technological changes to be modified, and unnecessary workload and even risks are avoided.
To solve this problem, it is desirable to implement a method or tool that does not include technical processes such as querying a database and saving the database in the business logic code for account balance increase, and that allows the system to "automatically" save the account balance after the business logic has been processed.
Disclosure of Invention
According to one aspect of the present invention, there is provided a method for coupling business logic to technology site understanding, comprising: receiving a query request through a querier and querying the service model to return a customized query result; receiving a customized query result from the querier, and executing the processing of the business logic according to the customized query result; determining whether the customized query result includes a processing flag; and if the customized query result includes a processing tag, processing the processing tag to invoke technology processing logic corresponding to the processing tag to perform technology processing.
According to another aspect of the present invention, there is provided an apparatus for coupling business logic and technology understanding, comprising: the inquirer is used for receiving the inquiry request and inquiring the service model so as to return a customized inquiry result; the business logic processing module is used for receiving the customized query result from the querier and executing business logic processing according to the customized query result; and
the mark processing module is used for: determining whether the customized query result includes a processing flag; and if the customized query result includes a processing tag, processing the processing tag to invoke technology processing logic corresponding to the processing tag to perform technology processing.
According to another aspect of the invention, there is provided a computer readable medium having instructions stored thereon, which when executed, cause a computing device to perform a method according to the invention.
The above-described embodiments of the present invention enable "decoupling technology from business" in software development. By the invention, the software developer can enjoy various convenience of 'technology and service decoupling'. For example, a developer may not need to consider the implementation of the business model at the technical level when writing the business model, and even if the underlying technology implementation is switched in the future, the business model does not need to be adjusted. The coding mode of the service model is changed only according to the change of the actual service form, and the content of the service model is focused on and approximates to natural language, so that a developer and a service expert can carry out high-efficiency communication based on the service model and focus on the problem of service.
Drawings
Specific exemplary embodiments of the present invention will now be described with reference to the accompanying drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. The terminology used in the detailed description of the particular exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, like numerals refer to like parts.
FIG. 1 is a flow chart illustrating a method for coupling business logic to technology site understanding in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for coupling business logic to technology site understanding in accordance with an embodiment of the present invention;
FIG. 3 is a block diagram illustrating an apparatus for coupling business logic to technology site understanding in accordance with an embodiment of the present invention; and
FIG. 4 is a block diagram illustrating a computing device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be further described below by referring to the accompanying drawings and examples.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless expressly stated otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Fig. 1 is a flow chart illustrating a method 100 for coupling business logic to technology site understanding in accordance with an embodiment of the present invention. As shown in fig. 1, at step 102, a query request is received by a querier and a business model is queried to return customized query results. In one example, the business model may be an account model and the query request may be a query request for the account model. In this example, the query request may include information related to the account model, such as an account ID, an account password, and so forth.
At step 104, customized query results are received from the querier and processing of business logic is performed according to the customized query results. In one example, the querier may return customized query results, such as customized account objects, based on the account ID included in the query request. The returned customized query results may include business logic associated with the business model. For example, in the above example, the customized account object may include business logic such as a method of increasing a balance. In one example, the obtained customized query results may be customized to include only business logic and not technical processing logic, such as technical processing that does not include query databases and save databases.
At step 106, a determination is made as to whether the custom query result includes a processing token (which may also be referred to herein as an annotation). In one example, the process tag may be one code type in the JAVA language for tagging other codes. However, the process marking is not limited to being implemented by the JAVA language, and the marking mechanism may be implemented in a variety of programming languages, such as C, C ++, C#, python, and the like.
At step 108, if the custom query result includes a processing tag, the processing tag is processed to invoke technology processing logic corresponding to the processing tag to perform technology processing. In one example, the process tag may be, for example, a tag corresponding to various technical processes, such as the "@ save" tag. In an example where the returned customized query result is a customized account object, after execution of business logic, such as the add balance method, is completed, technical processing logic corresponding to the processing indicia is invoked to perform technical processing. For example, the customized account object may automatically invoke logic of the account processor corresponding to the "@ save" flag that stores account data to a database. In a further example, the querier may be configured to add a processing token to the customized query result based on information included in the query request. For example, if a request from the outside wishes to issue a notification to the account-holder after executing the method of increasing the balance, the querier may add a notification flag (@ info) to the customized account object in response to the request. Thus, after execution of business logic such as the add balance method is completed, processing logic corresponding to the "@ info" flag to notify account changes may be automatically invoked upon an external request. Further, various process markers may be defined as desired to implement various technical processes, including, for example, but not limited to, markers shown in the following table.
Sequence number Label name Technology processing of implementation
1 @Save Automatic preservation
2 @needLogin If the user needs to log in, the program can judge whether the current user logs in.
3 @InternalCalls Judging whether the current requester is an intranet system or not, and if not, not allowing the current method to be executed
4 @Warn When the method is executed, an alarm mechanism of the system is triggered
By the above method according to an embodiment of the present invention, a business model written by a developer may include only business logic, without considering the implementation of this model at the technical level, i.e. technical processing logic. By the method, the service model is developed, so that developers and service specialists can communicate efficiently based on the model. Further, by defining processing tokens and adding various processing tokens to custom query results as desired, various technical processing logic can be flexibly and efficiently invoked.
Referring now to FIG. 2, a flow diagram of a method 200 for coupling business logic to technology understanding is shown, according to one embodiment of the invention. As shown in FIG. 2, the middle column shows the business logic building portion of interest to the developer and business specialist. Specifically, in one example, a developer may build an account model that may include various methods performed on an account, such as a method of increasing a balance, a method of warning of balance change, and so forth. Various tools constructed in accordance with embodiments of the invention are shown in the right column, including building a series of process marks and building a querier for the account model in the example above.
In the flow illustrated in FIG. 2, at step 202, a request for an account model from outside is received and sent to a querier to query an account object. For example, the request may be an increase balance request for a particular account. At step 204, the querier returns query results, such as account objects, based on information, such as account IDs from external requests. At step 206, an add balance method for the account corresponding to the account ID is invoked and the balance desired to be added is entered based on the returned account object. At step 208, after the balance increasing method is performed, if it is determined that the processing token is included in the account object returned by the querier, technical processing corresponding to the processing token is automatically performed, such as storing account data to a database when the processing token is @ save, and so on.
The methods of the present invention described above with reference to FIGS. 1 and 2 may be implemented in a variety of programming languages, including JAVA, C, C++, C#, python, and the like, as the present invention is not limited in this regard. Further, these methods may be implemented by an open source framework such as CGLIB, as the invention is not limited in this respect.
As an example, in a CGLIB-based framework, after the method in the account object is executed, if the method includes @ save method, then the method in the account object is automatically found (the object is an object for saving the account object to the database, and includes a technical implementation purely oriented to database operations), and the save method in the account object is executed. It should be noted that several annotations (i.e., processing tags as above) may be defined. For example, when a developer wishes that an account be automatically saved after a certain operation (e.g., increasing the balance) is performed, this annotation @ save can be added to this method. By the annotation, a developer does not need to write save logic by himself, and further the developer does not need to care about what mode is adopted for storing account balances.
In the CGLIB-based framework described above, the querier may be implemented to include a create method that may be invoked when a developer attempts to acquire an account object in code of business logic. According to the accountId (i.e. the request from the outside) input by the external caller, the querier obtains and returns a customized accountant object, the external appearance of which is consistent with the 'original business object', but which is generated by ProxyUtil class through the byte code generation technology of CGLIB. The ProxyUtil class uses CGLIB techniques to generate this custom account object. Thus, the external program calls the addBalance method of account to increase the balance. Then, because the addBalance method contains @ Save comments, the Save method of the recollection class marked on the Account class, namely the Account recollection method, is executed, so that the operation of automatically saving the latest Account balance to the database is realized.
Referring now to fig. 3, shown is a block diagram 300 of an apparatus for coupling business logic and technology understanding in accordance with one embodiment of the present invention. As shown in fig. 3, apparatus 300 may include a querier 302, a business logic processing module 304, and a label processing module 306. The querier 302 is configured to receive the query request and query the business model to return the customized query result. As an example, the querier 302 may receive the query request directly from the outside, or may receive the query request from the outside via a business model. The business logic processing module 304 receives the customized query results from the querier and performs the processing of the business logic according to the customized query results. By way of example, business logic processing module 304 performs processing of business logic included in the business model based on various objects returned by the custom query results. The tag processing module 306 is configured to determine whether the customized query result includes a processing tag; and if the customized query result includes a processing tag, processing the processing tag to invoke technology processing logic corresponding to the processing tag to perform technology processing. In one example, the querier 302 may also add processing tokens to the customized query results based on information included in the query request. For example, the querier 302 may add a processing tag according to the requirements of an external program, so that after executing the processing of business logic, various technical processing logic corresponding to the added processing tag may be called to execute the required various technical processing. In various embodiments, the apparatus 300 may be used to perform the steps of any of the methods as described above.
The solution implemented according to various embodiments of the present invention decouples business from technology so that business professionals and developers can focus on expressing the nature of the business model without concern for the implementation of complex and extensive underlying technologies. By the technology of the invention, developers can be helped to build a purer service model without being limited by the implementation mode of the specific technology.
Additionally or alternatively, the above-described methods, general-purpose docking modules, service platforms, or third party platforms of the present application may be implemented on one or more computers or servers or similar devices using computer processors, memory units, storage devices, computer software, and other components. A high-level block diagram of such a computer or server is shown in fig. 4. Herein, a computer, server, or other device that includes a processor is collectively referred to as a computing device. The computing device 402 contains a processor 404, the processor 404 controlling the operation of the computer 402 by executing computer program instructions that define the overall operation. The computer program instructions may be stored in a storage device 412 (e.g., disk) and loaded into memory 410 when execution of the computer program instructions is desired. Accordingly, the steps of the method with reference to fig. 1 and 2 may be defined by computer program instructions stored in the memory 410 and/or the storage device 412 and controlled by the processor 404 executing the computer program instructions. Computing device 402 also includes one or more network interfaces 406 for communicating with other devices via a network. Computing device 402 also includes other input/output devices 408 (e.g., display, keyboard, mouse, speakers, buttons, etc.) that enable a user to interact with computer 402. Those skilled in the art will recognize that an embodiment of an actual computer may also contain other components, and that FIG. 4 is a high-level representation of some of the components of such a computer for illustrative purposes.
Storage 412 and memory 410 each comprise a tangible, non-transitory computer-readable storage medium. Storage 412 and memory 410 may each comprise high-speed random access memory, such as Dynamic Random Access Memory (DRAM), static Random Access Memory (SRAM), double data rate synchronous dynamic random access memory (DDR RAM), or other random access solid state memory devices, and may comprise non-volatile memory, such as one or more magnetic disk storage devices (such as an internal hard disk and removable magnetic disk), magneto-optical disk storage devices, flash memory devices, semiconductor memory devices (such as Erasable Programmable Read Only Memory (EPROM), electrically Erasable Programmable Read Only Memory (EEPROM)), compact disc read only memory (CD-ROM), digital versatile disc read only memory (DVD-ROM) discs, or other non-volatile solid state memory devices.
In another embodiment, the above-described method, universal docking module, service platform, or third party platform may be implemented in a network-based cloud computing system. In such network-based cloud computing systems, a server communicates with one or more client computers via a network. The client computer may communicate with the server, for example, via a web browser application residing on and running on the client computer. The client computer may store the data on a server and access the data via a network. The client computer may transmit a data request or an online service request to the server via the network. The server may implement the requested service and provide the data to the client computer(s). The server may also transmit data adapted to cause the client computer to perform specified functions (e.g., perform calculations, display specified data on a screen, etc.). Some steps of the above-described methods may be implemented by a server or by other computers/processors in a network-based cloud computing system. Some of the steps of the above-described methods may be implemented locally by a client computer in a network-based cloud computing system. The steps of the above-described methods may be implemented by one or more devices in a network-based cloud computing system or by a local client computer in any combination.
It is appreciated that certain features of the application, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, various features of the application which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable subcombination or in any other described embodiment of the application. Certain features described in the context of various embodiments should not be considered as essential features of those embodiments unless the embodiment is ineffective without those elements.
While the present application has been described in conjunction with specific embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art. Accordingly, it is intended to embrace all such alternatives, modifications and variations that fall within the spirit and broad scope of the appended claims.
All publications, patents, and patent applications mentioned in this specification are herein incorporated in their entirety by reference into the specification, to the same extent as if each individual publication, patent, or patent application was specifically and individually indicated to be incorporated herein by reference. In addition, citation or identification of any reference in this application shall not be construed as an admission that such reference is available as prior art to the present application. Where a segment title is used, it should not be construed as necessarily limiting.

Claims (9)

1. A method for coupling business logic and technology comprehension, comprising:
receiving a query request through a querier and querying the service model to return a customized query result;
receiving a customized query result from the querier, and executing the processing of the business logic according to the customized query result;
determining whether the customized query result includes a processing flag; and
if the customized query result includes a processing tag, the processing tag is processed to invoke technology processing logic corresponding to the processing tag to perform technology processing.
2. The method of claim 1, wherein the querier is configured to query the business model based on information included in the query request to obtain customized query results, and wherein the obtained customized query results are customized to include only business logic and not technical processing logic.
3. The method of claim 2, wherein the processing token is configured to, when included in the customized query result, automatically invoke the technology processing logic corresponding to the processing token to perform the corresponding technology processing.
4. A method according to claim 3, wherein the querier is configured to add a processing token to the customized query result based on information included in the query request.
5. An apparatus for coupling business logic and technology comprehension, comprising:
the inquirer is used for receiving the inquiry request and inquiring the service model so as to return a customized inquiry result;
the business logic processing module is used for receiving the customized query result from the querier and executing business logic processing according to the customized query result; and
the mark processing module is used for:
determining whether the customized query result includes a processing flag; and
if the customized query result includes a processing tag, the processing tag is processed to invoke technology processing logic corresponding to the processing tag to perform technology processing.
6. The apparatus of claim 5, wherein the querier is configured to query the business model based on information included in the query request to obtain a customized query result, and wherein the obtained customized query result is customized to include only business logic and not technical processing logic.
7. The apparatus of claim 6, wherein the tag processing module is configured to automatically invoke technology processing logic corresponding to the processing tag to perform the corresponding technology processing when the processing tag is included in the custom query result.
8. The apparatus of claim 7, wherein the querier is configured to add a processing token to the customized query result based on information included in the query request.
9. A computer readable medium having instructions stored thereon, which when executed, cause a computing device to perform the method of any of claims 1-4.
CN202210041592.6A 2022-01-14 2022-01-14 Method, apparatus and computer medium for coupling business logic and technical place understanding Pending CN116483420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210041592.6A CN116483420A (en) 2022-01-14 2022-01-14 Method, apparatus and computer medium for coupling business logic and technical place understanding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210041592.6A CN116483420A (en) 2022-01-14 2022-01-14 Method, apparatus and computer medium for coupling business logic and technical place understanding

Publications (1)

Publication Number Publication Date
CN116483420A true CN116483420A (en) 2023-07-25

Family

ID=87212428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210041592.6A Pending CN116483420A (en) 2022-01-14 2022-01-14 Method, apparatus and computer medium for coupling business logic and technical place understanding

Country Status (1)

Country Link
CN (1) CN116483420A (en)

Similar Documents

Publication Publication Date Title
RU2408074C2 (en) Method, system and apparatus for providing access to workbook models through remote function calls
KR102432104B1 (en) Systems and methods for determining relationships between data elements
US9275024B2 (en) Identifiers for web font templates
US20050108195A1 (en) Method, system, and apparatus for processing information based on the discovery of semantically labeled strings
US20180330455A1 (en) Method and system for facilitating implementation of regulations by organizations
TW201705020A (en) Intelligent cloud search system for performing multiplexing processing including searching, calculation, editing, transmission at the same time
CN110675238A (en) Client label configuration method, system, readable storage medium and electronic equipment
CN113360676A (en) Method and device for determining potential relation of enterprise based on knowledge graph
CN111553556A (en) Business data analysis method and device, computer equipment and storage medium
US11769013B2 (en) Machine learning based tenant-specific chatbots for performing actions in a multi-tenant system
US8862609B2 (en) Expanding high level queries
US10185757B2 (en) Non-uniform multi-row text file loading
WO2019085118A1 (en) Topic model-based associated word analysis method, and electronic apparatus and storage medium
CN113420542A (en) Dialog generation method and device, electronic equipment and storage medium
CN115210705A (en) Vector embedding model for relational tables with invalid or equivalent values
CN116483420A (en) Method, apparatus and computer medium for coupling business logic and technical place understanding
Pollin Digital Edition Publishing Cooperative for Historical Accounts and the Bookkeeping Ontology.
CN112463896B (en) Archive catalogue data processing method, archive catalogue data processing device, computing equipment and storage medium
WO2018206819A1 (en) Data storage method and apparatus
Yamakata et al. A case study on start-up of dataset construction: In case of recipe named entity corpus
Belic et al. User‐friendly web application for bibliographic material processing
CN113515949A (en) Weakly supervised semantic entity recognition using general and target domain knowledge
US10380084B2 (en) Data model view with complex calculation capability
CN117951303B (en) Text information relevance analysis method and equipment based on generation type large model
Grishchenko et al. The heterogeneities elimination in the process of data insertion procedures creation in structure-independent databases

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