CN113031944B - Business opening device and method based on template - Google Patents

Business opening device and method based on template Download PDF

Info

Publication number
CN113031944B
CN113031944B CN201911248574.XA CN201911248574A CN113031944B CN 113031944 B CN113031944 B CN 113031944B CN 201911248574 A CN201911248574 A CN 201911248574A CN 113031944 B CN113031944 B CN 113031944B
Authority
CN
China
Prior art keywords
service
template
opening
service opening
task
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.)
Active
Application number
CN201911248574.XA
Other languages
Chinese (zh)
Other versions
CN113031944A (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.)
Unihub China Information Technology Co Ltd
Original Assignee
Unihub China Information 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 Unihub China Information Technology Co Ltd filed Critical Unihub China Information Technology Co Ltd
Priority to CN201911248574.XA priority Critical patent/CN113031944B/en
Publication of CN113031944A publication Critical patent/CN113031944A/en
Application granted granted Critical
Publication of CN113031944B publication Critical patent/CN113031944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The application provides a service opening device and a method based on a template, wherein the device comprises the following steps: the template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template; the template checking module is used for checking the business template; the template determining module is used for determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task after receiving the service opening task; the system comprises an opening module, a service opening module and a service processing module, wherein the opening module is used for inputting service parameters in a service opening task to a service template to be used, generating service opening data and opening the service of equipment to be opened in the service opening task according to the service opening data. The application can flexibly realize service opening through the template, and has high efficiency.

Description

Business opening device and method based on template
Technical Field
The application relates to the field of Internet, in particular to a service opening device and method based on a template.
Background
In general, when a service is opened, the service opening template built in the service opening system can be used for realizing quick opening, but the current service opening template is not flexible enough, and is often required to be modified, so that the degree of the covered service opening requirement is not enough, and the service opening efficiency is not enough.
Disclosure of Invention
The embodiment of the application provides a service opening device based on a template, which is used for flexibly realizing service opening through the template with high efficiency, and comprises the following components:
the template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
the template checking module is used for checking the business template;
the template determining module is used for determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task after receiving the service opening task;
the system comprises an opening module, a service opening module and a service processing module, wherein the opening module is used for inputting service parameters in a service opening task to a service template to be used, generating service opening data and opening the service of equipment to be opened in the service opening task according to the service opening data.
The embodiment of the application provides a service opening method based on a template, which is used for flexibly realizing service opening through the template with high efficiency, and comprises the following steps:
receiving a service opening logic command input by a user based on a template type, and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
checking the business template;
after receiving the service opening task, determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task;
and inputting the service parameters in the service opening task into a service template to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data.
The embodiment of the application also provides a computer device which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the service opening method based on the template when executing the computer program.
The embodiment of the application also provides a computer readable storage medium, which stores a computer program for executing the template-based service opening method.
In the embodiment of the application, a template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template; the template checking module is used for checking the business template; the template determining module is used for determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task after receiving the service opening task; the system comprises an opening module, a service opening module and a service processing module, wherein the opening module is used for inputting service parameters in a service opening task to a service template to be used, generating service opening data and opening the service of equipment to be opened in the service opening task according to the service opening data. In the process, the module definition module can receive a service opening logic command input by a user based on the template type, so that three types of service templates are generated, the verification of the template checking module ensures the accuracy of the service templates, the service templates to be used are determined according to the service type, the service parameters in the service opening task are input to the service templates to be used, service opening data are generated, service opening is carried out on equipment to be opened in the service opening task according to the service opening data, flexible definition and use of the service templates are integrally realized, the existing templates do not need to be repeatedly modified, and accordingly the service opening efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
fig. 1 is a schematic diagram of a template-based service opening device in an embodiment of the present application;
FIG. 2 is a schematic diagram of an open template of an interactive template in an embodiment of the present application;
FIG. 3 is an exemplary diagram of an open logical command of a command template in an embodiment of the present application;
FIG. 4 is a detailed flowchart of a service opening using a template-based service opening device according to an embodiment of the present application;
fig. 5 is a flowchart of a template-based service opening method in an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present application and their descriptions herein are for the purpose of explaining the present application, but are not to be construed as limiting the application.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are open-ended terms, meaning including, but not limited to. The description of the reference terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The order of steps involved in the embodiments is illustrative of the practice of the application, and is not limited and may be suitably modified as desired.
Fig. 1 is a schematic diagram of a template-based service opening device in an embodiment of the present application, as shown in fig. 1, where the device includes:
the template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
the template checking module is used for checking the business template;
the template determining module is used for determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task after receiving the service opening task;
the system comprises an opening module, a service opening module and a service processing module, wherein the opening module is used for inputting service parameters in a service opening task to a service template to be used, generating service opening data and opening the service of equipment to be opened in the service opening task according to the service opening data.
In the embodiment of the application, the module definition module can receive the service opening logic command input by the user based on the template type, thereby generating three types of service templates, the verification of the template checking module ensures the accuracy of the service templates, the service template to be used is determined according to the service type, the service parameters in the service opening task are input to the service template to be used, the service opening data are generated, the service opening is carried out on the equipment to be opened in the service opening task according to the service opening data, the flexible definition and the use of the service templates are integrally realized, the repeated modification of the existing templates is not needed, and the service opening efficiency is improved.
In specific implementation, the template-based service opening device can provide an interface interaction mode, and the template definition module displays each template type in an interface mode, so that a user can input a service opening logic command based on the template type in an interaction mode, the opening logic command is also called a script, the template type comprises a command template, a Perl template and an interactive template, the command template is a simple basic template, and the user can directly write commands on the basic template, so that the method is applicable to a simple and direct opening scene; the Perl template is actually a Perl script template, and after being edited on the basic template, a user directly uses a Perl program compiler to carry out compiling and escape, so that the requirements on the user are high; the interactive template is a template which is independently researched and developed based on the Perl template, and is used for packaging functions, grammar, variables and the like, and compared with the Perl template, the interactive template is more flexible, simple and quick in editing. After the template definition module generates the service template, the functions of template addition, deletion, modification and viewing can be provided in the form of an interface, so that the service template is maintained.
Taking an interactive template as an example, when receiving a service opening logic command input by a user based on a template type, the template definition module needs to receive some attribute information of the service template input by the user, including contents such as a service type, a service operation type, a device type, a template description, a template number, a template name and the like, the attribute information such as the service type, the service operation type, the device type, the template type can be selected in an interface in a form of a drop-down list, the template number can be automatically generated by a service opening device based on the template and used for uniquely identifying the template, the template name and the template description can directly receive text input of the user, the service type can be ADSL opening and the like, the service operation type can be an activation service or a new installation service, the device type can be a router or a switch, the device type can be a BAS, SE800 BAS or MA5300, and the generated service template can be checked in a list form when the interface is interacted with the user, so that the user inputs the attribute information.
In an embodiment, the business templates include one or any combination of configuration inspection templates, open templates, post-deployment inspection modules, and rollback templates.
In the above embodiment, after determining the attribute information of the service template, the template definition module receives a service opening logic command input by a user based on the template type, and taking an interactive template as an example, the interactive template may include a function, a grammar, and variables, where the variables include a common variable and a user-defined variable. FIG. 2 is a schematic diagram of an open template of an interactive template, the syntax of which resembles a perl script, in an embodiment of the application. The open logic command of the interactive template is mainly a device command, and logic judgment can be added. Different branches or exception handling are performed on the results of the execution of the open logic command, and during user editing, there is a grammar hint for the interactive template. The detailed syntactical description of the interactive template (containing encapsulated functions and variables) is as follows:
annotating rows with// beginning rows other than the row of row statements with "///" beginning, each row of statements ending with a semicolon, the neat configuration command block portion may not end;
global variables in templates: cmd_error: command execution error information; cmd_result: command execution device returns information
Service work order attribute variable: custom parameters $ { Attribute name }: name of $ _ variable
The built-in functions of the opening platform are as follows:
executing a single instruction cmd_cfg (): when the configuration preview is performed, the command related to cmd_cfg is not actually executed on the device, and when the configuration check and the configuration are started, the command is executed on the device, and the device interaction log is automatically recorded: cmd_cfg (cmdstring [, timeout, prot ]);
executing a single instruction cmd_show (): when the configuration preview, the configuration check and the opening are performed, related commands are executed on the equipment, the equipment interaction log is recorded, and the function grammar is recorded: cmd_show (cmdstring [, timeout, prot ]);
output log writelog (): outputting the character string into the task log: writelog (logstring);
outputting the log to a file logfile (): outputting the character string into a system-specified file: logfile (logstring [, logeve ]); logevel, log scale, default to "info"
The regular expression matches regmatch (): detecting whether the matching is carried out according to the regular expression, returning 0 when the matching is not carried out, and returning 1 when the matching is carried out: result=regmatch (source_string, reg_string);
string extraction regtext (): intercepting substrings according to the regular expression, returning substrings in the regular expression () if the matching is successful, returning empty strings if the expression does not contain (), and returning empty strings and function grammar if the matching is unsuccessful: str=regxtract (source_string, reg_string);
the multi-line string extraction regehxtractar (): extracting each row of a multi-row character string according to a regular expression, and returning an array of a group of elements;
string segmentation extraction split (): calling grammar @ list = split (string);
string formatting sprintf (): calling syntax $ result = sprintf (fmtstring, var1, var2 …);
task parameter assignment setasskpa (): function syntax: settaskpara (paramame, paramvalue)
Task parameter reading gettask para (): function syntax: paramvalue= gettaskpara (paraname)
Acquisition time systime (): acquiring the system time of a character string format and the function grammar: $ result=systinme ()
The following gives the case of opening a template in an interactive template:
(a)cmd_show("sh configuration context e8manager.gd|be'dhcp server policy'",”,'>|\]|#$','More');
and the command execution function, namely, a pure acquisition command returns a result, and the command cannot be actually effective on the equipment.
(b) sh configuration context e8manager. Gd|be 'dhcp server policy' is a command to be executed.
The phrase "| # - $ is a terminator of waiting, meaning that waiting ends with either > or #.
More is a character string waiting when a page turn is instructed.
cmd_cfg("sa conf",”,'>|#$','More');
And a command execution function, which configures the command on the device and validates the command.
(c)writelog("$CMDOUT");
And outputting the parameter result to the page for testing to see whether the configured command is correct.
(d)<CMDBEG><CMDEND>
The usage method is as follows:
<CMDBEG>
$tmparray[$i]
<CMDEND>
batch configuration commands are typically used in conjunction with loop calls.
An explanation of the statements commonly used in interactive templates is given below:
(a) The device executes the query command and maintains the query result
my$log=$TMP_RESULT;
cmd_show("shvir",”,'#\s*$','More');
$TMP_RESULT=$log;
The execution RESULT is saved in the intrinsic variable $CMD_RESULT, and the intermediate log saved variable $TMP_RESULT value is cleared.
(b) Matching and intercepting command results
my@tmpstr=$CMD_RESULT=~/permit\s+(\d+\.\d+\.\d+\.\d+\/\d+)/mg;
All the results needed (possibly more than one) are saved into the array @ tmpstr by a regular expression (described later).
(c) Separating results in return line
my@tmparray=split(/\n/,$CMDOUT);
The results are separated according to the carriage return, and the separation results are stored in an array @ tmparray.
(d) Each value in the circular array
foreach my$tmpvalue(@tmpstr)
Each value in the loop array @ tmpstr and assigns a value to the variable $ tmpvalue.
(e) Starting the loop from the first value to the last value of the array
for(my$i=0;$i<=$#tmparray;$i++)
The subscript of the initial value of the @ tmparry array is 0, starting with the 0 subscript, looping from the first value of the array, looping to the final value of the data, each value in the array being represented as $tmparry [ $i ].
(f) Put the value of the variable to the back of the array
push(@IPPoolArray,$tmpippoolname);
The variable $ tmpipoolname value is added to the last value of the array @ ippoolaray.
(g) Concatenating the values
$CMDOUT=$CMDOUT."no$Prefixlinevalue\n";
The values of the string are concatenated to the variable $cmdout, which may be carried in the string.
The foregoing logic command for opening the service of the interactive template input by the user through the interactive interface, where the command template and the Perl template also include one or any combination of a configuration inspection template, an opening template, a post-deployment inspection module and a rollback template, the customization process is similar, and is not repeated here, and fig. 3 is an exemplary diagram of the logic command for opening the command template in the embodiment of the present application, and the following description of the statement of the logic command for opening the command template is given simply:
each row corresponds to a command based on the command line of the device.
Does not contain any judgment, circulation and jump logic.
The behavior of the beginning annotates the row. Does not issue down to the device
Parameters may be included in the command. Format is $ parameter name (note), note: () must be present. For separating the parameters from the following commands.
The command template content is basically a device command, contains no logic, but can refer to parameters. The command template can only refer to the custom parameters of the command template, and the parameter formats are as follows: abc ().
The Perl template and the interactive template can support both business parameters and custom parameters.
The Perl template self-defined parameter format is $para { 'UDFDEVICEID' _abc }, and the business parameter format is $para { abc }.
The interactive template self-defined parameter format is $_ { abc }, and the service parameter format is $ { abc }.
When the three model types are used for customizing parameters, the attribute information of the parameters can comprise parameter codes, parameter names, parameter descriptions, parameter definitions and parameter previews, wherein the parameter codes can be automatically generated by a template-based service opening device and are used for uniquely identifying one parameter. Table 1 is an example of custom parameters for a command template.
TABLE 1 custom parameters for command templates
Parameter encoding Parameter name Parameter description Parameter definition Parameter preview
description description description PingAn-Peer PingAn-Peer
max_route max_route max_route 20 20
threshold threshold threshold 80|90 80
The open logic command of the Perl template is consistent with the syntax of the Perl script, and will not be described in detail here.
After the service template is regenerated, the template checking module can check the service template, and the service template passing the check can be used subsequently.
The following gives a common problem after interactive template verification:
(a) Waiting for symbol problem: s $ # \s $ -
(b) Invisible character substitution problem
$CMD_RESULT=~s/\x1B\x5B\x3F\x31\x68\x1B\x3D//g;
$CMD_RESULT=~s/\x1B\x5B\x4B\x20//g;
$CMD_RESULT=~s/\x1B\x5B\x4B\x1B\x5B\x3F\x31\x6C\x1B\x3E//g;
$CMD_RESULT=~s/\x1B\x5B\x4B//g;
When the method is implemented, the template determining module is used for determining the service template to be used from the service opening templates which are successfully checked according to the service types in the service opening tasks after the service opening tasks are received, wherein the service parameters in the service opening tasks can be displayed to the user in an interface mode after the service opening tasks are received, the service parameters can be input by the user through the interface and can be assigned in batches, certain service parameters of a certain device can be filled, and the method can be flexibly used after being assigned in batches.
In one embodiment, the provisioning module is specifically configured to:
inputting service parameters in the service opening task into a configuration checking template to generate service opening checking data;
checking whether the equipment to be opened in the service opening task meets the preset opening requirement or not according to the service opening checking data;
when the equipment to be opened meets the preset opening requirement, inputting the service parameters into an opening template to generate actual opening data;
and opening the service of the equipment to be opened according to the actual opening data.
In the above embodiment, the service parameters in the service provisioning task are input to the configuration checking template, and the service parameters are automatically poured into the configuration checking module to generate service provisioning checking data, and then, according to the service provisioning checking data, it is checked whether the device to be provisioned in the service provisioning task meets the preset provisioning requirements, in the checking process, the service provisioning checking data is not issued to each device, only used for checking whether each device can be provisioned, and if one device does not meet the preset provisioning requirements, the provisioning is not performed, for example, whether the port of the device is normal or not is checked. And according to the actual opening data, the equipment to be opened performs service opening, so that the actual opening data is truly issued to each equipment, namely, the related parameters of each equipment are modified, the service opening can be performed on batch equipment, and the opening efficiency is improved.
In an embodiment, the provisioning module is further configured to:
after all the devices in the service opening task are successfully opened, inputting service data in the service opening task into a post-deployment inspection template to generate post-deployment inspection data;
and checking whether the states of all the devices in the service opening task are abnormal or not according to the post-deployment checking data.
In the above embodiment, even if the service is successfully opened, there may be an abnormal opening, and at this time, the device has been deployed, and after-deployment inspection is performed, so that the success rate of service opening may be improved.
In an embodiment, the provisioning module is further configured to:
when equipment with opening failure or equipment with abnormal state exists, inputting original service parameters of all equipment in a service opening task to a rollback template to generate rollback data;
and rolling back all the devices in the service opening task according to the rolling-back data.
In the above embodiment, the rollback is directed to two cases, the first is that after the device is opened, there is a device that fails to be opened, that is, as long as one device is not opened successfully, all the devices that have been opened need to be rolled back, and when the device is rolled back, the original service parameters of all the devices, that is, the service parameters before being opened and modified, are refilled into the rollback template to be rolled back, and all the devices are rolled back, so that the consistency of all the devices in one service opening task is ensured. In the second case, after post-deployment inspection, a device with an abnormal state is found, and at this time, rollback is performed, as in the above.
In an embodiment, the apparatus comprises a rights management module for:
setting the use authority of each type of user on the service opening template;
the template determining module is specifically used for:
determining a service opening template which can be used by a user executing service opening according to the use authority of each type of user on the service opening template;
and determining a service opening template to be used from the service opening templates which can be used by the user executing the service opening and are successfully checked according to the service type in the service opening task.
In the above embodiment, the use permission control needs to be performed on the three model types, so that the important device is prevented from being opened by a common person at will, the setting permission can also select a plurality of service templates to perform batch setting, and the service templates can be authorized to all users, designated users or users with designated roles (such as a system administrator), and table 2 is an example of permission setting in the embodiment of the present application, where a node refers to a node where the device is located, and a creator refers to a creator of the service templates.
Table 2 example of rights settings
Based on the above embodiments, the present application proposes the following embodiment to explain the detailed flow of service opening using the template-based service opening device, and fig. 4 is a detailed flow chart of service opening using the template-based service opening device according to the embodiment of the present application, as shown in fig. 4, in one embodiment, the detailed flow of service opening using the template-based service opening device includes:
step 401, receiving a service opening logic command input by a user based on a template type, and generating a service template;
step 402, checking the business template;
step 403, determining a service opening template which can be used by the user executing service opening according to the use authority of each type of user on the service opening template;
step 404, after receiving the service opening task, determining a service opening template to be used from service opening templates which can be used by a user executing service opening and are checked successfully according to the service type in the service opening task;
step 405, inputting service parameters in the service opening task into a configuration checking template to generate service opening checking data;
step 406, checking whether the equipment to be opened in the service opening task meets the preset opening requirement according to the service opening checking data; when the devices to be opened all meet the preset opening requirements, the process goes to step 407, otherwise, the process is ended.
Step 407, inputting the service parameters into an opening template to generate actual opening data;
step 408, according to the actual opening data, opening the service of the device to be opened;
step 409, judging whether all devices in the service opening task are successfully opened, if so, turning to step 410, and if not, turning to step 412;
step 410, inputting the business data in the business opening task into a post-deployment inspection template to generate post-deployment inspection data;
step 411, checking whether the states of all devices in the service opening task are abnormal according to the post-deployment checking data; if there is an abnormal device, the process proceeds to step 412, otherwise the process is ended.
Step 412, inputting the original service parameters of all the devices in the service opening task to the rollback template to generate rollback data;
and 413, rolling back all the devices in the service opening task according to the rollback data, and ending the flow.
Of course, it can be understood that other variations of the detailed process of performing service opening by using the template-based service opening device are also possible, and all related variations should fall into the protection scope of the present application.
In summary, in the device provided by the embodiment of the present application, the template definition module is configured to receive a service opening logic command input by a user based on a template type, and generate a service template, where the template type includes a command template, a Perl template, and an interactive template; the template checking module is used for checking the business template; the template determining module is used for determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task after receiving the service opening task; the system comprises an opening module, a service opening module and a service processing module, wherein the opening module is used for inputting service parameters in a service opening task to a service template to be used, generating service opening data and opening the service of equipment to be opened in the service opening task according to the service opening data. In the process, the module definition module can receive a service opening logic command input by a user based on the template type, so that three types of service templates are generated, the verification of the template checking module ensures the accuracy of the service templates, the service templates to be used are determined according to the service type, the service parameters in the service opening task are input to the service templates to be used, service opening data are generated, service opening is carried out on equipment to be opened in the service opening task according to the service opening data, flexible definition and use of the service templates are integrally realized, the existing templates do not need to be repeatedly modified, and accordingly the service opening efficiency is improved.
Based on the same inventive concept, the embodiment of the application also provides a service opening method based on the template, as described in the following embodiment. Since the principles of solving the problems are similar to those of the template-based service opening device, the implementation of the method can be referred to the implementation of the device, and the repetition is omitted.
Fig. 5 is a flowchart of a template-based service opening method in an embodiment of the present application, as shown in fig. 5, where the method includes:
step 501, receiving a service opening logic command input by a user based on a template type, and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
step 502, checking a business template;
step 503, after receiving the service opening task, determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task;
step 504, inputting the service parameters in the service opening task into the service template to be used, generating service opening data, and opening the service of the device to be opened in the service opening task according to the service opening data.
In an embodiment, the business templates include one or any combination of configuration inspection templates, open templates, post-deployment inspection modules, and rollback templates.
In an embodiment, inputting service parameters in a service opening task to a service template to be used, generating service opening data, and opening a service to a device to be opened in the service opening task according to the service opening data, including:
inputting service parameters in the service opening task into a configuration checking template to generate service opening checking data;
checking whether the equipment to be opened in the service opening task meets the preset opening requirement or not according to the service opening checking data;
when the equipment to be opened meets the preset opening requirement, inputting the service parameters into an opening template to generate actual opening data;
and opening the service of the equipment to be opened according to the actual opening data.
In an embodiment, after performing service provisioning on the device to be provisioned according to the actual provisioning data, the method further includes:
after all the devices in the service opening task are successfully opened, inputting service data in the service opening task into a post-deployment inspection template to generate post-deployment inspection data;
and checking whether the states of all the devices in the service opening task are abnormal or not according to the post-deployment checking data.
In an embodiment, the method further comprises:
when equipment with opening failure or equipment with abnormal state exists, inputting original service parameters of all equipment in a service opening task to a rollback template to generate rollback data;
and rolling back all the devices in the service opening task according to the rolling-back data.
In an embodiment, the method further comprises:
setting the use authority of each type of user on the service opening template;
according to the service type in the service opening task, determining the service template to be used from the service opening templates which are checked successfully, including:
determining a service opening template which can be used by a user executing service opening according to the use authority of each type of user on the service opening template;
and determining a service opening template to be used from the service opening templates which can be used by the user executing the service opening and are successfully checked according to the service type in the service opening task.
In summary, in the method provided by the embodiment of the present application, a service opening logic command input by a user based on a template type is received, and a service template is generated, where the template type includes a command template, a Perl template and an interactive template; checking the business template; after receiving the service opening task, determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task; and inputting the service parameters in the service opening task into a service template to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data. In the process, the module definition module can receive a service opening logic command input by a user based on the template type, so that three types of service templates are generated, the verification of the template checking module ensures the accuracy of the service templates, the service templates to be used are determined according to the service type, the service parameters in the service opening task are input to the service templates to be used, service opening data are generated, service opening is carried out on equipment to be opened in the service opening task according to the service opening data, flexible definition and use of the service templates are integrally realized, the existing templates do not need to be repeatedly modified, and accordingly the service opening efficiency is improved.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the application, and is not meant to limit the scope of the application, but to limit the application to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the application are intended to be included within the scope of the application.

Claims (12)

1. A template-based service opening device, comprising:
the template definition module is used for receiving a service opening logic command input by a user based on a template type and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
the template checking module is used for checking the business template;
the template determining module is used for determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task after receiving the service opening task;
the system comprises an opening module, a service opening module and a service processing module, wherein the opening module is used for inputting service parameters in a service opening task to a service template to be used, generating service opening data and opening the service of equipment to be opened in the service opening task according to the service opening data;
the business templates comprise configuration checking templates and opening templates;
the opening module is specifically used for:
inputting service parameters in the service opening task into a configuration checking template to generate service opening checking data;
checking whether the equipment to be opened in the service opening task meets the preset opening requirement or not according to the service opening checking data;
when the equipment to be opened meets the preset opening requirement, inputting the service parameters into an opening template to generate actual opening data;
and opening the service of the equipment to be opened according to the actual opening data.
2. The template-based transaction fulfillment device of claim 1 wherein the transaction template further comprises a post-deployment inspection module and a rollback template.
3. The template-based transaction provisioning apparatus of claim 2 wherein the provisioning module is further for:
after all the devices in the service opening task are successfully opened, inputting service data in the service opening task into a post-deployment inspection template to generate post-deployment inspection data;
and checking whether the states of all the devices in the service opening task are abnormal or not according to the post-deployment checking data.
4. The template-based transaction provisioning device of claim 3 wherein the provisioning module is further for:
when equipment with opening failure or equipment with abnormal state exists, inputting original service parameters of all equipment in a service opening task to a rollback template to generate rollback data;
and rolling back all the devices in the service opening task according to the rolling-back data.
5. The template-based transaction provisioning apparatus of claim 1 further comprising a rights management module for:
setting the use authority of each type of user on the service opening template;
the template determining module is specifically used for:
determining a service opening template which can be used by a user executing service opening according to the use authority of each type of user on the service opening template;
and determining a service opening template to be used from the service opening templates which can be used by the user executing the service opening and are successfully checked according to the service type in the service opening task.
6. A template-based service provisioning method, comprising:
receiving a service opening logic command input by a user based on a template type, and generating a service template, wherein the template type comprises a command template, a Perl template and an interactive template;
checking the business template;
after receiving the service opening task, determining a service template to be used from the successfully verified service opening templates according to the service type in the service opening task;
inputting service parameters in a service opening task into a service template to be used, generating service opening data, and opening the service of equipment to be opened in the service opening task according to the service opening data;
the business templates comprise configuration checking templates and opening templates;
inputting the service parameters in the service opening task into a service template to be used, generating service opening data, and opening the service of the equipment to be opened in the service opening task according to the service opening data, wherein the method comprises the following steps:
inputting service parameters in the service opening task into a configuration checking template to generate service opening checking data;
checking whether the equipment to be opened in the service opening task meets the preset opening requirement or not according to the service opening checking data;
when the equipment to be opened meets the preset opening requirement, inputting the service parameters into an opening template to generate actual opening data;
and opening the service of the equipment to be opened according to the actual opening data.
7. The template-based transaction fulfillment method of claim 6 wherein the transaction template further comprises a post-deployment inspection module and a rollback template.
8. The template-based service provisioning method of claim 7, further comprising, after provisioning the device to be provisioned with the service according to the actual provisioning data:
after all the devices in the service opening task are successfully opened, inputting service data in the service opening task into a post-deployment inspection template to generate post-deployment inspection data;
and checking whether the states of all the devices in the service opening task are abnormal or not according to the post-deployment checking data.
9. The template-based service provisioning method of claim 8, further comprising:
when equipment with opening failure or equipment with abnormal state exists, inputting original service parameters of all equipment in a service opening task to a rollback template to generate rollback data;
and rolling back all the devices in the service opening task according to the rolling-back data.
10. The template-based service provisioning method of claim 6, further comprising:
setting the use authority of each type of user on the service opening template;
according to the service type in the service opening task, determining the service template to be used from the service opening templates which are checked successfully, including:
determining a service opening template which can be used by a user executing service opening according to the use authority of each type of user on the service opening template;
and determining a service opening template to be used from the service opening templates which can be used by the user executing the service opening and are successfully checked according to the service type in the service opening task.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 6 to 10 when executing the computer program.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 6 to 10.
CN201911248574.XA 2019-12-09 2019-12-09 Business opening device and method based on template Active CN113031944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911248574.XA CN113031944B (en) 2019-12-09 2019-12-09 Business opening device and method based on template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911248574.XA CN113031944B (en) 2019-12-09 2019-12-09 Business opening device and method based on template

Publications (2)

Publication Number Publication Date
CN113031944A CN113031944A (en) 2021-06-25
CN113031944B true CN113031944B (en) 2023-12-05

Family

ID=76450865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911248574.XA Active CN113031944B (en) 2019-12-09 2019-12-09 Business opening device and method based on template

Country Status (1)

Country Link
CN (1) CN113031944B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723910A (en) * 2021-08-05 2021-11-30 中核武汉核电运行技术股份有限公司 Nuclear power plant parameter configuration method, device, equipment and computer readable storage medium
CN114095360B (en) * 2021-11-12 2024-02-13 中国联合网络通信集团有限公司 Communication service opening method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094100A (en) * 2007-06-01 2007-12-26 中兴通讯股份有限公司 Method and device for processing 'put into operation' command for service of electronical work sheet
CN105007589A (en) * 2014-04-18 2015-10-28 中兴通讯股份有限公司 Parameter configuration method, machine-card integrated terminal device and server
CN105208031A (en) * 2015-09-30 2015-12-30 成都汇合乾元科技有限公司 Method for authenticating terminal
CN105530123A (en) * 2015-12-07 2016-04-27 厦门雅迅网络股份有限公司 Intelligent configuring method of GPS terminal parameters
CN106961529A (en) * 2016-01-08 2017-07-18 中国联合网络通信集团有限公司 Worksheet method and communication service equipment
CN109756885A (en) * 2017-11-07 2019-05-14 中兴通讯股份有限公司 A kind of automatic activating method of 5G business, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2018027A1 (en) * 2005-11-03 2009-01-21 KTFreetel Co., Ltd. Business logic device and processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094100A (en) * 2007-06-01 2007-12-26 中兴通讯股份有限公司 Method and device for processing 'put into operation' command for service of electronical work sheet
CN105007589A (en) * 2014-04-18 2015-10-28 中兴通讯股份有限公司 Parameter configuration method, machine-card integrated terminal device and server
CN105208031A (en) * 2015-09-30 2015-12-30 成都汇合乾元科技有限公司 Method for authenticating terminal
CN105530123A (en) * 2015-12-07 2016-04-27 厦门雅迅网络股份有限公司 Intelligent configuring method of GPS terminal parameters
CN106961529A (en) * 2016-01-08 2017-07-18 中国联合网络通信集团有限公司 Worksheet method and communication service equipment
CN109756885A (en) * 2017-11-07 2019-05-14 中兴通讯股份有限公司 A kind of automatic activating method of 5G business, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"电信行业专线业务自动开通管理系统分析与设计";刘平丽;《中国优秀硕士学位论文全文数据库信息科技辑》;第I138-167页 *

Also Published As

Publication number Publication date
CN113031944A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
US9218269B2 (en) Testing multiple target platforms
CN110147240B (en) Cloud storage-based application program installation method, system and storage medium
JP6616774B2 (en) Anti-malware type mobile content data management apparatus and method
CN111061643B (en) SDK cluster compatibility detection method and device, electronic equipment and storage medium
CN106557470B (en) Data extraction method and device
CN111142903A (en) Configuration file interactive updating method and device based on file comparison
CN105871587A (en) Log uploading method and device
CN113031944B (en) Business opening device and method based on template
CN109445775B (en) One-key active embedded code method, device and computer readable storage medium
CN110213113B (en) WEB configuration management method of base station and base station
US20150143348A1 (en) Hybrid dynamic code compiling device, method, and service system thereof
CN107330014B (en) Data table creating method and device
CN109889587A (en) Internet of things system automated construction method, device, equipment and storage medium
US20150278231A1 (en) System and method for customizing archive of a device driver generator tool for a user
CN104750472A (en) Resource bundle management method and device of terminal application
CN106326691A (en) Encryption and decryption function realization method and device, and server
CN113535141A (en) Database operation code generation method and device
CN108279905B (en) Method and device for introducing library file into assembly
CN108153745B (en) Application data calling method and application development system
CN110888648A (en) Method for generating custom linux image through interactive interface
US9361210B2 (en) Capturing domain validations and domain element initializations
CN117008920A (en) Engine system, request processing method and device, computer equipment and storage medium
CN107015787B (en) Method and device for designing interactive application framework
CN114911541A (en) Configuration information processing method and device, electronic equipment and storage medium
CN106778301A (en) Reliable cross-platform data storage method and system based on cocos2d x

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
GR01 Patent grant
GR01 Patent grant