CN112148463A - Business process control method and device - Google Patents

Business process control method and device Download PDF

Info

Publication number
CN112148463A
CN112148463A CN202011149216.6A CN202011149216A CN112148463A CN 112148463 A CN112148463 A CN 112148463A CN 202011149216 A CN202011149216 A CN 202011149216A CN 112148463 A CN112148463 A CN 112148463A
Authority
CN
China
Prior art keywords
task
case
service
execution
target task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011149216.6A
Other languages
Chinese (zh)
Other versions
CN112148463B (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202011149216.6A priority Critical patent/CN112148463B/en
Publication of CN112148463A publication Critical patent/CN112148463A/en
Application granted granted Critical
Publication of CN112148463B publication Critical patent/CN112148463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

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

Abstract

The embodiment of the application provides a method and a device for controlling a business process, wherein the method comprises the following steps: when monitoring an execution message of a service, starting a case associated with the service, and taking a root task in the case as a target task, wherein the case comprises an execution sequence of each task of the service and an execution condition of each task, the case comprises at least one root task, and the root task is a task without a previous-stage task; executing the target task to obtain an execution result of the target task; if the execution result of the target task indicates that the business continues to be executed, selecting a task with the execution result of the target task as an execution condition from the next-level task of the target task in the case as a target task, and returning to the step of executing the target task; and if the execution result of the target task indicates that the service is finished, terminating the case. By applying the technical scheme provided by the embodiment of the application, the execution efficiency of the service is improved.

Description

Business process control method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling a business process.
Background
With the development of computer technology, more and more services are executed by computers. However, there are still many services that require user involvement to complete. For example, the virtual machine initiates an abnormal troubleshooting transaction. This seriously affects the execution efficiency of the service.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for controlling a service flow, so as to improve execution efficiency of a service and reduce complexity of service processing. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for controlling a service flow, where the method includes:
when monitoring an execution message of a service, starting a case associated with the service, and taking a root task in the case as a target task, wherein the case comprises an execution sequence of each task of the service and an execution condition of each task, the case comprises at least one root task, and the root task is a task without a previous-stage task;
executing the target task to obtain an execution result of the target task;
if the execution result of the target task indicates that the business continues to be executed, selecting a task with the execution result of the target task as an execution condition from the next-level task of the target task in the case as a target task, and returning to the step of executing the target task;
and if the execution result of the target task indicates that the service is finished, terminating the case.
Optionally, the method further includes:
acquiring a knowledge document comprising the execution sequence and the execution condition;
and arranging the knowledge document based on CMMN (Case Management Model and Notation) standard to obtain the Case associated with the business.
Optionally, the method further includes:
and if the target task does not have the next-level task, terminating the case.
Optionally, the step of starting the service-related case includes:
and calling an execution interface of the CMMN engine to start the service associated case.
Optionally, the CMMN engine further includes an inquiry interface, a deployment interface, and a deletion interface; the method further comprises the following steps:
calling an inquiry interface of the CMMN engine to inquire the case in a database;
calling a deployment interface of the CMMN engine, and storing the case into the database;
and calling a deletion interface of the CMMN engine to delete the case in the database.
In a second aspect, an embodiment of the present application provides a device for controlling a business process, where the device includes:
the system comprises a starting unit, a processing unit and a processing unit, wherein the starting unit is used for starting a case associated with a service when monitoring an execution message of the service, and taking a root task in the case as a target task, the case comprises an execution sequence of each task of the service and an execution condition of each task, the case comprises at least one root task, and the root task is a task without a previous-stage task;
the execution unit is used for executing the target task to obtain an execution result of the target task; if the execution result of the target task indicates that the business continues to be executed, selecting a task with the execution result of the target task as an execution condition from the next-level task of the target task in the case as a target task, and returning to the step of executing the target task; and if the execution result of the target task indicates that the service is finished, terminating the case.
Optionally, the apparatus further comprises:
an acquisition unit configured to acquire a knowledge document including the execution order and the execution condition;
and the arranging unit is used for arranging the knowledge document based on the CMMN standard to obtain the case associated with the service.
Optionally, the execution unit is further configured to terminate the case if the target task does not have a next-level task.
Optionally, the starting unit is specifically configured to:
and calling an execution interface of the CMMN engine to start the service associated case.
Optionally, the CMMN engine further includes an inquiry interface, a deployment interface, and a deletion interface; the starting unit is specifically configured to: calling an inquiry interface of the CMMN engine to inquire the case in a database; calling a deployment interface of the CMMN engine, and storing the case into the database; and calling a deletion interface of the CMMN engine to delete the case in the database.
In a third aspect, embodiments provide an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the method steps described above.
In a fourth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the method steps described above.
In the method and the device for controlling the business process provided by the embodiment of the application, the case includes the execution sequence of each task and the execution condition of each task, and the case includes at least one root task. After the electronic device starts the case, the plurality of tasks included in the service may be executed according to the execution sequence of each task and the execution condition of each task included in the case, so as to complete the execution of the service. The process can not be participated manually, and the execution efficiency of the service is improved. In addition, the case can comprise a plurality of root tasks, and the plurality of tasks can be executed in parallel, so that the execution efficiency of the service is further improved. In addition, corresponding business can be completed only by starting one case in the embodiment of the application, and compared with a scheme that one case is started by one root task, and a plurality of cases are started by a plurality of root tasks, the complexity of business processing is reduced.
Of course, it is not necessary for any product or method of the present application to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a business process control method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a case service layer provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a knowledge document provided by an embodiment of the present application;
fig. 4 is a schematic diagram of a troubleshooting service related case of abnormal virtual machine start according to an embodiment of the present application;
FIG. 5 is an enlarged view of the "Start-Up successful" task in the case of FIG. 4;
FIG. 6 is a diagram illustrating the rule configuration of the "virtual machine start" task in the case of FIG. 4;
fig. 7 is a schematic structural diagram of a business process control apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
There are still many services that require user involvement to complete. This seriously affects the execution efficiency of the service. The services may include, but are not limited to, troubleshooting services for abnormal virtual machine startup, troubleshooting services for switch disconnection, troubleshooting services for log function of security gateway device, troubleshooting services for firewall link aggregation, and the like. Taking the troubleshooting service of abnormal virtual machine start as an example for explanation, the execution of the troubleshooting service of abnormal virtual machine start is specifically as follows.
When the virtual machine is abnormally started, an IT (Internet Technology) service management system sends out alarm information. When the user uses the virtual machine, the user finds that the virtual machine cannot be used, and then views the alarm information in an iMC (Intelligent Management Center). And after clicking a distribution button in the viewed alarm information details, popping up a fault information filling interface by the user. After the user fills the corresponding fault description information in the fault information filling interface, an alarm fault processing flow is started, and the fault description information is transmitted to operation and maintenance personnel. And the operation and maintenance personnel search related alarm fault processing documents from the knowledge/problem library according to the fault description information in the alarm fault processing flow. And if the related alarm fault processing document is found, the operation and maintenance personnel generate a repair scheme according to the found alarm fault processing document. Otherwise, the operation and maintenance personnel try to design the repair solution. And the operation and maintenance personnel transmit the repair scheme to superior personnel for auditing. After the upper level personnel replies to the agreement, the operation and maintenance personnel start to execute the repair scheme.
The operation and maintenance personnel can execute the repair scheme on site or remotely, and the specific steps are as follows: according to the repair scheme, the virtual machine configuration is checked manually, and a command is entered manually to change the settings. And after the repair is finished, the user confirms and closes the alarm fault processing flow. And then, the operation and maintenance personnel sort the designed repair scheme into a document and store the document into a knowledge/problem library.
The processing flow of the troubleshooting service for the abnormal starting of the virtual machine seems simple, but a great deal of manpower, material resources and time are consumed, so that the execution efficiency of the troubleshooting service for the abnormal starting of the virtual machine is low.
In order to solve the above problem, an embodiment of the present application provides a business process control method, which may be applied to any electronic device that executes a business, such as an IT service management system. For ease of understanding, the following description will be made with respect to an electronic device as an implementation subject, and is not intended to be limiting.
Referring to fig. 1, fig. 1 is a schematic flow chart of a business process control method provided in an embodiment of the present application, where the method includes the following steps.
And step S11, when the execution message of the service is monitored, starting a case associated with the service, and taking a root task in the case as a target task. The case comprises an execution sequence of each task of the business and an execution condition of each task, and the case comprises at least one root task which is a task without a superior task.
In the embodiment of the application, the electronic device can execute various services. For each service, the electronic device arranges the processing flow of the service to obtain a case associated with the service. The case of business association can be understood as the orchestration flow model of the business. The arrangement flow model comprises a plurality of nodes, each node indicates a task, and the plurality of nodes establish connection according to the sequence of execution of the corresponding tasks.
The electronic device listens for each service. When monitoring the execution message of a service, the electronic equipment starts a service-associated case and takes a root task in the case as a target task.
And step S12, executing the target task to obtain the execution result of the target task.
And the electronic equipment determines the target task when starting the business-related case, and executes the target task to obtain an execution result of the target task. The execution result of the target task may indicate that the service continues to be executed, i.e., the execution result of the target task indicates that the service is not completed. The execution result of the target task may also indicate that the service is finished, i.e. the execution result of the target task indicates that the service is finished.
In the embodiment of the present application, a case includes at least one root task, that is, a case may include one or more root tasks. Therefore, the target task can be one or more tasks, and when the target tasks are multiple, the electronic device can simultaneously execute the multiple target tasks, so that the execution efficiency of the service is improved.
Step S13, if the execution result of the target task indicates that the service continues to be executed, selecting a task having the execution result of the target task as the execution condition from the next-level tasks of the target task in the case, and returning to execute step S12.
And step S14, if the execution result of the target task indicates that the service is finished, terminating the case.
In this embodiment of the application, if the execution result of the target task indicates that the service is continuously executed, the electronic device determines that the service is not completed, selects a task that uses the execution result of the target task as an execution condition from the next-stage tasks of the target task in the case, updates the selected task to the target task, returns to the execution step S12, and continuously executes the target task until the execution result of the target task indicates that the service is ended.
And if the execution result of the target task indicates that the service is finished, the electronic equipment determines that the service is finished and terminates the case.
In the technical solution provided by the embodiment of the present application, the case includes an execution sequence of each task and an execution condition of each task, and the case includes at least one root task. After the electronic device starts the case, the plurality of tasks included in the service may be executed according to the execution sequence of each task and the execution condition of each task included in the case, so as to complete the execution of the service. The manual participation is reduced in the process, and the execution efficiency of the service is improved. In addition, the case can comprise a plurality of root tasks, and the plurality of tasks can be executed in parallel, so that the execution efficiency of the service is further improved. In addition, corresponding business can be completed only by starting one case in the embodiment of the application, and compared with a scheme that one case is started by one root task, and a plurality of cases are started by a plurality of root tasks, the complexity of business processing is reduced.
In the embodiment of the application, in order to reduce the complexity of case starting and support the service of the flow which is unpredictable and has dense knowledge and a weak structure, the embodiment of the application can generate the service-related case based on the CMMN standard. Specifically, a knowledge document is stored in the electronic device, and the knowledge document includes an execution sequence of each task of the service and an execution condition of each task; the electronic equipment acquires a knowledge document; and arranging the knowledge document based on the CMMN standard to obtain a service-associated case.
In the related art, a service-related case is generated based on a BPMN (Business Process Modeling notification) standard. For a case generated based on the BPMN standard, one case is started, only one task can be executed at the same time, and when a plurality of tasks need to be executed simultaneously, a plurality of cases need to be started simultaneously.
In the embodiment of the application, the business-related case is generated based on the CMMN standard, and one case generated based on the CMMN standard is started, so that a plurality of tasks can be executed simultaneously. Therefore, when a plurality of tasks need to be executed simultaneously, only one case needs to be started. This greatly reduces the complexity of the traffic handling.
In the embodiment of the application, in order to generate the case, the case designer can be generated in advance based on the CMMN standard. The electronic equipment inputs the knowledge document into the case designer to obtain the case associated with the service.
In an embodiment of the application, if the target task is a bottommost task, that is, the target task does not have a next-level task, and in addition, the execution result of the target task indicates that the service is continuously executed, the electronic device determines that the service is not completed, but the current case cannot complete the task, and outputs the execution result of the target task, so that a user can design a complete case in time to complete the task.
There are various ways in which the electronic device outputs the execution result of the target task. For example, a prompt box is displayed in a screen of the electronic device, and the prompt box comprises an execution result of the target task; or the electronic equipment dials a preset manual service hotline telephone to inform related personnel of the execution result of the target task; or the electronic equipment sends prompt information comprising the execution result of the target task to a preset terminal; or the electronic equipment sends the mail comprising the execution result of the target task to a preset address. This is not limitative.
In one embodiment of the present application, the case service layer of the electronic device is based on a CMMN engine, and the CMMN engine is provided with an execution interface, an inquiry interface, a deployment interface, and a deletion interface, as shown in fig. 2.
The electronic equipment calls a deployment interface of the CMMN engine and stores the case into a database; calling an inquiry interface of the CMMN engine to inquire the cases in a database; calling a deletion interface of a CMMN engine to delete the cases in the database; calling an execution interface of the CMMN engine to start a case of service association in the database.
In the embodiment of the application, the formats of the cases can be unified for the convenience of inquiring, starting, deploying and deleting the cases. For example, the case is saved as an XML file.
The following description takes the troubleshooting service of abnormal virtual machine start, the document generation case is arranged according to the CMMN standard, the fault alarm monitoring system monitors the start of the virtual machine, and the execution case of the IT service management system as an example. The execution sequence of each task of the troubleshooting service for the abnormal virtual machine start, that is, the flow of the troubleshooting service for the abnormal virtual machine start, is shown in fig. 3. Based on the flow of the troubleshooting service with abnormal virtual machine starting, operation and maintenance personnel compile a knowledge document comprising the execution sequence and the execution conditions of each task of the troubleshooting service with abnormal virtual machine starting, and store the knowledge document in an IT service management knowledge base.
The user acquires the knowledge document from the IT service management knowledge base, and then in the case designer, according to the execution sequence and the execution conditions of each task of the troubleshooting service for the virtual machine abnormal start-up included in the knowledge document, and according to the CMMN standard, a case associated with the troubleshooting service for the virtual machine abnormal start-up is generated, as shown in fig. 4. In fig. 4, a rectangular frame without a "-" symbol at the bottom represents one task, wherein three tasks of "virtual machine start", "view virtual machine USB device configuration", and "start success" are root tasks; the circular circle represents a "launch-successful" task that executes in a loop, as shown in FIG. 5, and corresponds to a listener. The rectangular box with the bottom including the "-" symbol represents a stage. A phase can be considered a "phase" in a case and has many task groups placed in it. A stage is a container of tasks from which a plan of cases is constructed and can be further developed. A stage may also be considered an "episode" of a case, and may also be considered a sub-case. Multiple phase tasks may run in parallel. The diamond represents the execution condition of the task or phase represented by the rectangular box with the overlapping part with the diamond, namely the diamond represents the entry standard of the task or phase represented by the rectangular box with the overlapping part with the diamond.
In the case designer, the user can configure the attributes of the task, as shown in fig. 6, the user performs rule configuration on the "virtual machine start" task for screening messages and case guidance. And after obtaining the case associated with the troubleshooting service with abnormal starting of the virtual machine, the user saves the case into an XML file. And then, the user calls a deployment interface of the CMMN engine to store the case into the database.
The above process of generating the case may also be automatically performed by the device, which is not particularly limited.
And the fault alarm monitoring system monitors the starting of the virtual machine in real time. And when the virtual machine is abnormally started, sending the abnormal starting message of the virtual machine to the IT service management system. The IT service management system monitors a virtual machine starting abnormal message, namely monitors an execution message of a troubleshooting service with abnormal virtual machine starting, calls an execution interface of a CMMN engine, starts a case associated with the troubleshooting service with abnormal virtual machine starting, and takes a root task in the case as a target task, namely three tasks of 'virtual machine starting', 'virtual machine USB equipment configuration checking' and 'successful starting' as target tasks. At this time, three tasks of "virtual machine start", "view virtual machine USB device configuration", and "start success" become active states. After the tasks of 'virtual machine starting' and 'checking the virtual machine USB equipment configuration' become active states, the IT service management system analyzes the abnormal message of virtual machine starting and then executes the subsequent troubleshooting task. After the 'start success' task is changed into an active state, the IT service management system continuously monitors the virtual machine start success message, and when the virtual machine start success message is monitored, namely the virtual machine is started successfully and can enter the operating system, the case is terminated.
When the virtual machine starting is changed into an active state, the IT service management system executes a virtual machine starting task, namely analyzing the received virtual machine starting abnormal message and determining the specific situation of the virtual machine starting abnormal. If the specific condition of abnormal starting of the virtual machine is that the virtual machine cannot be started, the IT service management system enters a stage of virtual machine guiding equipment configuration and executes tasks included in the stage of virtual machine guiding equipment configuration; if the specific condition of the abnormal starting of the virtual machine is that the virtual machine cannot enter the operating system after being successfully started, the IT service management system enters a host machine hardware auxiliary virtualization stage and executes tasks included in the host machine hardware auxiliary virtualization stage.
When entering the stage of virtual machine guiding equipment configuration, a task of checking virtual machine guiding equipment configuration is triggered, and then subsequent tasks at the stage are sequentially executed. When the IT service management system executes a task of checking the virtual machine guiding equipment, inquiring whether the disk guiding priority of the virtual machine installation system is the highest; if the disk boot priority is the highest, executing a task of checking the disk type of the virtual machine; and if the disk boot priority is not the highest, setting the disk boot priority of the installation system to be the highest, and restarting the virtual machine. If the restart is successful, the IT service management system executes a 'start success' task, and if a virtual machine start success message is monitored, the case is terminated; and if the successful starting message of the virtual machine is not monitored, executing a task of checking the disk type of the virtual machine.
When executing a task of checking the disk type of the virtual machine, the IT service management System checks whether the disk of the virtual machine is a SCSI (Small Computer System Interface) disk or a virtio disk so as to determine whether a corresponding drive is installed in an operating System; if the disk of the virtual machine is the SCSI disk or the virtio disk, executing a task of 'whether the virtual machine is the P2V/V2V migration to the CAS platform'; and if the virtual machine disk is not the SCSI disk and not the virtio disk, resetting the virtual machine disk and restarting the virtual machine. If the restart is successful, the IT service management system executes a 'successful start' task, and if a successful start message of the virtual machine is monitored, the case is terminated; if the successful message of the virtual machine startup is not monitored, the task of 'whether the virtual machine is P2V/V2V (physical to virtual/virtual to virtual) migrating to the CAS (Central Authentication Service) platform' is executed.
When the IT service management system executes the task of 'whether the virtual machine is migrated to the CAS platform from P2V/V2V', the IT service management system checks whether the virtual machine is migrated from P2V/V2V to the CAS platform; if the file is migrated from the P2V/V2V to the CAS platform, executing a task of judging whether the windows virtual machine reports an error of 0x 0000007B; if migration from P2V/V2V to the CAS platform is not possible, i.e., the virtual machine was created by the CAS platform, then the "Dial hotline, Manual service" phase is entered.
The IT service management system captures a virtual machine starting exception message of '0 x0000007B (blue screen code)' when executing a task of 'whether a windows virtual machine reports an error of 0x 0000007B'; if "0 x 0000007B" is captured, the "source physical machine/virtual machine type registry" task is executed; if "0 x 0000007B" was not captured, then the "whether the virtual machine before the V2V migration has been deleted" task is executed.
When executing a task of 'inputting a registry into a source physical machine/virtual machine', the IT service management system runs a merge.reg registry, and checks whether four files, namely atapi.sys, intelin.sys, pci.sys and pci.sys, exist in a windows \ system32\ drivers \ directory of an operating system partition; if four files, namely atapi.sys, intelide.sys, pci.sys and pci.sys exist, executing a task of judging whether the V2V virtual machine is deleted before migration; if the four files atapi.sys, intelide.sys, pci.sys and pci ex.sys do not exist, the four files are re-registered and the virtual machine is restarted. If the restart is successful, the IT service management system executes a 'successful start' task, and if a successful start message of the virtual machine is monitored, the case is terminated; if the successful message of the virtual machine starting is not monitored, a task of 'whether the virtual machine is deleted before the virtual machine migration is executed according to V2V'.
When the IT service management system executes a task of 'whether the virtual machine before the migration of the V2V is deleted', checking whether the response tools before the migration of the virtual machine of the V2V are deleted; if the responded tools are deleted, entering a hot line dialing and manual service stage; if the responses ' tools are not deleted, a ' delete source virtual machine tools ' task is executed.
When executing a task of deleting the tools of the source virtual machine, the IT service management system deletes the tools of the source virtual machine platform and restarts the virtual machine. If the restart is successful, the IT service management system executes a 'successful start' task, and if a successful start message of the virtual machine is monitored, the case is terminated; if the successful message of the virtual machine starting is not monitored, entering a stage of dialing a hotline and manually serving.
Entering a 'host hardware auxiliary virtualization' stage, triggering a 'checking whether the host starts hardware auxiliary virtualization' task, and then sequentially executing subsequent tasks at the stage. When executing the task of checking whether the host computer starts the hardware auxiliary virtualization, the IT service management system checks whether the host computer starts the hardware auxiliary virtualization function, and then executes the task of starting the hardware auxiliary virtualization function of the host computer.
When the IT service management system executes a task of starting a host hardware auxiliary virtualization function, if the virtualization function is started, executing a task of checking the memory of a host and the utilization rate of CPU resources; and if the virtualization function is not started, starting the hardware auxiliary virtualization function and restarting the virtual machine. If the restart is successful, the IT service management system executes a 'successful start' task, and if a successful start message of the virtual machine is monitored, the case is terminated; and if the successful starting message of the virtual machine is not monitored, executing a task of checking the memory of the host machine and the utilization rate of the CPU resource.
The IT service management system checks the real-time memory and the CPU utilization rate of the host machine when executing the task of checking the memory and the CPU resource utilization rate of the host machine; if the residual memory and the CPU resource of the host machine are smaller than the memory and the CPU configuration of the virtual machine to be started, the virtual machine cannot be started normally due to insufficient resources, and at the moment, an artificial task is required to be called to close or migrate the virtual machine which is not required to be used temporarily; and if the residual memory and the CPU resource of the host are more than or equal to the configuration of the memory and the CPU of the virtual machine to be started, executing a task of checking whether the disk file of the virtual machine exists.
Before executing a task of checking whether a disk file of a virtual machine exists, an IT service management system checks an execution result returned after the task of checking the memory of a host machine and the utilization rate of CPU resources and the task of checking the USB (Universal Serial Bus) equipment configuration of the virtual machine outside a stage are finished, and executes the task of checking whether the disk file of the virtual machine exists after the execution results of the two tasks are simultaneously met.
When the IT service management system executes a task of checking whether a disk file of a virtual machine exists, checking whether a virtual disk file and a basic image file of the virtual machine exist or not; and if the virtual disk file and the basic image file do not exist, entering a hot line dialing and manual service stage.
When a case associated with the abnormal troubleshooting service of the virtual machine starting is started, the IT service management system synchronously executes a task of checking the USB equipment configuration of the virtual machine. When the IT service management system executes a task of checking the configuration of the USB equipment of the virtual machine, checking whether the USB equipment on the virtual machine is inserted into a corresponding host USB slot or not; if the host machine is provided with the USB device, executing a task of checking the configuration of the optical drive of the virtual machine; and if the host computer does not insert the USB equipment, deleting the USB equipment on the virtual machine and restarting the virtual machine. If the restart is successful, the IT service management system executes a 'successful start' task, and if a successful start message of the virtual machine is monitored, the case is terminated; and if the successful starting message of the virtual machine is not monitored, waiting for the execution of the task of checking whether the disk file of the virtual machine exists or not.
When executing a task of checking the optical drive configuration of a virtual machine, an IT service management system checks an optical drive source path and determines whether an optical drive exists in a host machine; if the host machine is determined to have the CD driver, executing a task of checking the floppy drive configuration of the virtual machine; and if the host machine is determined to have no optical drive, resetting an optical drive source path and restarting the virtual machine. If the restart is successful, the IT service management system executes a 'successful start' task, and if a successful start message of the virtual machine is monitored, the case is terminated; and if the successful starting message of the virtual machine is not monitored, executing a task of checking the floppy drive configuration of the virtual machine.
When executing a task of checking the configuration of the virtual machine floppy drive, the IT service management system checks whether the suffix name of the floppy drive file is a preset file name (for example,. vfd); if yes, vfd, entering a hot line dialing and manual service stage; if not ". vfd", the spare vfd file stored in disk is called for replacement and the virtual machine is restarted. If the restart is successful, the IT service management system executes a 'successful start' task, and if a successful start message of the virtual machine is monitored, the case is terminated; if the successful message of the virtual machine starting is not monitored, entering a stage of dialing a hotline and manually serving.
And when the virtual machine is not started successfully after the tasks of the 'virtual machine guide equipment configuration' stage, the 'host machine hardware auxiliary virtualization' stage and the 'virtual machine floppy drive configuration checking' are completed, entering a 'hot line dialing and manual service' stage. When entering a 'dialing hotline and manual service' stage, the IT service management system collects the execution results (namely starting abnormal information) of the previous stage and the task after execution, starts a 'dialing hotline and manual service' process task and seeks manual help.
After the "manual service" task is executed, the "hot line is dialed, the manual service" stage is also completed, the "manual service" task is the bottommost task, that is, the "manual service" task does not have the next stage task, and meets the case exit standard (for example, in fig. 4, the black solid diamond on the outermost frame represents the exit standard), and the case is terminated through the exit standard.
In the embodiment of the application, the case is stored in the database, and when the troubleshooting service of the abnormal starting of the virtual machine needs to be executed when the abnormal starting of the virtual machine is encountered, the electronic equipment directly starts the case and automatically inspects the reason of the abnormal starting of the virtual machine. Operation and maintenance personnel can wait for the troubleshooting result, so that the labor cost is saved, and the execution efficiency of the service is improved.
In addition, in the embodiment of the application, only one case needs to be started, and three tasks of 'virtual machine starting', 'virtual machine USB device configuration checking' and 'successful starting' can be executed at the same time. Three cases do not need to be started, and the virtual machine starting, the virtual machine USB equipment configuration checking and the successful starting are respectively executed, so that the complexity of service processing is reduced.
Corresponding to the embodiment of the business process control method, the embodiment of the application also provides a business process control device. Referring to fig. 7, fig. 7 is a schematic structural diagram of a business process control apparatus provided in an embodiment of the present application, where the apparatus includes:
the starting unit 71 is configured to start a service-related case when monitoring an execution message of a service, and use a root task in the case as a target task, where the case includes an execution order of each task of the service and an execution condition of each task, the case includes at least one root task, and the root task is a task without a previous task;
the execution unit 72 is configured to execute the target task to obtain an execution result of the target task; if the execution result of the target task indicates that the business continues to be executed, selecting a task with the execution result of the target task as an execution condition from the next-level task of the target task in the case, taking the task as the target task, and returning to the step of executing the target task; and if the execution result of the target task indicates that the service is finished, terminating the case.
In one embodiment, the business process control apparatus may further include:
an acquisition unit configured to acquire a knowledge document including an execution order and an execution condition;
and the arranging unit is used for arranging the knowledge document based on the CMMN standard to obtain a business-related case.
In one embodiment, the business process control apparatus may further include:
and the output unit is used for outputting the execution result of the target task if the target task is the task at the bottom layer and the execution result of the target task indicates that the service continues to be executed.
In an embodiment, the starting unit 71 may specifically be configured to:
and calling an execution interface of the CMMN engine to start the case of service association.
In one embodiment, the CMMN engine may further comprise a query interface, a deployment interface, and a delete interface; the starting unit 71 may be specifically configured to: calling an inquiry interface of a CMMN engine to inquire cases in a database; calling a deployment interface of a CMMN engine, and storing the case into the database; and calling a deletion interface of the CMMN engine to delete the cases in the database.
In the technical solution provided by the embodiment of the present application, the case includes an execution sequence of each task and an execution condition of each task, and the case includes at least one root task. After the electronic device starts the case, the plurality of tasks included in the service may be executed according to the execution sequence of each task and the execution condition of each task included in the case, so as to complete the execution of the service. The process can not be participated manually, and the execution efficiency of the service is improved. In addition, the case can comprise a plurality of root tasks, and the plurality of tasks can be executed in parallel, so that the execution efficiency of the service is further improved. In addition, corresponding business can be completed only by starting one case in the embodiment of the application, and compared with a scheme that one case is started by one root task, and a plurality of cases are started by a plurality of root tasks, the complexity of business processing is reduced.
Corresponding to the above-mentioned business process control method embodiment, an embodiment of the present application further provides an electronic device, as shown in fig. 8, including a processor 81 and a machine-readable storage medium 82, where the machine-readable storage medium 82 stores machine-executable instructions that can be executed by the processor 81. Processor 81 is caused by machine executable instructions to implement any of the steps shown in fig. 1-6 above.
Corresponding to the above embodiment of the business process control method, an embodiment of the present application further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions that can be executed by a processor. The processor is caused by machine executable instructions to implement any of the steps shown in fig. 1-6 above.
The machine-readable storage medium may include a RAM (Random Access Memory) and a NVM (Non-Volatile Memory), such as at least one disk Memory. Additionally, the machine-readable storage medium may be at least one memory device located remotely from the aforementioned processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also DSPs (Digital Signal Processing), ASICs (Application Specific Integrated circuits), FPGAs (Field Programmable Gate arrays) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments based on the business process control apparatus, the electronic device, and the machine-readable storage medium, since they are substantially similar to the business process control method embodiment, the description is relatively simple, and for relevant points, reference may be made to part of the description of the business process control method embodiment.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. A method for controlling a business process, the method comprising:
when monitoring an execution message of a service, starting a case associated with the service, and taking a root task in the case as a target task, wherein the case comprises an execution sequence of each task of the service and an execution condition of each task, the case comprises at least one root task, and the root task is a task without a previous-stage task;
executing the target task to obtain an execution result of the target task;
if the execution result of the target task indicates that the business continues to be executed, selecting a task with the execution result of the target task as an execution condition from the next-level task of the target task in the case as a target task, and returning to the step of executing the target task;
and if the execution result of the target task indicates that the service is finished, terminating the case.
2. The method of claim 1, further comprising:
acquiring a knowledge document comprising the execution sequence and the execution condition;
and arranging the knowledge document based on a case management model and a representation CMMN standard to obtain the case associated with the service.
3. The method of claim 1, further comprising:
and if the target task does not have the next-level task, terminating the case.
4. The method of claim 1, wherein the step of initiating the case of service association comprises:
and calling an execution interface of the CMMN engine to start the service associated case.
5. The method of claim 4, wherein the CMMN engine further comprises a query interface, a deploy interface, and a delete interface; the method further comprises the following steps:
calling an inquiry interface of the CMMN engine to inquire the case in a database;
calling a deployment interface of the CMMN engine, and storing the case into the database;
and calling a deletion interface of the CMMN engine to delete the case in the database.
6. An apparatus for controlling a business process, the apparatus comprising:
the system comprises a starting unit, a processing unit and a processing unit, wherein the starting unit is used for starting a case associated with a service when monitoring an execution message of the service, and taking a root task in the case as a target task, the case comprises an execution sequence of each task of the service and an execution condition of each task, the case comprises at least one root task, and the root task is a task without a previous-stage task;
the execution unit is used for executing the target task to obtain an execution result of the target task; if the execution result of the target task indicates that the business continues to be executed, selecting a task with the execution result of the target task as an execution condition from the next-level task of the target task in the case as a target task, and returning to the step of executing the target task; and if the execution result of the target task indicates that the service is finished, terminating the case.
7. The apparatus of claim 6, further comprising:
an acquisition unit configured to acquire a knowledge document including the execution order and the execution condition;
and the arranging unit is used for arranging the knowledge document based on a case management model and a representation CMMN standard to obtain the case associated with the service.
8. The apparatus of claim 6, wherein the execution unit is further configured to terminate the case if the target task does not have a next level task.
9. The apparatus according to claim 6, wherein the activation unit is specifically configured to:
and calling an execution interface of the CMMN engine to start the service associated case.
10. The apparatus of claim 9, wherein the CMMN engine further comprises a query interface, a deploy interface, and a delete interface; the starting unit is specifically configured to: calling an inquiry interface of the CMMN engine to inquire the case in a database; calling a deployment interface of the CMMN engine, and storing the case into the database; and calling a deletion interface of the CMMN engine to delete the case in the database.
11. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 5.
12. A machine-readable storage medium having stored thereon machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 5.
CN202011149216.6A 2020-10-23 2020-10-23 Business process control method and device Active CN112148463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011149216.6A CN112148463B (en) 2020-10-23 2020-10-23 Business process control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011149216.6A CN112148463B (en) 2020-10-23 2020-10-23 Business process control method and device

Publications (2)

Publication Number Publication Date
CN112148463A true CN112148463A (en) 2020-12-29
CN112148463B CN112148463B (en) 2023-07-21

Family

ID=73954871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011149216.6A Active CN112148463B (en) 2020-10-23 2020-10-23 Business process control method and device

Country Status (1)

Country Link
CN (1) CN112148463B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562556A (en) * 2017-08-14 2018-01-09 腾讯科技(深圳)有限公司 Restoration methods, recovery device and the storage medium of failure
CN108183814A (en) * 2017-12-08 2018-06-19 囯网河北省电力有限公司电力科学研究院 The malfunction elimination method and apparatus of the communication channel of power information acquisition system
CN109213773A (en) * 2017-07-06 2019-01-15 阿里巴巴集团控股有限公司 A kind of diagnostic method, device and the electronic equipment of online failure
CN109787817A (en) * 2018-12-28 2019-05-21 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Network fault diagnosis method, device and computer readable storage medium
CN110231985A (en) * 2019-06-17 2019-09-13 三角兽(北京)科技有限公司 Operation flow data processing method, device, electronic equipment and storage medium
CN111367703A (en) * 2020-03-18 2020-07-03 北京奇艺世纪科技有限公司 Troubleshooting method and device
CN111680868A (en) * 2020-04-29 2020-09-18 杭州传化智能制造科技有限公司 Medicine process flow method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213773A (en) * 2017-07-06 2019-01-15 阿里巴巴集团控股有限公司 A kind of diagnostic method, device and the electronic equipment of online failure
CN107562556A (en) * 2017-08-14 2018-01-09 腾讯科技(深圳)有限公司 Restoration methods, recovery device and the storage medium of failure
CN108183814A (en) * 2017-12-08 2018-06-19 囯网河北省电力有限公司电力科学研究院 The malfunction elimination method and apparatus of the communication channel of power information acquisition system
CN109787817A (en) * 2018-12-28 2019-05-21 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Network fault diagnosis method, device and computer readable storage medium
CN110231985A (en) * 2019-06-17 2019-09-13 三角兽(北京)科技有限公司 Operation flow data processing method, device, electronic equipment and storage medium
CN111367703A (en) * 2020-03-18 2020-07-03 北京奇艺世纪科技有限公司 Troubleshooting method and device
CN111680868A (en) * 2020-04-29 2020-09-18 杭州传化智能制造科技有限公司 Medicine process flow method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112148463B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN109445869B (en) Cross-cloud-adaptive micro-service management method and device and storage medium
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
CN112506617B (en) Mirror image updating method and device for side car containers in Kubernetes cluster
WO2021072861A1 (en) Application service processing method and apparatus, and terminal and storage medium
CN110138577B (en) Cluster creation method, first server and readable storage medium
CN112860282B (en) Cluster plug-in upgrading method, device and server
CN110750415B (en) Interface service configuration method, device, medium and computer equipment
CN110865840B (en) Application management method, device, server and storage medium
WO2020232887A1 (en) Configuration modification method and apparatus for container application, and computer device and storage medium
CN104346279A (en) Method and device for software testing
CN110764894A (en) Timed task management method, device, equipment and storage medium
CN111679888A (en) Deployment method and device of agent container
CN111026581A (en) Application program repairing method, device, system, storage medium and electronic device
CN114168179A (en) Micro-service management method, device, computer equipment and storage medium
KR102118487B1 (en) Automatic quality inspection system and method of container based application for ci/cd
CN111488163B (en) Firmware updating method and device, electronic equipment and storage medium
CN113254014A (en) Sketch plug-in-based interface development method, device and system
CN110620695A (en) Data processing method and related equipment
CN111131131B (en) Vulnerability scanning method and device, server and readable storage medium
CN112148463B (en) Business process control method and device
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN115981670A (en) Container cluster service deployment method, device, server and storage medium
CN115390861A (en) Resource deployment method, device and equipment and storage medium
CN114296823A (en) Information processing method and device for decoupling between service modules

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