CN106569783A - Task script executing method and apparatus - Google Patents

Task script executing method and apparatus Download PDF

Info

Publication number
CN106569783A
CN106569783A CN201510646076.6A CN201510646076A CN106569783A CN 106569783 A CN106569783 A CN 106569783A CN 201510646076 A CN201510646076 A CN 201510646076A CN 106569783 A CN106569783 A CN 106569783A
Authority
CN
China
Prior art keywords
subtask
script
task
goal task
total
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
CN201510646076.6A
Other languages
Chinese (zh)
Other versions
CN106569783B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510646076.6A priority Critical patent/CN106569783B/en
Publication of CN106569783A publication Critical patent/CN106569783A/en
Application granted granted Critical
Publication of CN106569783B publication Critical patent/CN106569783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Embodiments of the invention disclose a task script executing method and apparatus, and belong o the field of the computer technology. The task script executing method comprises the steps of receiving an execution request of a target task; obtaining a total script of the target task, wherein at least one sub task included in the target task and execution sequence of each sub task are recorded in the total script of the target task; and executing the total script of the target task, and when any one sub task in the at least one sub task is executed, obtaining and executing a script corresponding to the any one sub task according to a pre-stored corresponding relation between sub tasks and scripts. By adoption of the task script executing method and apparatus, the task executing efficiency can be improved.

Description

A kind of method and apparatus for performing mission script
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus for performing mission script.
Background technology
With the development of computer technology and Internet technology, the development of Network is also increasingly faster, each Network is both provided with respective service server in network side.Function renewal liter is being carried out to Network During level, technical staff is needed performing corresponding task with the tasks carrying server that service server connects, To realize operating the data in service server accordingly.
In the prior art, when technical staff performs a certain task in task execute server, task is performed Mode be:Technical staff writes the script of task and stores to tasks carrying server, then tasks carrying clothes Business device perform script, to realize the execution of the task.Each task has a complete and independent script.
During the present invention is realized, inventor has found that prior art at least has problems with:
The content of general task all compares many, and the quantity of the script sentence being related to is more huge, writes script Process can be than relatively time-consuming, and script edit is finished can start execution task, so as to cause the effect of execution task Rate is than relatively low.
The content of the invention
In order to solve problem of the prior art, a kind of method of execution mission script is embodiments provided And device.The technical scheme is as follows:
First aspect, there is provided a kind of method of execution mission script, methods described includes:
Receive goal task performs request;
Total script of the goal task is obtained, wherein, record has described in total script of the goal task At least one subtask that goal task is included, and the execution sequence of each subtask;
Total script of the goal task is performed, is appointed when performing to the arbitrary son at least one subtask During business, according to the subtask for prestoring and the corresponding relation of script, arbitrary subtask is obtained and performed Corresponding script.
Optionally, methods described also includes:
When a sub- tasks carrying is finished, the implementation status information of the subtask being finished described in acquisition, Generate the execution journal comprising the implementation status information.
Optionally, the implementation status information of the subtask being finished described in the acquisition, generates comprising described After the execution journal of implementation status information, also include:
Based on the execution sequence, the execution journal is shown.
Optionally, methods described also includes:
Receive the browse request of the goal task;
The execution sequence figure of the goal task is shown, includes suitable by the execution in the execution sequence figure The icon of at least one subtask of sequence arrangement.
Optionally, methods described also includes:
Receive the script modification request of the execution sequence figure triggering by the operation goal task, the script Operation information and subtask mark are carried in modification request;
Identified according to the operation information and subtask, operation that total script of the goal task is modified.
Optionally, it is described to be identified according to the operation information and subtask, the total script to the goal task Modify operation, including:
If the operation information includes addition mark and point of addition, according to the point of addition, in institute In stating total script of goal task, add the subtask and identify corresponding subtask;
If the operation information includes deleting mark, in total script of the goal task, institute is deleted State subtask and identify corresponding subtask;
If the operation information includes mobile logo and moving target position, according to the mobile target position Put, in total script of the goal task, corresponding subtask is identified to the subtask in the execution Modify position in order.
Second aspect, there is provided a kind of device of execution mission script, described device includes:
First receiver module, for receive goal task request is performed;
Acquisition module, for obtaining total script of the goal task, wherein, the common limb of the goal task Record has at least one subtask that the goal task is included, and the execution sequence of each subtask in this;
Performing module, for performing total script of the goal task, appoints when performing to described at least one son During arbitrary subtask in business, according to the subtask for prestoring and the corresponding relation of script, obtain and perform The corresponding script in arbitrary subtask.
Optionally, the performing module is additionally operable to:
When a sub- tasks carrying is finished, the implementation status information of the subtask being finished described in acquisition, Generate the execution journal comprising the implementation status information.
Optionally, described device also includes:
Display module, for based on the execution sequence, showing to the execution journal.
Optionally, first receiver module, is additionally operable to:Receive the browse request of the goal task;
Described certain block of display, is additionally operable to:Show the execution sequence figure of the goal task, the execution sequence Include the icon of at least one subtask arranged by the execution sequence in figure.
Optionally, described device also includes the second receiver module and modified module, wherein:
Second receiver module, for receiving the execution sequence figure triggering by the operation goal task Script modification request, carries operation information and subtask mark in the script modification request;
The modified module, for being identified according to the operation information and subtask, to the goal task Total script is modified operation.
Optionally, the modified module includes:Addition submodule, deletion submodule and modification submodule, its In:
The addition submodule, if including addition mark and point of addition, root for the operation information According to the point of addition, in total script of the goal task, add the subtask and identify corresponding son Task;
The deletion submodule, if including deleting mark for the operation information, appoints in the target In total script of business, delete the subtask and identify corresponding subtask;
The modification submodule, if including mobile logo and moving target position for the operation information, Then according to the moving target position, in total script of the goal task, it is right that the subtask is identified Modify position of the subtask answered in the execution sequence.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, the request that performs of goal task is received, obtains total script of the goal task, Wherein, record has at least one subtask that the goal task is included in total script of the goal task, And the execution sequence of each subtask, total script of the goal task is performed, when execution to described at least During arbitrary subtask in individual subtask, according to the subtask for prestoring and the corresponding relation of script, obtain And perform the corresponding script in arbitrary subtask.So, when backstage performs task, can be for difference Script is write in advance in the subtask that may repeat in task, in the total script of the task of writing, only needs record The script of the subtask that needs are called, and without the need for repeating to write the script of subtask, shorten the total script of task The time is write, such that it is able to improve the efficiency of execution task.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to institute in embodiment description The accompanying drawing that needs are used is briefly described, it should be apparent that, drawings in the following description are only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of method flow diagram for performing mission script provided in an embodiment of the present invention;
Fig. 2 is a kind of operation chart for performing mission script provided in an embodiment of the present invention;
Fig. 3 is a kind of operation chart for performing mission script provided in an embodiment of the present invention;
Fig. 4 is a kind of operation chart for performing mission script provided in an embodiment of the present invention;
Fig. 5 is a kind of operation chart for performing mission script provided in an embodiment of the present invention;
Fig. 6 is a kind of method flow diagram for performing mission script provided in an embodiment of the present invention;
Fig. 7 is a kind of apparatus structure schematic diagram for performing mission script provided in an embodiment of the present invention;
Fig. 8 is a kind of apparatus structure schematic diagram for performing mission script provided in an embodiment of the present invention;
Fig. 9 is a kind of apparatus structure schematic diagram for performing mission script provided in an embodiment of the present invention;
Figure 10 is a kind of apparatus structure schematic diagram for performing mission script provided in an embodiment of the present invention;
Figure 11 is a kind of structural representation of tasks carrying server provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention Embodiment is described in further detail.
Embodiment one
A kind of method of execution mission script is embodiments provided, as shown in figure 1, the place of the method Reason flow process can include the steps:
Step 101, receive goal task performs request.
Step 102, obtains total script of goal task, wherein, record has target in total script of goal task At least one subtask that task is included, and the execution sequence of each subtask.
Step 103, total script of performance objective task is appointed when performing to the arbitrary son at least one subtask During business, according to the subtask for prestoring and the corresponding relation of script, arbitrary subtask correspondence is obtained and performed Script.
In the embodiment of the present invention, the request that performs of goal task is received, obtains total script of the goal task, Wherein, record has at least one subtask that the goal task is included in total script of the goal task, And the execution sequence of each subtask, total script of the goal task is performed, when execution to described at least During arbitrary subtask in individual subtask, according to the subtask for prestoring and the corresponding relation of script, obtain And perform the corresponding script in arbitrary subtask.So, when backstage performs task, can be for difference Script is write in advance in the subtask that may repeat in task, in the total script of the task of writing, only needs record The script of the subtask that needs are called, and without the need for repeating to write the script of subtask, shorten the total script of task The time is write, such that it is able to improve the efficiency of execution task.
Embodiment two
A kind of method of execution mission script is embodiments provided, the executive agent of the method can be Tasks carrying server.Wherein, tasks carrying server can be to business service by performance objective task The server that device is managed, can be connected with control terminal, and goal task can be that Network is carried out Managerial role.Processor, memorizer, transceiver etc. can be provided with the tasks carrying server.Place Reason device can be used for the process of the process for performing mission script, and memorizer can be used for storing to be needed in processing procedure The data wanted and the data of generation, transceiver can be used for receiving and sending data.In the present embodiment, So that executive agent is for tasks carrying server as an example, the detailed description of scheme is carried out, other situations are similar to therewith, The present embodiment is not repeated.
Below in conjunction with specific embodiment, the handling process shown in Fig. 1 is described in detail, content Can be as follows:
Step 101, receive goal task performs request.
Wherein, goal task is the task that technical staff performs when Network is managed, and can be in business The background tasks such as line, service deployment, business dilatation.Can be with the correlation of store tasks in tasks carrying server Information, can include total script of task, the label (ID) of task, the title of task, the type of task, More new person, renewal time, remarks etc..
In force, technical staff can operate terminal by browser access tasks carrying server, task Task choosing button can be shown in the main interface of server.Task choosing button can be used for triggering and show The interface of task choosing.When technical staff performs certain goal task, task choosing button can be clicked on, Triggering shows the interface of task choosing, as shown in Fig. 2 the list of task is shown in the interface of task choosing, And the corresponding choice box of each task, technical staff can find the goal task in task list, so The choice box of the goal task is clicked on afterwards, can be shown in choice box to labelled notation with triggering terminal, if will Performing the task can then click on execution button, and triggering terminal sends to tasks carrying server and performs request, Task server is received after the execution request of goal task, starts to obtain the total script of the goal task.
In addition, when goal task is not included in task list, technical staff can click on newly-increased in interface Button, can show that mission script creates interface with triggering terminal, and at this moment technical staff can compile in the interface New task is collected, the new increasing process of task can have a detailed description below in content.
Step 102, obtains total script of goal task, wherein, record has target in total script of goal task At least one subtask that task is included, and the execution sequence of each subtask.
Wherein, subtask can be used for perform certain shirtsleeve operation, for example, to server upload data, Change parameter format etc., and the script of subtask can be (a kind of object-oriented, straight using Python Translate formula computer programming language) write, can include in the script of subtask and be called for the subtask The sentence (being referred to as interface function) of |input paramete, this calls the sentence of |input paramete to can be used for calling The output parameter of the subtask performed in total script of goal task or total script of the goal task just Beginning parameter.Subtask can in advance be write by technical staff, and set up subtask storehouse, in subtask storehouse In can be stored with the relevant information of subtask, can include the script of subtask, the label (ID) of subtask, Title, the title of script, the title of class, the title of function, remarks etc..The title of subtask can be used for Technical staff more easily goes to find subtask, the title of subtask script, the title of the affiliated class in subtask, The title of the function that subtask is included can be used for perform task total script when, by these information come The script of the subtask, remarks is called to can be used for the thing that technical staff's labelling should be noted using the subtask .
In force, as shown in figure 3, tasks carrying server is received after goal task execution request, can To obtain total script of the goal task, each son for having it to include can be recorded by execution sequence in total script The mark of task, can also record first needs the |input paramete of the subtask for performing (can be referred to as initial Parameter), the |input paramete of the subtask can be selected during total script of goal task is created, and And recorded in total script of the goal task.After total script of goal task is got, one can also be entered The all subtasks included in total script of step acquisition goal task, it is raw based on all subtasks for getting Cheng Bingxiang terminals send execution sequence figure, include the mark of each subtask in execution sequence figure, and often The execution sequence of individual subtask, execution sequence is with the labelling of serial number 1,2,3 ..., the correspondence of serial number 1 Subtask be first execution subtask, the corresponding subtask of serial number 2 be second execution son Task, the rest may be inferred, the execution sequence of each subtask of labelling.
Step 103, total script of performance objective task is appointed when performing to the arbitrary son at least one subtask During business, according to the subtask for prestoring and the corresponding relation of script, arbitrary subtask correspondence is obtained and performed Script.
In force, as shown in figure 3, goal task can be included in the interface of performance objective task Execution sequence figure, implementation status journal displaying area.Can show on the right side of the execution sequence figure of the goal task Show that time-out performs button, enforces and select step button, force from selected step to start to perform button, weight Task is put to be not carried out button;The corresponding choice box in each subtask is shown in the left side of execution sequence figure.Suspend Perform button to can be used for triggering the task that time-out is carrying out;Enforce selected step button can be used for Triggering performs selected step;Pressure starts execution button and can be used for triggering from selected step from selected step Suddenly total script of execution task is started;Replacement task can be used for triggering deletion execution journal to be not carried out button. Tasks carrying daily record button can be shown in implementation status journal displaying area, tasks carrying daily record button can be with Execution journal is shown for triggering.
After total script of the task that gets, total script of execution task is controlled by task engine, held first Row serial number is 1 subtask, when execution sequence numbering is 1 subtask, by task engine Dynamic call sentence is according to mark (such as the script class name and script name) dynamic call of the subtask and performs The script of the subtask, when the subtask that execution sequence numbering is 1 is finished, performs execution sequence numbering For 2 subtask, the rest may be inferred, and according to execution sequence numbering whole subtasks are performed successively, wherein, When performing each subtask, the call parameters sentence that the |input paramete of subtask can be contained by it is adjusting With the output parameter of, the subtask performed in the total script that can as needed call the goal task with And the |input paramete (initial parameter) of first subtask.
In addition, if technical staff requires that goal task starts to perform from a certain subtask, then this can be clicked on The corresponding choice box in subtask, after showing in choice box to labelled notation, can click on pressure from selected step Suddenly start to perform button, then can start to perform the goal task from the subtask for selecting.
Optionally, during total script of performance objective task, the execution of each subtask can be recorded Situation information, corresponding processing mode is:When a sub- tasks carrying is finished, what acquisition was finished The implementation status information of subtask, generates the execution journal comprising implementation status information.
In force, as shown in figure 3, for convenience technical staff checks the implementation status of goal task, During total script of performance objective task, the implementation status information of each subtask can be recorded, also may be used The implementation status information overall to record goal task, after implementation status information is got, can generate bag Daily record containing implementation status information.
Wherein, implementation status information can be divided three classes, and be respectively:Parameter information, warning message, mistake Information, can respectively generate corresponding parameter daily record (daily record comprising parameter information), warning daily record and (include The daily record of warning message), error log (comprising error message daily record).Parameter information can be each height The information of task |input paramete and return value, warning message can occur mistake in the process of implementation, but The information that can be continued executing with;Error message can mistake occur in implementation procedure, and terminate holding automatically Capable information.
Optionally, execution sequence can be based on, execution journal is shown.
In force, when technical staff checks whole execution journal of goal task, can select all of Log Types, then click on tasks carrying daily record button, and triggering terminal sends to tasks carrying server and obtains The request of execution journal, then terminal receive after execution journal, can press in implementation status journal displaying area The execution journal of each subtask is shown according to execution sequence.If technical staff only checks the certain type of execution day Will, can click on the choice box of the Log Types to be checked, then click on tasks carrying daily record button, this When, the execution journal of the type is shown according to execution sequence in implementation status journal displaying area.
Alternatively, it is also possible in tasks carrying interface, check the execution journal of certain subtask, first can be with The choice box for clicking on the subtask selects the subtask, then clicks on tasks carrying daily record button, will be from task The execution journal of the subtask that execute server is obtained is displayed in implementation status journal displaying area.
The present embodiment additionally provides the establishment process of the total script of goal task, and the processing mode for creating process can be with It is as follows:
In force, as shown in Fig. 2 technical staff can create total script of goal task, as technology people During total script of the new goal task of member's addition, selection task interface can be opened, show in interface and browse Button, newly-increased button, delete button, inquiry button.Wherein, browse button can be used for triggering show certain The execution sequence figure of task, newly-increased button can be used for triggering the interface of the total script for showing establishment task, delete Selected task is deleted from task list except button can be used for triggering, inquiry button can be used for It is input in inquiry input frame after the information such as the type of being searched for task, label or title, triggering shows institute The task of inquiry.
As shown in figure 4, when total script of goal task is created, task interface midpoint can be being selected first Newly-increased button is hit, the essential information User Interface of display task is triggered, the defeated of task names is shown in interface Enter frame, the input frame of task type, the input frame of task remarks and complete button, next step button.So Afterwards, the input frame in task names is input into the title of goal task, and in the input frame of task type target is input into The type of task, the item that should be noted when the input frame of task remarks is input into performance objective task.If After the completion of fully entering, can click on and complete button, triggering terminal sends storage to tasks carrying server please Ask, tasks carrying server is received after storage request, stores the essential information of the goal task, Ran Houke To click on next step button, the initial parameter selection interface of display task is triggered.Wherein, initial parameter is mesh The |input paramete of first subtask for needing to perform in total script of mark task, initial parameter can include many Type, can be constant, or variable.
Show in the selection interface of initial parameter the initial parameter list of storage, newly-increased button, modification button, Refresh button, delete button, parameter preview part, previous step button, complete button, next step button. Wherein, can include in the initial parameter list of storage the label (ID) of parameter, parameter type, parameter name, The label (the applicable subtask type of parameter) of parameter is used for identification parameter.Newly-increased button can be used for triggering Show the interface of input initial parameter;Modification button can be used for triggering the interface for showing modification initial parameter; Refresh button and can be used for the amended initial parameter list of triggering display;Parameter preview part can be used for pre- Look at the initial parameter of selection.Previous step button can be used for triggering, and to make current display interface return to task basic The interface of information solicitation, completes button and can be used for triggering the initial parameter that storage is chosen.Next step button can Show that interface is chosen in subtask for triggering.
When the initial parameter that certain has been stored is chosen, the corresponding choice box of the initial parameter can be clicked on, be touched Send out terminal and show the parameter of selection in parameter preview region.If not having initial parameter in need in parameter list, Newly-increased button can be then clicked on, triggering shows the interface of input initial parameter, can be input into initial parameter, so Click on afterwards and determine button, the initial parameter of input is displayed in parameter preview region, then can click on and complete button, Triggering terminal to tasks carrying server sends storage request, and tasks carrying server is received after storage request, The initial parameter of selection is stored, next step button is then clicked on, triggering shows subtask selection interface.
As shown in figure 5, show in the selection interface of subtask subtask list, the total script preview region of task, Newly-increased button, refresh button, delete button, previous step button, complete button, next step button.Son is appointed Task symbol (ID), task names, task step, the operation of the subtask comprising selection in business selective listing 1st, operation 2, remarks, total script preview region is displayed for the mark of the subtask for having selected, Yi Jizi The execution sequence of task, execution sequence is by the labelling of serial number 1,2,3 ..., that is, execution sequence figure. Newly-increased button can be used for triggering and show subtask addition interface;Refresh button and can be used for triggering display renewal Subtask list afterwards;Delete button can be used for triggering the dialogue for showing comprising determination button, cancelling button Frame, next step button can be used for triggering display and complete mission script interface, and operation 1 is right respectively with operation 2 Ying Shangyi, move down button.
In total script of newly-increased goal task, newly-increased button can be clicked on, triggering shows subtask addition circle Face, can click on the corresponding choice box in subtask to be selected in the subtask addition interface, and triggering is aobvious Show the dialog box of point of addition, corresponding serial number can be input in dialog box, then click on determination by Key, triggering terminal in order numbers the subtask of selection including in total script preview region and subtask list In.If moving the position of subtask, can pass through click on subtask list in show upper shifting, under Button is moved, the execution sequence of subtask is adjusted.If deleting subtask, can click on what is deleted The corresponding choice box in subtask, then clicks on delete button, and triggering shows comprising determination button, cancels button Dialog box, can click on determination button, triggering terminal sends to tasks carrying server and deletes task requests, Tasks carrying server is received after deletion task requests, according to the mark of subtask, the subtask that will be selected Delete from total script.After the completion of subtask selects, then next step button can be clicked on, triggering display is completed The interface of mission script.
In addition, when technical staff will perform new goal task, it is also possible to the stored task of modification Total script, the subtask that will be differed in total script of total script of stored task and the goal task Replace, be changed into performing total script of the goal task.
The execution sequence figure of the total script of goal task and execution now are shown in the script interface of the task that completes Button, preservation button.If technical staff is immediately performed total script of the goal task, can click on existing Button is being performed, triggering shows the interface of total script of performance objective task, if technical staff does not hold now Total script of the capable goal task, can click on preservation button, and triggering terminal to tasks carrying server sends Storage request, and show the interface of all task lists for having created.
The present embodiment, can also browse and change total script of the goal task for having created.As shown in fig. 6, Corresponding processing mode can be as follows:
Step 201, receives the browse request of the goal task.
In force, if technical staff will check total script of goal task, first can be in task list In find the goal task, and click on the choice box of the goal task and select the goal task, then can be with Click browses button, can trigger the total script for showing the goal task.
Step 202, the execution sequence figure of display target task includes in execution sequence figure and is arranged by execution sequence The icon of at least one subtask of row.
In force, tasks carrying server is got after total script of goal task, based on pressing in total script All subtasks of execution sequence record, generate and send execution sequence figure to terminal, and terminal receives execution After precedence diagram, execution sequence figure is shown, the mark and corresponding order of each subtask are shown in execution sequence figure Numbering, wherein, serial number 1,2,3 ... marked the execution sequence of each subtask, serial number 1 Corresponding subtask is the subtask of first execution, and the corresponding subtask of serial number 2 is second execution Subtask, the rest may be inferred, the execution sequence of each subtask of labelling.
If technical staff is in browsing objective task process, it is found that total script of the goal task is wrong, Total script of goal task can also be modified, corresponding processing mode can be as follows:
Step 203, receives the script modification request of the execution sequence figure triggering by operation goal task, script Operation information and subtask mark are carried in modification request.
In force, if technical staff is in browsing objective task process, the common limb of the goal task is found Certain subtask is wrong in this, can click on the choice box of the subtask in execution sequence figure, triggers Show in choice box to labelled notation, can then click on corresponding modification operation button, triggering terminal is to task Execute server sends script modification request, and tasks carrying server is received after script modification request, according to The operation information and subtask mark carried in script modification request is operated to corresponding subtask.
Step 204, identifies according to operation information and subtask, operation of modifying to total script of goal task.
In force, after tasks carrying server receives script modification request, can be according to operation information Operation of modifying to total script of goal task is identified with subtask.Wherein, script changes request can be Newly-increased task requests, deletion task requests, mobile task requests, newly-increased task requests can be click on increasing newly The request that button sends, corresponding operation information is newly-increased task;Deleting task requests can be click on deleting The request that button sends, corresponding operation information is deletion task;Mobile task requests can be click on shifting Or the request that button sends is moved down, corresponding operation information is mobile task.
Optionally, can be identified according to operation information and subtask, total script of goal task is modified Operation, accordingly, the process of step 204 can be:If operation information includes addition mark and adds position Put, then according to point of addition, in total script of goal task, addition subtask identifies corresponding subtask; If operation information includes deleting mark, in total script of goal task, subtask mark correspondence is deleted Subtask;If operation information includes mobile logo and moving target position, according to moving target position, In total script of goal task, position of the corresponding subtask of antithetical phrase task identification in execution sequence is carried out Modification.
In force, technical staff can click on newly-increased button, and triggering terminal shows subtask addition interface, Then technical staff can click on the corresponding choice box in the subtask to be added, and triggering shows adding for subtask Plus the dialog box of position, the subtask can be selected in dialog box to want point of addition, point of addition can be with It is the corresponding serial number of the task of input, then clicks on determination button, triggering terminal to tasks carrying takes Business device sends newly-increased task requests, and tasks carrying server is received after newly-increased task requests, according to the order Numbering, the subtask that technical staff is selected is recorded in total script, and execution sequence therein is carried out more Newly, the execution sequence figure after renewal is sent to terminal, terminal shows the execution sequence figure after updating.
Technical staff can click on the corresponding choice box in the subtask to be deleted, then click on delete button, Triggering terminal shows that comprising the dialog box for determining button, cancelling button can click on determination button, triggering is eventually Hold to be sent to server and delete task requests, tasks carrying server is received after deletion task requests, according to The mark of subtask, the subtask that technical staff selects is deleted from total script, and suitable to execution therein Sequence is updated, and the execution sequence figure after renewal is sent to terminal, and terminal shows the execution sequence after updating Figure.
If technical staff moves the position of certain subtask, the corresponding upper shifting button in the subtask can be clicked on Or button is moved down, triggering terminal to server sends mobile task requests, when tasks carrying server is received It is upper to move request or move down after request, according to the mark of subtask, the subtask that technical staff selects is moved to Target location, and execution sequence therein is updated, the execution sequence figure after renewal is sent to terminal, Terminal shows the execution sequence figure after updating.
In the embodiment of the present invention, the request that performs of goal task is received, obtains total script of the goal task, Wherein, record has at least one subtask that the goal task is included in total script of the goal task, And the execution sequence of each subtask, total script of the goal task is performed, when execution to described at least During arbitrary subtask in individual subtask, according to the subtask for prestoring and the corresponding relation of script, obtain And perform the corresponding script in arbitrary subtask.So, when backstage performs task, can be for difference Script is write in advance in the subtask that may repeat in task, in the total script of the task of writing, only needs record The script of the subtask that needs are called, and without the need for repeating to write the script of subtask, shorten the total script of task The time is write, such that it is able to improve the efficiency of execution task.
Embodiment three
Based on identical technology design, the embodiment of the present invention additionally provides a kind of device of execution mission script, As shown in fig. 7, the device includes:
First receiver module 710, for receive goal task request is performed;
Acquisition module 720, for obtaining total script of the goal task, wherein, the goal task it is total Record has at least one subtask that the goal task is included, and the execution sequence of each subtask in script;
Performing module 730, for performing total script of the goal task, when performing to described at least one sub During arbitrary subtask in task, according to the subtask for prestoring and the corresponding relation of script, obtain and hold The corresponding script in the row arbitrary subtask.
Optionally, the performing module 730, is additionally operable to:
When a sub- tasks carrying is finished, the implementation status information of the subtask being finished described in acquisition, Generate the execution journal comprising the implementation status information.
Optionally, as shown in figure 8, described device also includes:
Display module 740, is used for:Based on the execution sequence, the execution journal is shown.
Optionally, first receiver module 710, is additionally operable to:Receive the browse request of the goal task;
Described certain block 740 of display, is additionally operable to:The execution sequence figure of the goal task is shown, the execution is suitable Include the icon of at least one subtask arranged by the execution sequence in sequence figure.
Optionally, as shown in figure 9, described device also includes the second receiver module 750 and modified module 760, Wherein:
Second receiver module 750, for receiving the execution sequence figure triggering by the operation goal task Script modification request, operation information and subtask mark are carried in script modification request;
The modified module 760, for being identified according to the operation information and subtask, to the goal task Total script modify operation.
Optionally, as shown in Figure 10, the modified module 760, including:Addition submodule 761, deletion Submodule 762 and modification submodule 763, wherein:
The addition submodule 761, if including addition mark and point of addition for the operation information, According to the point of addition, in total script of the goal task, add the subtask mark corresponding Subtask;
The deletion submodule 762, if including deleting mark for the operation information, in the target In total script of task, delete the subtask and identify corresponding subtask;
The modification submodule 763, if including mobile logo and mobile target position for the operation information Put, then according to the moving target position, in total script of the goal task, the subtask is marked Know position of the corresponding subtask in the execution sequence to modify.
In the embodiment of the present invention, the request that performs of goal task is received, obtains total script of the goal task, Wherein, record has at least one subtask that the goal task is included in total script of the goal task, And the execution sequence of each subtask, total script of the goal task is performed, when execution to described at least During arbitrary subtask in individual subtask, according to the subtask for prestoring and the corresponding relation of script, obtain And perform the corresponding script in arbitrary subtask.So, when backstage performs task, can be for difference Script is write in advance in the subtask that may repeat in task, in the total script of the task of writing, only needs record The script of the subtask that needs are called, and without the need for repeating to write the script of subtask, shorten the total script of task The time is write, such that it is able to improve the efficiency of execution task.
It should be noted that:Above-described embodiment provide execution mission script device perform mission script when, Only it is illustrated with the division of above-mentioned each functional module, in practical application, can as desired will be upper State function distribution to be completed by different functional modules, will the internal structure of device be divided into different function moulds Block, to complete all or part of function described above.In addition, the execution task that above-described embodiment is provided Script device belongs to same design with the embodiment of the method for performing mission script, and it implements the process side of referring to Method embodiment, repeats no more here.
Example IV
Figure 11 is refer to, the structural representation of the tasks carrying server involved by the embodiment of the present invention is it illustrates Figure, the tasks carrying server can be used for the method for the execution mission script for implementing to be provided in above-described embodiment. Specifically:
The tasks carrying server 1900 be able to can be wrapped because of configuration or performance is different and the larger difference of producing ratio Include one or more central processing units (central processing units, CPU) 1922 (for example, one Individual or more than one processor) and memorizer 1932, one or more storage application programs 1942 or number According to 1944 storage medium 1930 (such as one or more mass memory units).Wherein, memorizer 1932 and storage medium 1930 can be of short duration storage or persistently storage.It is stored in the journey of storage medium 1930 Sequence can include one or more modules (diagram is not marked), and each module can be included to tasks carrying Series of instructions operation in server.Further, central processing unit 1922 could be arranged to and storage Medium 1930 communicates, and the series of instructions in storage medium 1930 is performed in task execute server 1900 Operation.
Tasks carrying server 1900 can also include one or more power supplys 1926, one or one with Upper wired or wireless network interface 1950, one or more input/output interfaces 1958, one or one With upper keyboard 1956, and/or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Tasks carrying server 1900 can include memorizer, and one or more than one program, One of them or more than one program storage is configured to by one or more than one in memorizer Computing device is one or more than one program bag contains the instruction for being used for carrying out following operation:
Receive goal task performs request;
Total script of the goal task is obtained, wherein, record has described in total script of the goal task At least one subtask that goal task is included, and the execution sequence of each subtask;
Total script of the goal task is performed, is appointed when performing to the arbitrary son at least one subtask During business, according to the subtask for prestoring and the corresponding relation of script, arbitrary subtask is obtained and performed Corresponding script.
Optionally, methods described also includes:
When a sub- tasks carrying is finished, the implementation status information of the subtask being finished described in acquisition, Generate the execution journal comprising the implementation status information.
Optionally, the implementation status information of the subtask being finished described in the acquisition, generates comprising described After the execution journal of implementation status information, also include:
Based on the execution sequence, the execution journal is shown.
Optionally, methods described also includes:
Receive the browse request of the goal task;
The execution sequence figure of the goal task is shown, includes suitable by the execution in the execution sequence figure The icon of at least one subtask of sequence arrangement.
Optionally, methods described also includes:
Receive the script modification request of the execution sequence figure triggering by the operation goal task, the script Operation information and subtask mark are carried in modification request;
Identified according to the operation information and subtask, operation that total script of the goal task is modified.
Optionally, it is described to be identified according to the operation information and subtask, the total script to the goal task Modify operation, including:
If the operation information includes addition mark and point of addition, according to the point of addition, in institute In stating total script of goal task, add the subtask and identify corresponding subtask;
If the operation information includes deleting mark, in total script of the goal task, institute is deleted State subtask and identify corresponding subtask;
If the operation information includes mobile logo and moving target position, according to the mobile target position Put, in total script of the goal task, corresponding subtask is identified to the subtask in the execution Modify position in order.
In the embodiment of the present invention, the request that performs of goal task is received, obtains total script of the goal task, Wherein, record has at least one subtask that the goal task is included in total script of the goal task, And the execution sequence of each subtask, total script of the goal task is performed, when execution to described at least During arbitrary subtask in individual subtask, according to the subtask for prestoring and the corresponding relation of script, obtain And perform the corresponding script in arbitrary subtask.So, when backstage performs task, can be for difference Script is write in advance in the subtask that may repeat in task, in the total script of the task of writing, only needs record The script of the subtask that needs are called, and without the need for repeating to write the script of subtask, shorten the total script of task The time is write, such that it is able to improve the efficiency of execution task.
One of ordinary skill in the art will appreciate that realize all or part of step of above-described embodiment can pass through Hardware is completing, it is also possible to which the hardware that correlation is instructed by program is completed, program can be stored in one kind In computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD Deng.
Presently preferred embodiments of the present invention is these are only, not to limit the present invention, all spirit in the present invention Within principle, any modification, equivalent substitution and improvements made etc. should be included in the protection of the present invention Within the scope of.

Claims (12)

1. it is a kind of perform mission script method, it is characterised in that methods described includes:
Receive goal task performs request;
Total script of the goal task is obtained, wherein, record has described in total script of the goal task At least one subtask that goal task is included, and the execution sequence of each subtask;
Total script of the goal task is performed, is appointed when performing to the arbitrary son at least one subtask During business, according to the subtask for prestoring and the corresponding relation of script, arbitrary subtask is obtained and performed Corresponding script.
2. method according to claim 1, it is characterised in that methods described also includes:
When a sub- tasks carrying is finished, the implementation status information of the subtask being finished described in acquisition, Generate the execution journal comprising the implementation status information.
3. method according to claim 2, it is characterised in that the son being finished described in the acquisition The implementation status information of task, after generating the execution journal comprising the implementation status information, also includes:
Based on the execution sequence, the execution journal is shown.
4. method according to claim 1, it is characterised in that methods described also includes:
Receive the browse request of the goal task;
The execution sequence figure of the goal task is shown, includes suitable by the execution in the execution sequence figure The icon of at least one subtask of sequence arrangement.
5. method according to claim 4, it is characterised in that methods described also includes:
Receive the script modification request of the execution sequence figure triggering by the operation goal task, the script Operation information and subtask mark are carried in modification request;
Identified according to the operation information and subtask, operation that total script of the goal task is modified.
6. method according to claim 5, it is characterised in that described according to the operation information and son Task identification, operation that total script of the goal task is modified, including:
If the operation information includes addition mark and point of addition, according to the point of addition, in institute In stating total script of goal task, add the subtask and identify corresponding subtask;
If the operation information includes deleting mark, in total script of the goal task, institute is deleted State subtask and identify corresponding subtask;
If the operation information includes mobile logo and moving target position, according to the mobile target position Put, in total script of the goal task, corresponding subtask is identified to the subtask in the execution Modify position in order.
7. it is a kind of perform mission script device, it is characterised in that described device includes:
First receiver module, for receive goal task request is performed;
Acquisition module, for obtaining total script of the goal task, wherein, the common limb of the goal task Record has at least one subtask that the goal task is included, and the execution sequence of each subtask in this;
Performing module, for performing total script of the goal task, appoints when performing to described at least one son During arbitrary subtask in business, according to the subtask for prestoring and the corresponding relation of script, obtain and perform The corresponding script in arbitrary subtask.
8. device according to claim 7, it is characterised in that the performing module is additionally operable to:
When a sub- tasks carrying is finished, the implementation status information of the subtask being finished described in acquisition, Generate the execution journal comprising the implementation status information.
9. device according to claim 8, described device also includes:
Display module, for based on the execution sequence, showing to the execution journal.
10. device according to claim 7, it is characterised in that first receiver module, also uses In:Receive the browse request of the goal task;
Described certain block of display, is additionally operable to:Show the execution sequence figure of the goal task, the execution sequence Include the icon of at least one subtask arranged by the execution sequence in figure.
11. devices according to claim 10, it is characterised in that described device is also received including second Module and modified module, wherein:
Second receiver module, for receiving the execution sequence figure triggering by the operation goal task Script modification request, carries operation information and subtask mark in the script modification request;
The modified module, for being identified according to the operation information and subtask, to the goal task Total script is modified operation.
12. devices according to claim 11, it is characterised in that the modified module includes:Addition Submodule, deletion submodule and modification submodule, wherein:
The addition submodule, if including addition mark and point of addition, root for the operation information According to the point of addition, in total script of the goal task, add the subtask and identify corresponding son Task;
The deletion submodule, if including deleting mark for the operation information, appoints in the target In total script of business, delete the subtask and identify corresponding subtask;
The modification submodule, if including mobile logo and moving target position for the operation information, Then according to the moving target position, in total script of the goal task, it is right that the subtask is identified Modify position of the subtask answered in the execution sequence.
CN201510646076.6A 2015-10-08 2015-10-08 Method and device for executing task script Active CN106569783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510646076.6A CN106569783B (en) 2015-10-08 2015-10-08 Method and device for executing task script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510646076.6A CN106569783B (en) 2015-10-08 2015-10-08 Method and device for executing task script

Publications (2)

Publication Number Publication Date
CN106569783A true CN106569783A (en) 2017-04-19
CN106569783B CN106569783B (en) 2021-05-28

Family

ID=58506486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510646076.6A Active CN106569783B (en) 2015-10-08 2015-10-08 Method and device for executing task script

Country Status (1)

Country Link
CN (1) CN106569783B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147637A (en) * 2017-05-05 2017-09-08 腾讯科技(深圳)有限公司 A kind of tasks carrying request processing method, device and computer-readable storage medium
CN107608774A (en) * 2017-09-08 2018-01-19 新智云数据服务有限公司 A kind of method for scheduling task, device, equipment and storage medium
CN108170512A (en) * 2017-12-27 2018-06-15 德阳源创能源科技有限公司 Script drives analysis method and device
CN108776604A (en) * 2018-05-23 2018-11-09 网易(杭州)网络有限公司 The execution method and system of goal task
CN109189687A (en) * 2018-08-31 2019-01-11 成都品果科技有限公司 A kind of method and apparatus obtaining Android log
CN109492019A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN109918152A (en) * 2019-03-18 2019-06-21 中科麦迪人工智能研究院(苏州)有限公司 Task executing method, device, server and storage medium based on policy flow
CN110018860A (en) * 2019-04-04 2019-07-16 深圳市永兴元科技股份有限公司 Workflow management method, device, equipment and computer storage medium
CN110471718A (en) * 2019-07-04 2019-11-19 深圳市共进电子股份有限公司 A kind of task processing method and equipment
CN110489170A (en) * 2019-09-06 2019-11-22 北京中亦安图科技股份有限公司 A kind of AIX system installation method and device
CN111474913A (en) * 2019-01-23 2020-07-31 北京新能源汽车股份有限公司 Program operation monitoring method and device and electric automobile
CN112131247A (en) * 2020-09-30 2020-12-25 中国银行股份有限公司 Method and device for safety isolation of host data query
CN112181823A (en) * 2020-09-25 2021-01-05 建信金融科技有限责任公司 Test script execution method and device, server, electronic device and medium
CN112835681A (en) * 2021-02-25 2021-05-25 北京顶象技术有限公司 Front-end script construction method and device and controller

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713192A (en) * 2004-06-25 2005-12-28 国际商业机器公司 Method and device for processing logic mode establishment and carrying out
CN1749960A (en) * 2004-09-17 2006-03-22 微软公司 Active content wizard execution with improved conspicuity
CN102867069A (en) * 2012-09-28 2013-01-09 浙江图讯科技有限公司 Method and system for executing database scripts based on SQL (structured query language)
CN103942099A (en) * 2014-04-30 2014-07-23 广州唯品会网络技术有限公司 Parallel task execution method and device based on Hive

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713192A (en) * 2004-06-25 2005-12-28 国际商业机器公司 Method and device for processing logic mode establishment and carrying out
CN1749960A (en) * 2004-09-17 2006-03-22 微软公司 Active content wizard execution with improved conspicuity
CN102867069A (en) * 2012-09-28 2013-01-09 浙江图讯科技有限公司 Method and system for executing database scripts based on SQL (structured query language)
CN103942099A (en) * 2014-04-30 2014-07-23 广州唯品会网络技术有限公司 Parallel task execution method and device based on Hive

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147637B (en) * 2017-05-05 2019-01-08 腾讯科技(深圳)有限公司 A kind of task execution request processing method, device and computer storage medium
CN107147637A (en) * 2017-05-05 2017-09-08 腾讯科技(深圳)有限公司 A kind of tasks carrying request processing method, device and computer-readable storage medium
CN107608774A (en) * 2017-09-08 2018-01-19 新智云数据服务有限公司 A kind of method for scheduling task, device, equipment and storage medium
CN108170512A (en) * 2017-12-27 2018-06-15 德阳源创能源科技有限公司 Script drives analysis method and device
CN108776604A (en) * 2018-05-23 2018-11-09 网易(杭州)网络有限公司 The execution method and system of goal task
CN109189687A (en) * 2018-08-31 2019-01-11 成都品果科技有限公司 A kind of method and apparatus obtaining Android log
CN109492019A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN109492019B (en) * 2018-10-16 2024-03-08 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN111474913A (en) * 2019-01-23 2020-07-31 北京新能源汽车股份有限公司 Program operation monitoring method and device and electric automobile
CN109918152A (en) * 2019-03-18 2019-06-21 中科麦迪人工智能研究院(苏州)有限公司 Task executing method, device, server and storage medium based on policy flow
CN110018860A (en) * 2019-04-04 2019-07-16 深圳市永兴元科技股份有限公司 Workflow management method, device, equipment and computer storage medium
CN110018860B (en) * 2019-04-04 2022-11-08 深圳市永兴元科技股份有限公司 Workflow management method, device, equipment and computer storage medium
CN110471718A (en) * 2019-07-04 2019-11-19 深圳市共进电子股份有限公司 A kind of task processing method and equipment
CN110489170A (en) * 2019-09-06 2019-11-22 北京中亦安图科技股份有限公司 A kind of AIX system installation method and device
CN112181823A (en) * 2020-09-25 2021-01-05 建信金融科技有限责任公司 Test script execution method and device, server, electronic device and medium
CN112131247A (en) * 2020-09-30 2020-12-25 中国银行股份有限公司 Method and device for safety isolation of host data query
CN112835681A (en) * 2021-02-25 2021-05-25 北京顶象技术有限公司 Front-end script construction method and device and controller

Also Published As

Publication number Publication date
CN106569783B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN106569783A (en) Task script executing method and apparatus
US9003312B1 (en) Method and apparatus for updating a web-based user interface
US9778920B2 (en) Mobile design patterns
CN109446570B (en) Business process display method, device, computer equipment and storage medium
KR101368068B1 (en) Method of constructing database, server performing the same and storage media storing the same
US11093242B2 (en) Automatically mapping data while designing process flows
KR20090127158A (en) Service program generation technology
CN102955694A (en) Client implementation method based on WebKit browser and client
CN107679113A (en) Acquisition methods, equipment and the electronic equipment gently applied
CN103150165A (en) Frame and method for building outdoor data acquisition program
CN103827778B (en) Enterprise tools strengthen
CN110297636A (en) A kind of automatic production of HTML page and parameter management method based on page configuration file, system and device
CN110507986B (en) Animation information processing method and device
CN107656729A (en) Updating device, method and the computer-readable recording medium of List View
CN109814863A (en) A kind of processing method, device, computer equipment and computer storage medium for requesting returned data
CN112433712A (en) Report display method and device, computer equipment and storage medium
CN104298686A (en) Method and device for modifying server configuration file
CN109947624A (en) Method for monitoring state and device
CN106156189A (en) A kind of label generating method and device, information getting method and device
CN106372158A (en) Method and device for processing user behavior data
CN113467673A (en) Mobile terminal interface arrangement method, device, equipment and storage medium
CN110020297A (en) A kind of loading method of web page contents, apparatus and system
US20230153179A1 (en) Visitor stitching with data science notebooks
CN106066874A (en) Object processing method and terminal
JPH08314679A (en) Application management control method

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