Summary of the invention
The embodiment of the present disclosure provides a kind of task automated execution method, apparatus, electronic equipment and storage medium.
In a first aspect, providing a kind of task automated execution method in the embodiment of the present disclosure.
Specifically, the task automated execution method, comprising:
Determine the corresponding workflow of task;Wherein, the workflow includes multiple service nodes, and each service saves
Destination service at least one corresponding oriented systems of point;
In response to the default trigger event received, triggers the service node in the workflow and execute corresponding target clothes
Business.
Further, the corresponding workflow of the determining task, comprising:
It determines the default trigger event of the task, complete the destination service and the mesh that the required by task is wanted
Transfer Parameters between mark service;
The workflow is formed according to the default trigger event, the destination service and the Transfer Parameters layout.
Further, the default trigger event in response to receiving triggers the service section in the workflow
Point executes corresponding destination service, comprising:
In response to the default trigger event received, at least one the first service node triggered in the workflow is executed
Corresponding first object service;
After the completion of the first object service execution, at least one the follow-up service node triggered in the workflow is held
The corresponding succeeding target service of row, until the last one service node executes the last one corresponding mesh of completion in the workflow
Mark service.
Further, the default trigger event includes at least one of: monitor event, publication event, altering event,
Bluish-green event, disaster tolerance event, timed events, unified message send event, current limliting event, pre- cases.
Further, the task automated execution method further include:
The destination service is exported to target user when meeting preset condition and is notified after the completion of execution.
Second aspect provides a kind of task automated execution device in the embodiment of the present disclosure.
Specifically, the task automated execution device, comprising:
Determining module is configured to determine that the corresponding workflow of task;Wherein, the workflow includes multiple service sections
Point, and each service node corresponds to the destination service at least one oriented systems;
Trigger module is configured to respond to the default trigger event received, triggers the service section in the workflow
Point executes corresponding destination service.
Further, the determining module, comprising:
It determines submodule, is configured to determine that the default trigger event of the task, completes the institute that the required by task is wanted
State the Transfer Parameters between destination service and the destination service;
Submodule is formed, is configured as according to the default trigger event, the destination service and the Transfer Parameters
Layout forms the workflow.
Further, the trigger module, comprising:
First triggering submodule, is configured to respond to the default trigger event received, triggers in the workflow
At least one first service node executes corresponding first object service;
Second triggering submodule, is configured as triggering in the workflow after the completion of first object service execution
At least one follow-up service node execute corresponding succeeding target service, until the last one service node in the workflow
It executes and completes the last one corresponding destination service.
Further, the default trigger event includes at least one of: monitor event, publication event, altering event,
Bluish-green event, disaster tolerance event, timed events, unified message send event, current limliting event, pre- cases.
Further, the task automated execution device further include:
Notification module is configured as the destination service after the completion of execution, when meeting preset condition to target user
Output notice.
The function can also execute corresponding software realization by hardware realization by hardware.The hardware or
Software includes one or more modules corresponding with above-mentioned function.
It is described including memory and processor in the structure of task automated execution device in a possible design
Memory is held for storing task automation in the one or more above-mentioned first aspect of support task automated execution device execution
The computer instruction of row method, the processor is configured to for executing the computer instruction stored in the memory.Institute
Stating task automated execution device can also include communication interface, for task automated execution device and other equipment or communication
Network communication.
The third aspect, the embodiment of the present disclosure provide a kind of electronic equipment, including memory and processor;Wherein, described
Memory is for storing one or more computer instruction, wherein one or more computer instruction is by the processor
It executes to realize method and step described in first aspect.
Fourth aspect, the embodiment of the present disclosure provide a kind of computer readable storage medium, automate for store tasks
Computer instruction used in executive device, it includes for executing in above-mentioned first aspect involved by task automated execution method
Computer instruction.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
The embodiment of the present disclosure will complete the clothes of the target in one or more oriented systems an of complete task
Business is abstracted into one or more service nodes, and forms the workflow for completing the task, and then passes through the default touching of response task
Hair event triggers the destination service that the service node in the workflow executes response, to complete the primary execution of the task.Pass through
The embodiment of the present disclosure can be using the destination service in oriented systems as available workflow nodes, and in response events
Triggering under run one or more destination services, a complete task is automatically performed with driving.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Specific embodiment
Hereinafter, the illustrative embodiments of the disclosure will be described in detail with reference to the attached drawings, so that those skilled in the art can
Easily realize them.In addition, for the sake of clarity, the portion unrelated with description illustrative embodiments is omitted in the accompanying drawings
Point.
In the disclosure, it should be appreciated that the term of " comprising " or " having " etc. is intended to refer to disclosed in this specification
Feature, number, step, behavior, the presence of component, part or combinations thereof, and be not intended to exclude other one or more features,
A possibility that number, step, behavior, component, part or combinations thereof exist or are added.
It also should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure
It can be combined with each other.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the flow chart of the task automated execution method according to one embodiment of the disclosure.As shown in Figure 1, institute
It states task automated execution method and includes the following steps S101-S102:
In step s101, the corresponding workflow of task is determined;Wherein, the workflow includes multiple service nodes, and
Each service node corresponds to the destination service at least one oriented systems;
In step s 102, in response to the default trigger event received, the service node triggered in the workflow is held
The corresponding destination service of row.
One task can be by an oriented systems one or more functional units namely service complete,
Can also by multiple service-oriented units multiple functional units namely service collaboration complete.And under present case, it completes
The functional unit that one task needs manually to trigger in service-oriented according to the actual situation executes a part of task, completes one
Divide after task, it is artificial to trigger other functional unit completion next part task again by checking implementing result, especially relating to
And when different oriented systems, need manually to participate in very much, causes working efficiency low.For example, in a new application
After system completes bluish-green switching, other business being related to for the application system are needed to carry out manual inspection one by one, and finding
After problem, write notification message manually to related personnel, and need for example to follow closely by different notification means group, mail,
Wechat etc. carries out multiplicating notice, to ensure that related personnel can receive the notice.
The workflow that the present embodiment can be wanted for one required by task of completion in advance, the workflow include completing the task
Service node and service node between workflow, service node corresponds to the oriented systems that are related to of the task
In one or more destination services.In one embodiment, the corresponding workflow of task can use Business Process Modeling and mark
It infuses (bpmn) agreement and carries out layout.After the workflow of task has been determined, a reality based on the workflow generation task
Example completes the task to execute.After the example of the task generates, external event can be perceived, the default of the task is having occurred
When trigger event, which can trigger respective service node in the workflow and execute corresponding destination service.One task is corresponding
Workflow may include multiple service nodes, can be according to holding after the completion of the corresponding destination service of a service node executes
Next service node that row result triggers respective branches in the workflow executes corresponding next destination service, until the workflow
In the branch execute completion.
The embodiment of the present disclosure will complete the clothes of the target in one or more oriented systems an of complete task
Business is abstracted into one or more service nodes, and forms the workflow for completing the task, and then passes through the default touching of response task
Hair event triggers the destination service that the service node in the workflow executes response, to complete the primary execution of the task.Pass through
The embodiment of the present disclosure can be using the destination service in oriented systems as available workflow nodes, and in response events
Triggering under run one or more destination services, a complete task is automatically performed with driving.
In an optional implementation of the present embodiment, as shown in Fig. 2, the step S101, that is, determine that task is corresponding
Workflow the step of, further comprise the steps S201-S202:
In step s 201, it determines the default trigger event of the task, complete the target that the required by task is wanted
Transfer Parameters between service and the destination service;
In step S202, according to the default trigger event, the destination service and the Transfer Parameters layout shape
At the workflow.
In the optional implementation, it is first determined the default trigger event of task completes the target clothes that required by task is wanted
The parameter transmitted between business and destination service, and then trigger event, the target are preset come layout based on BPMN agreement again
Service and the Transfer Parameters layout form the workflow.The workflow can be shown in the form of work flow diagram,
And destination service can share context as the service node in workflow, and ginseng is shared by way of message transmission
Number.
In an optional implementation of the present embodiment, as shown in figure 3, the step S102, i.e., in response to receiving
Default trigger event, trigger the step of service node in the workflow executes corresponding destination service, further
Include the following steps S301-S302:
In step S301, in response to the default trigger event received, at least one of described workflow is triggered
One service node executes corresponding first object service;
In step s 302, after the completion of the first object service execution, at least one of described workflow is triggered
Follow-up service node executes corresponding succeeding target service, until the last one service node executes completion pair in the workflow
The last one destination service answered.
In the optional implementation, default trigger event can be mapped with task in advance, it is default detecting
When trigger event, the first service node for triggering corresponding task executes corresponding first object service, first service node namely
The task corresponds to the starting service node in workflow, can have multiple branches, root behind each service node in workflow
Depending on implementing result according to the corresponding destination service of each service node, different implementing results can correspond to different branches,
After first object service execution is completed, the follow-up service section in the implementing result respective branches can be triggered according to implementing result
Point, to execute succeeding target service, and so on, until the corresponding destination service of all service nodes in the branch is carried out
Until the corresponding destination service of the last one service node executes completion until completion namely in the branch.
In an optional implementation of the present embodiment, the default trigger event includes at least one of: monitoring
Event, publication event, altering event, bluish-green event, disaster tolerance event, timed events, unified message send event, current limliting event,
Pre- cases.
In the optional implementation, multiple tasks can be formed based on the different services in multiple application systems, and every
A task can perceive different default trigger events, including monitor event, publication event, altering event, bluish-green event, disaster tolerance
Event, timed events, unified message send event, current limliting event, pre- cases etc..
In an optional implementation of the present embodiment, the method also includes:
The destination service is exported to target user when meeting preset condition and is notified after the completion of execution.
In the optional implementation, destination service, can root in the case where meeting preset condition after the completion of execution
It should be notified according to the layout of workflow from trend target user output phase.For example, there is mistake in the process of implementation in destination service, then
Warning notice can be exported automatically to user by means of communication such as nail nail, wechat, mails.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 4 shows the structural block diagram of the task automated execution device according to one embodiment of the disclosure, which can be with
Pass through being implemented in combination with as some or all of of electronic equipment for software, hardware or both.As shown in figure 4, the task
Automated execution device includes:
Determining module 401 is configured to determine that the corresponding workflow of task;Wherein, the workflow includes multiple services
Node, and each service node corresponds to the destination service at least one oriented systems;
Trigger module 402 is configured to respond to the default trigger event received, triggers the service in the workflow
Node executes corresponding destination service.
One task can be by an oriented systems one or more functional units namely service complete,
Can also by multiple service-oriented units multiple functional units namely service collaboration complete.And under present case, it completes
The functional unit that one task needs manually to trigger in service-oriented according to the actual situation executes a part of task, completes one
Divide after task, it is artificial to trigger other functional unit completion next part task again by checking implementing result, especially relating to
And when different oriented systems, need manually to participate in very much, causes working efficiency low.For example, in a new application
After system completes bluish-green switching, other business being related to for the application system are needed to carry out manual inspection one by one, and finding
After problem, write notification message manually to related personnel, and need for example to follow closely by different notification means group, mail,
Wechat etc. carries out multiplicating notice, to ensure that related personnel can receive the notice.
The workflow that the present embodiment can be wanted for one required by task of completion in advance, the workflow include completing the task
Service node and service node between workflow, service node corresponds to the oriented systems that are related to of the task
In one or more destination services.In one embodiment, the corresponding workflow of task can use Business Process Modeling and mark
It infuses (bpmn) agreement and carries out layout.After the workflow of task has been determined, a reality based on the workflow generation task
Example completes the task to execute.After the example of the task generates, external event can be perceived, the default of the task is having occurred
When trigger event, which can trigger respective service node in the workflow and execute corresponding destination service.One task is corresponding
Workflow may include multiple service nodes, can be according to holding after the completion of the corresponding destination service of a service node executes
Next service node that row result triggers respective branches in the workflow executes corresponding next destination service, until the workflow
In the branch execute completion.
The embodiment of the present disclosure will complete the clothes of the target in one or more oriented systems an of complete task
Business is abstracted into one or more service nodes, and forms the workflow for completing the task, and then passes through the default touching of response task
Hair event triggers the destination service that the service node in the workflow executes response, to complete the primary execution of the task.Pass through
The embodiment of the present disclosure can be using the destination service in oriented systems as available workflow nodes, and in response events
Triggering under run one or more destination services, a complete task is automatically performed with driving.
In an optional implementation of the present embodiment, as shown in figure 5, the determining module 401, comprising:
It determines submodule 501, is configured to determine that the default trigger event of the task, completes what the required by task was wanted
Transfer Parameters between the destination service and the destination service;
Submodule 502 is formed, is configured as being joined according to the default trigger event, the destination service and the transmitting
Number layout forms the workflow.
In the optional implementation, it is first determined the default trigger event of task completes the target clothes that required by task is wanted
The parameter transmitted between business and destination service, and then trigger event, the target are preset come layout based on BPMN agreement again
Service and the Transfer Parameters layout form the workflow.The workflow can be shown in the form of work flow diagram,
And destination service can share context as the service node in workflow, and ginseng is shared by way of message transmission
Number.
In an optional implementation of the present embodiment, as shown in fig. 6, the trigger module 402, comprising:
First triggering submodule 601, is configured to respond to the default trigger event received, triggers in the workflow
At least one first service node execute corresponding first object service;
Second triggering submodule 602, is configured as triggering the workflow after the completion of first object service execution
In at least one follow-up service node execute corresponding succeeding target service, until the last one service section in the workflow
Point, which executes, completes the last one corresponding destination service.
In the optional implementation, default trigger event can be mapped with task in advance, it is default detecting
When trigger event, the first service node for triggering corresponding task executes corresponding first object service, first service node namely
The task corresponds to the starting service node in workflow, can have multiple branches, root behind each service node in workflow
Depending on implementing result according to the corresponding destination service of each service node, different implementing results can correspond to different branches,
After first object service execution is completed, the follow-up service section in the implementing result respective branches can be triggered according to implementing result
Point, to execute succeeding target service, and so on, until the corresponding destination service of all service nodes in the branch is carried out
Until the corresponding destination service of the last one service node executes completion until completion namely in the branch.
In an optional implementation of the present embodiment, the default trigger event includes at least one of: monitoring
Event, publication event, altering event, bluish-green event, disaster tolerance event, timed events, unified message send event, current limliting event,
Pre- cases.
In the optional implementation, multiple tasks can be formed based on the different services in multiple application systems, and every
A task can perceive different default trigger events, including monitor event, publication event, altering event, bluish-green event, disaster tolerance
Event, timed events, unified message send event, current limliting event, pre- cases etc..
In an optional implementation of the present embodiment, described device further include:
Notification module is configured as the destination service after the completion of execution, when meeting preset condition to target user
Output notice.
In the optional implementation, destination service, can root in the case where meeting preset condition after the completion of execution
It should be notified according to the layout of workflow from trend target user output phase.For example, there is mistake in the process of implementation in destination service, then
Warning notice can be exported automatically to user by means of communication such as nail nail, wechat, mails.
Fig. 7 is adapted for the knot for realizing the electronic equipment of the task automated execution method according to disclosure embodiment
Structure schematic diagram.
As shown in fig. 7, electronic equipment 700 includes central processing unit (CPU) 701, it can be according to being stored in read-only deposit
Program in reservoir (ROM) 702 is held from the program that storage section 708 is loaded into random access storage device (RAM) 703
Various processing in the above-mentioned embodiment shown in FIG. 1 of row.In RAM703, be also stored with electronic equipment 700 operate it is required
Various programs and data.CPU701, ROM702 and RAM703 are connected with each other by bus 704.Input/output (I/O) interface
705 are also connected to bus 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.;
And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because
The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon
Computer program be mounted into storage section 708 as needed.
Particularly, according to embodiment of the present disclosure, it is soft to may be implemented as computer above with reference to Fig. 1 method described
Part program.For example, embodiment of the present disclosure includes a kind of computer program product comprising be tangibly embodied in and its readable
Computer program on medium, the computer program include the program code for executing method shown in Fig. 1.In such reality
It applies in mode, which can be downloaded and installed from network by communications portion 709, and/or is situated between from detachable
Matter 711 is mounted.
Flow chart and block diagram in attached drawing illustrate system, method and computer according to the various embodiments of the disclosure
The architecture, function and operation in the cards of program product.In this regard, each box in course diagram or block diagram can be with
A part of a module, section or code is represented, a part of the module, section or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit or module involved in disclosure embodiment can be realized by way of software, can also
It is realized in a manner of through hardware.Described unit or module also can be set in the processor, these units or module
Title do not constitute the restriction to the unit or module itself under certain conditions.
As on the other hand, the disclosure additionally provides a kind of computer readable storage medium, the computer-readable storage medium
Matter can be computer readable storage medium included in device described in above embodiment;It is also possible to individualism,
Without the computer readable storage medium in supplying equipment.Computer-readable recording medium storage has one or more than one journey
Sequence, described program is used to execute by one or more than one processor is described in disclosed method.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.