Pre-emptive handling method and apparatus

By generating and exporting contingency plan files, arrangement files, and measure example files, the problem of the inability to share contingency plan information between different systems has been solved, improving the efficiency of contingency plan arrangement and the reusability of files.

CN116303272BActive Publication Date: 2026-08-04QI-ANXIN LEGENDSEC INFORMATION TECH (BEIJING) INC +1
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QI-ANXIN LEGENDSEC INFORMATION TECH (BEIJING) INC
Filing Date
2022-09-09
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

In existing technologies, the contingency plan information, process arrangement information, and measure examples generated by different systems cannot be shared, resulting in low efficiency in contingency plan arrangement and problems of repetitive operations.

Method used

By obtaining the export instructions for the target plan, plan files, arrangement files, and measure example files are generated and exported to ensure that other systems can use them directly and avoid duplicate arrangement.

Benefits of technology

It improved the efficiency of contingency plan preparation, enabling the sharing and reuse of contingency plan documents, preparation documents, and measure example documents, and reducing repetitive operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116303272B_ABST
    Figure CN116303272B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a kind of preplan processing method and device, it is related to data processing technical field, wherein method includes: obtaining the export instruction of target preplan;In response to the export instruction, the target preplan information of the target preplan is acquired, the target process arrangement information of the target preplan is acquired, and the target measure instance set of the target preplan is acquired;At least one target measure instance is included in the target measure instance set;Preplan file is generated based on the target preplan information, arrangement file is generated based on the target process arrangement information, and measure instance file is generated based on the target measure instance set;The preplan file, the arrangement file and the measure instance file are exported.The preplan file, the arrangement file and the measure instance file are conveniently shared by other electronic devices, without repeating preplan arrangement, so as to improve the efficiency of preplan arrangement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method and apparatus for pre-processing plans. Background Technology

[0002] Currently, there are a large number of process-based business operations, such as notification and handling, major event security, and emergency response to sudden incidents. In order to facilitate the supervision of process-based business operations by relevant personnel, it is usually necessary to generate contingency plan arrangement information based on the resource information and measures taken in each process stage of the process-based business operation in the built system.

[0003] In related technologies, each system generates its own contingency plan information, process arrangement information, and measure examples. The systems do not share the generated contingency plan information, process arrangement information, and measure examples, resulting in repetitive contingency plan arrangement operations and thus reducing the efficiency of contingency plan arrangement. Summary of the Invention

[0004] To address the problems in the prior art, embodiments of the present invention provide a contingency plan processing method and apparatus.

[0005] Specifically, the embodiments of the present invention provide the following technical solutions:

[0006] In a first aspect, embodiments of the present invention provide a pre-plan processing method, including:

[0007] Obtain the export command for the target contingency plan;

[0008] In response to the export instruction, the target plan information of the target plan is obtained, the target process arrangement information of the target plan is obtained, and the target measure instance set of the target plan is obtained; the target measure instance set includes at least one target measure instance;

[0009] A contingency plan document is generated based on the target contingency plan information; a scheduling document is generated based on the target process scheduling information; and a measure instance document is generated based on the target measure instance set.

[0010] Export the contingency plan file, the arrangement file, and the example file of the measures.

[0011] Further, obtaining the target plan information of the target plan includes:

[0012] Obtain the identifier of the target plan associated with the export instruction;

[0013] Based on the correspondence between the target contingency plan identifier, the contingency plan identifiers stored in the contingency plan management module, and the contingency plan information, the target contingency plan information is determined; the target contingency plan information includes the identifier of the process arrangement.

[0014] The acquisition of the target process arrangement information of the target plan includes:

[0015] Based on the process orchestration identifier, the process orchestration identifier stored in the orchestration management module, the correspondence between process nodes and process information, each process node of the target plan and the process information corresponding to each process node are determined; the process information includes at least one stage information, and each stage information includes the identifier of the measure instance set and the association relationship between each measure instance in the measure instance set;

[0016] The target process arrangement information is determined based on each process node and the process information corresponding to each process node;

[0017] The set of target measure instances obtained from the target contingency plan includes:

[0018] For each of the measure instance sets, based on the identifier of the measure instance set, the correspondence between the identifier of the measure instance set and the identifiers of the measure instance sets stored in the resource management module and the measure instance sets, the measure instance set corresponding to the identifier of the measure instance set is determined;

[0019] The set of measure instances corresponding to the identifier of each set of measure instances is determined as the target set of measure instances.

[0020] Furthermore, the method also includes:

[0021] When the contingency plan information is obtained based on the identifier of the target contingency plan and the correspondence between the identifier of the contingency plan and the contingency plan information stored in the contingency plan management module, the obtained contingency plan information is verified.

[0022] When it is determined that the obtained contingency plan information is the selected current version of the contingency plan information and is an executable contingency plan information, the obtained contingency plan information is determined as the target contingency plan information.

[0023] Further, determining the target process arrangement information based on each process node and the process information corresponding to each process node includes:

[0024] The process information corresponding to all the process nodes is integrated to obtain the underlying structure data;

[0025] The underlying structural data and all process nodes are aggregated to obtain the target process orchestration information.

[0026] Further, after determining the set of measure instances corresponding to the identifier of each set of measure instances as the target set of measure instances, the method further includes:

[0027] Obtain the identifier of the target measure corresponding to the identifier of each target measure instance in the target measure instance set;

[0028] Based on the identifier of each target measure, the identifiers of measures stored in the resource management module, the correspondence between measure tags and measures, the target measure and measure tag corresponding to the identifier of each target measure are determined;

[0029] The generation of measure instance files based on the set of target measure instances includes:

[0030] Based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, the measure instance file is generated.

[0031] Further, generating the measure instance file based on the set of target measure instances, the target measure corresponding to the identifier of each target measure, and the measure tag includes:

[0032] When the type of the target measure is determined to be an Application Programming Interface (API) type, obtain the API configuration information;

[0033] The measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure.

[0034] Furthermore, when determining that the type of the target measure is an API type, obtaining API configuration information includes:

[0035] When the type of the target measure is a first API type, the API configuration information is obtained from the target measure; the first API type is a measure type for which API configuration information is pre-configured in the resource management module.

[0036] When the type of the target measure is the second API type, the API configuration information is obtained in the implementation of the target measure; the implementation of the target measure is obtained by configuring the API of the target measure instance corresponding to the target measure; the second API type is the measure type in which API configuration information is configured in the measure instance corresponding to the measure.

[0037] Furthermore, the export of the contingency plan file, the arrangement file, and the measure example file includes:

[0038] The contingency plan file, the arrangement file, and the measure example file are packaged together to obtain a packaged file; the packaging includes compression, or compression and encryption.

[0039] Export the packaged file.

[0040] Further, exporting the packaged file includes:

[0041] The packaged file is converted to a preset format file;

[0042] Export the file in the preset format.

[0043] Secondly, embodiments of the present invention also provide a contingency plan processing method, including:

[0044] Obtain the import command for the target contingency plan;

[0045] In response to the import command, the contingency plan file, the arrangement file, and the measure instance file of the target contingency plan are imported; the contingency plan file is generated based on the target contingency plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set.

[0046] Furthermore, the import of the target contingency plan file, the target contingency plan arrangement file, and the target contingency plan measure example file includes:

[0047] Import the packaged file; the packaged file is a file obtained by packaging the contingency plan file, the arrangement file, and the measure example file.

[0048] The packaged file is parsed to obtain the contingency plan file, the arrangement file, and the measure example file;

[0049] The contingency plan file, the arrangement file, and the measure example file are associated and stored.

[0050] Furthermore, the imported packaged file includes:

[0051] Import a file in a preset format; the preset format file is a file obtained by converting the format of the packaged file.

[0052] The file in the preset format is parsed to obtain the packaged file.

[0053] Furthermore, the import of the target contingency plan file, the target contingency plan arrangement file, and the target contingency plan measure example file includes:

[0054] Import the example file of the measures in the target contingency plan;

[0055] Import the arrangement file of the target plan;

[0056] Replace the process arrangement identifier in the aforementioned plan document with a new process arrangement identifier;

[0057] Import the pre-designed file containing the new identifiers for the aforementioned process arrangement.

[0058] Furthermore, the measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure;

[0059] The example file of the measures to be imported into the target plan includes:

[0060] When it is determined that the original measure instance file of the target plan is currently stored, and the original measure instance file is different from the measure instance file, the object to be added is determined based on the measure instance file and the original measure instance file, and the object to be added is imported; the object to be added includes at least one of the following: the set of target measure instances, the target measure corresponding to the identifier of each target measure, the measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure;

[0061] If it is determined that the original measure instance file of the target plan is not currently stored, import the measure instance file of the target plan.

[0062] Furthermore, the target contingency plan information includes an identifier for the process arrangement, the target process arrangement information includes each process node and the process information corresponding to each process node, the process information includes at least one stage information, and each stage information includes an identifier for a set of measure instances and the association relationship between each measure instance in the set of measure instances;

[0063] The step of associating and storing the contingency plan file, the arrangement file, and the measure instance file includes:

[0064] The plan file and the arrangement file are associated and stored based on the identifier of the process arrangement;

[0065] The arrangement file and the measure instance file are associated and stored based on the identifier of the measure instance set.

[0066] Thirdly, embodiments of the present invention also provide a plan processing device, including:

[0067] The first acquisition unit is used to acquire the export instructions of the target plan;

[0068] The second acquisition unit is configured to, in response to the export instruction, acquire the target plan information of the target plan, acquire the target process arrangement information of the target plan, and acquire the target measure instance set of the target plan; the target measure instance set includes at least one target measure instance;

[0069] The generation unit is used to generate a plan document based on the target plan information, generate a scheduling document based on the target process scheduling information, and generate a measure instance document based on the target measure instance set;

[0070] The export unit is used to export the contingency plan file, the arrangement file, and the measure example file.

[0071] Fourthly, embodiments of the present invention also provide a plan processing apparatus, comprising:

[0072] The third acquisition unit is used to acquire the import instructions for the target plan;

[0073] The import unit is used to import the target plan's plan file, the target plan's arrangement file, and the target plan's measure instance file in response to the import instruction; the plan file is generated based on the target plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set.

[0074] Fifthly, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the pre-plan processing method as described in the first aspect, or to implement the pre-plan processing method as described in the second aspect.

[0075] In a sixth aspect, embodiments of the present invention also provide a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the pre-plan processing method as described in the first aspect, or implements the pre-plan processing method as described in the second aspect.

[0076] In a seventh aspect, embodiments of the present invention also provide a computer program product having executable instructions stored thereon, which, when executed by a processor, cause the processor to implement the steps of the pre-plan processing method as described in the first aspect, or to implement the pre-plan processing method as described in the second aspect.

[0077] The contingency plan processing method and apparatus provided in this invention, upon receiving an export instruction for a target contingency plan, generate a contingency plan file based on the target contingency plan information, generate a scheduling file based on the target flow scheduling information of the target contingency plan, and generate a measure instance file based on the target measure instance set of the target contingency plan. Finally, the generated contingency plan file, scheduling file, and measure instance file are exported, making it convenient for other electronic devices to share the contingency plan file, scheduling file, and measure instance file without having to repeat the contingency plan scheduling, thereby improving the efficiency of contingency plan scheduling. Attached Figure Description

[0078] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0079] Figure 1 This is one of the flowcharts illustrating the pre-plan processing method provided in the embodiments of the present invention;

[0080] Figure 2 This is a second schematic flowchart of the pre-plan processing method provided in the embodiments of the present invention;

[0081] Figure 3 This is the third flowchart of the pre-plan processing method provided in the embodiments of the present invention;

[0082] Figure 4 This is the fourth flowchart of the pre-plan processing method provided in the embodiments of the present invention;

[0083] Figure 5 This is the fifth flowchart of the pre-plan processing method provided in the embodiments of the present invention;

[0084] Figure 6 This is the sixth flowchart of the pre-plan processing method provided in the embodiments of the present invention;

[0085] Figure 7 This is the seventh flowchart of the pre-plan processing method provided in the embodiments of the present invention;

[0086] Figure 8 This is the eighth flowchart of the pre-plan processing method provided in the embodiments of the present invention;

[0087] Figure 9 This is one of the structural schematic diagrams of the pre-processing device provided in the embodiments of the present invention;

[0088] Figure 10 This is a second schematic diagram of the pre-plan processing device provided in the embodiments of the present invention;

[0089] Figure 11 This is a schematic diagram of the physical structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation

[0090] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0091] Figure 1 This is one of the flowcharts illustrating the pre-plan processing method provided in this embodiment of the invention, such as... Figure 1 As shown, applied to a first electronic device, the contingency plan processing method includes the following steps:

[0092] Step 101: Obtain the export instructions for the target plan.

[0093] The contingency plan refers to the entire process for completing a process-based task. Each process-based task may include multiple contingency plans or only one. When a process-based task includes multiple contingency plans, it means that the corresponding process-based task can be completed through different processes. When a process-based task includes only one contingency plan, it means that the corresponding process-based task can only be completed through one process. Process-based tasks include notification and handling, major event security, and emergency response to unforeseen events.

[0094] For example, when a user needs to import information related to a target plan from a first electronic device to a second electronic device, the user first needs to export the information related to the target plan from the first electronic device. The user then needs to click the export control of the target plan on the relevant interface of the first electronic device so that the first electronic device can obtain the export instruction of the target plan.

[0095] Step 102: In response to the export instruction, obtain the target plan information of the target plan, obtain the target process arrangement information of the target plan, and obtain the target measure instance set of the target plan.

[0096] The set of target measure instances includes at least one target measure instance.

[0097] For example, when the export instruction for the target plan is obtained, relevant information about the target plan is acquired. This information includes target plan information, target process arrangement information, and a set of target measure instances consisting of all target measure instances. Among them, the target plan information includes the plan name, plan type, reviewer, creation time, and process arrangement identifier of the target plan. The target process arrangement information includes each process node that makes up the target plan and the process information corresponding to each process node. The target measure instances are obtained by instantiating the measures adopted in the target plan. Multiple target measure instances are arranged and linked together to form a complete target plan process.

[0098] Step 103: Generate a contingency plan file based on the target contingency plan information, generate a scheduling file based on the target process scheduling information, and generate a measure instance file based on the target measure instance set.

[0099] For example, when obtaining the target plan information, target process arrangement information, and target measure instance set corresponding to the target plan, the target plan information is converted into JavaScript Object Notation (JSON) format to remove spaces and other information, reducing the number of bytes in the target plan information, and finally obtaining a plan file in JSON format; the target process arrangement information is converted into JSON format to remove spaces and other information, reducing the number of bytes in the target process arrangement information, and finally obtaining an arrangement file in JSON format; the target measure instance set is converted into JSON format to remove spaces and other information, reducing the number of bytes in the target measure instance set, and finally obtaining a measure instance file in JSON format.

[0100] Step 104: Export the contingency plan file, the arrangement file, and the measure example file.

[0101] For example, when the contingency plan document, arrangement document, and measure example document are obtained, they can be exported from the first electronic device. This enables the organization of information such as the target contingency plan information, target process arrangement information, and target measure example set in the first electronic device. When the second electronic device needs the target contingency plan information, target process arrangement information, and target measure example set, the generated contingency plan document, arrangement document, and measure example document can be directly imported into the second electronic device without the second electronic device needing to rearrange the target contingency plan.

[0102] The contingency plan processing method provided in this embodiment of the invention generates a contingency plan file based on the target contingency plan information, generates a scheduling file based on the target process scheduling information of the target contingency plan, and generates a measure instance file based on the target measure instance set of the target contingency plan when an export instruction for the target contingency plan is obtained. Finally, the generated contingency plan file, scheduling file, and measure instance file are exported, which makes it convenient for other electronic devices to share the contingency plan file, scheduling file, and measure instance file without repeating the contingency plan scheduling, thereby improving the efficiency of contingency plan scheduling. In addition, the exported contingency plan file, scheduling file, and measure instance file can be reused by multiple electronic devices, with high reusability.

[0103] In one embodiment, Figure 2 This is a second flowchart illustrating the pre-planning method provided in this embodiment of the invention, as shown below. Figure 2 As shown, obtaining the target plan information in step 102 above can be achieved through the following steps:

[0104] Step 1021: Obtain the identifier of the target plan associated with the export instruction, and determine the target plan information based on the correspondence between the identifier of the target plan, the identifier of the plan stored in the plan management module, and the plan information.

[0105] The target contingency plan information includes the identifier of the process arrangement.

[0106] For example, when an export instruction input by the user is obtained, based on the pre-stored correspondence between export controls and plan identifiers, the identifier of the target plan associated with the export instruction corresponding to the export control is obtained. Then, the plan information that matches the identifier of the target plan is searched in the pre-stored plan management module, and the plan information that matches the identifier of the target plan is determined as the target plan information.

[0107] In one embodiment, such as Figure 2 As shown, obtaining the target process arrangement information of the target plan in step 102 above can be achieved through the following steps:

[0108] Step 1022: Based on the process orchestration identifier, the process orchestration identifier stored in the orchestration management module, the correspondence between process nodes and process information, determine each process node of the target plan and the process information corresponding to each process node; based on each process node and the process information corresponding to each process node, determine the target process orchestration information.

[0109] The process information includes at least one stage information, and each stage information includes an identifier for a set of measure instances and the association between each measure instance in the set. Taking major event support as an example, when supporting a major event, the process information includes multiple stages, namely, preparation stage information, pre-battle stage information, actual combat stage information, decisive battle stage information, and summary stage information.

[0110] For example, when the target plan information is obtained, the process arrangement identifier is extracted from the target plan information. Then, the process node set and process information set that match the process arrangement identifier are searched in the pre-stored arrangement management module. The process node set includes at least one process node, and the process information set includes the process information corresponding to each process node. The target process arrangement information is determined based on at least one process node that matches the process arrangement identifier and the process information corresponding to each process node.

[0111] It should be noted that when the process information includes only one stage information, it means that the process node only includes the main process information; when the process information includes multiple stage information, it means that the process node has multiple stage steps, and each stage step corresponds to one stage information.

[0112] In one embodiment, such as Figure 2 As shown, obtaining the set of target measure instances of the target plan in step 102 above can be achieved through the following steps:

[0113] Step 1023: For each of the measure instance sets, based on the identifier of the measure instance set, the correspondence between the identifier of the measure instance set and the identifier of the measure instance set stored in the resource management module, determine the measure instance set corresponding to the identifier of the measure instance set; and determine the measure instance set corresponding to the identifier of each of the measure instance sets as the target measure instance set.

[0114] For example, when the target process arrangement information of the target plan is obtained, the identifiers of the measure instance sets corresponding to each stage information are extracted from the target process arrangement information. Then, for each measure instance set identifier, the resource management module searches for measure instance sets that match the identifier. Finally, the measure instance sets corresponding to each measure instance set identifier are integrated to obtain the target measure instance set of the target plan. Assume the target plan includes three stages: stage 1, stage 2, and stage 3. The identifier of the measure instance set corresponding to stage 1 is A, the identifier of the measure instance set corresponding to stage 2 is B, and the identifier of the measure instance set corresponding to stage 3 is C. Then, the resource management module searches for measure instance set a that matches identifier A, measure instance set b that matches identifier B, and measure instance set c that matches identifier C. Finally, measure instance sets a, b, and c are integrated to obtain the target measure instance set of the target plan.

[0115] The contingency plan processing method provided in this embodiment of the invention, upon receiving an import instruction, retrieves target contingency plan information associated with the target contingency plan in the contingency plan management module, retrieves target process arrangement information associated with the target contingency plan in the arrangement management module, and retrieves a set of target measure instances associated with the target contingency plan in the resource management module, thereby obtaining all information associated with the target contingency plan. This achieves automatic organization of all information associated with the target contingency plan according to the modules, resulting in high retrieval efficiency.

[0116] In one embodiment, the contingency plan processing method further includes the following steps:

[0117] When the contingency plan information is obtained based on the identifier of the target contingency plan and the correspondence between the identifier of the contingency plan and the contingency plan information stored in the contingency plan management module, the obtained contingency plan information is verified.

[0118] When it is determined that the obtained contingency plan information is the selected current version of the contingency plan information and is an executable contingency plan information, the obtained contingency plan information is determined as the target contingency plan information.

[0119] For example, upon obtaining the identifier of the target contingency plan, the system can first query all versions of the contingency plan information corresponding to the target contingency plan in the contingency plan management module. Then, it can obtain the usage status identifier of each version of the contingency plan information, which can be either unselected or selected. The contingency plan information with the usage status identifier of "selected" is identified as the current version of the target contingency plan information. Next, the system can obtain the review mark and activation mark of the current version of the contingency plan information. If the review mark of the current version of the contingency plan information is "approved" and the activation mark is "enabled", then the current version of the contingency plan information is identified as executable contingency plan information, that is, contingency plan information that can be used. At this time, the obtained contingency plan information is identified as the target contingency plan information. If the review mark of the current version of the contingency plan information is "not approved" or the activation mark is "not enabled", then the current version of the contingency plan information is identified as non-executable contingency plan information. At this time, the current version of the contingency plan information is discarded, that is, the obtained contingency plan information is not identified as the target contingency plan information.

[0120] The contingency plan processing method provided in this embodiment of the invention uses the selected contingency plan information and the executable contingency plan information as the target contingency plan information to ensure that the final exported target contingency plan information can operate normally.

[0121] In one embodiment, the determination of the target process arrangement information based on each process node and the process information corresponding to each process node in step 1022 above can be implemented in the following way:

[0122] The process information corresponding to all the process nodes is integrated to obtain the underlying structure data;

[0123] The underlying structural data and all process nodes are aggregated to obtain the target process orchestration information.

[0124] For example, when the process information corresponding to each process node is obtained, all the process information corresponding to all process nodes is integrated based on Business Process Modeling Notation (BPMN) to obtain the underlying structure data. This underlying structure data is the underlying structure data of the workflow engine. Then, the underlying structure data and all process nodes are aggregated and packaged into a first dataset. This first dataset is the target process orchestration information of the target plan.

[0125] The contingency plan processing method provided in this embodiment of the invention integrates the process information corresponding to all process nodes associated with the target contingency plan to obtain the underlying structure data, and then aggregates the underlying structure data with all process nodes to obtain the target process arrangement information of the target contingency plan. This realizes the organization of the process arrangement information of the target contingency plan, which facilitates the subsequent import of the organized target process arrangement information of the target contingency plan into the second electronic device.

[0126] In one embodiment, Figure 3 This is the third flowchart of the pre-plan processing method provided in the embodiments of the present invention, as shown below. Figure 3 As shown, after step 1023 above, the following steps are also included:

[0127] Step 1024: Obtain the identifier of the target measure corresponding to the identifier of each target measure instance in the target measure instance set.

[0128] For example, the identifier of a measure instance is stored in correspondence with the identifier of a measure. Therefore, when the set of target measure instances is obtained, the identifier of the corresponding target measure can be obtained based on the identifier of each target measure instance in the set of target measure instances.

[0129] Step 1025: Based on the identifier of each target measure, the identifiers of measures stored in the resource management module, the correspondence between measure tags and measures, determine the target measure and measure tag corresponding to the identifier of each target measure.

[0130] Among them, measures are measure templates stored in the resource management module. Users can arrange selected measures into a plan from the resource management module, and the selected measures are called measure instances. After configuring the measure instances based on the actual plan, the measure implementation is obtained. Measure tags are the labels for plan types. Each plan type corresponds to a measure tag. For example, the measure tag for major event protection is "Critical Protection", and the measure tag for notification and handling is "Notification", etc. Each measure tag corresponds to multiple measures.

[0131] For example, considering that the second electronic device may not be configured with the measures and measures tags corresponding to the measure instances, it is necessary to obtain the target measures and measures tags corresponding to each target measure instance. Therefore, when the identifier of each target measure is obtained, the target measures and measures tags corresponding to the identifier of each target measure are obtained in the resource management module, and finally all target measures and measures tags corresponding to the target plan are obtained.

[0132] The step 103 above, which generates a measure instance file based on the set of target measure instances, can be implemented through the following steps:

[0133] 1031. Based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, generate the measure instance file.

[0134] For example, when the set of target measure instances of the target plan and the target measure and measure tag corresponding to each target measure instance are obtained, the set of target measure instances and the target measure and measure tag corresponding to each target measure instance are aggregated and packaged into a second dataset. This second dataset is the measure instance file of the target plan.

[0135] The contingency plan processing method provided in this embodiment of the invention obtains the target measures and measure tags corresponding to each target measure instance based on the target measure instance set, and finally generates a measure instance file based on the target measure instance set, the target measures and measure tags corresponding to the identifier of each target measure, so that the information contained in the measure instance file is more complete.

[0136] In one embodiment, when it is determined that the type of the target measure is an Application Programming Interface (API), API configuration information is obtained;

[0137] The measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure.

[0138] Specifically, when the type of the target measure is a first API type, the API configuration information is obtained from the target measure;

[0139] When the type of the target measure is the second API type, the API configuration information is obtained in the implementation of the target measure; the implementation of the target measure is obtained by configuring the API of the target measure instance corresponding to the target measure.

[0140] The first API type is a measure type for which API configuration information is pre-configured in the resource management module; the second API type is a measure type for which API configuration information is configured in the measure instance corresponding to the measure, but API configuration information is not configured in the resource management module, and the measure is implemented after the measure instance is configured with API configuration information.

[0141] For example, there are multiple types of measures. When the measure type is a type other than API, each electronic device will configure itself based on its own needs. However, when the measure type is API, each electronic device can use the API configuration information. Therefore, considering that the second electronic device may not have configured API configuration information for the measure type API, when obtaining each target measure, it is also necessary to determine the type of each target measure. When the target measure type is the first API type, the pre-configured API configuration information is obtained from the target measures in the resource management module. Then, the target measure instance set, the target measure and measure tag corresponding to each target measure instance, and the API configuration information are aggregated to obtain the target plan measure instance file. When the target measure type is the second API type, the configured API configuration information is obtained from the measure implementation. Then, the target measure instance set, the target measure and measure tag corresponding to each target measure instance, and the API configuration information are aggregated to obtain the target plan measure instance file.

[0142] The contingency plan processing method provided in this embodiment of the invention includes API configuration information in the measure instance file when the target measure is of the first API type or the second API type. This eliminates the need for the second electronic device to repeatedly configure the API configuration information when importing the measure instance file, thus simplifying the contingency plan arrangement operation.

[0143] In one embodiment, Figure 4 This is the fourth flowchart of the pre-plan processing method provided in the embodiments of the present invention, as shown below. Figure 4 As shown, step 104 above can be implemented through the following steps:

[0144] Step 1041: Package the contingency plan file, the arrangement file, and the measure example file to obtain a packaged file; the packaging includes compression, or compression and encryption.

[0145] For example, when generating the contingency plan file, arrangement file, and measure example file of the target contingency plan, the contingency plan file, arrangement file, and measure example file are compressed to obtain a packaged file; or the contingency plan file, arrangement file, and measure example file are compressed and encrypted to obtain a packaged file; the specific compression method is the same as the existing file compression method, the purpose of which is to reduce the file size; encryption can be based on a preset encryption algorithm, which will not be described in detail here.

[0146] Step 1042: Export the packaged file.

[0147] For example, when the packaged file is obtained, it can be exported to a preset storage location or to a storage location selected by the user.

[0148] The contingency plan processing method provided in this embodiment of the invention compresses the three independent files—the contingency plan file, the arrangement file, and the measure example file—or compresses and encrypts them to form a secure package file. The secure package file is then exported, making it easy for other systems to import the package file. This improves the security of the contingency plan file, the arrangement file, and the measure example file related to the target contingency plan. In addition, compressing the files can also reduce the consumption of transmission bandwidth.

[0149] In one embodiment, Figure 5 This is the fifth flowchart illustrating the pre-planning method provided in this embodiment of the invention, as shown below. Figure 5 As shown, step 1042 above can be implemented through the following steps:

[0150] Step 10421: Convert the format of the packaged file to obtain a file with a preset format.

[0151] The default format can be .dat.

[0152] For example, when the packaged file is obtained, it is converted from a compressed format to a preset format file, namely a .dat format file. This .dat format file is an encrypted file, thereby further ensuring the security of the packaged file.

[0153] Step 10422: Export the file in the preset format.

[0154] For example, when a .dat file is obtained, the .dat file can be exported to a preset storage location or to a storage location selected by the user.

[0155] The pre-processing method provided in this embodiment of the invention converts the obtained packaged file from a compressed format to a .dat format file, further improving the security of the packaged file.

[0156] Figure 6 This is a flowchart of the pre-processing method provided in this embodiment of the invention, applied to a second electronic device, such as... Figure 6 As shown, the contingency plan includes the following steps:

[0157] Step 601: Obtain the import instruction for the target plan.

[0158] For example, when a user needs to import information related to a target plan from a first electronic device to a second electronic device, the user clicks the import control of the target plan on the relevant interface of the second electronic device, so that the second electronic device receives the import instruction of the target plan.

[0159] Step 602: In response to the import instruction, import the contingency plan file, the arrangement file, and the measure instance file of the target contingency plan; the contingency plan file is generated based on the target contingency plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set.

[0160] For example, when the import instruction for the target plan is received, the plan file, the arrangement file, and the measure example file of the target plan exported from the first electronic device are obtained, and then the plan file, the arrangement file, and the measure example file of the target plan are imported into the second electronic device.

[0161] The contingency plan processing method provided in this embodiment of the invention generates a contingency plan file based on the target contingency plan information when an export instruction for a target contingency plan is obtained. It also generates a scheduling file based on the target process scheduling information of the target contingency plan and a set of target measure instances based on the target contingency plan. Finally, the generated contingency plan file, scheduling file, and measure instance files are exported, making it convenient for other electronic devices to share the contingency plan file, scheduling file, and measure instance files without having to repeat the contingency plan scheduling, thereby improving the efficiency of contingency plan scheduling.

[0162] In one embodiment, Figure 7 This is the seventh flowchart of the pre-plan processing method provided in the embodiment of the present invention, as shown below. Figure 7 As shown, step 602 above can be implemented through the following steps:

[0163] Step 6021: Import the packaged file; the packaged file is a file obtained by packaging the contingency plan file, the arrangement file and the measure example file.

[0164] For example, when an import instruction for a target plan is received, a packaged file of the target plan exported from the first electronic device is obtained, and the packaged file is imported into the second electronic device.

[0165] Furthermore, step 6021 can be implemented in the following ways:

[0166] Import a file in a preset format; the preset format file is a file obtained by converting the format of the packaged file; parse the preset format file to obtain the packaged file.

[0167] For example, when the import instruction of the target plan is received, the preset format file of the target plan exported from the first electronic device is obtained and imported into the second electronic device. When the second electronic device obtains the preset format file, it parses the preset format file to obtain a packaged file, and then further parses the packaged file to obtain the plan file, arrangement file and measure example file of the target plan.

[0168] Step 6022: Parse the packaged file to obtain the contingency plan file, the arrangement file, and the measure example file.

[0169] For example, when the second electronic device obtains the packaged file of the target plan, it parses the packaged file to obtain the plan file, the arrangement file and the measure instance file of the target plan. The plan file includes the target plan information of the target plan, the arrangement file includes the target process arrangement information of the target plan, and the measure instance file includes the set of target measure instances of the target plan.

[0170] Step 6023: After associating the contingency plan file, the arrangement file, and the measure example file, store them.

[0171] For example, when the contingency plan document, arrangement document, and measure example document of the target contingency plan are obtained, the contingency plan document, arrangement document, and measure example document are associated and stored.

[0172] It should be noted that the second electronic device can import packaged files in batches, i.e., compressed files, or files in preset formats, such as .dat files. However, a packaged file or a file in a preset format can only contain all the information of a single plan.

[0173] The contingency plan processing method provided in this embodiment of the invention imports the packaged file of the target contingency plan, and then parses the packaged file to obtain the contingency plan file, the arrangement file, and the measure example file. One contingency plan corresponds to one packaged file, which avoids the confusion of contingency plan files, arrangement files, and measure example files contained in multiple contingency plans and improves the accuracy of the contingency plan.

[0174] In one embodiment, Figure 8 This is the eighth flowchart of the pre-plan processing method provided in this embodiment of the invention, as shown below. Figure 8 As shown, step 602 above can be implemented through the following steps:

[0175] Step 6024: Import the example file of the measures in the target plan.

[0176] Step 6025: Import the arrangement file of the target plan.

[0177] Step 6026: Replace the process arrangement identifier in the contingency plan file with a new process arrangement identifier.

[0178] Step 6027: Import the pre-plan file containing the new identifiers of the process arrangement.

[0179] For example, when importing the target plan's plan file, arrangement file, and measure example file into the second electronic device, the import order of the target plan's measure example file is not limited. However, for the arrangement file and plan file, the arrangement file needs to be imported first, and then the process arrangement identifier in the plan file needs to be replaced with a new process arrangement identifier to avoid duplication of the process arrangement identifier in the first electronic device and the process arrangement identifier in the second electronic device. This new identifier can be a preset identifier in the second electronic device. Then, the plan file including the new process arrangement identifier is imported into the second electronic device.

[0180] The pre-plan processing method provided in this embodiment of the invention first imports the arrangement file, and then imports the pre-plan file, so that the last imported pre-plan file and the arrangement file can be associated with a new identifier based on the process arrangement.

[0181] In one embodiment, the measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure; the above step 6024 can be implemented in the following ways:

[0182] When it is determined that the original measure instance file of the target plan is currently stored, and the original measure instance file is different from the measure instance file, the object to be added is determined based on the measure instance file and the original measure instance file, and the object to be added is imported; the object to be added includes at least one of the following: the set of target measure instances, the target measure corresponding to the identifier of each target measure, the measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure;

[0183] If it is determined that the original measure instance file of the target plan is not currently stored, import the measure instance file of the target plan.

[0184] For example, before importing the measure instance file of the target plan, it is necessary to first determine whether the original measure instance file of the target plan is currently stored in the second electronic device. If it is determined that the original measure instance file of the target plan is not stored, the measure instance file of the target plan is directly imported. If it is determined that the original measure instance file of the target plan is stored, it is determined whether the original measure instance file is the same as the measure instance file to be imported. If it is determined that the original measure instance file is the same as the measure instance file to be imported, the measure instance file of the target plan is not imported. If it is determined that the original measure instance file is different from the measure instance file to be imported, all the information included in the original measure instance file is compared with all the information included in the measure instance file to be imported, and information not in the original measure instance file is identified as objects to be added. The corresponding objects to be added are searched in the measure instance information of the target plan, and each found object to be added is imported into the second electronic device, thus realizing the synchronization of the measure instance files in the second electronic device and the measure instance files in the first electronic device.

[0185] It should be noted that before importing the example file of the measures of the target plan, it is necessary to determine whether the name of the target plan is included in the second electronic device. If the name of the target plan is included in the second electronic device, it means that the plan name is duplicated, and the import of the example file of the measures of the target plan is not performed. If the name of the target plan is not included in the second electronic device, then the above step 1024 is executed.

[0186] The contingency plan processing method provided in this embodiment of the invention only requires importing information not stored in the original measure instance file of the second electronic device, thus reducing the import burden on the second electronic device.

[0187] In one embodiment, the target contingency plan information includes an identifier for process arrangement, the target process arrangement information includes each process node and process information corresponding to each process node, the process information includes at least one stage information, and each stage information includes an identifier for a set of measure instances and the association relationship between each measure instance in the set of measure instances.

[0188] Step 6023 above can be implemented in the following ways:

[0189] The plan file and the arrangement file are associated and stored based on the identifier of the process arrangement;

[0190] The arrangement file and the measure instance file are associated and stored based on the identifier of the measure instance set.

[0191] For example, an import operation involves importing information for one contingency plan. Therefore, the three files imported in one operation—the contingency plan file, the arrangement file, and the measure example file—are linked. The linking of these three files is based on the identifier of the process arrangement and the identifier of the measure example set. Since the arrangement information includes the identifier of the process arrangement, the contingency plan file and the arrangement file are linked based on the identifier of the process arrangement. Since the arrangement file includes the identifier of the measure example set for each stage, the arrangement file and the measure example file are linked based on the identifier of the measure example set. Ultimately, this achieves the storage of the linked contingency plan file, arrangement file, and measure example file related to the target contingency plan. The specific storage location can be a preset storage location or a user-specified storage location; this invention does not limit this.

[0192] The contingency plan processing method provided in this embodiment of the invention associates the contingency plan file, arrangement file and measure instance file of the target contingency plan based on the identifier of the process arrangement and the identifier of the measure instance set, so that the contingency plan imported into the second electronic device is a complete target contingency plan, without the need for the user to rearrange the contingency plan, thereby improving the efficiency of contingency plan arrangement.

[0193] Figure 9 This is one of the structural schematic diagrams of the pre-processing device provided in the embodiments of the present invention, applied to a first electronic device, such as... Figure 9 As shown, the contingency plan processing device includes a first acquisition unit 901, a second acquisition unit 902, a generation unit 903, and an export unit 904; wherein:

[0194] The first acquisition unit 901 is used to acquire the export instructions of the target plan;

[0195] The second acquisition unit 902 is configured to, in response to the export instruction, acquire the target plan information of the target plan, acquire the target process arrangement information of the target plan, and acquire the target measure instance set of the target plan; the target measure instance set includes at least one target measure instance;

[0196] The generation unit 903 is used to generate a plan document based on the target plan information, generate a scheduling document based on the target process scheduling information, and generate a measure instance document based on the target measure instance set;

[0197] The export unit 904 is used to export the contingency plan file, the arrangement file, and the measure example file.

[0198] The contingency plan processing device provided in this embodiment of the invention generates a contingency plan file based on the target contingency plan information, generates a scheduling file based on the target flow scheduling information of the target contingency plan, and generates a measure instance file based on the target measure instance set of the target contingency plan when it receives the export instruction of the target contingency plan. Finally, it exports the generated contingency plan file, scheduling file and measure instance file, which makes it convenient for other electronic devices to share the contingency plan file, scheduling file and measure instance file without repeating the contingency plan scheduling, thereby improving the efficiency of contingency plan scheduling.

[0199] Optionally, the second acquisition unit 902 is specifically used for:

[0200] Obtain the identifier of the target plan associated with the export instruction;

[0201] Based on the correspondence between the target contingency plan identifier, the contingency plan identifiers stored in the contingency plan management module, and the contingency plan information, the target contingency plan information is determined; the target contingency plan information includes the identifier of the process arrangement.

[0202] The second acquisition unit 902 is also specifically used for:

[0203] Based on the process orchestration identifier, the process orchestration identifier stored in the orchestration management module, the correspondence between process nodes and process information, each process node of the target plan and the process information corresponding to each process node are determined; the process information includes at least one stage information, and each stage information includes the identifier of the measure instance set and the association relationship between each measure instance in the measure instance set;

[0204] The target process arrangement information is determined based on each process node and the process information corresponding to each process node;

[0205] The second acquisition unit 902 is also specifically used for:

[0206] For each of the measure instance sets, based on the identifier of the measure instance set, the correspondence between the identifier of the measure instance set and the identifiers of the measure instance sets stored in the resource management module and the measure instance sets, the measure instance set corresponding to the identifier of the measure instance set is determined;

[0207] The set of measure instances corresponding to the identifier of each set of measure instances is determined as the target set of measure instances.

[0208] Optionally, the device further includes:

[0209] The verification unit is used to verify the obtained plan information when the plan information is obtained based on the identifier of the target plan and the correspondence between the plan identifier and the plan information stored in the plan management module.

[0210] The determining unit is used to determine the obtained plan information as the target plan information when it is determined that the obtained plan information is the selected current version of the plan information and is an executable plan information.

[0211] Optionally, the second acquisition unit 902 is further specifically used for:

[0212] The process information corresponding to all the process nodes is integrated to obtain the underlying structure data;

[0213] The underlying structural data and all process nodes are aggregated to obtain the target process orchestration information.

[0214] Optionally, the device further includes:

[0215] The fourth acquisition unit is used to acquire the identifier of the target measure corresponding to the identifier of each target measure instance in the target measure instance set;

[0216] The second determining unit is used to determine the target measure and measure tag corresponding to the identifier of each target measure based on the identifier of each target measure, the identifier of the measure stored in the resource management module, the measure tag and the correspondence of the measure;

[0217] The generation unit 903 is specifically used for:

[0218] Based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, the measure instance file is generated.

[0219] Optionally, the generation unit 903 is further specifically used for:

[0220] When the type of the target measure is determined to be an Application Programming Interface (API) type, obtain the API configuration information;

[0221] The measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure.

[0222] Optionally, the generation unit 903 is further specifically used for:

[0223] When the type of the target measure is a first API type, the API configuration information is obtained from the target measure; the first API type is a measure type for which API configuration information is pre-configured in the resource management module.

[0224] When the type of the target measure is the second API type, the API configuration information is obtained in the implementation of the target measure; the implementation of the target measure is obtained by configuring the API of the target measure instance corresponding to the target measure; the second API type is the measure type in which API configuration information is configured in the measure instance corresponding to the measure.

[0225] Optionally, the derivation unit 904 is specifically used for:

[0226] The contingency plan file, the arrangement file, and the measure example file are packaged together to obtain a packaged file; the packaging includes compression, or compression and encryption.

[0227] Export the packaged file.

[0228] Optionally, the derivation unit 904 is further specifically used for:

[0229] The packaged file is converted to a preset format file;

[0230] Export the file in the preset format.

[0231] Figure 10 This is a second schematic diagram of the pre-processing device provided in an embodiment of the present invention, applied to a second electronic device, such as... Figure 10 As shown, the contingency plan processing device includes a third acquisition unit 1001 and an import unit 1002; wherein:

[0232] The third acquisition unit 1001 is used to acquire the import instruction of the target plan;

[0233] Import unit 1002 is used to import the target plan's plan file, the target plan's arrangement file, and the target plan's measure instance file in response to the import instruction; the plan file is generated based on the target plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set.

[0234] The contingency plan processing device provided in this embodiment of the invention generates a contingency plan file based on the target contingency plan information, generates a scheduling file based on the target flow scheduling information of the target contingency plan, and generates a measure instance file based on the target measure instance set of the target contingency plan when it receives the export instruction of the target contingency plan. Finally, it exports the generated contingency plan file, scheduling file and measure instance file, which makes it convenient for other electronic devices to share the contingency plan file, scheduling file and measure instance file without repeating the contingency plan scheduling, thereby improving the efficiency of contingency plan scheduling.

[0235] Optionally, the import unit 1002 is specifically used for:

[0236] Import the packaged file; the packaged file is a file obtained by packaging the contingency plan file, the arrangement file, and the measure example file.

[0237] The packaged file is parsed to obtain the contingency plan file, the arrangement file, and the measure example file;

[0238] The contingency plan file, the arrangement file, and the measure example file are associated and stored.

[0239] Optionally, the import unit 1002 is further specifically used for:

[0240] Import a file in a preset format; the preset format file is a file obtained by converting the format of the packaged file.

[0241] The file in the preset format is parsed to obtain the packaged file.

[0242] Optionally, the import unit 1002 is further specifically used for:

[0243] Import the example file of the measures in the target contingency plan;

[0244] Import the arrangement file of the target plan;

[0245] Replace the process arrangement identifier in the aforementioned plan document with a new process arrangement identifier;

[0246] Import the pre-designed file containing the new identifiers for the aforementioned process arrangement.

[0247] Optionally, the measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure;

[0248] The import unit 1002 is also specifically used for:

[0249] When it is determined that the original measure instance file of the target plan is currently stored, and the original measure instance file is different from the measure instance file, the object to be added is determined based on the measure instance file and the original measure instance file, and the object to be added is imported; the object to be added includes at least one of the following: the set of target measure instances, the target measure corresponding to the identifier of each target measure, the measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure;

[0250] If it is determined that the original measure instance file of the target plan is not currently stored, import the measure instance file of the target plan.

[0251] Optionally, the target contingency plan information includes an identifier for the process arrangement, the target process arrangement information includes each process node and the process information corresponding to each process node, the process information includes at least one stage information, and each stage information includes an identifier for a set of measure instances and the association relationship between each measure instance in the set of measure instances;

[0252] The import unit 1002 is also specifically used for:

[0253] The plan file and the arrangement file are associated and stored based on the identifier of the process arrangement;

[0254] The arrangement file and the measure instance file are associated and stored based on the identifier of the measure instance set.

[0255] Figure 11 This is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as... Figure 11 As shown, the electronic device may include: a processor 1110, a communications interface 1120, a memory 1130, and a communication bus 1140, wherein the processor 1110, the communications interface 1120, and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 can call logical instructions in the memory 1130 to execute the following method: obtaining the derived instructions of the target plan;

[0256] In response to the export instruction, the target plan information of the target plan is obtained, the target process arrangement information of the target plan is obtained, and the target measure instance set of the target plan is obtained; the target measure instance set includes at least one target measure instance;

[0257] A contingency plan document is generated based on the target contingency plan information; a scheduling document is generated based on the target process scheduling information; and a measure instance document is generated based on the target measure instance set.

[0258] Export the contingency plan file, the arrangement file, and the example file of the measures.

[0259] Alternatively, processor 1110 may invoke logical instructions from memory 1130 to execute the following method:

[0260] Obtain the import command for the target contingency plan;

[0261] In response to the import command, the contingency plan file, the arrangement file, and the measure instance file of the target contingency plan are imported; the contingency plan file is generated based on the target contingency plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set.

[0262] Furthermore, the logical instructions in the aforementioned memory 1130 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0263] On the other hand, embodiments of the present invention also provide a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to perform the pre-plan processing method provided in the above embodiments. The method includes: obtaining the export instructions of the target pre-plan.

[0264] In response to the export instruction, the target plan information of the target plan is obtained, the target process arrangement information of the target plan is obtained, and the target measure instance set of the target plan is obtained; the target measure instance set includes at least one target measure instance;

[0265] A contingency plan document is generated based on the target contingency plan information; a scheduling document is generated based on the target process scheduling information; and a measure instance document is generated based on the target measure instance set.

[0266] Export the contingency plan file, the arrangement file, and the example file of the measures.

[0267] Alternatively, when the computer program is executed by the processor, it implements the following method:

[0268] Obtain the import command for the target contingency plan;

[0269] In response to the import command, the contingency plan file, the arrangement file, and the measure instance file of the target contingency plan are imported; the contingency plan file is generated based on the target contingency plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set.

[0270] In another aspect, embodiments of the present invention also provide a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, and when the program instructions are executed by a computer, the computer is able to perform the following method: obtaining the export instructions of the target plan;

[0271] In response to the export instruction, the target plan information of the target plan is obtained, the target process arrangement information of the target plan is obtained, and the target measure instance set of the target plan is obtained; the target measure instance set includes at least one target measure instance;

[0272] A contingency plan document is generated based on the target contingency plan information; a scheduling document is generated based on the target process scheduling information; and a measure instance document is generated based on the target measure instance set.

[0273] Export the contingency plan file, the arrangement file, and the example file of the measures.

[0274] Alternatively, when the program instructions are executed by the computer, the computer can implement the following method:

[0275] Obtain the import command for the target contingency plan;

[0276] In response to the import command, the contingency plan file, the arrangement file, and the measure instance file of the target contingency plan are imported; the contingency plan file is generated based on the target contingency plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set.

[0277] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0278] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0279] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A contingency plan handling method, characterized in that, include: Obtain the export command for the target contingency plan; In response to the export instruction, obtain the target plan information of the target plan, obtain the target process arrangement information of the target plan, and obtain the target measure instance set of the target plan; The set of target measure instances includes at least one target measure instance; A contingency plan document is generated based on the target contingency plan information; a scheduling document is generated based on the target process scheduling information; and a measure instance document is generated based on the target measure instance set. Export the contingency plan file, the arrangement file, and the measure example file; The set of target measure instances obtained from the target contingency plan includes: For each set of measure instances, based on the identifier of the set of measure instances, the correspondence between the identifier of the set of measure instances and the identifiers of the set of measure instances stored in the resource management module, the set of measure instances corresponding to the identifier of the set of measure instances is determined. The set of measure instances corresponding to the identifier of each set of measure instances is determined as the target set of measure instances; The method further includes: Obtain the identifier of the target measure corresponding to the identifier of each target measure instance in the target measure instance set; Based on the identifier of each target measure, the identifiers of measures stored in the resource management module, the correspondence between measure tags and measures, the target measure and measure tag corresponding to the identifier of each target measure are determined; The generation of measure instance files based on the set of target measure instances includes: When the type of the target measure is determined to be an Application Programming Interface (API) type, obtain the API configuration information; The measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure.

2. The contingency plan processing method according to claim 1, characterized in that, The process of obtaining the target plan information of the target plan includes: Obtain the identifier of the target plan associated with the export instruction; Based on the correspondence between the target contingency plan identifier, the contingency plan identifiers stored in the contingency plan management module, and the contingency plan information, the target contingency plan information is determined; the target contingency plan information includes the identifier of the process arrangement. The acquisition of the target process arrangement information of the target plan includes: Based on the process orchestration identifier, the process orchestration identifier stored in the orchestration management module, the correspondence between process nodes and process information, each process node of the target plan and the process information corresponding to each process node are determined; the process information includes at least one stage information, and each stage information includes the identifier of the measure instance set and the association relationship between each measure instance in the measure instance set; Based on each process node and the process information corresponding to each process node, the target process arrangement information is determined.

3. The contingency plan processing method according to claim 2, characterized in that, The method further includes: When the contingency plan information is obtained based on the identifier of the target contingency plan and the correspondence between the identifier of the contingency plan and the contingency plan information stored in the contingency plan management module, the obtained contingency plan information is verified. When it is determined that the obtained contingency plan information is the selected current version of the contingency plan information and is an executable contingency plan information, the obtained contingency plan information is determined as the target contingency plan information.

4. The contingency plan processing method according to claim 2, characterized in that, The step of determining the target process arrangement information based on each process node and the process information corresponding to each process node includes: The process information corresponding to all the process nodes is integrated to obtain the underlying structure data; The underlying structural data and all process nodes are aggregated to obtain the target process orchestration information.

5. The contingency plan processing method according to claim 1, characterized in that, When determining that the type of the target measure is an Application Programming Interface (API) type, obtaining API configuration information includes: When the type of the target measure is a first API type, the API configuration information is obtained from the target measure; the first API type is a measure type for which API configuration information is pre-configured in the resource management module. When the type of the target measure is the second API type, the API configuration information is obtained in the implementation of the target measure; the implementation of the target measure is obtained by configuring the API of the target measure instance corresponding to the target measure; the second API type is the measure type in which API configuration information is configured in the measure instance corresponding to the measure.

6. The contingency plan processing method according to any one of claims 1-5, characterized in that, The process of exporting the contingency plan file, the arrangement file, and the measure example file includes: The contingency plan file, the arrangement file, and the measure example file are packaged together to obtain a packaged file; the packaging includes compression, or compression and encryption. Export the packaged file.

7. The contingency plan processing method according to claim 6, characterized in that, The export of the packaged file includes: The packaged file is converted to a preset format file; Export the file in the preset format.

8. A contingency plan handling method, characterized in that, include: Obtain the import command for the target contingency plan; In response to the import command, the contingency plan file, the arrangement file, and the sample measure file of the target contingency plan are imported. The contingency plan file is generated based on the target contingency plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set. The target measure instance set includes the measure instance set corresponding to the identifier of each measure instance set. The measure instance set corresponding to the identifier of each measure instance set is determined based on the identifier of the measure instance set, the identifier of the measure instance set stored in the resource management module, and the correspondence between the measure instance sets. The measure instance file is generated based on the target measure instance set, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure. The API configuration information corresponding to the target measure is obtained when the type of the target measure is determined to be an application programming interface (API) type. The target measure and measure tag corresponding to the identifier of each target measure are determined based on the identifier of each target measure, the identifier of the measure stored in the resource management module, the measure tag, and the correspondence between the measure and the measure. The identifier of the target measure is the identifier of the measure corresponding to the identifier of each target measure instance in the target measure instance set.

9. The contingency plan processing method according to claim 8, characterized in that, The import of the target contingency plan file, the target contingency plan compilation file, and the target contingency plan measure example file includes: Import the packaged file; the packaged file is a file obtained by packaging the contingency plan file, the arrangement file, and the measure example file. The packaged file is parsed to obtain the contingency plan file, the arrangement file, and the measure example file; The contingency plan file, the arrangement file, and the measure example file are associated and stored.

10. The contingency plan processing method according to claim 9, characterized in that, The imported packaged file includes: Import a file in a preset format; the preset format file is a file obtained by converting the format of the packaged file. The file in the preset format is parsed to obtain the packaged file.

11. The contingency plan processing method according to claim 9, characterized in that, The import of the target contingency plan file, the target contingency plan compilation file, and the target contingency plan measure example file includes: Import the example file of the measures in the target contingency plan; Import the arrangement file of the target plan; Replace the process arrangement identifier in the aforementioned plan document with a new process arrangement identifier; Import the pre-designed file containing the new identifiers for the aforementioned process arrangement.

12. The contingency plan processing method according to claim 11, characterized in that, The measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure; The example file of the measures to be imported into the target plan includes: When it is determined that the original measure instance file of the target plan is currently stored, and the original measure instance file is different from the measure instance file, the object to be added is determined based on the measure instance file and the original measure instance file, and the object to be added is imported; the object to be added includes at least one of the following: the set of target measure instances, the target measure corresponding to the identifier of each target measure, the measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure; If it is determined that the original measure instance file of the target plan is not currently stored, import the measure instance file of the target plan.

13. The contingency plan processing method according to claim 12, characterized in that, The target contingency plan information includes an identifier for the process arrangement, the target process arrangement information includes each process node and the process information corresponding to each process node, the process information includes at least one stage information, and each stage information includes an identifier for a set of measure instances and the association relationship between each measure instance in the set of measure instances; The step of associating and storing the contingency plan file, the arrangement file, and the measure instance file includes: The plan file and the arrangement file are associated and stored based on the identifier of the process arrangement; The arrangement file and the measure instance file are associated and stored based on the identifier of the measure instance set.

14. A contingency plan processing device, characterized in that, include: The first acquisition unit is used to acquire the export instructions of the target plan; The second acquisition unit is used to, in response to the export instruction, acquire the target plan information of the target plan, acquire the target process arrangement information of the target plan, and acquire the target measure instance set of the target plan; The set of target measure instances includes at least one target measure instance; The generation unit is used to generate a plan document based on the target plan information, generate a scheduling document based on the target process scheduling information, and generate a measure instance document based on the target measure instance set; The export unit is used to export the contingency plan file, the arrangement file, and the measure example file; The second acquisition unit is specifically used for: For each set of measure instances, based on the identifier of the set of measure instances, the correspondence between the identifier of the set of measure instances and the identifiers of the set of measure instances stored in the resource management module, the set of measure instances corresponding to the identifier of the set of measure instances is determined. The set of measure instances corresponding to the identifier of each set of measure instances is determined as the target set of measure instances; The device further includes: The fourth acquisition unit is used to acquire the identifier of the target measure corresponding to the identifier of each target measure instance in the target measure instance set; The second determining unit is used to determine the target measure and measure tag corresponding to the identifier of each target measure based on the identifier of each target measure, the identifier of the measure stored in the resource management module, the measure tag and the correspondence of the measure; The generation unit is specifically used for: When the type of the target measure is determined to be an Application Programming Interface (API) type, obtain the API configuration information; The measure instance file is generated based on the set of target measure instances, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure.

15. A contingency plan processing device, characterized in that, include: The third acquisition unit is used to acquire the import instructions for the target plan; The import unit is configured to import the target plan's plan file, the target plan's arrangement file, and the target plan's measure example file in response to the import instruction. The contingency plan file is generated based on the target contingency plan information, the arrangement file is generated based on the target process arrangement information, and the measure instance file is generated based on the target measure instance set. The target measure instance set includes the measure instance set corresponding to the identifier of each measure instance set. The measure instance set corresponding to the identifier of each measure instance set is determined based on the identifier of the measure instance set, the identifier of the measure instance set stored in the resource management module, and the correspondence between the measure instance sets. The measure instance file is generated based on the target measure instance set, the target measure and measure tag corresponding to the identifier of each target measure, and the API configuration information corresponding to the target measure. The API configuration information corresponding to the target measure is obtained when the type of the target measure is determined to be an application programming interface (API) type. The target measure and measure tag corresponding to the identifier of each target measure are determined based on the identifier of each target measure, the identifier of the measure stored in the resource management module, the measure tag, and the correspondence between the measure and the measure. The identifier of the target measure is the identifier of the measure corresponding to the identifier of each target measure instance in the target measure instance set.

16. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the contingency plan processing method as described in any one of claims 1 to 7, or implements the contingency plan processing method as described in any one of claims 8 to 13.

17. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the contingency plan processing method as described in any one of claims 1 to 7, or implements the contingency plan processing method as described in any one of claims 8 to 13.

18. A computer program product having executable instructions stored thereon, characterized in that, When executed by the processor, the instruction causes the processor to implement the contingency processing method as described in any one of claims 1 to 7, or to implement the contingency processing method as described in any one of claims 8 to 13.