Business logic code generation method, apparatus and device, and storage medium

A business logic and code generation technology, applied in the computer field, can solve the problems of long online cycle, low reusability, high labor cost, and achieve the effect of lowering the threshold

Active Publication Date: 2020-02-07
亚信创新技术(南京)有限公司
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

There are many defects in this development method, such as: high labor costs, long online cycle, low efficiency, low reusability, high business maintenance costs, large resource consumption, etc.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Business logic code generation method, apparatus and device, and storage medium
  • Business logic code generation method, apparatus and device, and storage medium
  • Business logic code generation method, apparatus and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] This embodiment provides a business logic code generation method for processing streaming data and real-time complex events, such as figure 1 shown, including the following steps:

[0034]S11: Pre-package the data source, logic operation, and data output channel into visual data source components, logic operation components, and data output channel components for users to choose. The data source includes kafka, sokect, MYSQL, HBase, Redis, etc. Among them, MYSQL, HBase, and Redis are regarded as special data sources, called dimension tables; dimension tables correspond to fact tables, fact tables are used to store fact measurements and foreign key values ​​pointing to each dimension, and dimension tables are used to save The metadata of this dimension; the data output channel Sink can be Oracle, HTTP, ES, MYSQL, etc. In addition, this embodiment also provides a preset SQL template and a user-defined saved template that are different from the above-mentioned package com...

Embodiment 2

[0063] This embodiment provides a business logic code generation device, such as Figure 5 shown, including:

[0064] The encapsulation unit 21 is used to package the data source, logical operation, and data output channel respectively into visualized data source components, logical operation components, and data output channel components for user selection; see S11 in Embodiment 1 for specific implementation details, here I won't repeat them here.

[0065] The acquisition unit 22 is configured to acquire the data source component, logic operation component, and data output channel component selected by the user; see S12 in Embodiment 1 for specific implementation, and details will not be repeated here.

[0066]The receiving unit 23 is configured to receive component parameters corresponding to the data source component, logical operation component, and data output channel component set by the user; see S13 in Embodiment 1 for specific implementation, and details are not repe...

Embodiment 3

[0085] This embodiment provides a business logic code generation device, such as Figure 8 As shown, it includes a memory 31 and a processor 32, and the processor 32 is used to read instructions stored in the memory 31 to implement the steps of the business logic code generation method in Embodiment 1 when executing the program.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a business logic code generation method, apparatus and device, and a storage medium. The business logic code generation method includes the steps: respectively packaging a datasource, a logic operation and a data output channel into a visual data source component, a logic operation component and a data output channel component in advance for a user to select; acquiring a data source component, a logical operation component and a data output channel component selected by a user; receiving component parameters which are set by a user and correspond to the data source component, the logical operation component and the data output channel component; connecting the data source component, the logical operation component and the data output channel component according tothe operation of a user to form a flow chart; converting the flow chart into a character string corresponding to the flow chart; and analyzing the character string to generate a service logic code. According to the business logic code generation method, service logic code development is configured, modularized and visualized, and code development of most service scenes can be completed only through simple dragging operation of a user, and the underlying technology is shielded, and the development threshold is lowered, and development becomes easier and easier.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a business logic code generation method, device, equipment and storage medium. Background technique [0002] With the continuous advancement of Internet technology, the amount of data generated by some enterprises and individuals is increasing day by day. In order to process massive data, big data stream computing and complex event processing have emerged as the times require. Big data flow computing technology can obtain and mine huge value from massive big data in real time, and its use in event-driven application scenarios is more representative, while complex event processing is to process information generated in information systems from an event-driven perspective. Massive data can be used for detection, processing, analysis and mining of real-time event streams. [0003] More and more mature technical frameworks in the field of stream computing have appeared in the open s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/34G06F8/35
CPCG06F8/34G06F8/35
Inventor 徐平
Owner 亚信创新技术(南京)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products