CN110288324A - A kind of generation of service code executes method and device - Google Patents
A kind of generation of service code executes method and device Download PDFInfo
- Publication number
- CN110288324A CN110288324A CN201910579389.2A CN201910579389A CN110288324A CN 110288324 A CN110288324 A CN 110288324A CN 201910579389 A CN201910579389 A CN 201910579389A CN 110288324 A CN110288324 A CN 110288324A
- Authority
- CN
- China
- Prior art keywords
- class
- code
- subservice
- order
- instruction
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/33—Intelligent editors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Human Resources & Organizations (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Data Mining & Analysis (AREA)
- Technology Law (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to the fields financial technology (Fintech), and disclose a kind of generation of service code, execute method and device, wherein, business includes multiple subservices, each subservice has its corresponding subservice code, code execution method includes: after the generation parameter for receiving service code, the context class of creation business, and generate the order class of each subservice code, sequence is executed according to preset, the order class of each subservice code is formed into combinations of services class, as service code, after receiving code and executing instruction, each order class that control service code includes calls its corresponding subservice code as object code one by one, and after bringing the input parameter for including in associated context class into object code, performance objective code, up and down using the output result of object code as output parameter deposit Literary class.Generation of the technical solution to the service code suitable for business complex scene.
Description
Technical field
The present embodiments relate to the financial technology field (Fintech) more particularly to a kind of generation of service code, execute
Method and device.
Background technique
With the development of computer technology, more and more technical applications are in financial field, and traditional financial industry is gradually
Change to financial technology, the generation technique of service code is no exception, but due to finance, the safety of payment industry, real-time
It is required that the higher requirement also proposed to the technology.
It by constructing business scaffold code instrumentation, realizes and utilizes template automatic code generating, this kind of mode is suitable for letter
Single single table business quickly generates front-end interactive page according to database table structure and back-end logic handles code.It is such as silver-colored
In the scene of the business such as row, security, fund complexity, it is related to multiple operation flows, thereby increases and it is possible to will increase or delete operation flow, lift
For example, open a bank account be related to out card, set close, family of making out a bill, binding contact details, identity card image deposit multiple steps such as card, relate to
And different system interaction.Code instrumentation in the prior art can not be directed to complicated business scene automatic code generating.
Summary of the invention
The embodiment of the present invention provides a kind of generation of service code, executes method and device, complicated to be suitable for business
The generation of service code in scene.
A kind of generation method of service code provided in an embodiment of the present invention, the business include multiple subservices, each institute
Stating subservice has its corresponding subservice code;
The described method includes:
The generation parameter of service code is received, and generates the order of each subservice code according to the generation parameter
Class, the order class is for calling the subservice code;
Sequence is executed according to preset, the order class of each subservice code is formed into combinations of services class, as the business
Code.
In above-mentioned technical proposal, business is divided into multiple subservices according to business demand, and each subservice is respectively created
The order class of code, the order class of each subservice code are used to call the service code of each subservice, combine multiple order classes
For combinations of services class, for calling subservice code in order when business executes.When user creates business, service code is reduced
Coupling, realize increasing or deleting for subservice, the service code of generation is easy test and is suitable for complex business process.
A kind of execution method of service code provided in an embodiment of the present invention, the business include multiple subservices, each institute
Stating subservice has its corresponding subservice code;
The described method includes:
After the generation parameter for receiving service code, the context class of business is created, and generate each subservice generation
The order class of code, the context class is for recording the input and output parameter of the subservice code when being executed, institute
Order class is stated for calling its corresponding subservice code;
Sequence is executed according to preset, the order class of each subservice code is formed into combinations of services class, as institute
State service code;
After receiving code and executing instruction, controls each order class that the service code includes and call it one by one
Corresponding subservice code is bringing the input parameter for including in associated context class into the mesh as object code
After marking code, the object code is executed;
The context class is stored in using the output result of the object code as the output parameter.
In above-mentioned technical proposal, business is divided into multiple subservices according to business demand, and each subservice is respectively created
The order class of code, the order class of each subservice code is used to call the service code of each subservice, by multiple subservice codes
Order class group be combined into combinations of services class, while creating context class, which is executing for recording subservice code
When input and output parameter, and context class and each subservice code are associated.Reduce entire service code
Coupling, realize increasing or deleting for subservice, the service code of generation is easy test and is suitable for complex business process.
In the implementation procedure of service code, controls each order class and calls its corresponding subservice code as object code one by one,
And after bringing the input parameter for including in associated context class into object code, performance objective code realizes complicated industry
The implementation procedure of business, and each subservice in business can be carried out deleting adjustment, industry is executed according to service code adjusted
Business improves the flexibility that business executes.
Optionally, the corresponding subservice code of at least one subservice is based at least one succession in each subservice
What class generated;
The order class for generating the subservice code, comprising:
Receive the instruction of the derived class instruction information, context class instruction information and subservice code of the subservice code
Information generates the order class of the subservice code.
In above-mentioned technical proposal, the derived class instruction information of subservice code is used to determine the succession of the subservice code
Class reduces the redundancy of subservice code, and reduce error probability by the way that the derived class of subservice code is arranged;Context class
Indicate that information is used to be associated with the order class of subservice code;The instruction information of subservice code is for being associated with the subservice
Code, for calling the corresponding subservice code of each order class as object code when executing service code.
Optionally, after the order class by each subservice code forms combinations of services class, further includes:
Newly-increased instruction is received, includes order class to be increased in the newly-increased instruction;
The order class to be increased is added to the combinations of services class, and according to the defeated of the order class to be increased
Enter parameter and output parameter updates the context class.
Optionally, after the order class by each subservice code forms combinations of services class, further includes:
It receives and deletes instruction, include order class to be deleted in the deletion instruction;
The order class to be deleted is deleted from the combinations of services class.
Optionally, after the order class by each subservice code forms combinations of services class, further includes:
Adjustment instruction is received, includes order class to be adjusted in the adjustment instruction;
According to the adjustment instruction, the sequence of order class to be adjusted described in the combinations of services class is adjusted;And according to
The input and output parameter of the order class to be adjusted updates the context class.
In above-mentioned technical proposal, it can receive the newly-increased instruction of user, delete instruction, adjustment instruction, to realize to industry
The adjustment of each subservice in business meets the needs of user is to complex business process, improves user experience.
Correspondingly, the business includes multiple sons the embodiment of the invention also provides a kind of generating means of service code
Business, each subservice have its corresponding subservice code;
Described device includes:
Processing unit generates each son for receiving the generation parameter of service code, and according to the generation parameter
The order class of service code, the order class is for calling the subservice code;
The order class of each subservice code is formed combinations of services class for executing sequence according to preset by assembled unit,
As the service code.
Correspondingly, the business includes multiple sons the embodiment of the invention also provides a kind of executive device of service code
Business, each subservice have its corresponding subservice code;
Described device includes:
Processing unit, for creating the context class of business, and generate each after the generation parameter for receiving service code
The order class of the subservice code, the context class for record the input parameter of the subservice code when being executed and
Output parameter, the order class is for calling its corresponding subservice code;
The order class of each subservice code is formed business for executing sequence according to preset by assembled unit
Composite class, as the service code;
Execution unit, each life for including for after receiving code and executing instruction, controlling the service code
Class is enabled to call its corresponding subservice code as object code one by one, and in the input that will include in associated context class
After parameter brings the object code into, the object code is executed;Using the output result of the object code as the output
Parameter is stored in the context class.
Optionally, the corresponding subservice code of at least one subservice is based at least one succession in each subservice
What class generated;
The processing unit, is specifically used for:
Receive the instruction of the derived class instruction information, context class instruction information and subservice code of the subservice code
Information generates the order class of the subservice code.
Optionally, the assembled unit is also used to:
After the order class by each subservice code forms combinations of services class, newly-increased instruction, institute are received
Stating in newly-increased instruction includes order class to be increased;
The order class to be increased is added to the combinations of services class, and according to the defeated of the order class to be increased
Enter parameter and output parameter updates the context class.
Optionally, the assembled unit is also used to:
After the order class by each subservice code forms combinations of services class, receives and delete instruction, institute
Stating in deletion instruction includes order class to be deleted;
The order class to be deleted is deleted from the combinations of services class.
Optionally, the assembled unit is also used to:
After the order class by each subservice code forms combinations of services class, adjustment instruction, institute are received
Stating includes order class to be adjusted in adjustment instruction;
According to the adjustment instruction, the sequence of order class to be adjusted described in the combinations of services class is adjusted;And according to
The input and output parameter of the order class to be adjusted updates the context class.
Correspondingly, the embodiment of the invention also provides a kind of calculating equipment, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned business according to the program of acquisition for calling the program instruction stored in the memory
The generation method of code.
Correspondingly, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium, including computer
Readable instruction, when computer is read and executes the computer-readable instruction, so that computer executes above-mentioned service code
Generation method.
Correspondingly, the embodiment of the invention also provides a kind of calculating equipment, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned business according to the program of acquisition for calling the program instruction stored in the memory
The execution method of code.
Correspondingly, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium, including computer
Readable instruction, when computer is read and executes the computer-readable instruction, so that computer executes above-mentioned service code
Execution method.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow diagram of the generation method of service code provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the execution method of service code provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the execution method of another service code provided in an embodiment of the present invention;
Fig. 4 is a kind of display interface schematic diagram shown to user provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the generating means of service code provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of the executive device of service code provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
Chain-of-responsibilpattern pattern: being a kind of design pattern.In chain-of-responsibilpattern pattern, many objects are by each object to its player whose turn comes next
Reference and connect to form a chain.Request is transmitted on this chain, until some object on chain determines to handle this
Request.The client for issuing this request is not aware that this request of which object final process on chain, this makes system
Responsibility dynamically can be reorganized and distributed in the case where not influencing client.
Based on foregoing description, Fig. 1 illustratively shows a kind of generation side of service code provided in an embodiment of the present invention
The process of method, the process can be executed by the generating means of service code.
In the scene of the business such as bank, security, fund complexity, user can be set according to demand under the scene
Business, further by delineation of activities be multiple subservices, be equivalent to, business includes multiple subservices, and each subservice has it
Corresponding subservice code.
Code building process are as follows:
Step 101, the generation parameter of service code is received, and each subservice generation is generated according to the generation parameter
The order class of code.
Wherein, order class is for calling subservice code.
Step 102, sequence is executed according to preset, the order class of each subservice code is formed into combinations of services class, as
The service code.
In conjunction with foregoing description, the present invention also provides the process of a kind of execution method of service code, which can be by industry
The executive device of business code executes.
As shown in Fig. 2, the process specifically includes:
Step 201, after the generation parameter for receiving service code, the context class of business is created, and is generated each described
The order class of subservice code.
When creating service code, service code can be divided into 2 classes, i.e. context (Context) class and order
(Command) class, wherein context class is ordered for recording the input and output parameter of subservice code when being executed
Class is for calling its corresponding subservice code, it may also be said to, context class is used to store the parameter information of each subservice, such as each
The information such as the input parameter of subservice, intermediate result;Order class corresponds to some unit of complex business process, is realized by user
Service details, the corresponding subservice of an order class.
User can issue the instruction for creating context class, can pass through the name of front-end interface Input context class
Claim, wrap the information such as path, correspondingly, may include the information such as context title, packet path in the instruction.User can also issue
For creating the instruction of order class, the title of order class can be inputted by front-end interface, associated context class, is inherited
Class, packet path etc. information, correspondingly, may include in the instruction title of order class, associated context class, derived class,
Wrap the information such as path.
Optionally, when generating the order class of subservice code, it can receive the derived class instruction letter of subservice code
The instruction information of breath, context class instruction information and subservice code, generates the order class of subservice code.Subservice code
Derived class instruction information is used to determine that the derived class of the subservice code to reduce son by the way that the derived class of subservice code is arranged
The redundancy of service code, and reduce error probability;Context class indicates that information is used to carry out with the order class of subservice code
Association;The instruction information of subservice code is for being associated with the subservice code, for calling each order when executing service code
The corresponding subservice code of class is as object code.
Wherein, derived class, which can be divided into, is abstracted commercial (AbstractBizCommand) and abstract commercial filter class
(AbstractBizFilter), wherein be abstracted the commercial business processing logic for being used to indicate and executing subservice, be abstracted business
Filtering class is used to indicate the business processing logic for executing subservice and resource release logic.Abstract class is for each subservice of specification
Attribute, and avoid the occurrence of unnecessary code and repeat, the intermediate result of subservice is formatted by abstract class, is avoided
It makes a fault when user manually formats.
Step 202, sequence is executed according to preset, the order class of each subservice code is formed into combinations of services
Class, as the service code;
It can determine that the order class creation of multiple subservice code is completed according to logic of propositions, be also possible to receive use
The creation at family is determined after completing instruction.It, can be according to the creation sequence of multiple order classes, by this after the completion of determining creation
Multiple order class groups are combined into combinations of services class (NetworkVerifyChain), and as service code.
Step 203, after receiving code and executing instruction, control each order class that the service code includes by
One calls its corresponding subservice code as object code, and in the input parameter band that will include in associated context class
After entering the object code, the object code is executed;
Step 204, the context class is stored in using the output result of the object code as the output parameter.
It is interpreted as, service code includes multiple order classes, such as order class 1, order class 2, order class 3, each order class pair
Subservice code is answered, calls the corresponding subservice code of each order class as object code one by one according to each order class, and each life
Class is enabled to be associated with corresponding input/output argument in context class, it, all can be by the order class pair when calling any one order class
The input parameter answered is input in the object code, the output parameter of generation is recorded in context class, such as in call instruction
When 1 corresponding subservice code of class, input parameter corresponding to the order class 1 can be determined from context class, by the input
Parameter is input in subservice code, and generates output parameter corresponding to order class 1, is recorded in context class.
Furthermore, it is possible to receive the newly-increased instruction of user, delete instruction, adjustment instruction, to realize to each son in business
The adjustment of business, wherein it include order class to be increased in newly-increased instruction, deleting includes order class to be deleted in instruction, with
It and include order class to be adjusted in adjustment instruction.
Specifically, order class to be increased in newly-increased instruction can be added to service groups after receiving newly-increased instruction
Class is closed, and context class is updated according to the input and output parameter of order class to be increased;After receiving deletion instruction,
The order class to be deleted deleted in instruction is deleted from business composite class;Adjustment instruction is being received, according to adjustment instruction
And the order class to be adjusted in adjustment instruction, adjust the sequence of order class to be adjusted in combinations of services class, and according to
The input and output parameter of the order class of adjustment updates context class.
Embodiment in order to preferably explain the present invention will be with the business for opening up in electronic account " online checking " below
Delineation of activities is subservice by example, and subservice is as follows:
1, it creates online checking flowing water and updates online checking result
2, OCR (Optical Character Recognition, optical character identification) security engine decision
3, public security name and identification card number check
Corresponding 3 units (order class) of above-mentioned 3 subservices.1 context class and 3 are created through the embodiment of the present invention
Order class, as shown in table 1.
Table 1
Business process composition class is generated according to table 1, i.e. online checking composite class (NetworkVerify Chain) can be with
The code shown as follows:
After the completion of the creation of above-mentioned business process composition class, the business can be controlled after receiving code and executing instruction
Each order class calls the corresponding subservice code of each order class, i.e. object code in composite class, and according to each order class and up and down
The corresponding relationship of literary class brings the input parameter in associated context class into object code, with performance objective code.This example
In, implementation procedure is referred to shown in Fig. 3.
User creates online checking context class example, client call online checking composite class, OCR peace on the client
Full engine decision order class calls the associated traffic data in context class, carries out specific OCR security engine decision logic, raw
At OCR recognition result, such as identity card and name, then the OCR recognition result is saved into context class;Resident identification card
It checks that class calls the associated traffic data in context class, executes resident identification card and check logic, by residential identity inspection result
It saves into context class;Online checking business flowing water class calls the associated traffic data in context class, executes online checking
Service logic saves online checking business flowing water result into context class.In addition, being stored in the centre in the context class
Result data is that persistence saves.
In table 1, the corresponding business process composition class of online checking context class is online checking composite class, currently used
Online checking business flowing water class, OCR security engine decision order class and resident identification card check class, but in actual application
In, it is desirable that finally also increase the subservice for the push of anti-fraud information in online checking, then can increase anti-fraud information and push away
Class (AntiFraudPush Command) is sent, is added in online checking composite class as the last one execution unit.
The combinations of services class display interface can be generated after generating combinations of services class, it can be as shown in figure 4, the dialogue
It totally six is arranged in frame, business process composition class (Chain) and context class (Context), the current command class (Current
Commands), sequence adjustment (Order Operation), deletion (Delete), alternative order class (Candidate
Commands), increase (Add).Wherein, the current command class is the order class of current composition business process composition class, alternative to order
The order class of business process composition class is not formed currently.Each order that user can be clicked according to demand in dialog box is corresponding
Button, to realize the adjustment to each subservice in business, in Fig. 4, user, which clicks, alternatively orders anti-fraud information push class
Anti- fraud information then can be pushed class and is added in combinations of services class by corresponding increase button.
In above-mentioned technical proposal, business is divided into multiple subservices according to business demand, and each subservice is respectively created
The order class of code, the order class of each subservice code is used to call the service code of each subservice, by multiple subservice codes
Order class group be combined into combinations of services class, while creating context class, which is executing for recording subservice code
When input and output parameter, and context class and each subservice code are associated.Reduce entire service code
Coupling, realize increasing or deleting for subservice, the service code of generation is easy test and is suitable for complex business process.
In the implementation procedure of service code, controls each order class and calls its corresponding subservice code as object code one by one,
And after bringing the input parameter for including in associated context class into object code, performance objective code realizes complicated industry
The implementation procedure of business, and each subservice in business can be carried out deleting adjustment, industry is executed according to service code adjusted
Business improves the flexibility that business executes.
Based on the same inventive concept, Fig. 5 illustratively shows a kind of life of service code provided in an embodiment of the present invention
At the structure of device, which can execute the process of the generation method of service code.The business includes multiple subservices, respectively
The subservice has its corresponding subservice code;
Described device includes:
Processing unit 501, for receiving the generation parameter of service code, and it is each described according to generation parameter generation
The order class of subservice code, the order class is for calling the subservice code;
The order class of each subservice code is formed combinations of services for executing sequence according to preset by assembled unit 502
Class, as the service code.
Based on the same inventive concept, Fig. 6 illustratively shows a kind of holding for service code provided in an embodiment of the present invention
The structure that luggage is set, the device can execute the process of the execution method of service code.The business includes multiple subservices, respectively
The subservice has its corresponding subservice code;
Described device includes:
Processing unit 601, for creating the context class of business, and generate after the generation parameter for receiving service code
The order class of each subservice code, the context class are used to record the input ginseng of the subservice code when being executed
Several and output parameter, the order class is for calling its corresponding subservice code;
The order class of each subservice code is formed industry for executing sequence according to preset by assembled unit 602
Business composite class, as the service code;
Execution unit 603, it is each described for after receiving code and executing instruction, control that the service code includes
Order class calls its corresponding subservice code as object code one by one, and defeated by include in associated context class
Enter after parameter brings the object code into, executes the object code;Using the output result of the object code as described defeated
Parameter is stored in the context class out.
Optionally, the corresponding subservice code of at least one subservice is based at least one succession in each subservice
What class generated;
The processing unit 601, is specifically used for:
Receive the instruction of the derived class instruction information, context class instruction information and subservice code of the subservice code
Information generates the order class of the subservice code.
Optionally, the assembled unit 602 is also used to:
After the order class by each subservice code forms combinations of services class, newly-increased instruction, institute are received
Stating in newly-increased instruction includes order class to be increased;
The order class to be increased is added to the combinations of services class, and according to the defeated of the order class to be increased
Enter parameter and output parameter updates the context class.
Optionally, the assembled unit 602 is also used to:
After the order class by each subservice code forms combinations of services class, receives and delete instruction, institute
Stating in deletion instruction includes order class to be deleted;
The order class to be deleted is deleted from the combinations of services class.
Optionally, the assembled unit 602 is also used to:
After the order class by each subservice code forms combinations of services class, adjustment instruction, institute are received
Stating includes order class to be adjusted in adjustment instruction;
According to the adjustment instruction, the sequence of order class to be adjusted described in the combinations of services class is adjusted;And according to
The input and output parameter of the order class to be adjusted updates the context class.
Based on the same inventive concept, the embodiment of the invention also provides a kind of calculating equipment, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned business according to the program of acquisition for calling the program instruction stored in the memory
The generation method of code.
Based on the same inventive concept, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium,
Including computer-readable instruction, when computer is read and executes the computer-readable instruction, so that computer execution is above-mentioned
The generation method of service code.
Based on the same inventive concept, the embodiment of the invention also provides a kind of calculating equipment, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned business according to the program of acquisition for calling the program instruction stored in the memory
The execution method of code.
Based on the same inventive concept, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium,
Including computer-readable instruction, when computer is read and executes the computer-readable instruction, so that computer execution is above-mentioned
The execution method of service code.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (14)
1. a kind of generation method of service code, which is characterized in that the business includes multiple subservices, and each subservice has
Its corresponding subservice code;
The described method includes:
The generation parameter of service code is received, and generates the order class of each subservice code according to the generation parameter,
The order class is for calling the subservice code;
Sequence is executed according to preset, the order class of each subservice code is formed into combinations of services class, as the service code.
2. a kind of execution method of service code, which is characterized in that the business includes multiple subservices, and each subservice has
Its corresponding subservice code;
The described method includes:
After the generation parameter for receiving service code, the context class of business is created, and generate each subservice code
Order class, the context class is for recording the input and output parameter of the subservice code when being executed, the life
Enable class for calling its corresponding subservice code;
Sequence is executed according to preset, the order class of each subservice code is formed into combinations of services class, as the industry
Business code;
After receiving code and executing instruction, controls each order class that the service code includes and call its correspondence one by one
Subservice code as object code, and bringing the input parameter for including in associated context class into the target generation
After code, the object code is executed;
The context class is stored in using the output result of the object code as the output parameter.
3. method according to claim 2, which is characterized in that the corresponding sub- industry of at least one subservice in each subservice
Business code is generated based at least one derived class;
The order class for generating the subservice code, comprising:
Receive the derived class instruction information of the subservice code, the instruction letter of context class instruction information and subservice code
Breath, generates the order class of the subservice code.
4. method according to claim 2, which is characterized in that formed in the order class by each subservice code
After combinations of services class, further includes:
Newly-increased instruction is received, includes order class to be increased in the newly-increased instruction;
The order class to be increased is added to the combinations of services class, and is joined according to the input of the order class to be increased
Several and output parameter updates the context class.
5. method according to claim 2, which is characterized in that formed in the order class by each subservice code
After combinations of services class, further includes:
It receives and deletes instruction, include order class to be deleted in the deletion instruction;
The order class to be deleted is deleted from the combinations of services class.
6. method according to claim 2, which is characterized in that formed in the order class by each subservice code
After combinations of services class, further includes:
Adjustment instruction is received, includes order class to be adjusted in the adjustment instruction;
According to the adjustment instruction, the sequence of order class to be adjusted described in the combinations of services class is adjusted;And according to described
The input and output parameter of order class to be adjusted updates the context class.
7. a kind of generating means of service code, which is characterized in that the business includes multiple subservices, and each subservice has
Its corresponding subservice code;
Described device includes:
Processing unit generates each subservice for receiving the generation parameter of service code, and according to the generation parameter
The order class of code, the order class is for calling the subservice code;
The order class of each subservice code is formed combinations of services class for executing sequence according to preset by assembled unit, as
The service code.
8. a kind of executive device of service code, which is characterized in that the business includes multiple subservices, and each subservice has
Its corresponding subservice code;
Described device includes:
Processing unit for creating the context class of business after the generation parameter for receiving service code, and generates each described
The order class of subservice code, the context class is for recording the input parameter and output of the subservice code when being executed
Parameter, the order class is for calling its corresponding subservice code;
The order class of each subservice code is formed combinations of services for executing sequence according to preset by assembled unit
Class, as the service code;
Execution unit, each order class for including for after receiving code and executing instruction, controlling the service code
Call its corresponding subservice code as object code one by one, and in the input parameter that will include in associated context class
After bringing the object code into, the object code is executed;Using the output result of the object code as the output parameter
It is stored in the context class.
9. device as claimed in claim 8, which is characterized in that the corresponding sub- industry of at least one subservice in each subservice
Business code is generated based at least one derived class;
The processing unit, is specifically used for:
Receive the derived class instruction information of the subservice code, the instruction letter of context class instruction information and subservice code
Breath, generates the order class of the subservice code.
10. device as claimed in claim 8, which is characterized in that the assembled unit is also used to:
After the order class by each subservice code forms combinations of services class, newly-increased instruction is received, it is described new
Increasing includes order class to be increased in instruction;
The order class to be increased is added to the combinations of services class, and is joined according to the input of the order class to be increased
Several and output parameter updates the context class.
11. device as claimed in claim 8, which is characterized in that the assembled unit is also used to:
After the order class by each subservice code forms combinations of services class, receives and delete instruction, it is described to delete
Except in instruction include order class to be deleted;
The order class to be deleted is deleted from the combinations of services class.
12. device as claimed in claim 8, which is characterized in that the assembled unit is also used to:
After the order class by each subservice code forms combinations of services class, adjustment instruction, the tune are received
It include order class to be adjusted in whole instruction;
According to the adjustment instruction, the sequence of order class to be adjusted described in the combinations of services class is adjusted;And according to described
The input and output parameter of order class to be adjusted updates the context class.
13. a kind of calculating equipment characterized by comprising
Memory, for storing program instruction;
Processor requires 1 to 6 according to the program execution benefit of acquisition for calling the program instruction stored in the memory
Described in any item methods.
14. a kind of computer-readable non-volatile memory medium, which is characterized in that including computer-readable instruction, work as computer
When reading and executing the computer-readable instruction, so that computer executes such as method as claimed in any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910579389.2A CN110288324A (en) | 2019-06-28 | 2019-06-28 | A kind of generation of service code executes method and device |
PCT/CN2020/085724 WO2020259035A1 (en) | 2019-06-28 | 2020-04-20 | Service code generating and executing methods and devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910579389.2A CN110288324A (en) | 2019-06-28 | 2019-06-28 | A kind of generation of service code executes method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110288324A true CN110288324A (en) | 2019-09-27 |
Family
ID=68020142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910579389.2A Pending CN110288324A (en) | 2019-06-28 | 2019-06-28 | A kind of generation of service code executes method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110288324A (en) |
WO (1) | WO2020259035A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020259035A1 (en) * | 2019-06-28 | 2020-12-30 | 深圳前海微众银行股份有限公司 | Service code generating and executing methods and devices |
CN113032398A (en) * | 2021-03-26 | 2021-06-25 | 苏宁易购集团股份有限公司 | Service processing method, computer device and storage medium for multi-type service |
CN113064588A (en) * | 2021-04-07 | 2021-07-02 | 浪潮通用软件有限公司 | Command arranging method and device and computer readable medium |
CN113312039A (en) * | 2021-06-25 | 2021-08-27 | 武汉众邦银行股份有限公司 | Method and device for constructing responsibility tree mode universal code framework |
CN117369783A (en) * | 2023-12-06 | 2024-01-09 | 之江实验室 | Training method and device for security code generation model |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7577934B2 (en) * | 2003-03-12 | 2009-08-18 | Microsoft Corporation | Framework for modeling and providing runtime behavior for business software applications |
CN101593111B (en) * | 2009-05-31 | 2012-10-03 | 大连新中连软件集团有限公司 | Service component, method and system for developing application software based on service component |
CN105739980A (en) * | 2016-01-28 | 2016-07-06 | 滴滴(中国)科技有限公司 | Unified business development method and equipment |
CN106610837A (en) * | 2016-12-26 | 2017-05-03 | 中国建设银行股份有限公司 | Application development method and development platform |
CN109408216A (en) * | 2018-11-12 | 2019-03-01 | 北京字节跳动网络技术有限公司 | Task creating method, device, equipment and storage medium |
CN110288324A (en) * | 2019-06-28 | 2019-09-27 | 深圳前海微众银行股份有限公司 | A kind of generation of service code executes method and device |
-
2019
- 2019-06-28 CN CN201910579389.2A patent/CN110288324A/en active Pending
-
2020
- 2020-04-20 WO PCT/CN2020/085724 patent/WO2020259035A1/en active Application Filing
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020259035A1 (en) * | 2019-06-28 | 2020-12-30 | 深圳前海微众银行股份有限公司 | Service code generating and executing methods and devices |
CN113032398A (en) * | 2021-03-26 | 2021-06-25 | 苏宁易购集团股份有限公司 | Service processing method, computer device and storage medium for multi-type service |
CN113032398B (en) * | 2021-03-26 | 2022-12-13 | 苏宁易购集团股份有限公司 | Service processing method, computer equipment and storage medium for multi-type service |
CN113064588A (en) * | 2021-04-07 | 2021-07-02 | 浪潮通用软件有限公司 | Command arranging method and device and computer readable medium |
CN113064588B (en) * | 2021-04-07 | 2024-01-30 | 浪潮通用软件有限公司 | Command arranging method, device and computer readable medium |
CN113312039A (en) * | 2021-06-25 | 2021-08-27 | 武汉众邦银行股份有限公司 | Method and device for constructing responsibility tree mode universal code framework |
CN117369783A (en) * | 2023-12-06 | 2024-01-09 | 之江实验室 | Training method and device for security code generation model |
CN117369783B (en) * | 2023-12-06 | 2024-02-23 | 之江实验室 | Training method and device for security code generation model |
Also Published As
Publication number | Publication date |
---|---|
WO2020259035A1 (en) | 2020-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110288324A (en) | A kind of generation of service code executes method and device | |
CN108053318B (en) | Method and device for identifying abnormal transactions | |
US20180081787A1 (en) | Virtual Payments Environment | |
WO2021174966A1 (en) | Risk identification model training method and apparatus | |
CN110532536B (en) | Rule configuration method and device | |
CN109816521A (en) | A kind of banking processing method, apparatus and system | |
CN110895758B (en) | Screening method, device and system for credit card account with cheating transaction | |
CN106254543A (en) | Distributed interconnection Network and Finance Network based on cloud computing framework borrows method and system | |
CN101777142A (en) | Method for converting rules and regulations of enterprises and public institutions into computer-recognizable programs | |
CN110264342A (en) | A kind of business audit method and device based on machine learning | |
JP6251383B2 (en) | Calculating the probability of a defaulting company | |
CN110019194A (en) | Verification of data method, apparatus, computer equipment and storage medium | |
CN106815725A (en) | A kind of transaction verification method and device | |
CN109242165A (en) | A kind of model training and prediction technique and device based on model training | |
CN107679862B (en) | Method and device for determining characteristic value of fraud transaction model | |
US20210097609A1 (en) | Gain and loss computation for certain types of cryptocurrency transactions | |
CN110363534A (en) | The method and device traded extremely for identification | |
CN110322346A (en) | A kind of condition that supporting uxto model can set method of payment and system | |
CN112823502B (en) | Real-time feedback service for resource access rule configuration | |
EP3899713A1 (en) | Gain and loss computation for cryptocurrency transactions | |
CN112184431A (en) | User risk determination method and device | |
CN114549170B (en) | Data processing method, medium, equipment and system for joint loan | |
CN112396513B (en) | Data processing method and device | |
CN115619540A (en) | Information processing method, device, equipment and storage medium | |
Krishnan et al. | Service innovation for the user interface of an ATM catering to the needs of the student community |
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 |