CN111459493A - Programming method, device and equipment based on component arrangement - Google Patents

Programming method, device and equipment based on component arrangement Download PDF

Info

Publication number
CN111459493A
CN111459493A CN202010222672.2A CN202010222672A CN111459493A CN 111459493 A CN111459493 A CN 111459493A CN 202010222672 A CN202010222672 A CN 202010222672A CN 111459493 A CN111459493 A CN 111459493A
Authority
CN
China
Prior art keywords
component
templates
programming
component object
queue
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
CN202010222672.2A
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.)
Chongqing Cloud Core Intelligent Technology Co ltd
Hangzhou Diji Intelligent Technology Co ltd
Original Assignee
Chongqing Cloud Core Intelligent Technology Co ltd
Hangzhou Diji Intelligent Technology 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 Chongqing Cloud Core Intelligent Technology Co ltd, Hangzhou Diji Intelligent Technology Co ltd filed Critical Chongqing Cloud Core Intelligent Technology Co ltd
Priority to CN202010222672.2A priority Critical patent/CN111459493A/en
Publication of CN111459493A publication Critical patent/CN111459493A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Landscapes

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

Abstract

The embodiment of the specification provides a programming method, a device and equipment based on component arrangement. The method comprises the following steps: functional logic is dissected in an abstract mode, is decomposed into components with high abstract levels, and is assembled into complete functional logic through arranging, configuring and reassembling the components upwards. Therefore, the user can be allowed to autonomously perform component arrangement according to actual requirements, so that programming work is completed, and the problems of code logic repetition and inconvenience in later maintenance are solved.

Description

Programming method, device and equipment based on component arrangement
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a programming method, apparatus, and device based on component arrangement.
Background
Programming is a process of programming a program, called as Chinese abbreviation, and refers to a process of specifying a certain operation mode for a certain computing system by a computer to solve a certain problem, enabling the computing system to operate according to the operation mode, and finally obtaining a corresponding result.
At present, the mainstream low-code programming technology in the market is precipitated through development for many years, the framework is more and more complex, the components are more and more abundant, the community developers are more and more, and meanwhile, the limit of various problems is also faced. Especially as business evolves, the core logic and page structure in the project become more and more complex. The codes are mutually interwoven, a large number of codes are crowded together, and various repeated calls exist among the codes, so that the development and the maintenance become more and more difficult. Different lines of business, or new items, may have a large amount of similarly repetitive logic in themselves, with only a few differences in item personalization.
Therefore, there is a need to provide a more efficient programming scheme.
Disclosure of Invention
The embodiment of the specification provides a programming method, a programming device and a programming system based on component arrangement, which are used for solving the problems of code logic repetition and inconvenient later maintenance.
The embodiment of the specification also provides a programming method based on component arrangement, which comprises the following steps
Receiving a programming request, wherein the programming request is used for requesting to run a plurality of component objects selected by a user, the arrangement request carries component object identifiers and arrangement configuration, and the arrangement configuration is used for representing the execution sequence of the component objects;
responding to the programming request, extracting the plurality of component object templates corresponding to the component identifications from a component object library, wherein the component object templates stored in the component object library consist of components with a plurality of functions pre-disassembled according to preset granularity;
and running the plurality of component object templates and returning a running result according to the arrangement configuration.
An embodiment of the present specification further provides a programming apparatus based on component orchestration, including:
the system comprises a receiving module, a programming module and a scheduling module, wherein the receiving module is used for receiving a programming request, the programming request is used for requesting to run a plurality of component objects selected by a user, the scheduling request carries component object identifiers and scheduling configuration, and the scheduling configuration is used for representing the execution sequence of the component objects;
the processing module is used for responding to the programming request and extracting the plurality of component object templates corresponding to the component identifications from a component object library, wherein the component object templates stored in the component object library consist of components with a plurality of functions which are pre-disassembled according to preset granularity;
and the operation module is used for operating the plurality of component object templates and returning an operation result according to the arrangement configuration.
An embodiment of the present specification further provides an electronic device, including:
a processor; and
a memory arranged to store computer executable instructions which, when executed, cause the processor to perform the steps of the method as described above.
Embodiments of the present specification also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method as described above.
In one embodiment of the description, functional logic is dissected in an abstract mode, is decomposed into components with high abstract levels downwards, and is then assembled into complete functional logic upwards through arrangement and configuration, so that a user is allowed to autonomously arrange the components according to actual requirements to complete programming work, the problems of code logic repetition and inconvenience in later maintenance can be solved, and programming efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification and are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description serve to explain the specification and not to limit the specification in a non-limiting sense. In the drawings:
FIG. 1 is a flowchart illustrating a programming method based on component orchestration according to an embodiment of the present disclosure;
FIG. 2 is a diagram illustrating a component queue provided by one embodiment of the present disclosure;
FIG. 3 is a block diagram of a programming apparatus based on component organization according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a programming system according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in this description belong to the protection scope of this document.
As stated in the background section, current programming schemes are increasingly difficult to develop and maintain due to the large amount of code that is crowded together with various repetitive calls between each other, and different lines of business or new projects may themselves have a large amount of similarly repetitive logic. Based on this, the present specification provides a programming method based on component layout, which utilizes an abstract manner to dissect functional logic and decompose the functional logic downwards into highly abstract components layer by layer, so that a user can autonomously perform component layout according to actual needs, complete programming work and improve programming efficiency.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a component-based organization method according to an embodiment of the present disclosure, and referring to fig. 1, the method may specifically include the following steps:
102, receiving a programming request, wherein the programming request is used for requesting to run a plurality of component objects selected by a user, the arrangement request carries component object identifiers and arrangement configuration, and the arrangement configuration is used for representing an execution sequence of the component objects;
specifically, a user interface of the programming system displays a plurality of component objects, and a user can view a label of each component object through specific operations, such as long-pressing a target component object and viewing the function of a target component; then, the user selects one or more component objects required by programming from the component objects, for example, the component objects are pulled into the programming frame and the selected component objects are configured with an execution sequence, so that the programming system runs according to the execution sequence configured by the user; finally, clicking the 'run' button initiates a programming request to the programming system.
Step 104, responding to the programming request, extracting the plurality of component object templates corresponding to the component identifications from a component object library, wherein the component object templates stored in the component object library consist of components with a plurality of functions pre-disassembled according to preset granularity;
the component object template refers to a template of a component object, and each component instance can realize a complete function after being initialized; the component refers to simple encapsulation of data and methods, and the corresponding granularity of disassembly is related to the business field.
The following is an exemplary illustration of the principles of disassembling and arranging component object templates:
example 1, assume that multiple component objects include components
Before step 102 is executed, the method further includes: a step of disassembling the assembly template, in particular:
s11, obtaining a plurality of software program samples, such as payment programs, ordering programs and the like;
s12, analyzing to obtain the service function logic of each software program sample;
and S13, based on the business function logic, disassembling a plurality of component templates from the software program sample and storing the component templates into the component object library.
Wherein the dismantling process follows moderate principles, including that the particle size cannot be too coarse and too fine. For components with too coarse granularity, gradual disassembly in iterative development is required; component granularity is also not suitable to be too small, and trivial or too deep-level structures are not favorable for arrangement and use, so that the cost of future maintenance is increased.
In order to reach the moderate degree principle, this scheme has further injectd the solution of disassembling, includes: and based on the service function logic, performing disassembly processing on the software program sample according to a layer-by-layer disassembly principle from top to bottom and a preset granularity principle to obtain a plurality of component templates. And the preset granularity principle is used for representing that the disassembled component template is the most basic service capability encapsulation performed in the service field of the software program sample. Referring to fig. 2, taking the target software program as an example, the disassembling process may be exemplified as:
firstly, based on the service function logic of a target software program, disassembling a first layer of component queue, namely a component queue A; then, based on the service function logic of the component queue a, continuing to disassemble the component queue a to obtain a second layer component object: component queue B and component queue C; then, respectively disassembling the component queue B and the component queue C in the same way, disassembling the component queue B into a third layer of component object component queue D and a component 02, and disassembling the component queue C into a third layer of component object component queue E and a component queue F; then, disassembling the component queue D into a fourth layer of component queue G and components 01, disassembling the component queue E into fourth layer of components 01 and 04, and disassembling the component queue F into fourth layer of components 04 and 05; finally, the component queue G is disassembled into fifth-level components 01 and 02, resulting in a complete component tree.
Based on the above, each component template in the obtained component object library has complete functions and the functions are not overlapped, that is, only one of a plurality of components of the same class is put in storage, for example, only one of two components 01 of the fourth layer and only one of components 01 of the fifth layer can be put in storage, so that component duplication removal is completed, and the problem of code logic duplication is avoided.
Example 2, the plurality of component objects further include a component queue, that is, the programming platform may provide a component queue template in addition to the component template, where the component queue refers to a set of components having complete business logic after the component instances are arranged.
Then, before performing step 102, on the basis of example 1, the method further comprises:
s21, selecting a target component set from the component object library;
s22, performing arrangement processing on the component templates in the target component set to obtain a component queue template and storing the component queue template in the component object library; and each component queue template in the component object library has complete business logic, and the business logic is not overlapped. Specific examples can be:
the programming system can count the distribution of various component queues which are self-organized in the history of a user group, and N with the highest organizing times are selected from the component queues; then, the component templates required for arranging the N component queues are selected from the component object library, and the component queue templates of the N component queues are arranged to be provided for the user.
Furthermore, because the preferences of different developer groups are different, the programming system can also perform clustering processing on the arrangement data of different developer groups, cluster the components and the component queues which are arranged according to the preferences of each developer group, and display the components and the component queues which are arranged according to the preferences for the users of each developer group on the user interface, so that the users can directly pull the part of the components and the component queues on the user interface, thereby improving the programming efficiency.
Furthermore, it should be noted that the component queue itself can also be arranged as a component with other components or component queues. Such as: a Component queue may be defined as a basic implementation of the payment function, in which components such as DB Component and Http Component are included to implement the payment logic. Meanwhile, the payment component queue can also be used as an independent component, and is combined with other component queues (such as an order component queue) and the like to complete the complete function of ordering and paying.
Example 3, the plurality of component objects further comprises a component tree, i.e., the programming platform may provide a component tree that contains a component queue and components in addition to the component template and the component queue template.
Then, before performing step 102, on the basis of examples 1 and 2, the method further comprises:
and analyzing the relation of the business function logic between the component template and the component queue template, and arranging the components and the component queue or the component queue and the component queue based on the relation to obtain a component tree template and storing the component tree template in the component object library.
That is, example 3 further lays out a component queue as a composable element on the basis of the first two examples, thereby composing a desired component tree.
And 106, operating the plurality of component object templates and returning an operation result according to the arrangement configuration.
Specifically, if the layout request further carries parameter configuration, the layout system may perform parameter configuration processing on the component object according to the parameter configuration; and running the component object after the parameter configuration processing based on the arrangement configuration so as to complete the specific service function of the component instance.
It is understood that a component is equivalent to a template, each component instance needs to be initialized to realize a complete function, and initialized parameters can be customized by a user or are introduced through default parameters of a system, so that initialization errors are prevented when the parameters are empty. For example, in the same http public, different functions need to request different host and port, and different request methods and different request parameters are carried to obtain different types of return values. These are all configuration items that the http communication should possess, and through configuration parameters, the specific functions that the component instance needs to complete are completed.
In another possible embodiment, since the communication cost between the components is increased after the components are disassembled, in order to reduce the communication cost between the components, the embodiment further provides the following two communication modes between the components:
1. parent-child component
Parent-child components communicate directly, child component contexts have parent component context references, child components can use objects in the parent component context, but parent components cannot use the child component's context objects.
2. Brother component
Communication between brother components needs to be used as a bridge through parent components, each parent component is L reader of the child component through an L reader-Worker model, the child components need to communicate and need to be reported to the parent components, then the parent components carry out message dispatching, and level component context isolation is achieved without mutual influence.
In summary, in the embodiment, functional logic is dissected in an abstract manner, and is decomposed into individual highly abstract components layer by layer, and then the components are reassembled into complete functional logic upwards through arrangement and configuration, so that a user is allowed to autonomously arrange the components according to actual needs to complete programming work, thereby avoiding the problems of code logic repetition and inconvenient later maintenance, and improving programming efficiency.
Fig. 3 is a schematic structural diagram of a component-based editing apparatus according to an embodiment of the present disclosure, and referring to fig. 3, the apparatus may specifically include: a receiving module 301, a processing module 302, and an executing module 303, wherein:
a receiving module 301, configured to receive a programming request, where the programming request is used to request to run a plurality of component objects selected by a user, and the layout request carries a component object identifier and a layout configuration, where the layout configuration is used to represent an execution sequence of the plurality of component objects;
a processing module 302, configured to respond to the programming request, extract the multiple component object templates corresponding to the component identifiers from a component object library, where the component object template stored in the component object library is composed of components with multiple functions pre-decomposed according to a preset granularity;
and the running module 303 is configured to run the plurality of component object templates according to the arrangement configuration and return a running result.
Optionally, if the plurality of component objects include components, the apparatus further includes:
the first disassembling module is used for acquiring the business function logic of the software program sample; based on the business function logic, disassembling a plurality of component templates from the software program sample and storing the component templates into the component object library; and all the component templates in the component object library have complete functions and the functions are not overlapped.
Optionally, the first disassembling module is specifically configured to disassemble the software program sample based on the service function logic according to a layer-by-layer disassembling principle from top to bottom and a preset granularity principle, so as to obtain a plurality of component templates; and the preset granularity principle is used for representing that the disassembled component template is the most basic service capability encapsulation performed in the service field of the software program sample.
Optionally, the plurality of component objects further include a component queue, and the apparatus further includes:
the first arranging module is used for selecting a target component set from the component object library; arranging the component templates in the target component set to obtain a component queue template and storing the component queue template in the component object library;
and each component queue template in the component object library has complete business logic, and the business logic is not overlapped.
Optionally, the plurality of component objects further includes a component tree, and then the apparatus further includes:
and the second arranging module is used for analyzing the relation of the business function logic between the component template and the component queue template, and arranging the components and the component queue or the component queue and the component queue based on the relation to obtain a component tree template and storing the component tree template in the component object library.
Optionally, if the layout request further carries parameter configuration, the running module 303 is specifically configured to perform parameter configuration processing on the component object according to the parameter configuration; and running the component object after the parameter configuration processing based on the arrangement configuration so as to complete the specific service function of the component instance.
Therefore, in the embodiment, functional logic is dissected in an abstract mode, is downwards decomposed into components with high abstract levels, and is then upwards reassembled into complete functional logic through arranging and configuring, so that a user is allowed to autonomously arrange the components according to actual requirements to complete programming work, the problems of code logic repetition and inconvenience in later maintenance can be solved, and programming efficiency is improved.
In addition, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the method embodiment. Further, it should be noted that, among the respective components of the apparatus of the present specification, the components thereof are logically divided according to the functions to be implemented, but the present specification is not limited thereto, and the respective components may be newly divided or combined as necessary.
Fig. 4 is a schematic structural diagram of a programming system according to an embodiment of the present disclosure, and referring to fig. 4, the programming system may specifically include: the system comprises a Component worker cluster, a Gateway, a Component queue management cluster, a Component Context Manager, a Component Context Holder, a Message Manager, a task distributor, a Job Manager and a Component cluster, wherein:
the Component worker clusters are of various types, such as a DC Component worker cluster, an Http Component worker cluster and the like, and are used for receiving a programming request of a user, sending the programming request to an L reader cluster through a gateway, and uniformly managing and distributing tasks by the L reader cluster.
The component queue management cluster is used for managing the definition of the component queue, the instantiation of the component queue and the life cycle of the component queue.
The component context holder is used for maintaining the component context and managing the read-write permission of the context in full right.
The message manager is used for being responsible for communication among the components, the component queues and informing the component context holder of the requests of the related components and the component queues.
And the task distributor is used for distributing the tasks to the corresponding component clusters.
And the component cluster is used for finishing specific tasks.
Therefore, in the embodiment, functional logic is dissected in an abstract mode, is downwards decomposed into components with high abstract levels, and is then upwards reassembled into complete functional logic through arranging and configuring, so that a user is allowed to autonomously arrange the components according to actual requirements to complete programming work, the problems of code logic repetition and inconvenience in later maintenance can be solved, and programming efficiency is improved.
Fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure, and referring to fig. 5, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required by other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program, and the programming method based on the component arrangement is formed on the logic level. Of course, besides the software implementation, the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
The network interface, the processor and the memory may be interconnected by a bus system. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
The memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The Memory may include a Random-Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory.
The processor is used for executing the program stored in the memory and specifically executing:
receiving a programming request, wherein the programming request is used for requesting to run a plurality of component objects selected by a user, the arrangement request carries component object identifiers and arrangement configuration, and the arrangement configuration is used for representing the execution sequence of the component objects;
responding to the programming request, extracting the plurality of component object templates corresponding to the component identifications from a component object library, wherein the component object templates stored in the component object library consist of components with a plurality of functions pre-disassembled according to preset granularity;
and running the plurality of component object templates and returning a running result according to the arrangement configuration.
The method performed by the programmer or manager (Master) node based on component orchestration as disclosed in the embodiment of fig. 3 in this specification may be implemented in or by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The programming means based on the component orchestration may also perform the method of fig. 1 and implement the method performed by the manager node.
Based on the same inventive creation, the present specification also provides a computer readable storage medium storing one or more programs, which when executed by an electronic device including a plurality of application programs, cause the electronic device to execute the programming method based on component orchestration provided by the corresponding embodiment of fig. 1.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A programming method based on component orchestration, comprising:
receiving a programming request, wherein the programming request is used for requesting to run a plurality of component objects selected by a user, the arrangement request carries component object identifiers and arrangement configuration, and the arrangement configuration is used for representing the execution sequence of the component objects;
responding to the programming request, extracting the plurality of component object templates corresponding to the component identifications from a component object library, wherein the component object templates stored in the component object library consist of components with a plurality of functions pre-disassembled according to preset granularity;
and running the plurality of component object templates and returning a running result according to the arrangement configuration.
2. The method of claim 1, wherein the plurality of component objects includes components, and prior to the receiving a programming request, the method further comprises:
acquiring a service function logic of a software program sample;
based on the business function logic, disassembling a plurality of component templates from the software program sample and storing the component templates into the component object library;
and all the component templates in the component object library have complete functions and the functions are not overlapped.
3. The method of claim 2, wherein the disassembling a plurality of component templates from the software program sample based on the business function logic comprises:
based on the service function logic, performing disassembly processing on the software program sample according to a layer-by-layer disassembly principle from top to bottom and a preset granularity principle to obtain a plurality of component templates;
and the preset granularity principle is used for representing that the disassembled component template is the most basic service capability encapsulation performed in the service field of the software program sample.
4. The method of claim 2, wherein the plurality of component objects further comprises a component queue, and prior to said receiving a programming request, the method further comprises:
selecting a target component set from the component object library;
arranging the component templates in the target component set to obtain a component queue template and storing the component queue template in the component object library;
and each component queue template in the component object library has complete business logic, and the business logic is not overlapped.
5. The method of claim 2, wherein the plurality of component objects further comprises a component tree, and prior to said receiving a programming request, the method further comprises:
and analyzing the relation of the business function logic between the component template and the component queue template, and arranging the components and the component queue or the component queue and the component queue based on the relation to obtain a component tree template and storing the component tree template in the component object library.
6. The method of claim 2, wherein the orchestration request further carries a parameter configuration, and the running the plurality of component object templates according to the orchestration configuration comprises:
according to the parameter configuration, performing parameter configuration processing on the component object;
and running the component object after the parameter configuration processing based on the arrangement configuration so as to complete the specific service function of the component instance.
7. A programming apparatus for component orchestration, comprising:
the system comprises a receiving module, a programming module and a scheduling module, wherein the receiving module is used for receiving a programming request, the programming request is used for requesting to run a plurality of component objects selected by a user, the scheduling request carries component object identifiers and scheduling configuration, and the scheduling configuration is used for representing the execution sequence of the component objects;
the processing module is used for responding to the programming request and extracting the plurality of component object templates corresponding to the component identifications from a component object library, wherein the component object templates stored in the component object library consist of components with a plurality of functions which are pre-disassembled according to preset granularity;
and the operation module is used for operating the plurality of component object templates and returning an operation result according to the arrangement configuration.
8. The apparatus of claim 7, wherein the plurality of component objects comprise components, the apparatus further comprising:
the first disassembling module is used for acquiring the business function logic of the software program sample; based on the business function logic, disassembling a plurality of component templates from the software program sample and storing the component templates into the component object library; and all the component templates in the component object library have complete functions and the functions are not overlapped.
9. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the steps of the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1-7.
CN202010222672.2A 2020-03-26 2020-03-26 Programming method, device and equipment based on component arrangement Pending CN111459493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010222672.2A CN111459493A (en) 2020-03-26 2020-03-26 Programming method, device and equipment based on component arrangement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010222672.2A CN111459493A (en) 2020-03-26 2020-03-26 Programming method, device and equipment based on component arrangement

Publications (1)

Publication Number Publication Date
CN111459493A true CN111459493A (en) 2020-07-28

Family

ID=71682290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010222672.2A Pending CN111459493A (en) 2020-03-26 2020-03-26 Programming method, device and equipment based on component arrangement

Country Status (1)

Country Link
CN (1) CN111459493A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363400A (en) * 2020-09-30 2022-04-15 电科云(北京)科技有限公司 Application arrangement method and device based on cloud platform and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958714A (en) * 2018-07-02 2018-12-07 平安科技(深圳)有限公司 Service Component formula development approach, device, computer equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958714A (en) * 2018-07-02 2018-12-07 平安科技(深圳)有限公司 Service Component formula development approach, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363400A (en) * 2020-09-30 2022-04-15 电科云(北京)科技有限公司 Application arrangement method and device based on cloud platform and computer readable storage medium

Similar Documents

Publication Publication Date Title
Wurster et al. The essential deployment metamodel: a systematic review of deployment automation technologies
CN108958714B (en) Business component type development method and device, computer equipment and storage medium
US10237138B2 (en) System architecture for cloud-platform infrastructure layouts
CN111078315B (en) Microservice arranging and executing method and system, architecture, equipment and storage medium
CN102033743B (en) System and method for expanding model driving development capability by applying plug-in
JP2021012740A (en) Compound control
US20140136712A1 (en) Cloud resources as a service multi-tenant data model
US10996997B2 (en) API-based service command invocation
CN108171528B (en) Attribution method and attribution system
CN104424522B (en) A kind of transaction processing system and its configuration method
CN111124476A (en) Business rule configuration and creation method and device
CN112948110B (en) Topology and arrangement system and method of cloud application, storage medium and electronic equipment
WO2024002222A1 (en) Application management method and related device
CN114791797A (en) Application development method, system, device and storage medium based on service middlebox
CN102968303A (en) Program design system and program design method
CN113159618A (en) Rule engine design method and device with separated technical view angles
CN111459493A (en) Programming method, device and equipment based on component arrangement
CN108446301B (en) Business file splitting and summarizing method, device and equipment
US10540151B1 (en) Graphical customization of a firmware-provided user interface (UI)
CN113434063A (en) Information display method, device and equipment
CN116048536A (en) Micro-service deployment method and device, processor and electronic equipment
CN111191180A (en) Method and device for constructing micro-service system in invoice field and storage medium
CN112631696B (en) Service arranging method, arranging device, processor and service arranging system
Belkadi et al. Modular architectures management with PLM for the adaptation of frugal products to regional markets
CN115033590A (en) Multi-domain data fusion method, device and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728

RJ01 Rejection of invention patent application after publication