CN108415823A - A kind of rule verification method and terminal - Google Patents

A kind of rule verification method and terminal Download PDF

Info

Publication number
CN108415823A
CN108415823A CN201710228800.2A CN201710228800A CN108415823A CN 108415823 A CN108415823 A CN 108415823A CN 201710228800 A CN201710228800 A CN 201710228800A CN 108415823 A CN108415823 A CN 108415823A
Authority
CN
China
Prior art keywords
thread
case
task
thread count
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710228800.2A
Other languages
Chinese (zh)
Other versions
CN108415823B (en
Inventor
曹辉荣
黄宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710228800.2A priority Critical patent/CN108415823B/en
Priority to PCT/CN2018/082228 priority patent/WO2018188538A1/en
Publication of CN108415823A publication Critical patent/CN108415823A/en
Application granted granted Critical
Publication of CN108415823B publication Critical patent/CN108415823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

A kind of rule verification method of present invention offer and terminal.The method includes:Obtain casebook;According to the newly-built task that new projects are carried out with rule verification of casebook;It is configured to carry out the thread of the task;Extract that case status is the case being not carried out and to change the case status of the case be execution in the thread to the casebook;The thread obtains the first result and the second result using executing strictly all rules respectively in the case to new projects and old project;First result and the second result are compared to obtain comparing result.The method and terminal, using casebook, compared the result that strictly all rules obtain is executed in new projects and old project, to be verified to the rule developed in new projects, so that related personnel is paid close attention to discrepant rule in comparing result, improves the efficiency of rule verification.

Description

A kind of rule verification method and terminal
Technical field
The present invention relates to technical field of data processing more particularly to a kind of rule verification methods and terminal.
Background technology
For the change of the rule being related in the process of development, (including alteration ruler increases rule, such as age newly to developer Maximum no more than 65 is a rule) and the code etc. of exploitation cannot be guaranteed absolutely correct, find certain rules and regulations Then the problematic time is longer (may be regular problem itself, it is also possible to the problem of exploitation code), and potential loss is got over Greatly.Therefore problematic rule in being developed with timely discovery there is an urgent need for the method for a raising rule verification.
Invention content
The present invention provides a kind of rule verification method and terminals, can utilize casebook, will be in new projects and old project It executes the result that strictly all rules obtain to be compared, so that related personnel pays close attention to the discrepant rule of comparing result, improves rule The efficiency then verified.
On the one hand, the present invention provides a kind of rule verification method, this method includes:
Obtain casebook;
According to the newly-built task that new projects are carried out with rule verification of casebook;
It is configured to carry out the thread of the task;
Case status is extracted in the thread to the casebook to be the case being not carried out and change the case of the case State is to execute;
The thread obtains the first result using execution strictly all rules in the case to new projects;
The thread obtains the second result using execution strictly all rules in the case to old project;
First result and second result are compared to obtain comparing result.
On the other hand, the present invention provides a kind of terminal, which includes:
Acquiring unit, for obtaining casebook;
Task creation unit, for according to the newly-built task that new projects are carried out with rule verification of casebook;
Dispensing unit, the thread for being configured to carry out the task;
Extraction unit, for by extracting the case being not carried out in the thread to the casebook and changing the case Case status is to execute;
First result unit, for obtaining first using execution strictly all rules in the case to new projects by the thread As a result;
Second result unit, for obtaining second using execution strictly all rules in the case to old project by the thread As a result;
Comparison unit, for comparing first result and second result to obtain comparing result.
Method and terminal provided in an embodiment of the present invention will execute all rule using casebook in new projects and old project The result then obtained is compared, and to be verified to the rule developed in new projects, so that related personnel is paid close attention to comparing result has The rule of difference improves the efficiency of rule verification in new projects.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow diagram of rule verification method provided in an embodiment of the present invention;
Fig. 2 is a kind of sub-process schematic diagram of rule verification method provided in an embodiment of the present invention;
Fig. 3 is a kind of sub-process schematic diagram of rule verification method provided in an embodiment of the present invention;
Fig. 4 is a kind of flow diagram for rule verification method that another embodiment of the present invention provides;
Fig. 5 is a kind of sub-process schematic diagram of rule verification method provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 7 is the schematic block diagram of dispensing unit provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of adjustment unit provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic block diagram for terminal that another embodiment of the present invention provides;
Figure 10 is the schematic block diagram of Thread Count acquiring unit provided in an embodiment of the present invention;
Figure 11 is a kind of schematic block diagram for terminal that further embodiment of this invention provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term "and/or" used in description of the invention and the appended claims refers to related Join any combinations and all possible combinations of one or more of item listed, and includes these combinations.
Fig. 1 is a kind of flow diagram of rule verification method provided in an embodiment of the present invention.This method include S101~ S108。
S101 obtains casebook.One casebook includes multiple cases.Such as in insurance industry, a case corresponds to one Part declaration form, a declaration form include all information of insurer, such as height, weight, history are insured information.
S102, according to the newly-built task that new projects are carried out with rule verification of casebook.After newly-built task, it is carried out this Business.S103-S108 is the content of execution task.
S103 is configured to carry out the thread of the task.The Thread Count of the task is stored in preset configuration file, this The Thread Count initial value of business is preset value, can change the task by corresponding configuration item in modification preset configuration file Thread Count.Specifically, as shown in Fig. 2, S103 includes S201-S202.S201 obtains the Thread Count in preset configuration file.It is logical It crosses and obtains the value of corresponding configuration item in preset configuration file to obtain the Thread Count in preset configuration file.S202, adjustment should The current Thread Count of task makes the Thread Count be equal to the Thread Count in preset configuration file.It is to be appreciated that starting to hold in task When row, the current Thread Count of task is zero.Specifically, as shown in figure 3, S202 includes S301-303.S301 judges preset configuration Whether the Thread Count in file is more than the current Thread Count of task.If it is current that Thread Count in preset configuration file is more than task Thread Count executes S302;If the Thread Count in preset configuration file is less than the current Thread Count of task, S303 is executed.S302, newly Build thread, wherein the quantity of newly-built thread is the difference of Thread Count and the current Thread Count of task in configuration file.S303, The thread is closed after thread executes case, wherein the quantity for closing thread is the current Thread Count of the task and presets The difference of Thread Count in configuration file.The state of the thread can be set to false by closing thread.
S104, the thread to case concentrate extraction case status to be the case being not carried out and change the case of the case State is to execute.It is the case being not carried out that the thread of the task concentrates extraction case status to case, it is preferable that is concentrated to case It is the case being not carried out by preset order extraction case status.Such as according to the number order of case in casebook or other are suitable Sequence come to extract case status be the case being not carried out.If for example, the task is configured with 10 threads, then 10 threads It all arrives case and concentrates extraction case, extracted according to the number order of case in casebook, a thread extraction case status is not Just the case status of the case is modified to carry out at once after the case of execution, to prevent other threads from getting same long narrow table Example.Multiple thread parallels execute simultaneously, improve the efficiency of rule verification, and per thread extracts the case shape case after case State is modified to carry out, while improving efficiency and accuracy.
S105, the thread obtain the first result using execution strictly all rules in the case to new projects.One thread After extracting case, just the first result is obtained using execution strictly all rules in the case to new projects.
S106, the thread obtain the second result using execution strictly all rules in the case to old project.Wherein, new item Mesh and old project refer to solve the project of the different times of at least one identical basic problem, can also refer to a project In new version and legacy version.
S107 compares first result and second result to obtain comparing result.The thread will be new Project and with regard in project execute strictly all rules the first result and the second result compared, obtain comparing result so that exploitation Personnel pay close attention to the rule of difference in comparing result.
In addition, during execution task, if the time that some thread executes a case is more than preset time, then The case status of the case is revised as exception, the thread is then returned to and concentrates extraction case status to be not carried out to case Case and the case status for changing the case are the step of execution.The abnormal case of time-out can be excluded, the execution of task is not It can stop because of abnormal case, i.e., it is the case being not carried out that thread, which then executes other case status, further increases rule The efficiency of verification.In addition, when task is interrupted, the case where preserving when interrupting, case when interrupting such as is preserved Example.When task executes again, since thread can then execute the case interrupt when, i.e., preserved when thread extraction is interrupted Case by the case status of the case be modified to carry out and the thread using in the case to new projects and old project respectively Strictly all rules are executed to obtain the first result and second as a result, and comparing the first result and the second result to be compared As a result, being the case being not carried out until not having case status, the efficiency of rule verification is improved again, and task is held to avoid interrupting Capable influence.As because test environment rebooting environment is often needed because of deployment operation, after restarting, unfinished task will not in It is disconnected, it will continue to execute.Such as:One task has 1000 cases, when going to 500, Server Restart, and after restarting, program meeting Remaining 500 cases are continued to execute, until completion.
Fig. 4 is a kind of flow diagram for rule verification method that another embodiment of the present invention provides.This method includes S401~S409.With Fig. 1 embodiments difference lies in:Increase step S408-S409.
S401 obtains casebook.One casebook includes multiple cases.
S402, according to the newly-built task that new projects are carried out with rule verification of casebook.After newly-built task, it is carried out this Business.S403-S409 is the content of execution task.
S403 is configured to carry out the thread of the task.The Thread Count of the task is stored in preset configuration file, this The Thread Count initial value of business is preset value, can change the task by corresponding configuration item in modification preset configuration file Thread Count.Specifically, as shown in Fig. 2, S403 includes S201-S202.S201 obtains the Thread Count in preset configuration file.It is logical It crosses and obtains the value of corresponding configuration item in preset configuration file to obtain the Thread Count in preset configuration file.S202, adjustment should The current Thread Count of task makes the Thread Count be equal to the Thread Count in preset configuration file.It is to be appreciated that starting to hold in task When row, the current Thread Count of task is zero.As shown in figure 3, S202 includes S301-303, the description of Fig. 3 embodiments is specifically please referred to Content.
S404, the thread to case concentrate extraction case status to be the case being not carried out and change the case of the case State is to execute.It is the case being not carried out that the thread of the task concentrates extraction case status to case, it is preferable that is concentrated to case Extraction case status is the case being not carried out in order.If for example, the task has configured with 10 threads, then 10 threads It all arrives case and concentrates extraction case, extracted according to the sequence arranged in casebook, a thread extraction case status is to be not carried out Case after just at once the case status of the case is modified to carry out, to prevent other threads from getting same case.Together When multiple thread parallels execute, improve the efficiency of rule verification, the case status of case repaiied after per thread extraction case It is changed to execute, while improving efficiency and accuracy.
S405, the thread obtain the first result using execution strictly all rules in the case to new projects.
S406, the thread obtain the second result using execution strictly all rules in the case to old project.Wherein, new item Mesh and old project refer to solve the project of the different times of at least one identical basic problem, can also refer to a project In new version and legacy version.
S407 compares first result and second result to obtain comparing result.The thread will be new Project and with regard in project execute strictly all rules the first result and the second result compared, obtain comparing result so that exploitation Personnel pay close attention to the rule of difference in comparing result, improve the efficiency of rule verification.
S408, whether judge has case status in casebook be the case being not carried out.If there is case status is to be not carried out Case, execute S409;If no case status is the case being not carried out, terminate.
S409 judges whether to reach preset time.Preferably, preset time is 5 minutes.If reaching preset time, execute S403;If not reaching preset time, S404 is executed.It is to be appreciated that when the task starts to execute, configuration user executes this The thread of business;During follow-up work executes, the thread that configuration user executes the task is just executed again every preset time The step of, i.e., during follow-up work executes, the Thread Count in preset configuration file is just obtained every preset time, is adjusted The current Thread Count of the task makes the Thread Count be equal to the Thread Count in preset configuration file.The embodiment can be adjusted dynamically The Thread Count of the task improves the efficiency of rule verification preferably to utilize terminal resource.
In addition, the embodiment can equally exclude the abnormal case of time-out, executing for task will not be due to abnormal case Stop;The embodiment equally when task is interrupted, the case where preserving when interrupting, such as preserves case when interrupting Example, when task executes again, since the thread of task can then execute the case interrupt when.
In other examples, the setting of the Thread Count in preset configuration file is related with current time.Specifically, such as Shown in Fig. 5, S201 includes S401-S402.S401 obtains current time.S402, obtain preset configuration file in be arranged it is current Time corresponding Thread Count.Such as daytime 9:00-19:00, the corresponding Thread Count being arranged in preset configuration file is 1, other Time, the corresponding Thread Count being arranged in preset configuration file are 10.It is to be appreciated that the time to work by day, setting Thread Count is few, does not have to the excessive memory source of occupied terminal;, almost no one uses terminal, the thread of setting the non-working time in the evening It is more, the resource of terminal is made full use of, the efficiency of rule verification is improved.
Fig. 6 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.The terminal 60 include acquiring unit 601, Task creation unit 602, dispensing unit 603, extraction unit 604, the first result unit 605, the second result unit 606, comparison Unit 607.
Acquiring unit 601, for obtaining casebook.One casebook includes multiple cases.Such as in insurance industry, one Case corresponds to a declaration form, and a declaration form includes all information of insurer, such as height, weight, history are insured information.
Task creation unit 602, for according to the newly-built task that new projects are carried out with rule verification of casebook.
Dispensing unit 603, the thread for being configured to carry out the task.The Thread Count of the task is stored in pre- establishing It sets in file, the Thread Count of the task can be changed by corresponding configuration item in modification preset configuration file.Specifically, such as Shown in Fig. 7, dispensing unit 603 includes Thread Count acquiring unit 701, adjustment unit 702.Thread Count acquiring unit 701, for obtaining Take the Thread Count in preset configuration file.Preset configuration is obtained by obtaining the value of corresponding configuration item in preset configuration file Thread Count in file.Adjustment unit 702 makes the Thread Count be equal to preset configuration text for adjusting the current Thread Count of the task Thread Count in part.It is to be appreciated that when task starts to execute, the current Thread Count of task is zero.Specifically, such as Fig. 8 institutes Show, adjustment unit 702 establishes unit 802, thread closing unit 803 including Thread Count judging unit 801, thread.Thread Count is sentenced Disconnected unit 801, for judging whether the Thread Count in preset configuration file is more than the current Thread Count of task.Thread establishes unit 802, if the Thread Count in preset configuration file is more than the current Thread Count of task, create thread, wherein the quantity of newly-built thread For the difference of Thread Count and the current Thread Count of task in configuration file.Thread closing unit 803, if in preset configuration file Thread Count be less than the current Thread Count of task, the thread is closed after thread executes case, wherein closing thread Quantity is the difference of the task current Thread Count and the Thread Count in preset configuration file.Closing thread can be by the thread State is set as false.
Extraction unit 604, for by extracting the case being not carried out in the thread to the casebook and changing the case The case status of example is to execute.It is the case being not carried out that the thread of the task concentrates extraction case status to case, it is preferable that is arrived It is the case being not carried out to extract case status by preset order in casebook.Such as according to the number order of case in casebook or It is the case being not carried out that other, which suitably sequentially extract case status,.If for example, the task has configured with 10 threads, then 10 threads all arrive case and concentrate extraction case, are extracted according to the number order of case in casebook, a thread extraction case Example state is just the case status of the case to be modified to carry out at once after the case being not carried out, to prevent other threads from getting Same case.Multiple thread parallels execute simultaneously, improve the efficiency of rule verification, and per thread is extracted after case case Case status be modified to carry out, while improving efficiency and accuracy.
First result unit 605, for being obtained using execution strictly all rules in the case to new projects by the thread First result.As soon as after a thread extracts case, the first result is obtained using strictly all rules are executed in the case to new projects.
Second result unit 606, for being obtained using execution strictly all rules in the case to old project by the thread Second result.Wherein, new projects and old project refer to solve the item of the different times of at least one identical basic problem Mesh can also refer to new version and legacy version in a project.
Comparison unit 607, for comparing first result and second result to obtain comparing result, with Developer is set to pay close attention to the rule of difference in comparing result.
In addition, during execution task, if the time that some thread executes a case is more than preset time, then The case status of the case is revised as exception, the thread is then returned to and concentrates extraction case status to be not carried out to case Case and the case status for changing the case are the step of execution.The abnormal case of time-out can be excluded, the execution of task is not It can stop because of abnormal case, i.e., it is the case being not carried out that thread, which then executes other case status, further increases rule The efficiency of verification.In addition, when task is interrupted, the case where preserving when interrupting, case when interrupting such as is preserved Example.When task executes again, since thread can then execute the case interrupt when, i.e., preserved when thread extraction is interrupted Case by the case status of the case be modified to carry out and the thread using in the case to new projects and old project respectively Strictly all rules are executed to obtain the first result and second as a result, and comparing the first result and the second result to be compared As a result, being the case being not carried out until not having case status, the efficiency of rule verification is improved again, and task is held to avoid interrupting Capable influence.As because test environment rebooting environment is often needed because of deployment operation, after restarting, unfinished task will not in It is disconnected, it will continue to execute.Such as:One task has 1000 cases, when going to 500, Server Restart, and after restarting, program meeting Remaining 500 cases are continued to execute, until completion.
Fig. 9 is a kind of schematic block diagram for terminal that another embodiment of the present invention provides.The terminal 90 includes acquiring unit 901, task creation unit 902, dispensing unit 903, extraction unit 904, the first result unit 905, the second result unit 906, Comparison unit 907, judging unit 908.The terminal 90 and terminal 60 difference lies in:Judging unit 908.
Judging unit 908, for judging that it is the case being not carried out whether to have case status in casebook.Judging unit 908 If it is the case being not carried out to be additionally operable to case status, judge whether to reach preset time.If reaching preset time, configuration is executed The content of unit;If not reaching preset time, extraction unit is triggered.Preferably, preset time is 5 minutes.It is to be appreciated that When the task starts to execute, configuration user executes the thread of the task;During follow-up work executes, every preset time The step of configuration user executes the thread of the task is just executed again, i.e., during follow-up work executes, every preset time The Thread Count in preset configuration file just is obtained, adjusting the current Thread Count of the task makes the Thread Count be equal to preset configuration file In Thread Count.The embodiment can dynamically adjust the Thread Count of the task, preferably to utilize terminal resource, improve rule The efficiency of verification.
In other examples, the setting of the Thread Count in preset configuration file is related with current time.Specifically, such as Shown in Figure 10, Thread Count acquiring unit 701 includes time acquisition unit 101, file Thread Count acquiring unit 102.Time obtains Unit 101, for obtaining current time.File Thread Count acquiring unit 102, for obtaining working as of being arranged in preset configuration file Preceding time corresponding Thread Count.Such as daytime 9:00-19:00, the corresponding Thread Count being arranged in preset configuration file is 1, His, the corresponding Thread Count being arranged in preset configuration file is 10 time.It is to be appreciated that the time to work by day, setting Thread Count it is few, do not have to the excessive memory source of occupied terminal;, almost no one uses terminal, the line of setting the non-working time in the evening Cheng Duo makes full use of the resource of terminal, improves the efficiency of rule verification.
Figure 11 is a kind of schematic block diagram for terminal that fourth embodiment of the invention provides.The terminal 80 includes storage Device 111 and processor 112, above-mentioned memory 111 and processor 112 are connected by bus 113.Wherein:
Memory 111, for storing the program data with various functions.Memory 111 stores in the embodiment of the present invention Data include casebook, preset configuration file, the first result, the second result, comparing result etc. and other can call and transport Capable program data.In the specific implementation, the memory 111 of the embodiment of the present invention can be system storage, for example, volatile (such as RAM), the combination of non-volatile (such as ROM, flash memory etc.), or both.In the specific implementation, the embodiment of the present invention Memory 111 can also be the external memory except system, for example, disk, CD, tape etc..
Processor 112 for calling the program data stored in memory 111, and executes following operation:
Obtain casebook;According to the newly-built task that new projects are carried out with rule verification of casebook;It is configured to carry out described The thread of task;Case status is extracted in the thread to the casebook to be the case being not carried out and change the case of the case Example state is to execute;The thread obtains the first result using execution strictly all rules in the case to new projects;The thread The second result is obtained using strictly all rules are executed in the case to old project;By first result and second result into Row comparison is to obtain comparing result.Wherein, case status is extracted in the thread to the casebook in order to be not carried out Case and the case status for changing the case are to execute.
Processor 112 also executes following operation:
Whether judge has case status in casebook be the case being not carried out;It is concentrated to case if so, returning to the thread Extraction case status is the case being not carried out and changes the case status of the case to be the step of execution.
Processor 112 also executes following operation:
Obtain the Thread Count in preset configuration file;Adjusting the current Thread Count of the task makes the Thread Count equal to described Thread Count in preset configuration file.
Processor 112 also executes following operation:
Judge whether the Thread Count in preset configuration file is more than the current Thread Count of the task;If more than the task Current Thread Count creates thread, wherein the quantity of newly-built thread is Thread Count and the current thread of task in configuration file Several differences;If the Thread Count current less than the task, closes the thread, wherein closing after thread executes case The quantity of thread is the difference of the task current Thread Count and the Thread Count in preset configuration file.
Processor 112 also executes following operation:
Obtain current time;Obtain the corresponding Thread Count of current time being arranged in preset configuration file.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description The specific work process at end and unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.This field Those of ordinary skill it is to be appreciated that unit described in conjunction with the examples disclosed in the embodiments of the present disclosure and algorithm steps, It can be realized with electronic hardware, computer software, or a combination of the two, it can be mutual in order to clearly demonstrate hardware and software It is transsexual, in the above description each exemplary composition and step are generally described according to function.These functions actually with Hardware or software mode execute specific application and design constraint depending on technical solution.Professional technician can be with Each specific application is used different methods to achieve the described function, but this realization is it is not considered that exceed this hair Bright range.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.In addition, shown or discussed phase Coupling, direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection can also be electricity, mechanical or other form connections.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the embodiment of the present invention Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, can also be during two or more units are integrated in one unit.It is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

1. a kind of rule verification method, which is characterized in that the method includes:
Obtain casebook;
According to the newly-built task that new projects are carried out with rule verification of casebook;
It is configured to carry out the thread of the task;
Case status is extracted in the thread to the casebook to be the case being not carried out and change the case status of the case To execute;
The thread obtains the first result using execution strictly all rules in the case to new projects;
The thread obtains the second result using execution strictly all rules in the case to old project;
First result and second result are compared to obtain comparing result.
2. the method as described in claim 1, which is characterized in that the method further includes:
Whether judge has case status in casebook be the case being not carried out;
If it is the case being not carried out to have case status, judge whether to reach preset time;
If reaching preset time, the step of being configured to carry out the thread of the task is returned;If not reaching preset time, return It returns the thread and is concentrated to case and extract that case status is the case being not carried out and to change the case status of the case be execution The step of.
3. such as claim 1-2 any one of them methods, which is characterized in that be configured to carry out the thread of the task, wrap It includes:
Obtain the Thread Count in preset configuration file;
Adjusting the current Thread Count of the task makes the Thread Count be equal to the Thread Count in the preset configuration file.
4. method as claimed in claim 3, which is characterized in that adjusting the current Thread Count of the task makes the Thread Count be equal to Thread Count in the preset configuration file, including:
Judge whether the Thread Count in preset configuration file is more than the current Thread Count of the task;
If more than the current Thread Count of the task, thread is created, wherein the quantity of newly-built thread is the thread in configuration file The difference of number and the current Thread Count of task;
If the Thread Count current less than the task, closes the thread, wherein closing thread after thread executes case Quantity be the current Thread Count of the task and the Thread Count in preset configuration file difference.
5. method as claimed in claim 3, which is characterized in that the setting of the Thread Count in the preset configuration file with it is current Time is related, obtains the Thread Count in preset configuration file, including:
Obtain current time;
Obtain the corresponding Thread Count of current time being arranged in preset configuration file.
6. a kind of terminal, which is characterized in that the terminal includes:
Acquiring unit, for obtaining casebook;
Task creation unit, for according to the newly-built task that new projects are carried out with rule verification of casebook;
Dispensing unit, the thread for being configured to carry out the task;
Extraction unit, for by extracting the case being not carried out in the thread to the casebook and changing the case of the case State is to execute;
First result unit, for obtaining the first knot using execution strictly all rules in the case to new projects by the thread Fruit;
Second result unit, for obtaining the second knot using execution strictly all rules in the case to old project by the thread Fruit;
Comparison unit, for comparing first result and second result to obtain comparing result.
7. terminal as claimed in claim 6, which is characterized in that the terminal further includes judging unit, and the judging unit is used In judging that it is the case being not carried out whether to have case status in casebook;If it is the case being not carried out that case, which is concentrated with case status, Example, is additionally operable to judge whether to reach preset time;If reaching preset time, dispensing unit is triggered, if do not reach default Between, then trigger extraction unit.
8. such as claim 6-7 any one of them terminals, which is characterized in that the dispensing unit includes that Thread Count obtains list Member, adjustment unit;Wherein,
The Thread Count acquiring unit, for obtaining the Thread Count in preset configuration file;
The adjustment unit makes the Thread Count be equal in the preset configuration file for adjusting the current Thread Count of the task Thread Count.
9. terminal as claimed in claim 8, which is characterized in that the adjustment unit includes that Thread Count judging unit, thread are built Vertical unit, thread closing unit;Wherein,
The Thread Count judging unit, for judging whether the Thread Count in preset configuration file is more than the current thread of task Number;
The thread establishes unit, if being more than the current Thread Count of task for the Thread Count in preset configuration file, creates line Journey, wherein the quantity of newly-built thread is the difference of Thread Count and the current Thread Count of task in configuration file;
The thread closing unit, if being less than the current Thread Count of task for the Thread Count in preset configuration file, in thread The thread is closed after executing case, wherein the quantity for closing thread is the current Thread Count and preset configuration of the task The difference of Thread Count in file.
10. terminal as claimed in claim 8, which is characterized in that the Thread Count in the preset configuration file and current time Related, the Thread Count acquiring unit includes time acquisition unit, file Thread Count acquiring unit;
The time acquisition unit, for obtaining current time;
The file Thread Count acquiring unit, for obtaining the corresponding Thread Count of current time being arranged in preset configuration file.
CN201710228800.2A 2017-04-10 2017-04-10 Rule verification method and terminal Active CN108415823B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710228800.2A CN108415823B (en) 2017-04-10 2017-04-10 Rule verification method and terminal
PCT/CN2018/082228 WO2018188538A1 (en) 2017-04-10 2018-04-09 Rule verification method, terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710228800.2A CN108415823B (en) 2017-04-10 2017-04-10 Rule verification method and terminal

Publications (2)

Publication Number Publication Date
CN108415823A true CN108415823A (en) 2018-08-17
CN108415823B CN108415823B (en) 2020-06-02

Family

ID=63125312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710228800.2A Active CN108415823B (en) 2017-04-10 2017-04-10 Rule verification method and terminal

Country Status (2)

Country Link
CN (1) CN108415823B (en)
WO (1) WO2018188538A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040215579A1 (en) * 2003-04-24 2004-10-28 George Redenbaugh Supplemental address verification
CN101309184A (en) * 2008-05-28 2008-11-19 华为技术有限公司 Method and apparatus detecting failure of micro-engine
CN101599048A (en) * 2009-07-01 2009-12-09 福建星网锐捷网络有限公司 A kind of method and apparatus of internal memory monitoring
CN102508742A (en) * 2011-11-03 2012-06-20 中国人民解放军国防科学技术大学 Kernel code soft fault tolerance method for hardware unrecoverable memory faults
US20140032976A1 (en) * 2012-07-24 2014-01-30 Samsung Electronics Co., Ltd. Apparatus and method for detecting error
CN106326109A (en) * 2016-08-09 2017-01-11 北京金山安全软件有限公司 New application testing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040215579A1 (en) * 2003-04-24 2004-10-28 George Redenbaugh Supplemental address verification
CN101309184A (en) * 2008-05-28 2008-11-19 华为技术有限公司 Method and apparatus detecting failure of micro-engine
CN101599048A (en) * 2009-07-01 2009-12-09 福建星网锐捷网络有限公司 A kind of method and apparatus of internal memory monitoring
CN102508742A (en) * 2011-11-03 2012-06-20 中国人民解放军国防科学技术大学 Kernel code soft fault tolerance method for hardware unrecoverable memory faults
US20140032976A1 (en) * 2012-07-24 2014-01-30 Samsung Electronics Co., Ltd. Apparatus and method for detecting error
CN106326109A (en) * 2016-08-09 2017-01-11 北京金山安全软件有限公司 New application testing method and device

Also Published As

Publication number Publication date
WO2018188538A1 (en) 2018-10-18
CN108415823B (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN109684057A (en) Task processing method and device and storage medium
CN109272219A (en) Performance appraisal method, apparatus, computer equipment and storage medium
CN109376811A (en) A kind of intelligence changes chucking method, device, terminal and computer-readable medium
CN109617941A (en) Data push method, device, computer equipment and computer readable storage medium
CN108038665A (en) Business Rule Management method, apparatus, equipment and computer-readable recording medium
CN109426510A (en) Software processing method, device, electronic equipment and computer readable storage medium
CN108874738A (en) Distributed parallel operation method, device, computer equipment and storage medium
CN109523236A (en) Mail generation method, device, computer equipment and storage medium
CN110377445A (en) Failure prediction method and device
CN110046071A (en) Database monitoring method, calculates equipment and storage medium at device
CN108629014A (en) A kind of data processing method, device, computer equipment and storage medium
CN109002305A (en) A kind of update method and its system of device program
CN108415823A (en) A kind of rule verification method and terminal
CN106597663B (en) Wear display equipment and its corollary equipment and the method for making it be compatible with different external equipments
CN109255716A (en) Bond rating method, apparatus, computer equipment and storage medium
CN109727145A (en) Declaration form Claims Resolution judgment method, equipment, storage medium and device
CN111049855B (en) Label-based policy configuration method and device
CN108764853A (en) Real-time commission computational methods, device, equipment and computer readable storage medium
CN106940681A (en) A kind of method of utilization tracing function and analytical tool debugging storage software
US20190278644A1 (en) Managing node failures in a computing environment
CN108876219A (en) Indicating risk method, apparatus, computer equipment and storage medium
CN109086217A (en) A kind of implementation method of statistics C language coding ratio of defects, equipment and storage medium
CN109785151A (en) A kind of emulation mode and device of medical insurance policies
CN108647936A (en) Commission distribution method, device, computer equipment and storage medium
CN105930137B (en) A kind of data processing method and device of cross-terminal equipment platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant