CN104239017A - Method and system for configuring and calling rules of customized form - Google Patents

Method and system for configuring and calling rules of customized form Download PDF

Info

Publication number
CN104239017A
CN104239017A CN201310244019.6A CN201310244019A CN104239017A CN 104239017 A CN104239017 A CN 104239017A CN 201310244019 A CN201310244019 A CN 201310244019A CN 104239017 A CN104239017 A CN 104239017A
Authority
CN
China
Prior art keywords
rule
incidence relation
condition
customizing form
execution
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
CN201310244019.6A
Other languages
Chinese (zh)
Other versions
CN104239017B (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.)
SHENZHEN LAN-YOU TECHNOLOG Co Ltd
Original Assignee
SHENZHEN LAN-YOU TECHNOLOG 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 SHENZHEN LAN-YOU TECHNOLOG Co Ltd filed Critical SHENZHEN LAN-YOU TECHNOLOG Co Ltd
Priority to CN201310244019.6A priority Critical patent/CN104239017B/en
Publication of CN104239017A publication Critical patent/CN104239017A/en
Application granted granted Critical
Publication of CN104239017B publication Critical patent/CN104239017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a method and a system for configuring and calling the rules of a customized form. The system comprises a first configuring unit, a second configuring unit, an instruction response unit and an executing unit. The method includes the steps of S1, respectively saving the rule table, the rule step table and the rule condition table of the customized form; S2, configuring the correlation of the rule step and the step condition of each rule according to the executing logic of each rule and saving the correlation in a correlation table; S3, when the executing instruction of the customized form is received, acquiring the information of all the rules contained by customized form; S4, executing all the rules of the customized form according to an executing order. By the method and the system, the rules in the customized form can be fast simply and flexibly configured, the step for calling the configured rules in the customized form is simplified, and system operation efficiency is increased.

Description

A kind of method and system configuring and call the rule of customizing form
Technical field
The present invention relates to computer realm, more particularly, relate to a kind of method and system of allocating computer system customizing form.
Background technology
Existing customizing form designer, be certain button arrangement such as click event on list when designing, this click event may perform one or more rule, and each rule comprises again concrete rule step.During operation, when user is by clicking this button on this list, triggering the click event of configuration, configuring the regular collection corresponding with this click event when calling design, according to condition, by step performing one or more rule.
In existing many computer systems, if following regular R1 step will be realized:
According to the configuration mode of existing computer system customizing form, need, for each rule step configuration executive condition, to perform above-mentioned steps, then to need to carry out following configuration:
The first step: configuration rule step 1 ();
Second step: the step condition 1 performed for rule step 1 configuration successful;
3rd step: configuration rule step 2 ();
4th step: the step condition 1 performed for rule step 2 configuration successful;
5th step: the step condition 2 performed for rule step 2 configuration successful;
6th step: configuration rule step 3 ();
7th step: the step condition 1 performed for rule step 3 configuration successful;
8th step: for rule step 3 configures the step condition 2 of unsuccessful execution;
9th step: configuration rule step 4 ();
Tenth step: the step condition 1 performed for rule step 4 configuration successful;
11 step: configuration rule step 5 ();
12 step: for rule step 5 configures the step condition 1 of unsuccessful execution.
Run through the flow process of the customizing form of said method configuration as shown in Figure 1, its path run has: step condition 1-> rule step 1; Step condition 1-> step condition 2-> rule step 2; Step condition 1-> step condition 2-> rule step 3; Step condition 1-> rule step 4; Step condition 1-> rule step 5.
Visible, because the execution step of the rule of said method configuration is more loaded down with trivial details, repeatability configuration entry is many, collocation method underaction, the step caused when running customizing form is also many, has a strong impact on system running speed.
Summary of the invention
The present invention is directed to the above-mentioned defect of prior art, a kind of method and system configuring and call the rule of customizing form is provided, the rule in customizing form can be configured quick, easy, neatly, simplify the step calling rule in the customizing form configured, improve the operational efficiency of system.
The technical scheme that the application solves the employing of its technical matters is: provide a kind of method configuring and call the rule of customizing form, described customizing form comprises one or more rule, each rule comprises one or more rule step and one or more step condition, said method comprising the steps of:
S1, configure and preserve the rule list of customizing form, rule step table and step condition table respectively;
S2, actuating logic according to each rule, configure the rule step of each rule and the incidence relation of step condition and be stored in incidence relation table;
S3, when the execution instruction receiving customizing form, obtain the information of the strictly all rules that this customizing form comprises from described rule list, wherein, described execution instruction comprises the execution sequence of each rule;
S4, perform the strictly all rules of this customizing form according to described execution sequence, wherein, according to the rule step of each rule stored in described incidence relation table and the incidence relation of step condition, the rule step stored in corresponding execution described rule step table and described step condition table and step condition, to perform each rule.
Preferably, described step S2 comprises following sub-step:
S21, in each rule, according to the actuating logic of rule, often perform event configuration incidence relation, described event is rule step or step condition;
S22, respectively the institute configured in each rule is relevantly stored in described incidence relation table in order.
Preferably, each incidence relation comprises the type of current event, the execution route of current event, the execution result of upper level event be true or perform the execution sequence of current event and this incidence relation for fictitious time.
Preferably, described step S4 comprises following sub-step:
S41, select a rule by the execution sequence of each rule;
S42, in order one by one according to the rule step of this rule stored in described incidence relation table and the incidence relation of step condition, perform store in described rule step table and described step condition table, the rule step corresponding with this rule and step condition;
S43, repetition step S41 to step S42 are until complete the strictly all rules performing this customizing form.
Preferably, in described rule list, corresponding stored comprises customizing form numbering and rule numbers, in described rule step table, corresponding stored comprises customizing form numbering, rule numbers, rule step numbering and step content, and in described step condition table, corresponding stored comprises customizing form numbering, rule numbers, step condition number and conditional content.
There is provided a kind of system configuring and call the rule of customizing form, described customizing form comprises one or more rule, and each rule comprises one or more rule step and one or more step condition, and described system comprises:
First dispensing unit, for configuring respectively and preserving the rule list of customizing form, rule step table and step condition table;
Second dispensing unit, for the actuating logic according to each rule, configures the rule step of each rule and the incidence relation of step condition and is stored in incidence relation table;
Instruction response unit, for when the execution instruction receiving customizing form, from described rule list, obtain the information of the strictly all rules that this customizing form comprises, wherein, described execution instruction comprises the execution sequence of each rule;
Performance element, for performing the strictly all rules of this customizing form according to described execution sequence, wherein, according to the rule step of each rule stored in described incidence relation table and the incidence relation of step condition, the rule step stored in corresponding execution described rule step table and described step condition table and step condition, to perform each rule.
Preferably, described second dispensing unit comprises:
Configuration module, for being each rule, according to the actuating logic of rule, often perform event configuration incidence relation, described event is rule step or step condition;
Memory module, for being stored in described incidence relation table in order by relevant for the institute configured in each rule respectively.
Preferably, each incidence relation comprises the type of current event, the execution route of current event, the execution result of upper level event be true or perform the execution sequence of current event and this incidence relation for fictitious time.
Preferably, described performance element comprises:
Rules selection module, for selecting a rule by the execution sequence of each rule;
Execution module, for in order one by one according to the rule step of this rule stored in described incidence relation table and the incidence relation of step condition, perform store in described rule step table and described step condition table, the rule step corresponding with this rule and step condition.
Preferably, in described rule list, corresponding stored comprises customizing form numbering and rule numbers, in described rule step table, corresponding stored comprises customizing form numbering, rule numbers, rule step numbering and step content, and in described step condition table, corresponding stored comprises customizing form numbering, rule numbers, step condition number and conditional content.
The method and system of configuration of the present invention and the rule of calling customizing form has following beneficial effect: the configuration of the rule of same list, rule step and step condition is separate, be independent of each other, configuration is simple, the implementation of configuration event is carried out by the mode of the incidence relation between option and installment rule, rule step and step condition, collocation method is flexible, simplify configuration step, improve allocative efficiency; In addition, by calling that configure, through simplifying operating procedure, operational efficiency is improved.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the customizing form running through the configuration of existing method;
Fig. 2 is the process flow diagram of method first embodiment of configuration of the present invention and the rule calling customizing form;
Fig. 3 configures in the present invention and preserves the process flow diagram of the rule list of customizing form;
Fig. 4 configures in the present invention and preserves the process flow diagram of rule step table;
Fig. 5 configures in the present invention and preserves the process flow diagram of step condition table;
Fig. 6 is the process flow diagram of the incidence relation of configuration rule step and step condition in the present invention;
Fig. 7 is the process flow diagram for button arrangement trigger event in the present invention;
Fig. 8 is the process flow diagram of the rule performing customizing form in the present invention;
Fig. 9 is the process flow diagram of calling rule R1 in the present invention;
Figure 10 is the functional block diagram of the system of configuration of the present invention and the rule calling customizing form.
Embodiment
Below in conjunction with drawings and Examples the present invention will be further explained explanation.
Customizing form comprises one or more rule, each rule comprises one or more rule step and one or more step condition, Fig. 2 is the process flow diagram of method first embodiment of configuration of the present invention and the rule calling customizing form, as shown in Figure 2, in this embodiment, method of the present invention comprises the following steps:
S1, configure and preserve the rule list of customizing form, rule step table and step condition table respectively;
S2, actuating logic according to each rule, configure the rule step of each rule and the incidence relation of step condition and be stored in incidence relation table;
S3, when the execution instruction receiving customizing form, obtain the information of the strictly all rules that this customizing form comprises from described rule list, wherein, described execution instruction comprises the execution sequence of each rule;
S4, perform the strictly all rules of this customizing form according to described execution sequence, wherein, according to the rule step of each rule stored in described incidence relation table and the incidence relation of step condition, the rule step stored in corresponding execution described rule step table and described step condition table and step condition, to perform each rule.
In the present invention, the form of rule list Form_Rule is as shown in table 1:
Table 1
Sequence number Row title Row coding Type
1 Rule numbers GUID Rule_ID Character
2 Form number Form_ID Character
3 Rule code Rule_Code Character
4 Rule name Rule_Name Character
Such as, when performing preservation action, rule code can be set to [ Save ], and rule name can be set to [ preservation ], and when performing query actions, rule code can be set to [ Search ], and rule name can be set to [ inquiry ].
In step sl, configure and the process flow diagram preserving the rule list of customizing form as shown in Figure 3, first, new rule numbers Rule_ID is recorded in rule list, relevant position (colleague different lines place) the upper Rule_Code of record rule code respectively Sum fanction title Rule_Name in rule list, wherein, list coding Form_ID is for automatically to carry.Then preserve rule list, then judge whether to continue configuration, if this customizing form only has a rule, then layoutprocedure terminates, if this customizing form comprises multiple rule, then repeats above-mentioned layoutprocedure and is configured each rule respectively.For the regular R1 recorded in background technology, regular R1 belongs to customizing form F1, and by the collocation method of the rule list of customizing form of the present invention, the rule list of generation can be as shown in table 2:
Table 2
Rule_ID Form_ID Rule_Code Rule_Name
R1 F1 test1 Test R1
? ? ? ?
In the present invention, the form of rule step table Form_Rule_Step is as shown in table 3:
Table 3
Sequence number Row title Row coding Type
1 Rule step numbering GUID Rule_Step_ID Character
2 Form number Form_ID Character
3 Rule step title Step_Name Character
4 Rule step content Step_Content Byte arrays
Such as, when performing preservation action, whether the first step need obtain the required record preserved unique, and second step is only preservation.Now, first rule step title can be set to [ record uniqueness ], and corresponding rule step content is [ Unique ].Second rule step title can be set to [ preservation ], and corresponding rule step content is [ Save ].
In step sl, configure and the process flow diagram preserving rule step table as shown in Figure 4, first, new rule step numbering Rule_Step_ID is recorded in rule step table, relevant position (colleague different lines place) upper record rule step title Step_Name and configuration rule step content Step_Content respectively in rule step table, wherein, list coding Form_ID is for automatically to carry.Then preserve rule step table, then judge whether to continue configuration, if this rule comprises multiple rule step, then repeat above-mentioned layoutprocedure and respectively each rule step is configured.For the regular R1 recorded in background technology, it comprises three rule step, and numbering is respectively R_S_1, R_S_2, R_S_3, and by the collocation method of rule step table of the present invention, the rule step table of generation can be as shown in table 4:
Table 4
Rule_Step_ID Form_ID Step_Name Step_Content
R_S_1 F1 Rule step poly-1 Poly-1 content of rule step
R_S_2 F1 Rule step poly-2 Poly-2 contents of rule step
R_S_3 F1 Rule step poly-3 Poly-3 contents of rule step
R_S_4 F1 Rule step poly-4 Poly-4 contents of rule step
R_S_5 F1 Rule step poly-5 Poly-5 contents of rule step
In the present invention, in the present invention, the form of step condition table Form_Rule_Step_Condition is as shown in table 5:
Table 5
Such as, when performing preservation action, whether the possible first step need obtain the required record preserved unique, and result is stored in variable, if record is unique, then the value of variable is true, otherwise is vacation, and preserves the condition of action as second step.Perform second step to preserve before action, first judge that the value of this variable is as true or as false, is very then perform preservation action, otherwise does not perform preservation action.
In step sl, configure and the process flow diagram preserving step condition table as shown in Figure 5, first, new step condition number Condition_ID is recorded in step condition table, relevant position (colleague different lines place) upper recording step conditional name Condition_Name and configuration step conditional content Step_Content respectively in step condition table, wherein, list coding Form_ID is for automatically to carry, then step condition table is preserved, then judge whether to continue configuration, if this rule comprises multiple step condition, then repeat above-mentioned layoutprocedure to be configured each step condition respectively.For the regular R1 recorded in background technology, it comprises two step conditions, and numbering is respectively C_1, C_2, and by the collocation method of rule step table of the present invention, the step condition table of generation can be as shown in table 6:
Table 6
Condition_ID Form_ID Condition_Name Step_Content
C_1 F1 Step condition 1 Step condition 1 content
C_2 F1 Step condition 2 Step condition 2 content
In step S1, the step of configuration rule table, rule step table and step condition table is separate, is independent of each other, and layoutprocedure is simple, and above-mentioned three tables are easy to safeguard.
In the present invention, the form of the incidence relation table Form_Rule_Relation of rule step and step condition is as table 7:
Table 7
Wherein, the numbering of current event that what Object_ID deposited is, wherein, event is rule step or step condition, determines to deposit No. Knitting, rule step or No. Knitting, step condition in Object_ID according to the execution step of reality.No. Knitting, upper level event (being step condition number in actual conditions) is deposited in Parent_ID.The system-wide strength performing current event according to actuating logic is deposited in FullPath.The result of calculation of upper level event that what IsTrue deposited is is true or is that fictitious time performs current event, and wherein, 0 is false, and 1 is true.The execution sequence of what Order deposited is this incidence relation, wherein, incidence relation sorts in same list, same rule.The type of current event that what Type deposited is, wherein, 0 is step condition, and 1 is rule step, and other any modes can be used to distinguish presentation of events type.
In the present embodiment, step S2 comprises following sub-step: S21, in each rule, and according to the actuating logic of rule, often perform event configuration incidence relation, described event is rule step or step condition; S22, respectively the institute configured in each rule is relevantly stored in incidence relation table in order.
Fig. 6 is the process flow diagram of the incidence relation of configuration rule step and step condition in the present invention, as shown in Figure 6, first, the incidence relation of the rule of this list newly-increased, namely record the numbering (Relation_ID) of this incidence relation in the numbered bin in incidence relation table, list coding Form_ID is for automatically to carry, then, select a rule in this list, namely in the rule numbers hurdle of correspondence, record this rule numbers, then, obtain the actuating logic (actuating logic recorded in such as background technology) that this rule is actual, judge according to actuating logic whether the event of current execution is step condition, if then select this step condition, configure its incidence relation: the numbering (Condition_ID) recording this step condition in the current event Knitting hurdle (Object_ID) of correspondence, in higher level's Case Number hurdle (Parent_ID) of correspondence, the numbering of one-level event recorded thereon (may be only the step condition number Condition_ID of upper level in actual applications, if current event is first event be performed, then this hurdle is empty), the execution route (to the path of current event from first event performed) of record current event in the complete trails hurdle (FullPath) of correspondence, at " whether being a true " hurdle (IsTrue, also can be described as true value hurdle, if current event is first event be performed, then be defaulted as true herein) in the execution result of record upper level event be true or be false (1 or 0) time perform current event, the execution sequence of this incidence relation is recorded in the execution sequence hurdle (Order) of correspondence, the type recording current event in event type (Typle) hurdle of correspondence (is now step condition, available 0 represents).
Be the configuration of the incidence relation of a step condition due to what complete before, next stage event must be also had after this step condition, therefore, newly-increased a line in incidence relation table, according to actuating logic, selecting in the result of calculation of the content of the step condition just completing incidence relation configuration is true value or for subordinate's event of fictitious time execution is (for regular R1, if the step condition just having completed incidence relation configuration is C_1, according to actuating logic, the result of calculation of the content of C_1 is the next stage event that true time performs is R_S_1, therefore selects true value in this step), then, using the event of next stage event as current execution, judge whether current execution event is step condition according to actual actuating logic, if then repeat the layoutprocedure of the above-mentioned incidence relation to step condition, then select this rule step if not, configure its incidence relation: the numbering (Rule_Step_ID) recording this rule step in the current event Knitting hurdle (Object_ID) of correspondence, the numbering (i.e. the step condition number Condition_ID of upper level) of one-level event recorded thereon in higher level's Case Number hurdle (Parent_ID) of correspondence, the execution route (to the path of current event from first event performed) of record current event in the complete trails hurdle (FullPath) of correspondence, the execution result recording upper level event in " whether being true " hurdle is true or performs current event (for regular R1 for fictitious time, in the incidence relation of R_S_1, IsTrue is true), the execution sequence of this incidence relation is recorded in the execution sequence hurdle (Order) of correspondence, the type recording current event in event type (Typle) hurdle of correspondence (is now rule, available 1 represents), after have recorded above-mentioned information, complete the configuration of this incidence relation, then judge whether to continue, namely in this rule, whether also comprise the event that other are not configured incidence relation, if having, newly-increased a line, judges its type according to actuating logic, said process is repeated, until complete the configuration of the incidence relation of all events in a rule according to corresponding type.
According to the collocation method of above-mentioned incidence relation of the present invention, the incidence relation table generated after carrying out incidence relation configuration to regular R1 is as shown in table 8:
Table 8
Relation_ID Form_ID Rule_ID Object_ID Parent_ID FullPath IsTrue Order Type
Relation_1 F1 R1 C_1 ? C_1 1 1 0
Relation_2 F1 R1 R_S_1 C_1 C_1R_S_1 1 2 1
Relation_3 F1 R1 C_2 C_1 C_1C_2 1 3 0
Relation_4 F1 R1 R_S_2 C_2 C_1C_2R_S_2 1 4 1
Relation_5 F1 R1 R_S_3 C_2 C_1C_2R_S_3 0 5 1
Relation_6 F1 R1 R_S_4 C_1 C_1R_S_4 1 6 1
Relation_7 F1 R1 R_S_5 C_1 C_1R_S_5 0 7 1
As can be seen from Table 8, Parent_ID is No. Knitting, step condition, and No. Knitting, rule step is child node, and both form a tree structure.
As can be seen here, in the present invention, often perform an an event just configuration incidence relation, the institute of configuration is relevant, is stored in incidence relation table according to the execution sequence of corresponding event in actuating logic.This kind of collocation method is flexible, only need change incidence relation, just rule step table can be become different actuating logics with the rule step in step condition table with step conditional combination, thus changes the implementation effect of rule.
According to the configuration of each table in step S1-S2, implementation rule R1, its actuating logic can be reduced to:
In step s3, one button can be set, for this button adds the rule in customizing form, after this button is triggered, judge the execution instruction receiving this customizing form, do not limit the mode of the execution instruction sending customizing form in the present invention, any one technology of the prior art can be used to realize.In the present invention be the process flow diagram of button arrangement trigger event as shown in Figure 7, first, start customizing form designer, a button control is inserted at design panel, then the attribute of this button is clicked, repeat following steps until complete the rule of adding customizing form: for this button adds the rule of customizing form, from rule list and incidence relation table, obtain corresponding information.After completing the rule of adding customizing form, preserve customizing form, complete button arrangement.After button is triggered, obtain the strictly all rules numbering in the configuration information of this button.
In the present embodiment, step S4 comprises following sub-step: S41, select a rule by the execution sequence of each rule; S42, in order one by one according to the rule step of this rule stored in described incidence relation table and the incidence relation of step condition, perform store in described rule step table and described step condition table, the rule step corresponding with this rule and step condition; S43, repetition step S41 to step S42 are until complete the strictly all rules performing this customizing form.Mode according to trigger button triggers the rule performed in customizing form, and in step S41, the execution sequence in each rule refers to the order when button adds rule.
Perform the flow process of the rule of (calling) customizing form in the present invention as shown in Figure 8, flow process starts to enter step S801, in step S801, select the rule numbers that current needs are performed according to execution sequence from the strictly all rules numbering obtained; Then, in step S802, from incidence relation table, the incidence relation information of this rule is obtained; Enter step S803, the execution sequence (Order) according to the incidence relation obtained determines the type needing the event be performed in this rule in the 1st (N) step; In step S804, judge whether the event needing in the 1st (N) step to be performed is step condition, if then calculate the content of this step condition and perform step S805, then perform step S810 if not; In step S805, whether the result of calculation of determining step conditional content is true; In step S806, if result of calculation be very then find in incidence relation table with current step condition for higher level's event (Parent_ID) and true value hurdle is that information in 1(and IsTrue mono-hurdle is for 1) all results, and inquire result and sort according to the execution sequence of incidence relation; Then, in step S807, judge whether the outcome record number found is greater than 0, if then return step S803, then perform step S808 if not; In step S808, judge whether also to comprise in this customizing form other rules, if then return step S801, then process ends if not.
In step S805, judge that whether the result of calculation of step conditional content be that fictitious time performs step S809, in step S809, find in incidence relation table with current step condition for higher level's event (Parent_ID) and true value hurdle is that information in 0(and IsTrue mono-hurdle is for 0) all results, and inquire result to sort according to the execution sequence of incidence relation, then perform step S807.
In step S810, judge whether the event needing in the 1st (N) step to be performed is rule step, then returns step S803 if not, if enter step S811 after then performing this rule step; In step S811, judge after this rule step, also to comprise rule step or rule condition in this rule, if then return step S803, then perform step S808 if not.
The execution event of N number of rule is read, query statement (mssql) as follows by the execution sequence Order in incidence relation table:
Select*from incidence relation table where Rule_id=' R1 ';
Read rule condition 1 and IsTrue=1 by fullpath, result presses Order sequence, querying condition (mssql) as follows:
where?left(fullpath,3)=’C_1’and?IsTrue=1order?by?Order?asc
Read rule condition 2 and IsTrue=1 by fullpath, result presses Order sequence, querying condition (mssql) as follows:
where?left(fullpath,6)=’C_1C_2’and?IsTrue=1order?by?Order?asc
Adopting by fullpath read step condition herein and filter in internal memory, when there being multiple step condition nested, adopting recursive fashion.
For regular R1 in foregoing, method according to the present invention is configured with rule list, rule step table, step condition and incidence relation table for it, respectively see shown in table 2,4,6,8.Perform by the flow process of the R1 of above-mentioned configuration as shown in Figure 9: calculation procedure condition 1 after starting; Judge whether result of calculation is true; If then computation rule step 1; Then calculation procedure condition 2; Then whether the result of calculation of determining step condition 2 is true; If then computation rule step 2; Then terminate after computation rule step 4.If the result of calculation of step condition 2 is fictitious time, computation rule step 3; Then computation rule step 4, then terminates.If the result of calculation procedure condition 1 is fictitious time, computation rule step 5, then terminates.
As can be seen here, in the present invention, because the step of configuration is fewer, so the step running each rule in customizing form is also less.
In configuration of the present invention and call in the method for rule of customizing form: on the one hand, the configuration of the rule of same list, rule step and step condition is separate, be independent of each other, configuration is simple, the implementation of configuration event is carried out by the mode of the incidence relation between option and installment rule, rule step and step condition, collocation method is flexible, simplifies configuration step, improves allocative efficiency; On the other hand, by calling that configure, through simplifying operating procedure, operational efficiency is improved.
Configuration of the present invention and call customizing form rule system 100 functional block diagram as shown in Figure 10, system 100 comprises:
First dispensing unit 110, for configuring respectively and preserving the rule list of customizing form, rule step table and step condition table;
Second dispensing unit 120, for the actuating logic according to each rule, configures the rule step of each rule and the incidence relation of step condition and is stored in incidence relation table;
Instruction response unit 130, for when the execution instruction receiving customizing form, obtains the information of the strictly all rules that this customizing form comprises from rule list, wherein, performs the execution sequence that instruction comprises each rule;
Performance element 140, for performing the strictly all rules of this customizing form according to execution sequence, wherein, according to the rule step of each rule stored in incidence relation table and the incidence relation of step condition, the rule step stored in corresponding executing rule step table and step condition table and step condition, to perform each rule.
Wherein, in rule list, corresponding stored comprises customizing form numbering and rule numbers, in rule step table, corresponding stored comprises customizing form numbering, rule numbers, rule step numbering and step content, and in step condition table, corresponding stored comprises customizing form numbering, rule numbers, step condition number and conditional content.
Second dispensing unit 120 comprises:
Configuration module 121, for being each rule, according to the actuating logic of rule, often perform event configuration incidence relation, described event is rule step or step condition, and each incidence relation comprises the type of current event, the execution route of current event, the execution result of upper level event are true or perform the execution sequence of current event and this incidence relation for fictitious time;
Memory module 122, for being stored in described incidence relation table in order by relevant for the institute configured in each rule respectively.
Performance element 140 comprises:
Rules selection module 141, for selecting a rule by the execution sequence of each rule;
Execution module 142, for in order one by one according to the rule step of this rule stored in described incidence relation table and the incidence relation of step condition, perform store in described rule step table and described step condition table, the rule step corresponding with this rule and step condition.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within right of the present invention.

Claims (10)

1. configure and call a method for the rule of customizing form, described customizing form comprises one or more rule, and each rule comprises one or more rule step and one or more step condition, it is characterized in that, said method comprising the steps of:
S1, configure and preserve the rule list of customizing form, rule step table and step condition table respectively;
S2, actuating logic according to each rule, configure the rule step of each rule and the incidence relation of step condition and be stored in incidence relation table;
S3, when the execution instruction receiving customizing form, obtain the information of the strictly all rules that this customizing form comprises from described rule list, wherein, described execution instruction comprises the execution sequence of each rule;
S4, perform the strictly all rules of this customizing form according to described execution sequence, wherein, according to the rule step of each rule stored in described incidence relation table and the incidence relation of step condition, the rule step stored in corresponding execution described rule step table and described step condition table and step condition, to perform each rule.
2. configuration according to claim 1 and call the method for rule of customizing form, it is characterized in that, described step S2 comprises following sub-step:
S21, in each rule, according to the actuating logic of rule, often perform event configuration incidence relation, described event is rule step or step condition;
S22, respectively the institute configured in each rule is relevantly stored in described incidence relation table in order.
3. configuration according to claim 2 and call the method for rule of customizing form, it is characterized in that, each incidence relation comprises the type of current event, the execution route of current event, the execution result of upper level event be true or perform the execution sequence of current event and this incidence relation for fictitious time.
4. configuration according to claim 3 and call the method for rule of customizing form, it is characterized in that, described step S4 comprises following sub-step:
S41, select a rule by the execution sequence of each rule;
S42, in order one by one according to the rule step of this rule stored in described incidence relation table and the incidence relation of step condition, perform store in described rule step table and described step condition table, the rule step corresponding with this rule and step condition;
S43, repetition step S41 to step S42 are until complete the strictly all rules performing this customizing form.
5. configuration according to claim 1 and call the method for rule of customizing form, it is characterized in that, in described rule list, corresponding stored comprises customizing form numbering and rule numbers, in described rule step table, corresponding stored comprises customizing form numbering, rule numbers, rule step numbering and step content, and in described step condition table, corresponding stored comprises customizing form numbering, rule numbers, step condition number and conditional content.
6. one kind configures and calls the system (100) of the rule of customizing form, described customizing form comprises one or more rule, each rule comprises one or more rule step and one or more step condition, it is characterized in that, described system (100) comprising:
First dispensing unit (110), for configuring respectively and preserving the rule list of customizing form, rule step table and step condition table;
Second dispensing unit (120), for the actuating logic according to each rule, configures the rule step of each rule and the incidence relation of step condition and is stored in incidence relation table;
Instruction response unit (130), for when the execution instruction receiving customizing form, from described rule list, obtain the information of the strictly all rules that this customizing form comprises, wherein, described execution instruction comprises the execution sequence of each rule;
Performance element (140), for performing the strictly all rules of this customizing form according to described execution sequence, wherein, according to the rule step of each rule stored in described incidence relation table and the incidence relation of step condition, the rule step stored in corresponding execution described rule step table and described step condition table and step condition, to perform each rule.
7. configuration according to claim 6 and call the system of rule of customizing form, it is characterized in that, described second dispensing unit (120) comprising:
Configuration module (121), for being each rule, according to the actuating logic of rule, often perform event configuration incidence relation, described event is rule step or step condition;
Memory module (122), for being stored in described incidence relation table in order by relevant for the institute configured in each rule respectively.
8. configuration according to claim 7 and call the system of rule of customizing form, it is characterized in that, each incidence relation comprises the type of current event, the execution route of current event, the execution result of upper level event be true or perform the execution sequence of current event and this incidence relation for fictitious time.
9. configuration according to claim 8 and call the method for rule of customizing form, it is characterized in that, described performance element (140) comprising:
Rules selection module (141), for selecting a rule by the execution sequence of each rule;
Execution module (142), for in order one by one according to the rule step of this rule stored in described incidence relation table and the incidence relation of step condition, perform store in described rule step table and described step condition table, the rule step corresponding with this rule and step condition.
10. configuration according to claim 6 and call the system of rule of customizing form, it is characterized in that, in described rule list, corresponding stored comprises customizing form numbering and rule numbers, in described rule step table, corresponding stored comprises customizing form numbering, rule numbers, rule step numbering and step content, and in described step condition table, corresponding stored comprises customizing form numbering, rule numbers, step condition number and conditional content.
CN201310244019.6A 2013-06-19 2013-06-19 A kind of method and system of configuration and the rule for calling customizing form Active CN104239017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310244019.6A CN104239017B (en) 2013-06-19 2013-06-19 A kind of method and system of configuration and the rule for calling customizing form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310244019.6A CN104239017B (en) 2013-06-19 2013-06-19 A kind of method and system of configuration and the rule for calling customizing form

Publications (2)

Publication Number Publication Date
CN104239017A true CN104239017A (en) 2014-12-24
CN104239017B CN104239017B (en) 2018-09-14

Family

ID=52227167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310244019.6A Active CN104239017B (en) 2013-06-19 2013-06-19 A kind of method and system of configuration and the rule for calling customizing form

Country Status (1)

Country Link
CN (1) CN104239017B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132777A (en) * 2016-11-30 2018-06-08 上海驭创信息科技有限公司 Across the table exploitation system and method for one kind
CN110737439A (en) * 2019-10-18 2020-01-31 四川长虹电器股份有限公司 Equipment control system and method based on rule file

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581060B1 (en) * 2000-06-21 2003-06-17 International Business Machines Corporation System and method for RDBMS to protect records in accordance with non-RDBMS access control rules
CN101308490A (en) * 2008-04-28 2008-11-19 北京航空航天大学 Dynamic report generation method and platform
US20100106950A1 (en) * 2008-10-29 2010-04-29 International Business Machines Corporation Method and system for loading status control of dll
CN101706716A (en) * 2009-09-08 2010-05-12 南京师范大学 VO-based form customization, configuration and parsing operation method
CN102841938A (en) * 2012-08-14 2012-12-26 北京久其软件股份有限公司 Method and system for generating parameterized report
CN103020158A (en) * 2012-11-26 2013-04-03 中兴通讯股份有限公司 Report form creation method, device and system
CN103092890A (en) * 2011-11-08 2013-05-08 苏州中茵泰格科技有限公司 System and method for automatic generation and sending of reports

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581060B1 (en) * 2000-06-21 2003-06-17 International Business Machines Corporation System and method for RDBMS to protect records in accordance with non-RDBMS access control rules
CN101308490A (en) * 2008-04-28 2008-11-19 北京航空航天大学 Dynamic report generation method and platform
US20100106950A1 (en) * 2008-10-29 2010-04-29 International Business Machines Corporation Method and system for loading status control of dll
CN101706716A (en) * 2009-09-08 2010-05-12 南京师范大学 VO-based form customization, configuration and parsing operation method
CN103092890A (en) * 2011-11-08 2013-05-08 苏州中茵泰格科技有限公司 System and method for automatic generation and sending of reports
CN102841938A (en) * 2012-08-14 2012-12-26 北京久其软件股份有限公司 Method and system for generating parameterized report
CN103020158A (en) * 2012-11-26 2013-04-03 中兴通讯股份有限公司 Report form creation method, device and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘迎春等: "基于Web的工作流系统中表单定义与处理", 《计算机工程与应用》 *
廖斌: "基于Web工作流表单的设计与实现", 《科学技术与工程》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132777A (en) * 2016-11-30 2018-06-08 上海驭创信息科技有限公司 Across the table exploitation system and method for one kind
CN110737439A (en) * 2019-10-18 2020-01-31 四川长虹电器股份有限公司 Equipment control system and method based on rule file
CN110737439B (en) * 2019-10-18 2022-07-22 四川长虹电器股份有限公司 Equipment control system and method based on rule file

Also Published As

Publication number Publication date
CN104239017B (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN101599039B (en) Abnormal handling method and device under embedded type C language environment
US8677333B2 (en) Virtual machine and programming language for event processing
US9330411B2 (en) High-performance graph analytics engine making recommendations using a finite state machine/FSM, bitmasks, and graphs with edges representing purchases, and vertices representing customers and products
CN105511730A (en) Application program switching method and device and terminal
CN109284321B (en) Data loading method, device, computing equipment and computer readable storage medium
US10360027B2 (en) Automatically extracting a model for the behavior of a mobile application
US7181464B2 (en) Forward-only evaluation for XPATH inverse query processing
CN104461702A (en) Business processing method and business processing device
CN112035314B (en) Memory leakage monitoring method and device and electronic equipment
US7725692B2 (en) Compact representation of instruction execution path history
CN111245907B (en) Event processing method and system based on rule matching
CN104239017A (en) Method and system for configuring and calling rules of customized form
CN111625625A (en) Method and device for determining abnormal log, computer equipment and storage medium
CN111507636A (en) Business process running state analysis method and system
Welch The extent of computation in Malament–Hogarth spacetimes
CN108304235A (en) page display method and device
CN110515750B (en) Application topology generation method, system and cluster
CN104346350A (en) Method and system for inquiring tree node of asynchronous tree
US9998341B2 (en) Method of constructing data collector, server performing the same and storage medium for the same
US20050268306A1 (en) Method and system for presenting actions associated with a managed object in a task context
CN107515867B (en) Data storage and query method and device of NoSQL database and generation method and device of rowKey full combination
CN108563578A (en) SDK compatibility detection method, device, equipment and readable storage medium storing program for executing
CN109840259B (en) Data query method and device, electronic equipment and readable storage medium
CN111753330B (en) Determination method, apparatus, device and readable storage medium for data leakage main body
CN114385764A (en) Reverse analysis method and device for relational database table structure

Legal Events

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