CN110737426A - Program block creating method, program block creating device, computer equipment and storage medium - Google Patents

Program block creating method, program block creating device, computer equipment and storage medium Download PDF

Info

Publication number
CN110737426A
CN110737426A CN201910843054.7A CN201910843054A CN110737426A CN 110737426 A CN110737426 A CN 110737426A CN 201910843054 A CN201910843054 A CN 201910843054A CN 110737426 A CN110737426 A CN 110737426A
Authority
CN
China
Prior art keywords
program block
component
service
design data
generating
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.)
Granted
Application number
CN201910843054.7A
Other languages
Chinese (zh)
Other versions
CN110737426B (en
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.)
Weikun Shanghai Technology Service Co Ltd
Original Assignee
Lujiazui Shanghai International Financial Assets Market Ltd By Share 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 Lujiazui Shanghai International Financial Assets Market Ltd By Share Ltd filed Critical Lujiazui Shanghai International Financial Assets Market Ltd By Share Ltd
Priority to CN201910843054.7A priority Critical patent/CN110737426B/en
Publication of CN110737426A publication Critical patent/CN110737426A/en
Application granted granted Critical
Publication of CN110737426B publication Critical patent/CN110737426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to the field of research and development management, in particular to a program block creating method, a device, computer equipment and a storage medium.

Description

Program block creating method, program block creating device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for creating program blocks, a computer device, and a storage medium.
Background
application programs comprise a plurality of program blocks, and the application programs are updated by increasing, decreasing or replacing the program blocks, however, time is needed for research and development or updating of each program block, and a long time of communication and confirmation is needed for a salesman and a developer before development of each program block, which further reduces the speed of development of the program blocks, so that methods for quickly creating the program blocks are urgently needed.
Disclosure of Invention
In view of the above, it is necessary to provide kinds of block creating methods, apparatuses, computer devices, and storage media capable of creating service blocks quickly and accurately for services, in order to address the above technical problems.
a method of chunk creation, the method comprising:
receiving a program block creating instruction sent by a service terminal, wherein the program block creating instruction carries a service identifier;
acquiring a program block generating component corresponding to the service identifier, generating a component selection item corresponding to the program block generating component, and sending the generated component selection item to the service terminal;
receiving the selected component option and the input program block design data sent by the service terminal, performing associated storage on the program block design data and a program block generating component corresponding to the selected component option, and sending verification;
when the program block design data and the program block generating component are approved, acquiring a component code file corresponding to the program block generating component, editing the component code file according to the program block design data, generating a program block to be tested, and sending the test;
and when the program block to be tested passes the test, determining the program block to be tested as a service program block corresponding to the service identifier.
In embodiments, the obtaining a component code file corresponding to the program block generating component, and editing the component code file according to the program block design data to generate a program block to be tested includes:
extracting component adjustment parameters, component operation rules and a program block operation platform from the program block design data;
inputting the component adjustment parameters at the preset position of the component code file, and combining the component code file according to the component operation rule to obtain a source code file of the program block to be tested;
acquiring a code compiling rule corresponding to the program block running platform;
and compiling the source code file according to the code compiling rule to obtain a program block to be tested.
In embodiments, the associating and storing the brick design data with the brick generation component corresponding to the selected component option includes:
acquiring a receiving date of the program block design data;
storing the program block design data, the program block generating component and the receiving date in an associated manner;
after the program block generating components corresponding to the selected component selection items are associated and stored with the program block design data, the method further comprises the following steps:
judging whether the service program block corresponding to the service identifier exists or not;
when the business module program block does not exist, acquiring a current date and a preset time threshold;
and detecting whether the difference between the current date and the receiving date is greater than a preset time threshold, determining the process of the service program block when the difference is greater than the preset time threshold, and generating reminding information to send to an execution terminal corresponding to the process.
In embodiments, the receiving the selected component selection item and the inputted program block design data sent by the service terminal comprises:
when the component option is a self-defined option, acquiring a component for generating the program block generation component, generating a component option corresponding to the component, and sending the component option to the service terminal;
receiving the selected component option and the input component setting rule sent by the service terminal;
and correspondingly associating the component setting rule with the selected component, and generating a program block generating component.
In embodiments, after the setting the to-be-tested program block as a service program block corresponding to a service identifier, the method includes:
receiving an adjustment instruction of a service program block and program block adjustment data sent by the service terminal;
acquiring the program block design data corresponding to the service program block according to the adjustment instruction;
auditing and judging the program block design data and the program block adjustment data;
and when the verification is passed, replacing the program block design data with the program block adjustment data to generate an adjusted service program block.
a method of chunk creation, the method comprising:
a service terminal sends a program block creating instruction to a server, wherein the program block creating instruction carries a service identifier;
the server acquires a program block generating component corresponding to the service identifier, generates a component selection item corresponding to the program block generating component, and sends the generated component selection item to the service terminal;
the service terminal selects the component selection item, inputs program block design data of a program block through a preset program block parameter interface, and sends the selected component selection item and the program block design data to the server;
the server stores the program block design data and the program block generating component corresponding to the selected component option in an associated manner and sends the program block generating component to an auditing terminal for auditing;
when the audit of the audit terminal passes, the server acquires a component code file corresponding to the program block generating component, edits the component code file according to the program block design data to generate a program block to be tested, and sends the program block to be tested to a test terminal;
and when the test terminal passes the test, the server determines the program block to be tested as a service program block corresponding to the service identifier.
apparatus for creating a program block, the apparatus comprising:
a creation instruction receiving module, configured to receive a program block creation instruction sent by a service terminal, where the program block creation instruction carries a service identifier;
the component option generating module is used for acquiring a program block generating component corresponding to the service identifier, generating a component selection option corresponding to the program block generating component and sending the generated component selection option to the service terminal;
the storage module is used for receiving the selected component selection option and the input program block design data sent by the service terminal, performing associated storage on the program block design data and a program block generation component corresponding to the selected component selection option, and sending verification;
the program block generation module to be tested is used for acquiring a component code file corresponding to the program block generation component when the program block design data and the program block generation component are approved, editing the component code file according to the program block design data, generating a program block to be tested and sending the test;
and the setting module is used for determining the program block to be tested as the service program block corresponding to the service identifier when the program block to be tested passes the test.
In , the module for generating the program block under test includes:
the design data extraction unit is used for extracting component adjustment parameters, component operation rules and a program block operation platform from the program block design data;
the code file combination unit is used for inputting the component adjustment parameters at the preset position of the component code file and combining the component code file according to the component operation rule to obtain a source code file of the program block to be tested;
a compiling rule obtaining unit, configured to obtain a code compiling rule corresponding to the program block running platform;
and the program block generating unit is used for compiling the source code file according to the code compiling rule to obtain a program block to be tested.
computer device comprising a memory storing a computer program and a processor implementing the steps of the method when the processor executes the computer program.
computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
The server receives a program block creating instruction sent by a service terminal, the program block creating instruction carries a service identifier, the server can selectively obtain a program block generating component according to the service identifier and can enable a service person to input program block design data to adjust the program block generating component according to service requirements to finally obtain a service program block related to the service, the server can assemble various independent program block generating components into the service program block according to the program block design data in the aspect of , the standardization and the specification of user operation of service program block production are realized, in addition, the accuracy in configuration and the integrity of service logic related to the configuration can be ensured in the aspect of , the program block creating instruction is the instruction related to the service sent by the service terminal, the communication and confirmation time between the service person and a developer is directly reduced, and the research and development cycle of the service program block is shortened.
Drawings
FIG. 1 is a diagram of an application scenario of a chunk creation method in embodiments;
FIG. 2 is a flow chart showing a block creation method in embodiments;
FIG. 3 is a schematic flow chart of the block creation step in embodiments;
FIG. 4 is a schematic flow chart of the storage steps in examples;
FIG. 5 is a flow chart illustrating the reminding step in embodiments;
FIG. 6 is a flow chart illustrating a block creation method in another embodiments;
FIG. 7 is a block diagram showing the construction of a block creating apparatus in embodiments;
fig. 8 is an internal structural view of a computer device in embodiments.
Detailed Description
For purposes of making the present application, its objects, aspects and advantages more apparent, the present application is described in further detail with reference to the drawings and the examples.
The program block creating method provided by the application can be applied to the application environment shown in fig. 1. Wherein the service terminal 102 communicates with the server 104 via a network. The service terminal 102 sends a program block creating instruction to the server 104, wherein the program block creating instruction carries a service identifier; the server 104 acquires a program block generation component corresponding to the service identifier, generates a component selection item corresponding to the program block generation component, and sends the generated component selection item to the service terminal 102; the service terminal 102 selects the component selection item, inputs program block design data of the program block through a preset program block parameter interface, and sends the selected component selection item and the program block design data to the server 104; the server 104 stores the program block design data and the program block generating component corresponding to the selected component option in an associated manner, and sends the program block generating component to the auditing terminal 106 for auditing; when the audit of the audit terminal 106 is passed, the server 104 acquires a component code file corresponding to the program block generation component, edits the component code file according to the program block design data to generate a program block to be tested, and sends the program block to be tested to the test terminal 108; when the test terminal 108 passes the test, the server 104 determines the program block to be tested as the service program block corresponding to the service identifier. The service terminal 102, the audit terminal 106, and the test terminal 108 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable smart devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In embodiments, as shown in fig. 2, program block creation methods are provided, which are described by taking the method as an example applied to the server in fig. 1, and include the following steps:
step 202, receiving a program block creating instruction sent by a service terminal, where the program block creating instruction carries a service identifier.
And the server receives a program block creating instruction sent by the service terminal, wherein the program block creating instruction carries the service identifier. The service identification is generated according to the service input by the service staff at the service terminal. The service may be a function requirement, a user requirement, or a system requirement, etc. For example, a service may be a task that a user needs or desires to achieve or a solution to a problem. And the program block creating instruction is used for starting the operation control of the program block generating component according to the service identifier.
And 204, acquiring a program block generating component corresponding to the service identifier, generating a component option corresponding to the program block generating component, and sending the generated component option to the service terminal.
The method comprises the steps that a server obtains a program block generating component corresponding to a service identifier, generates a component selection item corresponding to the program block generating component and sends the generated component selection item to a service terminal, the server stores the service identifier and the corresponding program block generating component in advance, the program block generating component comprises at least components, the program block generating component can be a component or a component group endowed with service attributes, for example, the program block generating component can be a main title, a subheading, a link address, a file and the like, the component can be a basic code control, a text box, a picture box and the like, the program block generating component can be obtained by endowing the basic code control with the service attributes, the service terminal can display the received component selection item, and a preset program block parameter interface is displayed to allow a service operator to input program block design data of the program block.
And step 206, receiving the selected component option and the input program block design data sent by the service terminal, performing associated storage on the program block design data and the program block generating component corresponding to the selected component option, and sending an audit.
The server receives the selected component selection item and the input program block design data sent by the service terminal. The block design data may include component tuning parameters and component operating rules. The component adjustment parameters may adjust the size and position of the final display of the tile generating component. The component operation rule is the operation logic according to which the program block generates the component to realize the functions, such as the check logic and the component operation logic between the upstream and downstream program block generating components. And the server stores the program block design data and the program block generating component corresponding to the selected component selection item in an associated manner. The server can confirm the service requirement corresponding to the service identification through the program block design data and the selected component selection option. The server can store the program block design data and the program block generating component in the database, and send the program block design data and the program block generating component stored in the database to the auditing terminal for auditing; the server can also send the program block design data and the program block generating component stored in the database to the auditing terminal according to the transmission instruction sent by the auditing terminal.
And 208, when the program block design data and the program block generating component are approved, acquiring a component code file corresponding to the program block generating component, editing the component code file according to the program block design data, generating a program block to be tested, and sending the program block to be tested.
The auditing terminal audits the program block design data and the program block generating component, and when the program block design data and the program block generating component meet the program block creating request, the auditing terminal sends a notification that the audit is passed to the server; and when the program block design data and the program block generating component do not meet the program block creating request, the auditing terminal sends a notice that the auditing is not passed to the server, and the server sends the component option to the service terminal again.
And when the program block design data and the program block generating component are approved, the server acquires a component code file corresponding to the program block generating component. The component code file is a document containing code whose code is empty at a preset position corresponding to the block design data. And the server edits the component code file according to the program block design data to generate a program block to be tested. And the server inputs the component adjustment parameters at the preset position of the component code file, combines the component code files of the multiple components according to the component operation rule, generates a program block to be tested and sends the program block to the test terminal.
And step 210, when the program block to be tested passes the test, determining that the program block to be tested is a service program block corresponding to the service identifier.
The test terminal tests the program block to be tested, and the test terminal can test whether the program block to be tested meets the service requirement corresponding to the service identifier or not and can also test whether the program block to be tested can run in the application program or not. When the program to be tested passes the test, the server determines that the program to be tested is the service program corresponding to the service identifier, and the server can correspondingly store the program to be tested and the service identifier. The server can output the service program block after combining with the application program, and can also send the service program block to other servers according to the requirement.
The server can assemble various independent program block generating components into a service program block according to the program block design data in the aspect of , thereby realizing the standardization and the specification of the operation of the service program block production, ensuring the correctness in configuration and the integrity of service logic involved in the configuration in the aspect of , and the program block creating instruction is the instruction which is sent by the service terminal and related to the service and directly reducing the communication and confirmation time between the service operator and the developer, thereby shortening the research and development period of the service program block.
In another embodiment, as shown in fig. 3, the obtaining a component code file corresponding to the program block generating component, and editing the component code file according to the program block design data to generate a program block to be tested includes the following steps:
step 302, extracting the component adjustment parameters, the component operation rules and the program block operation platform from the program block design data.
The server extracts the component adjustment parameters, the component operation rules and the program block operation platform from the program block design data. The component adjustment parameters may adjust the size and position of the final display of the tile generating component. The component operation rule is the operation logic according to which the program block generates the component to realize the functions, such as the check logic and the component operation logic between the upstream and downstream program block generating components. The program block running platform is an application program for finally presenting the service program block, wherein the program block running platform can be a web browser or an APP application, different program block running platforms correspond to different code compiling rules, and the server determines the program block running platform according to program block design data. The business program block can be adapted to a plurality of program block running platforms.
Step 304, inputting the component adjustment parameters at the preset position of the component code file, and combining the component code file according to the component operation rule to obtain a source code file of the program block to be tested.
And the server inputs the component adjustment parameters at the preset position of the component code file, and combines the component code file according to the component operation rule to obtain a source code file of the program block to be tested. The source code file may be general code written in advance by a developer to realize the functions of the component, and the code language may be C language or assembly language, etc.
And step 306, acquiring a code compiling rule corresponding to the program block running platform.
And the server acquires a code compiling rule corresponding to the program block running platform. The server can convert the code language of the source code file into a code language compatible with the application program through the code compiling rule. When the program block design data includes a plurality of program block operating platforms, the server acquires a code compiling rule corresponding to each program block operating platform.
And 308, compiling the source code file according to the code compiling rule to obtain a program block to be tested.
When the program block design data comprises a plurality of program block running platforms, the server can respectively compile the source code file according to the code compiling rules corresponding to the program block running platforms to obtain a plurality of program blocks to be tested, and each program block to be tested is suitable for program block running platforms.
In the program block creating method, the server can input the component adjustment parameters at the preset position of the component code file, combine the component code file according to the component operation rule to generate the source code file of the program block to be tested, and compile the source code according to the code compiling rule, so that the program block code file suitable for various platforms can be compiled for times, and rapid development is realized.
In embodiments, please refer to fig. 4 and fig. 5, fig. 4 is a flowchart of a storing step in the embodiment shown in fig. 2, and fig. 5 is a flowchart of a reminding step in the embodiment shown in fig. 1, in this embodiment, storing the program block design data in association with the program block generating component corresponding to the selected component option may include the following steps:
step 402, acquiring the receiving date of the program block design data.
The server, upon receiving the brick design data and the selected component selection item, also obtains a reception date of the brick design data. The server may associate the service blocks according to the reception date.
And step 404, storing the program block design data, the program block generating component and the receiving date in an associated manner.
And the server stores the program block design data, the program block generating component and the receiving date in an associated manner.
Accordingly, in this embodiment, after the prompting step stores the program block design data in association with the program block generating component corresponding to the selected component option, the method may include the following steps:
step 502, determining whether the service program block corresponding to the service identifier exists.
And when the program block to be tested passes the test, the server correspondingly stores the service identification and the service program block in a service program block storage library. The server judges whether the service program block corresponding to the service identifier exists or not, and avoids the problems that the auditing personnel holding the auditing terminal or the testing personnel holding the testing terminal do not process in time, and the service program block has overlong waiting time or fails to be on line.
Step 504, when it is determined that the service program block does not exist, acquiring a current date and a preset time threshold.
And when the server judges that the service identification does not exist in the service program block storage library or the service program block corresponding to the service identification does not exist, the server acquires the current date and the preset time threshold. The preset time threshold is preset, and may be a service program block completion time limit set by a service person or an early warning time limit set by the service person.
Step 506, detecting whether the difference between the current date and the receiving date is greater than a preset time threshold, when the difference is greater than the preset time threshold, determining the process of the service program block, and generating a reminding message to send to an execution terminal corresponding to the process.
When the difference between the current date and the receiving date is larger than the preset time threshold, the server can determine the process of the service program block according to the sent various data, generate the reminding information and send the reminding information to the execution terminal corresponding to the process. For example, when the data sent by the server is program block design data and a program block generating component, the server judges that the process of the service program block is stopped at an auditing terminal, and the server generates reminding information and sends the reminding information to the auditing terminal; and when the data sent by the server is the program block to be tested, the server judges that the process of the service program block is stopped at the test terminal, and the server generates reminding information and sends the reminding information to the test terminal.
In the program block creating method, the program block design data and the receiving time are correspondingly stored, and whether the service program block is generated or not is judged according to the time, so that the phenomenon that the service program block is too long in waiting time or fails to be online due to the fact that an auditor holding an audit terminal or a tester holding a test terminal does not process in time is avoided.
In , after receiving the selected component option and the input program block design data sent by the service terminal, the method includes, when the component option is a user-defined option, acquiring a component generating the program block generating component, generating a component option corresponding to the component, and sending the component option to the service terminal, receiving the selected component option and the input component setting rule sent by the service terminal, and associating the component setting rule with the selected component, and generating a program block generating component.
The block generation component may be a component that is set in advance according to the service identification and has a specific service attribute. The component selection item can be corresponding to the program block generation component or can be a self-defining option. The self-defined option is used for the service personnel to generate a program block generating component matched with the service identifier according to the service requirement, and the program block generating component is not set in advance. And when the component option is not a self-defined option, the server acquires a component for generating the program block to generate the component, generates a component option corresponding to the component and sends the component option to the service terminal. Building blocks are basic code controls, such as text boxes, picture boxes, etc., and the building block generation component is obtained by giving business meanings to the building blocks.
The service terminal can display component selection items, display an assembly setting interface after the component selection items are selected, and set the selected components according to assembly setting rules input on the assembly setting interface. The component setup interface may contain a setup rule input box for the component. The service terminal can select a plurality of components at the same time, and each selected component is set through the component setting rule. And the server receives the selected component selection item and the input component setting rule sent by the service terminal, performs corresponding association with the selected component according to the received component setting rule, and generates a program block generating component. For example, the service terminal may select a plurality of text boxes a to E, and set rules for the text boxes in sequence: the input information of the text box A is set as a component name, the input information of the text box B is set as a limiting rule of the text box A, the input information of the text box C is set as a display rule of the text box A, the input information of the text box D is set as a display name of the text box A, and the input information of the text box E is set as a prompting rule of the text box A. The server generates a program block generation component composed of components, and the server can store the set program block generation component and the service identifier so as to obtain the program block for the second time.
In the program block creating method, the program block generating component can be dynamically configured, and a proper program block generating component can be generated in time according to the service identifier, and the multi-granularity meets the self-defined generation of the service program block.
In embodiments, after setting the to-be-tested program block as a service program block corresponding to a service identifier, the method includes receiving an adjustment instruction and program block adjustment data of the service program block sent by the service terminal, obtaining program block design data corresponding to the service program block according to the adjustment instruction, performing auditing judgment on the program block design data and the program block adjustment data, and replacing the program block design data with the program block adjustment data to generate an adjusted service program block when the auditing is passed.
And the server receives the adjustment instruction of the service program block and the program block adjustment data sent by the service terminal. And the server acquires program block design data corresponding to the service program block according to the adjustment instruction. The server checks and judges the program block design data and the program block adjustment data, and the server can send the program block design data and the program block adjustment data to a checking terminal for checking. And when the verification is passed, the server replaces the program block design data with the program block adjustment data to generate an adjusted service program block.
In the program block creating method, the generated service program block can be correspondingly changed according to the adjusting instruction and the program block adjusting data, a new service program block does not need to be generated again in the changing process, and the time of secondary online of the service program block is shortened.
In another embodiments, as shown in fig. 6, methods for creating program blocks are provided, and the method is exemplified by the application to the whole system in fig. 1, and includes the following steps:
step 601, the service terminal sends a program block creating instruction to the server, wherein the program block creating instruction carries the service identifier.
The service terminal may display the block creation interface, and input a service identifier generation block creation instruction in the block creation interface. The service identification corresponds to a service requirement of the service program block.
Step 602, the server acquires a program block generating component corresponding to the service identifier, and generates a component option corresponding to the program block generating component.
Step 603, the server sends the generated component selection item to the service terminal.
And when the server receives the program block creating instruction, acquiring a program block generating component corresponding to the service identifier in the program block creating instruction, generating a component selection item according to the component name corresponding to the program block generating component, and sending the component selection item to the service terminal.
And step 604, the service terminal selects the component selection item, and inputs program block design data of a program block through a preset program block parameter interface.
Step 605, the service terminal sends the selected component option and the program block design data to the server.
And the service terminal selects the component selection item and inputs program block design data of the program block on the program block parameter interface. The block parameter interface includes a block parameter input box for the block. The block parameter interface may be a program framework that is previously combed out by the developer. And the service terminal sends the selected component option and the program block design data to the server.
And 606, the server stores the program block design data and the program block generating component corresponding to the selected component selection item in an associated manner.
And step 607, the server sends the stored program block design data and the program block generating component to the auditing terminal for auditing.
In step 608, the audit terminal audits the program block design data and the program block generation component.
And 609, when the audit of the audit terminal passes, the server acquires a component code file corresponding to the program block generating component, and edits the component code file according to the program block design data to generate a program block to be tested.
And step 610, the server sends the program block to be tested to the test terminal.
When the audit terminal passes the audit, the audit terminal can send a notification that the audit passes to the server. The server can acquire the component code file corresponding to the program block generating component according to the audit pass notification, and edit the component code file according to the program block design data to generate the program block to be tested. And the server sends the program block to be tested to the test terminal.
Step 611, the test terminal tests the to-be-tested program block.
Step 612, when the test terminal passes the test, the server determines that the program block to be tested is a service program block corresponding to the service identifier.
The test terminal tests the program block to be tested, and the test terminal can test whether the program block to be tested meets the service requirement corresponding to the service identifier or not and can also test whether the program block to be tested can run in the application program or not. When the test terminal passes the test, the test terminal may send a notification of the test passing to the server. And the server sets the program block to be tested as a service program block corresponding to the service identifier.
The server can selectively obtain the program block generating components according to the service identification, and can adjust the program block generating components according to the program block design data to finally obtain the service program block related to the service, can assemble various independent program block generating components into the service program block, thereby realizing the standardization of the production of the service program block and the operation of a standard user, and can ensure the correctness in configuration and the integrity of service logic related to the configuration.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in the order indicated by the arrows, unless explicitly stated herein, the steps are not performed in a strict order of limitation, and the steps may be performed in other orders, and further, at least the portion of the step of in fig. 2-6 may include multiple sub-steps or stages, which are not necessarily performed at the same time , but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily performed in sequence, but may be rotated or alternated with at least portions of other steps or sub-steps or stages of other steps.
In embodiments, as shown in fig. 7, program block creation apparatuses are provided, which include a creation instruction receiving module 702, a component option generating module 704, a storage module 706, a to-be-tested program block generating module 708, and a setting module 710, wherein:
a creating instruction receiving module 702, configured to receive a program block creating instruction sent by a service terminal, where the program block creating instruction carries a service identifier.
A component option generating module 704, configured to obtain a program block generating component corresponding to the service identifier, generate a component selection option corresponding to the program block generating component, and send the generated component selection option to the service terminal.
A storage module 706, configured to receive the selected component selection option and the input program block design data sent by the service terminal, and perform associated storage on the program block design data and the program block generation component corresponding to the selected component selection option.
And a to-be-tested program block generation module 708, configured to obtain, when the program block design data and the program block generation component are passed through the audit, a component code file corresponding to the program block generation component, and edit the component code file according to the program block design data to generate a to-be-tested program block.
And the setting module 710, when the program block to be tested passes the test, determining that the program block to be tested is the service program block corresponding to the service identifier.
In embodiments, the to-be-tested program block generation module 708 includes a design data extraction unit, a code file combination unit, a compilation rule acquisition unit, and a program block generation unit, where:
and the design data extraction unit is used for extracting the component adjustment parameters, the component operation rules and the program block operation platform from the program block design data.
And the code file combination unit is used for inputting the component adjustment parameters at the preset position of the component code file and combining the component code file according to the component operation rule to obtain a source code file of the program block to be tested.
And the compiling rule obtaining unit is used for obtaining a code compiling rule corresponding to the program block running platform.
And the program block generating unit is used for compiling the source code file according to the code compiling rule to obtain a program block to be tested.
In of these embodiments, the storage module 706 includes a receive date acquisition unit and a data storage unit, wherein:
a reception date acquisition unit for acquiring a reception date of the block design data.
And the data storage unit is used for storing the program block design data, the program block generating component and the receiving date in an associated manner.
The device also comprises a judging module, a date threshold value obtaining module and a reminding information generating module, wherein:
and the judging module is used for judging whether the service program block corresponding to the service identifier exists or not.
And the date threshold value acquisition module is used for acquiring the current date and the preset time threshold value when the business program block does not exist.
And the reminding information generating module is used for detecting whether the difference between the current date and the receiving date is greater than a preset time threshold, determining the process of the service program block when the difference is greater than the preset time threshold, and generating reminding information to send to the execution terminal corresponding to the process.
In another embodiments, the apparatus further comprises a component option generation module, a rule reception module, and a component generation module, wherein:
and the component option generating module is used for acquiring a component for generating the program block generating component, generating a component option corresponding to the component and sending the component option to the service terminal when the component option is a custom option.
And the rule receiving module is used for receiving the selected component selection item and the input component setting rule sent by the service terminal.
And the component generating module is used for correspondingly associating the component setting rule with the selected component and generating a program block generating component.
In another embodiments, the apparatus further comprises an adjustment data receiving module, a design data acquisition module, a data review module, and a data replacement module, wherein:
and the adjusting data receiving module is used for receiving the adjusting instruction of the service program block and the program block adjusting data sent by the service terminal.
And the design data acquisition module is used for acquiring the program block design data corresponding to the service program block according to the adjustment instruction.
And the data auditing module is used for auditing and judging the program block design data and the program block adjustment data.
And the data replacement module is used for replacing the program block adjustment data with the program block design data to generate an adjusted service program block when the audit is passed.
For the specific definition of the block creation means, reference may be made to the above definition of the block creation method, which is not described herein again. The respective modules in the above block creation means may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
kinds of program block creating system, the system includes service terminal, server, auditing terminal and testing terminal, among which:
and the service terminal sends a program block creating instruction to the server, wherein the program block creating instruction carries the service identifier.
And the server acquires the program block generating component corresponding to the service identifier, generates a component selection item corresponding to the program block generating component, and sends the generated component selection item to the service terminal.
And the service terminal selects the component selection item, inputs program block design data of the program block through a preset program block parameter interface, and sends the selected component selection item and the program block design data to the server.
And the server stores the program block design data and the program block generating component corresponding to the selected component option in an associated manner, and sends the program block generating component to the auditing terminal for auditing.
And when the audit of the audit terminal passes, the server acquires a component code file corresponding to the program block generating component, edits the component code file according to the program block design data to generate a program block to be tested, and sends the program block to be tested to the test terminal.
And when the test terminal passes the test, the server determines the program block to be tested as a service program block corresponding to the service identifier.
In embodiments, there are provided kinds of computer devices, which may be servers, the internal structure of which may be as shown in FIG. 8, including a processor, a memory, a network interface, and a database connected by a system bus, wherein the processor of the computer device is used to provide computing and control capabilities.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In embodiments, computer devices are provided, which include a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement the following steps of receiving a program block creation instruction sent by a service terminal, where the program block creation instruction carries a service identifier, obtaining a program block generation component corresponding to the service identifier, generating a component option corresponding to the program block generation component, sending the generated component option to the service terminal, receiving a selected component option and input program block design data sent by the service terminal, storing the program block design data in association with a program block generation component corresponding to the selected component option, and sending an audit, obtaining a component code file corresponding to the program block generation component when the program block design data and the program block generation component pass the audit, editing the component code file according to the program block design data, generating a program block to be tested, and sending the test, and determining that the program block to be tested passes the audit corresponding to the service identifier.
In embodiments, the obtaining of a component code file corresponding to a component generated by a program block and the editing of the component code file according to program block design data to generate a program block to be tested, which are realized when a processor executes a computer program, includes extracting component adjustment parameters, component operation rules and a program block operation platform from the program block design data, inputting the component adjustment parameters at a preset position of the component code file, combining the component code files according to the component operation rules to obtain a source code file of the program block to be tested, obtaining a code compiling rule corresponding to the program block operation platform, and compiling the source code file according to the code compiling rule to obtain the program block to be tested.
In embodiments, the step of associating and storing the block design data with the block generation component corresponding to the selected component option, which is implemented when a processor executes a computer program, includes acquiring a reception date of the block design data, associating and storing the block design data, the block generation component, and the reception date, after associating and storing the block design data with the block generation component corresponding to the selected component option, determining whether the service block corresponding to the service identifier exists, acquiring a current date and a preset time threshold when determining that the service block does not exist, detecting whether a difference between the current date and the reception date is greater than a preset time threshold, determining a process of the service block when the difference is greater than the preset time threshold, and generating a reminder message to be sent to an execution terminal corresponding to the process.
In embodiments, after receiving the selected component option and the input program block design data sent by the service terminal when the processor executes the computer program, the method further includes, when the component option is a custom option, acquiring a component generating the program block generation component, generating a component option corresponding to the component, and sending the component option corresponding to the component to the service terminal, receiving the selected component option and the input component setting rule sent by the service terminal, and associating the component setting rule with the selected component, and generating a program block generation component.
In embodiments, after the processor sets the to-be-tested program block as a service program block corresponding to a service identifier when executing a computer program, the method further includes receiving an adjustment instruction and program block adjustment data of the service program block sent by the service terminal, obtaining program block design data corresponding to the service program block according to the adjustment instruction, performing audit judgment on the program block design data and the program block adjustment data, and generating an adjusted service program block by replacing the program block design data with the program block adjustment data when the audit is passed.
In embodiments, there are computer-readable storage media on which a computer program is stored, where the computer program is executed by a processor to implement the steps of receiving a program block creation instruction sent by a service terminal, where the program block creation instruction carries a service identifier, obtaining a program block generation component corresponding to the service identifier, generating a component option corresponding to the program block generation component, sending the generated component option to the service terminal, receiving a selected component option sent by the service terminal and input program block design data, storing the program block design data in association with a program block generation component corresponding to the selected component option, and sending an audit, obtaining a component code file corresponding to the program block generation component when the program block design data and the program block generation component are approved, editing the component code file according to the program block design data, generating a program block to be tested, and sending a test, and determining that the program block to be tested is a service block corresponding to the service identifier when the program block to be tested passes the test.
In embodiments, the obtaining of a component code file corresponding to a component generated by a program block when a computer program is executed by a processor and the editing of the component code file according to program block design data to generate a program block to be tested includes extracting component adjustment parameters, component operation rules and a program block operation platform from the program block design data, inputting the component adjustment parameters at a preset position of the component code file, combining the component code files according to the component operation rules to obtain a source code file of the program block to be tested, obtaining a code compiling rule corresponding to the program block operation platform, and compiling the source code file according to the code compiling rule to obtain the program block to be tested.
In embodiments, the associating and storing of the program block design data and the program block generating component corresponding to the selected component option, which is realized when a computer program is executed by a processor, includes acquiring a receiving date of the program block design data, associating and storing the program block design data, the program block generating component and the receiving date, and after associating and storing the program block design data and the program block generating component corresponding to the selected component option, determining whether the service program block corresponding to the service identifier exists, acquiring a current date and a preset time threshold when determining that the service program block does not exist, detecting whether a difference between the current date and the receiving date is greater than a preset time threshold, determining a process of the service program block when the difference is greater than the preset time threshold, and generating a reminding message to send to an execution terminal corresponding to the process.
In embodiments, after receiving the selected component option and the input program block design data sent by the service terminal when the computer program is executed by the processor, the method includes, when the component option is a user-defined option, acquiring a component for generating the program block generation component, generating a component option corresponding to the component, sending the component option corresponding to the component to the service terminal, receiving the selected component option and the input component setting rule sent by the service terminal, and associating the component setting rule with the selected component, and generating a program block generation component.
In embodiments, after a computer program is executed by a processor to set a to-be-tested program block as a service program block corresponding to a service identifier, the method includes receiving an adjustment instruction and program block adjustment data of the service program block sent by a service terminal, obtaining program block design data corresponding to the service program block according to the adjustment instruction, performing audit judgment on the program block design data and the program block adjustment data, and generating an adjusted service program block by replacing the program block design data with the program block adjustment data when the audit is passed.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by a computer program that may be stored in a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1, a method of chunk creation, the method comprising:
receiving a program block creating instruction sent by a service terminal, wherein the program block creating instruction carries a service identifier;
acquiring a program block generating component corresponding to the service identifier, generating a component selection item corresponding to the program block generating component, and sending the generated component selection item to the service terminal;
receiving the selected component option and the input program block design data sent by the service terminal, performing associated storage on the program block design data and a program block generating component corresponding to the selected component option, and sending verification;
when the program block design data and the program block generating component are approved, acquiring a component code file corresponding to the program block generating component, editing the component code file according to the program block design data, generating a program block to be tested, and sending the test;
and when the program block to be tested passes the test, determining the program block to be tested as a service program block corresponding to the service identifier.
2. The method according to claim 1, wherein the obtaining a component code file corresponding to the program block generating component, and editing the component code file according to the program block design data to generate a program block to be tested, comprises:
extracting component adjustment parameters, component operation rules and a program block operation platform from the program block design data;
inputting the component adjustment parameters at the preset position of the component code file, and combining the component code file according to the component operation rule to obtain a source code file of the program block to be tested;
acquiring a code compiling rule corresponding to the program block running platform;
and compiling the source code file according to the code compiling rule to obtain a program block to be tested.
3. The method according to claim 1, wherein the associating and storing the block design data with the block generation component corresponding to the selected component option comprises:
acquiring a receiving date of the program block design data;
storing the program block design data, the program block generating component and the receiving date in an associated manner;
after the program block generating components corresponding to the selected component selection items are associated and stored with the program block design data, the method further comprises the following steps:
judging whether the service program block corresponding to the service identifier exists or not;
when the business program block does not exist, acquiring a current date and a preset time threshold;
and detecting whether the difference between the current date and the receiving date is greater than a preset time threshold, determining the process of the service program block when the difference is greater than the preset time threshold, and generating reminding information to send to an execution terminal corresponding to the process.
4. The method according to any of claims 1-3, wherein the receiving of the selected component selection item and the inputted block design data sent by the service terminal comprises:
when the component option is a self-defined option, acquiring a component for generating the program block generation component, generating a component option corresponding to the component, and sending the component option to the service terminal;
receiving the selected component option and the input component setting rule sent by the service terminal;
and correspondingly associating the component setting rule with the selected component, and generating a program block generating component.
5. The method according to claim 1, wherein after setting the to-be-tested program block as the service program block corresponding to the service identifier, the method comprises:
receiving an adjustment instruction of a service program block and program block adjustment data sent by the service terminal;
acquiring the program block design data corresponding to the service program block according to the adjustment instruction;
auditing and judging the program block design data and the program block adjustment data;
and when the verification is passed, replacing the program block design data with the program block adjustment data to generate an adjusted service program block.
A program block creation method of , the method comprising:
a service terminal sends a program block creating instruction to a server, wherein the program block creating instruction carries a service identifier;
the server acquires a program block generating component corresponding to the service identifier, generates a component selection item corresponding to the program block generating component, and sends the generated component selection item to the service terminal;
the service terminal selects the component selection item, inputs program block design data of a program block through a preset program block parameter interface, and sends the selected component selection item and the program block design data to the server;
the server stores the program block design data and the program block generating component corresponding to the selected component option in an associated manner and sends the program block generating component to an auditing terminal for auditing;
when the audit of the audit terminal passes, the server acquires a component code file corresponding to the program block generating component, edits the component code file according to the program block design data to generate a program block to be tested, and sends the program block to be tested to a test terminal;
and when the test terminal passes the test, the server sets the program block to be tested as a service program block corresponding to the service identifier.
A block creation apparatus of , comprising:
a creation instruction receiving program block, configured to receive a program block creation instruction sent by a service terminal, where the program block creation instruction carries a service identifier;
the component option generating module is used for acquiring a program block generating component corresponding to the service identifier, generating a component selection option corresponding to the program block generating component and sending the generated component selection option to the service terminal;
the storage module is used for receiving the selected component selection option and the input program block design data sent by the service terminal, performing associated storage on the program block design data and a program block generation component corresponding to the selected component selection option, and sending verification;
the program block generation module to be tested is used for acquiring a component code file corresponding to the program block generation component when the program block design data and the program block generation component are approved, editing the component code file according to the program block design data, generating a program block to be tested and sending the test;
and the setting module is used for determining the program block to be tested as the service program block corresponding to the service identifier when the program block to be tested passes the test.
8. The apparatus of claim 7, wherein the under-test program block generation module comprises:
the design data extraction unit is used for extracting component adjustment parameters, component operation rules and a program block operation platform from the program block design data;
the code file combination unit is used for inputting the component adjustment parameters at the preset position of the component code file and combining the component code file according to the component operation rule to obtain a source code file of the program block to be tested;
a compiling rule obtaining unit, configured to obtain a code compiling rule corresponding to the program block running platform;
and the program block generating unit is used for compiling the source code file according to the code compiling rule to obtain a program block to be tested.
Computer device of , comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program is configured to carry out the steps of the method of any of claims 1 to 6 as claimed in .
10, computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any of claims 1 to 6, wherein represents a set of instructions for carrying out the method.
CN201910843054.7A 2019-09-06 2019-09-06 Program block creating method, program block creating device, computer equipment and storage medium Active CN110737426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910843054.7A CN110737426B (en) 2019-09-06 2019-09-06 Program block creating method, program block creating device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910843054.7A CN110737426B (en) 2019-09-06 2019-09-06 Program block creating method, program block creating device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110737426A true CN110737426A (en) 2020-01-31
CN110737426B CN110737426B (en) 2022-05-06

Family

ID=69267525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910843054.7A Active CN110737426B (en) 2019-09-06 2019-09-06 Program block creating method, program block creating device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110737426B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115048097A (en) * 2022-08-15 2022-09-13 湖南云畅网络科技有限公司 Front-end unified packaging compiling system and method for low codes

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1059980A (en) * 1990-08-17 1992-04-01 国际商业机器公司 The flexible service network of computer system
CN102736915A (en) * 2011-04-12 2012-10-17 株式会社日立制作所 Automatic program generation device, method, and computer program
CN103970087A (en) * 2013-01-30 2014-08-06 发那科株式会社 Operating program writing system
CN105138322A (en) * 2015-08-05 2015-12-09 移康智能科技(上海)有限公司 Application generating method and system
CN106371823A (en) * 2016-08-22 2017-02-01 广州酷狗计算机科技有限公司 Code block generation method and apparatus
US20180113798A1 (en) * 2016-10-24 2018-04-26 Cisco Technology, Inc. Automated testing of code modules against individually relevant data sets
CN108287694A (en) * 2017-08-08 2018-07-17 深圳壹账通智能科技有限公司 Application builds method, system, computer equipment and storage medium
CN108958714A (en) * 2018-07-02 2018-12-07 平安科技(深圳)有限公司 Business component type development method and device, computer equipment and storage medium
US20190138678A1 (en) * 2017-11-07 2019-05-09 Amazon Technologies, Inc. Code Module Selection for Device Design
CN109828752A (en) * 2018-12-14 2019-05-31 平安科技(深圳)有限公司 Item code automatic generation method, device, computer equipment and storage medium
CN109885311A (en) * 2019-01-28 2019-06-14 平安科技(深圳)有限公司 A kind of generation method and equipment of application program

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1059980A (en) * 1990-08-17 1992-04-01 国际商业机器公司 The flexible service network of computer system
CN102736915A (en) * 2011-04-12 2012-10-17 株式会社日立制作所 Automatic program generation device, method, and computer program
CN103970087A (en) * 2013-01-30 2014-08-06 发那科株式会社 Operating program writing system
CN105138322A (en) * 2015-08-05 2015-12-09 移康智能科技(上海)有限公司 Application generating method and system
CN106371823A (en) * 2016-08-22 2017-02-01 广州酷狗计算机科技有限公司 Code block generation method and apparatus
US20180113798A1 (en) * 2016-10-24 2018-04-26 Cisco Technology, Inc. Automated testing of code modules against individually relevant data sets
CN108287694A (en) * 2017-08-08 2018-07-17 深圳壹账通智能科技有限公司 Application builds method, system, computer equipment and storage medium
US20190138678A1 (en) * 2017-11-07 2019-05-09 Amazon Technologies, Inc. Code Module Selection for Device Design
CN108958714A (en) * 2018-07-02 2018-12-07 平安科技(深圳)有限公司 Business component type development method and device, computer equipment and storage medium
CN109828752A (en) * 2018-12-14 2019-05-31 平安科技(深圳)有限公司 Item code automatic generation method, device, computer equipment and storage medium
CN109885311A (en) * 2019-01-28 2019-06-14 平安科技(深圳)有限公司 A kind of generation method and equipment of application program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115048097A (en) * 2022-08-15 2022-09-13 湖南云畅网络科技有限公司 Front-end unified packaging compiling system and method for low codes
CN115048097B (en) * 2022-08-15 2022-10-28 湖南云畅网络科技有限公司 Front-end unified packaging compiling system and method for low codes

Also Published As

Publication number Publication date
CN110737426B (en) 2022-05-06

Similar Documents

Publication Publication Date Title
WO2022160707A1 (en) Human-machine interaction method and apparatus combined with rpa and ai, and storage medium and electronic device
CN108287694B (en) Application program construction method, system, computer device and storage medium
CN106156186B (en) Data model management device, server and data processing method
US20120204160A1 (en) Managing Non-Common Features for Program Code Translation
CN112905459B (en) Service interface testing method and device, electronic equipment and storage medium
CN106612204B (en) Service checking method and device
CN109977012B (en) Joint debugging test method, device, equipment and computer readable storage medium of system
CN113127347A (en) Interface testing method, device, equipment and readable storage medium
CN110543301A (en) Method and device for generating jenkins code file
CN115617780A (en) Data import method, device, equipment and storage medium
CN111897738A (en) Automatic testing method and device based on atomic service
CN110737426B (en) Program block creating method, program block creating device, computer equipment and storage medium
CN112131127B (en) Interface testing method, device and system and electronic equipment
CN113342679A (en) Interface test method and test device
CN114443039A (en) Input parameter verification method and device, electronic equipment and storage medium
CN115827051A (en) Software integration management system, method and server
CN110471745A (en) A kind of service orchestration method and device
CN113032256B (en) Automated testing method, apparatus, computer system, and readable storage medium
CN113032004B (en) Method, apparatus and program product for managing development jobs in a development environment
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN109189370B (en) Software component generation method, device, equipment and computer readable storage medium
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
JP2015148925A (en) Program generation device and method
CN111557004B (en) CAD data inspection system and device
CN113052463B (en) Workflow verification method, workflow verification device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20200201

Address after: 200120 floor 15, 1333 Lujiazui Ring Road, free trade Experimental Zone, Pudong New Area, Shanghai

Applicant after: Weikun (Shanghai) Technology Service Co., Ltd

Address before: 13th Floor, 1333 Lujiazui Ring Road, Shanghai Free Trade Pilot Area, 200120

Applicant before: Lujiazui Shanghai international financial assets market Limited by Share Ltd

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant