CN111913827A - Working platform exception handling method and system based on policy configuration - Google Patents
Working platform exception handling method and system based on policy configuration Download PDFInfo
- Publication number
- CN111913827A CN111913827A CN202010852910.8A CN202010852910A CN111913827A CN 111913827 A CN111913827 A CN 111913827A CN 202010852910 A CN202010852910 A CN 202010852910A CN 111913827 A CN111913827 A CN 111913827A
- Authority
- CN
- China
- Prior art keywords
- exception
- information
- processing
- working platform
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and a system for processing working platform exception based on strategy configuration, and relates to the technical field of computer software. When the working platform captures the abnormity, the context interception processing is carried out on the captured abnormity; packaging the truncated context and sending the truncated context to a back-end exception handling engine; the exception handling engine analyzes the context information; calling an analysis strategy configuration analysis engine to perform strategy processing on the analyzed abnormal information; and sending the processing result to a strategy execution engine, and executing corresponding exception processing. According to the invention, through configuring the exception handling, the captured exception is preprocessed and packaged by using the working platform and is uploaded to the exception handling engine, so that a caller can flexibly handle the exception, the complexity of handling the exception in the code is reduced, the exception handling process is simplified, the flexibility of exception handling is provided, the working efficiency of the platform is improved, and the method has good popularization and application values.
Description
Technical Field
The invention belongs to the technical field of computer software, and particularly relates to a working platform exception handling method based on policy configuration and a working platform exception handling system based on policy configuration.
Background
At present, when the information age is rapidly developed, all the work slowly tends to be intelligentized and informationized. The product working platform is an internet platform which provides various relevant work management services in a crowdsourcing mode. With more and more modules of the working platform, the managed service is more and more complex, and the processing of the exception becomes particularly important.
Any program is written and exception handling is used. The operation of exception handling can be divided into three categories: raise exception, capture exception, handle exception. What we generally speak as an error, in effect, is a program exception that unambiguously identifies a meaning in the program, and is caused by the fact that we have passed through the exception up the program. If the exception is processed according to the type of the exception, the exception processing becomes complicated, and the efficient platform work is not facilitated.
Based on the above, a method and a system for processing the working platform exception based on the policy configuration are provided, which can effectively solve the problem of the working platform.
Disclosure of Invention
The invention aims to provide a working platform exception handling method and system based on policy configuration, which configure exception handling, utilize a working platform to preprocess and encapsulate captured exceptions and upload the preprocessed and encapsulated exceptions to an exception handling engine, enable a caller to flexibly handle the exceptions and solve the problems of complex exception handling and low working efficiency of the conventional exception handling.
In order to solve the technical problems, the invention is realized by the following technical scheme:
the invention relates to a working platform exception handling method based on policy configuration, which comprises the following steps:
step S1: configuring exception handling feedback information in an exception handling configuration frame at the front end of the working platform;
step S2: the back end of the working platform encapsulates the input exception handling feedback information;
step S3: when capturing the abnormality, the working platform carries out context interception processing on the captured abnormality;
step S4: packaging the truncated context and sending the truncated context to a back-end exception handling engine;
step S5: the exception handling engine analyzes the context information;
step S6: calling an analysis strategy configuration analysis engine to perform strategy processing on the analyzed abnormal information;
step S7: and sending the processing result to a strategy execution engine, and executing corresponding exception processing.
Preferably, in step S1, the exception handling configuration block includes: an abnormal frequency configuration frame, an abnormal frequency exceeding feedback frame, a network off-line feedback information frame and a repeated broadcast feedback frame.
Preferably, when the feedback information of which the abnormal times exceed the abnormal times and which is input by the abnormal times exceeding feedback box does not hit any instruction, the front-end interaction state is exited, and the feedback information of which the abnormal times exceed the abnormal times in the abnormal processing configuration box is called.
Preferably, the offline duration input by the network offline feedback information box exceeds the abnormal offline duration, the front-end interaction state is exited, and the abnormal network offline feedback information is called.
Preferably, in step S4, the packaged exception information includes an exception number, an exception prompt information, an exception link, an exception stack, and exception context information, and is packaged into exception context information.
Preferably, the exception context information includes a policy name, a framework context, exception information, and an error context extension attribute set.
Preferably, in step S7, when the policy execution engine is called, the corresponding handler is called according to the returned processing program list to perform exception handling, where the processing program includes a log record and a pop-up interface.
The invention relates to a strategy configuration-based work platform exception handling system, which comprises an information configuration module, an exception information input module, an exception information preprocessing module, an exception information packaging module, an exception strategy configuration module and an exception handling module which are sequentially connected; the information configuration module is used for providing an exception handling configuration frame at the front end of the working platform, and a user divides and configures exception grades through the exception handling configuration frame; the abnormal information input module is used for a user to input abnormal information to the background through the abnormal processing configuration frame; the abnormal information preprocessing module is used for performing context truncation processing on the abnormal information captured by the working platform; the abnormal information packaging module is used for packaging the preprocessed abnormal information; the abnormal strategy configuration module is used for configuring the analysis engine so that the analysis engine can perform strategy processing on the encapsulated engine; and the exception handling module is used for handling exception information and sending a handling result to the strategy execution engine.
The invention has the following beneficial effects:
according to the invention, through configuring the exception handling, the captured exception is preprocessed and packaged by using the working platform and is uploaded to the exception handling engine, so that a caller can flexibly handle the exception, the complexity of handling the exception in the code is reduced, the exception handling process is simplified, the flexibility of exception handling is provided, the working efficiency of the platform is improved, and the method has good popularization and application values.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of steps of a method for processing an exception of a working platform based on policy configuration according to the present invention;
FIG. 2 is a block diagram of a policy configuration based exception handling system for a working platform according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present invention is a method for processing an exception of a working platform based on policy configuration, including the following steps:
step S1: configuring exception handling feedback information in an exception handling configuration frame at the front end of the working platform;
step S2: the back end of the working platform encapsulates the input exception handling feedback information;
step S3: when capturing the abnormality, the working platform carries out context interception processing on the captured abnormality;
step S4: packaging the truncated context and sending the truncated context to a back-end exception handling engine;
step S5: the exception handling engine analyzes the context information;
step S6: calling an analysis strategy configuration analysis engine to perform strategy processing on the analyzed abnormal information;
step S7: and sending the processing result to a strategy execution engine, and executing corresponding exception processing.
Preferably, in step S1, the exception handling configuration block includes: an abnormal frequency configuration frame, an abnormal frequency exceeding feedback frame, a network off-line feedback information frame and a repeated broadcast feedback frame.
Preferably, when the feedback information of which the abnormal times exceed the abnormal times and which is input by the abnormal times exceeding feedback box does not hit any instruction, the front-end interaction state is exited, and the feedback information of which the abnormal times exceed the abnormal times in the abnormal processing configuration box is called.
Preferably, the offline duration input by the network offline feedback information box exceeds the abnormal offline duration, the front-end interaction state is exited, and the abnormal network offline feedback information is called.
Preferably, in step S4, the packaged exception information includes an exception number, exception prompt information, an exception link, an exception stack, and exception context information, and is packaged into exception context information.
Preferably, the exception context information includes a policy name, a framework context, exception information, and an error context extension attribute set.
Preferably, in step S7, when the policy execution engine is called, the corresponding handler is called according to the returned processed program list, and exception handling is performed, where the processed program includes a log record and a pop-up interface.
Referring to fig. 2, the present invention is a work platform exception handling system based on policy configuration, which includes an information configuration module, an exception information entry module, an exception information preprocessing module, an exception information encapsulation module, an exception policy configuration module, and an exception handling module, which are connected in sequence; the information configuration module is used for providing an exception handling configuration frame at the front end of the working platform, and a user divides and configures exception grades through the exception handling configuration frame; the abnormal information input module is used for inputting abnormal information to the background by a user through the abnormal processing configuration frame; the abnormal information preprocessing module is used for performing context truncation processing on the abnormal information captured by the working platform; the abnormal information packaging module is used for packaging the preprocessed abnormal information; the abnormal strategy configuration module is used for configuring the analysis engine so that the analysis engine can perform strategy processing on the encapsulated engine; and the exception handling module is used for handling the exception information and sending a handling result to the strategy execution engine.
It should be noted that, in the above system embodiment, each included unit is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
In addition, it is understood by those skilled in the art that all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing associated hardware, and the corresponding program may be stored in a computer-readable storage medium.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.
Claims (8)
1. A working platform exception handling method based on policy configuration is characterized by comprising the following steps:
step S1: configuring exception handling feedback information in an exception handling configuration frame at the front end of the working platform;
step S2: the back end of the working platform encapsulates the input exception handling feedback information;
step S3: when capturing the abnormality, the working platform carries out context interception processing on the captured abnormality;
step S4: packaging the truncated context and sending the truncated context to a back-end exception handling engine;
step S5: the exception handling engine analyzes the context information;
step S6: calling an analysis strategy configuration analysis engine to perform strategy processing on the analyzed abnormal information;
step S7: and sending the processing result to a strategy execution engine, and executing corresponding exception processing.
2. The method for exception handling for a working platform based on policy configuration according to claim 1, wherein in step S1, the exception handling configuration box includes: an abnormal frequency configuration frame, an abnormal frequency exceeding feedback frame, a network off-line feedback information frame and a repeated broadcast feedback frame.
3. The method for processing the working platform exception based on the strategy configuration according to claim 2, wherein when the feedback information of the exception times exceeding the exception times input by the exception times feedback box is not hit by any instruction, the front-end interaction state is exited, and the feedback information of the exception times exceeding the exception times in the exception processing configuration box is called.
4. The method for processing the working platform exception based on the policy configuration according to claim 2, wherein the offline duration input by the network offline feedback information box exceeds the abnormal offline duration, the front-end interaction state is exited, and the abnormal network offline feedback information is called.
5. The method for processing working platform exception based on policy configuration as claimed in claim 1, wherein in step S4, the encapsulated exception information includes exception number, exception hint information, exception link, exception stack and exception context information, and encapsulates the exception information into exception context information.
6. The method of claim 5, wherein the exception context information comprises a policy name, a framework context, exception information, and an error context extension attribute set.
7. The method for processing exception of working platform based on policy configuration as claimed in claim 1, wherein in step S7, when the policy execution engine is called, the corresponding handler is called according to the returned processing program list to perform exception processing, and the processing program includes log logging and pop-up interface.
8. The work platform exception handling system based on policy configuration according to any one of claims 1 to 7, comprising an information configuration module, an exception information entry module, an exception information preprocessing module, an exception information encapsulation module, an exception policy configuration module, and an exception handling module which are connected in sequence; the information configuration module is used for providing an exception handling configuration frame at the front end of the working platform, and a user divides and configures exception grades through the exception handling configuration frame; the abnormal information input module is used for a user to input abnormal information to the background through the abnormal processing configuration frame; the abnormal information preprocessing module is used for performing context truncation processing on the abnormal information captured by the working platform; the abnormal information packaging module is used for packaging the preprocessed abnormal information; the abnormal strategy configuration module is used for configuring the analysis engine so that the analysis engine can perform strategy processing on the encapsulated engine; and the exception handling module is used for handling exception information and sending a handling result to the strategy execution engine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010852910.8A CN111913827A (en) | 2020-08-22 | 2020-08-22 | Working platform exception handling method and system based on policy configuration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010852910.8A CN111913827A (en) | 2020-08-22 | 2020-08-22 | Working platform exception handling method and system based on policy configuration |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111913827A true CN111913827A (en) | 2020-11-10 |
Family
ID=73279173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010852910.8A Pending CN111913827A (en) | 2020-08-22 | 2020-08-22 | Working platform exception handling method and system based on policy configuration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111913827A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040117803A1 (en) * | 2002-12-17 | 2004-06-17 | Biplav Srivastava | System and method for dynamic exception handling |
CN101937372A (en) * | 2010-08-30 | 2011-01-05 | 北京数码大方科技有限公司 | Exception processing method and device |
CN103019874A (en) * | 2012-12-13 | 2013-04-03 | 中国电子科技集团公司第十五研究所 | Method and device for realizing exception handling based on data synchronization |
CN106484425A (en) * | 2016-10-19 | 2017-03-08 | 济南浪潮高新科技投资发展有限公司 | A kind of abnormality eliminating method of policy-based configuration |
US20180365018A1 (en) * | 2017-06-20 | 2018-12-20 | Bank Of America Corporation | Item processing exception configurable pipeline |
CN109712622A (en) * | 2018-12-28 | 2019-05-03 | 苏州思必驰信息科技有限公司 | The configuration method and system of interactive voice abnormality processing for voice dialogue platform |
CN111190755A (en) * | 2019-08-01 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Application program function exception handling method and device |
CN111417019A (en) * | 2020-03-09 | 2020-07-14 | 深圳市酷开网络科技有限公司 | Method and device for processing plug-in abnormity, computer equipment and storage medium |
-
2020
- 2020-08-22 CN CN202010852910.8A patent/CN111913827A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040117803A1 (en) * | 2002-12-17 | 2004-06-17 | Biplav Srivastava | System and method for dynamic exception handling |
CN101937372A (en) * | 2010-08-30 | 2011-01-05 | 北京数码大方科技有限公司 | Exception processing method and device |
CN103019874A (en) * | 2012-12-13 | 2013-04-03 | 中国电子科技集团公司第十五研究所 | Method and device for realizing exception handling based on data synchronization |
CN106484425A (en) * | 2016-10-19 | 2017-03-08 | 济南浪潮高新科技投资发展有限公司 | A kind of abnormality eliminating method of policy-based configuration |
US20180365018A1 (en) * | 2017-06-20 | 2018-12-20 | Bank Of America Corporation | Item processing exception configurable pipeline |
CN109712622A (en) * | 2018-12-28 | 2019-05-03 | 苏州思必驰信息科技有限公司 | The configuration method and system of interactive voice abnormality processing for voice dialogue platform |
CN111190755A (en) * | 2019-08-01 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Application program function exception handling method and device |
CN111417019A (en) * | 2020-03-09 | 2020-07-14 | 深圳市酷开网络科技有限公司 | Method and device for processing plug-in abnormity, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484425B (en) | A kind of abnormality eliminating method of policy-based configuration | |
CN103688489B (en) | Method for strategy processing and network equipment | |
CN115686540B (en) | RPA control method and system based on Hongmong system | |
CN107508722A (en) | A kind of business monitoring method and device | |
CN114217941A (en) | Tensorflow framework core calculation acceleration engine for domestic heterogeneous many-core processor | |
CN105653322A (en) | Operation and maintenance server and server event processing method | |
CN113434396A (en) | Interface test method, device, equipment, storage medium and program product | |
CN114710416A (en) | Real-time data acquisition method based on process flow and network flow | |
CN114173355B (en) | Method and system for dynamically executing network instruction with separated design running states | |
CN102111801B (en) | Method and system for testing network management interface of third generation mobile communication network | |
CN111913827A (en) | Working platform exception handling method and system based on policy configuration | |
CN109857507A (en) | A kind of method that automation remote executes Windows program | |
CN113609101A (en) | Real-time data task issuing method and device, electronic equipment and storage medium | |
CN111797618A (en) | Log analysis method and device based on syntax tree analysis | |
CN110365551A (en) | Network information gathering method, apparatus, equipment and medium | |
CN111107062A (en) | Game resource packaging method and system based on greedy algorithm | |
CN106970837B (en) | Information processing method and electronic equipment | |
KR20080047248A (en) | Security testing apparatus and method of remote remote procedure call software | |
CN114040056A (en) | Method, device and storage medium for automatically checking user information | |
CN113569083A (en) | Intelligent sound box local end digital evidence obtaining system and method based on data traceability model | |
CN114615696A (en) | Automatic dial testing method, device, system, server and storage medium | |
CN112667615B (en) | Data cleaning system and method | |
CN105279044A (en) | Method for recognizing BIOS (Basic Input/Output System) state based on BOIS bus and computer system | |
CN114489777B (en) | Communication method and device for automation system and peripheral | |
CN113918211B (en) | Method, device and equipment for executing industrial equipment object data model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20201110 |