CN104239017B - A kind of method and system of configuration and the rule for calling customizing form - Google Patents
A kind of method and system of configuration and the rule for calling customizing form Download PDFInfo
- Publication number
- CN104239017B CN104239017B CN201310244019.6A CN201310244019A CN104239017B CN 104239017 B CN104239017 B CN 104239017B CN 201310244019 A CN201310244019 A CN 201310244019A CN 104239017 B CN104239017 B CN 104239017B
- Authority
- CN
- China
- Prior art keywords
- rule
- condition
- incidence relation
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The configuration of the present invention and the regular method and system for calling customizing form, system include that the first dispensing unit, the second dispensing unit, instruction response unit and execution unit, method include:S1, it is respectively configured and preserves the rule list of customizing form, rule step table and step condition table;S2, according to the execution logic of 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 executing instruction of customizing form is being received, the information for the strictly all rules that the customizing form includes is obtained from rule list;S4, the strictly all rules that the customizing form is executed according to execution sequence.Can quickly, the easy, rule that is configured flexibly in customizing form, simplify step regular in the customizing form for calling and having configured, improve the operational efficiency of system.
Description
Technical field
The present invention relates to computer realm, a kind of sides for customizing form of uniting more specifically to allocating computer
Method and system.
Background technology
Existing customizing form designer for example clicks event in design for some button arrangement on list, this
Click event may execute one or more rules, and each rule includes specific rule step again.When operation, when user is logical
The button clicked on the list is crossed, the click event of configuration is triggered, configuration rule corresponding with click event when calling design
Then gather, according to condition, by step executes one or more rules.
In existing many computer systems, if to realize rule R1 steps below:
According to the configuration mode of existing computer system customizing form, need to configure execution item for each rule step
Part then needs to carry out following configure to execute above-mentioned steps:
The first step:Configuration rule step 1 ();
Second step:The step condition 1 executed for 1 configuration successful of rule step;
Third walks:Configuration rule step 2 ();
4th step:The step condition 1 executed for 2 configuration successful of rule step;
5th step:The step condition 2 executed for 2 configuration successful of rule step;
6th step:Configuration rule step 3 ();
7th step:The step condition 1 executed for 3 configuration successful of rule step;
8th step:The step condition 2 of unsuccessful execution is configured for rule step 3;
9th step:Configuration rule step 4 ();
Tenth step:The step condition 1 executed for 4 configuration successful of rule step;
11st step:Configuration rule step 5 ();
12nd step:The step condition 1 of unsuccessful execution is configured for rule step 5.
The flow of the customizing form configured by the above method is run as shown in Figure 1, the path of its operation has:Step item
Part 1->Rule step 1;Step condition 1->Step condition 2->Rule step 2;Step condition 1->Step condition 2->Rule
Then step 3;Step condition 1->Rule step 4;Step condition 1->Rule step 5.
As it can be seen that since the execution step of the rule of above method configuration is comparatively laborious, repeated configuration entry is relatively more, match
The step of setting method underaction, causing when running customizing form is also relatively more, seriously affects system running speed.
Invention content
The present invention is directed to the drawbacks described above of the prior art, a kind of method for providing configuration and the rule for calling customizing form
And system, can quickly, the easy, rule that is configured flexibly in customizing form, simplify the customizing form for calling and having configured
The step of middle rule, improves the operational efficiency of system.
The application solve its technical problem the technical solution adopted is that:A kind of rule configured and call customizing form are provided
Method then, the customizing form include one or more rule, each rule include one or more rule steps and
One or more steps condition, the described method comprises the following steps:
S1, it is respectively configured and preserves the rule list of customizing form, rule step table and step condition table;
S2, according to the execution logic of each rule, the incidence relation of the rule step and step condition that configure each rule is simultaneously
It is stored in incidence relation table;
S3, when executing instruction of customizing form is being received, the customizing form is obtained from the rule list includes
Strictly all rules information, wherein it is described execute instruction including it is each rule execute sequence;
S4, the strictly all rules that the customizing form is executed according to execution sequence, wherein according to the incidence relation table
The rule step of each rule of middle storage and the incidence relation of step condition execute the rule step table and described accordingly
The rule step and step condition stored in step condition table, to execute each rule.
Preferably, the step S2 includes following sub-step:
S21, it is each rule in, according to rule execution logic, often execute one incidence relation of an event configuration, institute
It is rule step or step condition to state event;
S22, the institute configured in each rule relevant is stored in the incidence relation table in order respectively.
Preferably, each incidence relation includes the type of current event, the execution route of current event, upper level event
Implementing result be it is true or be fictitious time execute current event and the incidence relation execute sequence.
Preferably, the step S4 includes following sub-step:
S41, one rule of execution sequential selection by each rule;
S42, in order one by one according to the rule step and step condition of the rule stored in the incidence relation table
Incidence relation, execute rule step stored in the rule step table and the step condition table, corresponding with the rule
With step condition;
S43, strictly all rules of the step S41 to step S42 until completing the execution customizing form are repeated.
Preferably, corresponding storage includes customizing form number and rule numbers, the rule step in the rule list
Corresponding storage includes customizing form number, rule numbers, rule step number and step content, the step item in rapid table
Corresponding storage includes customizing form number, rule numbers, step condition number and conditional content in part table.
The system for providing a kind of configuration and the rule for calling customizing form, the customizing form include one or more
Rule, each rule include one or more rule steps and one or more steps condition, the system comprises:
First dispensing unit, rule list, rule step table and step for being respectively configured and preserving customizing form
Condition table;
Second dispensing unit configures the rule step and step item of each rule for the execution logic according to each rule
The incidence relation of part is simultaneously stored in incidence relation table;
Response unit is instructed, for receiving when executing instruction of customizing form, being obtained from the rule list should
The information for the strictly all rules that customizing form includes, wherein described execute instruction executes sequence including each rule;
Execution unit, the strictly all rules for executing the customizing form according to execution sequence, wherein according to described
The rule step of each rule stored in incidence relation table and the incidence relation of step condition execute the rule step accordingly
The rule step and step condition stored in rapid table and the step condition table, to execute each rule.
Preferably, second dispensing unit includes:
Configuration module, for often executing one association of an event configuration according to the execution logic of rule for each rule
Relationship, the event are rule step or step condition;
Memory module, for being stored in association pass in order by the institute configured in each rule is relevant respectively
It is table.
Preferably, each incidence relation includes the type of current event, the execution route of current event, upper level event
Implementing result be it is true or be fictitious time execute current event and the incidence relation execute sequence.
Preferably, the execution unit includes:
Regular selecting module, for one rule of execution sequential selection by each rule;
Execution module, in order one by one according to the rule step of the rule stored in the incidence relation table and
The incidence relation of step condition executes being stored in the rule step table and the step condition table, corresponding with the rule
Rule step and step condition.
Preferably, corresponding storage includes customizing form number and rule numbers, the rule step in the rule list
Corresponding storage includes customizing form number, rule numbers, rule step number and step content, the step item in rapid table
Corresponding storage includes customizing form number, rule numbers, step condition number and conditional content in part table.
The method and system of the configuration of the present invention and the rule of calling customizing form has the advantages that:Same table
The configuration of single rule, rule step and step condition is mutual indepedent, is independent of each other, and configuration is simple, by option and installment rule,
The mode of incidence relation between rule step and step condition carrys out the implementation procedure of configuration event, and configuration method is flexible, simplifies
Configuration step improves allocative efficiency;In addition, by call it is configure, by simplified operating procedure, improve to run and imitate
Rate.
Description of the drawings
Fig. 1 is the flow chart for the customizing form that operation is configured by existing method;
Fig. 2 is the configuration of the present invention and calls the flow chart of the method first embodiment of the rule of customizing form;
Fig. 3 is the flow chart for the rule list for configuring and preserving customizing form in the present invention;
Fig. 4 is the flow chart for configuring and preserving rule step table in the present invention;
Fig. 5 is the flow chart for configuring and preserving step condition table in the present invention;
Fig. 6 is the flow chart of the incidence relation of configuration rule step and step condition in the present invention;
Fig. 7 is in the present invention be button arrangement trigger event flow chart;
Fig. 8 is the flow chart for the rule that customizing form is executed in the present invention;
Fig. 9 is the flow chart of calling rule R1 in the present invention;
Figure 10 is the configuration of the present invention and calls the functional block diagram of the system of the rule of customizing form.
Specific implementation mode
Below in conjunction with drawings and examples the present invention will be further explained explanation.
Customizing form includes one or more rule, each rule include one or more rule steps and one or
Multiple step conditions, Fig. 2 are the flow chart of the method first embodiment of the configuration of the present invention and the rule of calling customizing form,
As shown in Fig. 2, in this embodiment, the method for the present invention includes the following steps:
S1, it is respectively configured and preserves the rule list of customizing form, rule step table and step condition table;
S2, according to the execution logic of each rule, the incidence relation of the rule step and step condition that configure each rule is simultaneously
It is stored in incidence relation table;
S3, when executing instruction of customizing form is being received, the customizing form is obtained from the rule list includes
Strictly all rules information, wherein it is described execute instruction including it is each rule execute sequence;
S4, the strictly all rules that the customizing form is executed according to execution sequence, wherein according to the incidence relation table
The rule step of each rule of middle storage and the incidence relation of step condition execute the rule step table and described accordingly
The rule step and step condition stored in step condition table, to execute each rule.
In the present invention, the format of rule list Form_Rule is as shown in table 1:
Table 1
Serial number | Column name | 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 |
For example, when executing preservation action, rule code can be set as [ Save ], and rule name can be set as [ preservation ], when holding
When row query actions, rule code can be set as [ Search ], and rule name can be set as [ inquiry ].
In step sl, the flow chart of the rule list of customizing form is configured and preserved as shown in figure 3, first, in rule
New rule numbers Rule_ID, the corresponding position in rule list are recorded in table(At different lines of going together)Upper record rule respectively
Code Rule_Code and rule name Rule_Name, wherein it is automatic carry that list, which encodes Form_ID,.Then rule is preserved
Table then judges whether to continue to configure, if the customizing form is only there are one rule, configuration process terminates, if this is self-defined
List includes multiple rules, then repeats above-mentioned configuration process and configured respectively to each rule.With the rule described in background technology
Then for R1, regular R1 belongs to customizing form F1, the configuration method of the rule list of customizing form through the invention, generates
Rule list 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 format of rule step table Form_Rule_Step is as shown in table 3:
Table 3
Serial number | Column name | Row coding | Type |
1 | Rule step number 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 |
For example, when executing preservation action, the first step need to obtain whether the required record preserved is unique, and second step is only guarantor
It deposits.At this point, first rule step title can be set as [ record uniqueness ], corresponding rule step content is [ Unique ].The
Two rule step titles can be set as [ preservation ], and corresponding rule step content is [ Save ].
In step sl, it configures and preserves the flow chart of rule step table as shown in figure 4, first, in rule step table
Record new rule step number Rule_Step_ID, the corresponding position in rule step table(At different lines of going together)Upper difference
Record rule step title Step_Name and configuration rule step content Step_Content, wherein list encodes Form_
ID is automatic carries.Then rule step table is preserved, then judges whether to continue to configure, is walked if the rule includes multiple rules
Suddenly, then above-mentioned configuration process is repeated respectively to configure each rule step.By taking the regular R1 described in background technology as an example,
Including three rule steps, number is respectively R_S_1, R_S_2, R_S_3, the configuration side of rule step table through the invention
The rule step table of method, 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 | Rule walks poly- 1 content |
R_S_2 | F1 | Rule step poly- 2 | Rule walks poly- 2 content |
R_S_3 | F1 | Rule step poly- 3 | Rule walks poly- 3 content |
R_S_4 | F1 | Rule step poly- 4 | Rule walks poly- 4 content |
R_S_5 | F1 | Rule step poly- 5 | Rule walks poly- 5 content |
In the present invention, in the present invention, the format of step condition table Form_Rule_Step_Condition such as 5 institute of table
Show:
Table 5
For example, when executing preservation action, whether the record that the possible first step need to obtain required preservation is unique, is as a result stored in
In variable, if record is unique, the value of variable is true, is otherwise false, and as the condition of second step preservation action.It holds
Before row second step preservation action, first judges that the value of this variable is true or is false, if true, executing preservation action, otherwise do not execute guarantor
Deposit action.
In step sl, it configures and preserves the flow chart of step condition table as shown in figure 5, first, in step condition table
Record new step condition number Condition_ID, the corresponding position in step condition table(At different lines of going together)Upper difference
Recording step conditional name Condition_Name and configuration step conditional content Step_Content, wherein list encodes
Form_ID is automatic carrying, then preserves step condition table, then judges whether to continue to configure, if the rule includes multiple steps
Rapid condition then repeats above-mentioned configuration process and is configured respectively to each step condition.It is with the regular R1 described in background technology
Example comprising two step conditions, number are respectively C_1, C_2, and the configuration method of rule step table through the invention generates
Step condition table can be as shown in table 6:
Table 6
Condition_ID | Form_ID | Condition_Name | Step_Content |
C_1 | F1 | Step condition 1 | 1 content of step condition |
C_2 | F1 | Step condition 2 | 2 content of step condition |
The step of configuration rule table, rule step table and step condition table, is mutual indepedent in step S1, is independent of each other, and
Configuration process is simple, and above three table is easy to maintain.
In the present invention, the format such as table of rule step and the incidence relation table Form_Rule_Relation of step condition
7:
Table 7
Wherein, Object_ID storages be current event number, wherein event is rule step or step condition,
Rule step Knitting or step condition Knitting are stored in Object_ID to determine according to actual execution step.Parent_ID
Middle storage upper level event Knitting(It is step condition number in actual conditions).Storage is held according to logic is executed in FullPath
System-wide strength of the row to current event.IsTrue storages be the result of calculation of upper level event are true or to be that fictitious time executes current
Event, wherein 0 is false, and 1 is true.Order storages are that the incidence relation executes sequence, wherein incidence relation is same
It is ranked up in one list, same rule.What Type was stored is the type of current event, wherein 0 is step condition, and 1 is rule
Step can distinguish expression event type using other any modes.
In the present embodiment, step S2 includes following sub-step:S21, it is each rule in, according to rule execution patrol
Volume, one incidence relation of an event configuration is often executed, the event is rule step or step condition;S22, respectively will be every
The institute configured in a rule relevant is stored in incidence relation table in order.
Fig. 6 is the flow chart of the incidence relation of configuration rule step and step condition in the present invention, first as shown in Fig. 6
First, the incidence relation for increasing the rule of this list newly, i.e., record the number of the incidence relation in the numbered bin in incidence relation table
(Relation_ID), it is automatic carry that list, which encodes Form_ID,;Then, a rule in this list is selected, i.e., in correspondence
Rule numbers column in record the rule numbers;Then, the actual execution logic of the rule is obtained(Such as described in background technology
Execution logic), whether it is step condition according to the currently performed event of logic judgment is executed;If then selecting the step item
Part configures its incidence relation:On the columns corresponding current event Knitting(Object_ID)The middle number for recording the step condition
(Condition_ID), on corresponding higher level's Case Number column(Parent_ID)In level-one event recorded thereon number(In reality
Border application in be only possible to be upper level step condition number Condition_ID, if current event be first thing being performed
Part, then this column is sky), on corresponding complete trails column(FullPath)The execution route of middle record current event(It is held from first
Capable event starts the path to current event), on " whether being a true " column(IsTrue, alternatively referred to as true value column, if current thing
Part is first event being performed, then is defaulted as herein true)The implementing result of middle record upper level event is true or is false
(1 or 0)Shi Zhihang current events, on corresponding execution sequence column(Order)It is middle record the incidence relation execute sequence, right
The event type answered(Typle)The type of current event is recorded in one column(It is at this time step condition, can be indicated with 0).
Due to complete before be a step condition incidence relation configuration, necessarily also have after the step condition
Therefore next stage event increases a line newly in incidence relation table;According to logic is executed, incidence relation configuration is just completed in selection
Step condition content result of calculation be true value or be fictitious time execute subordinate's event(By taking regular R1 as an example, if just
The step condition for completing incidence relation configuration is C_1, and according to logic is executed, the result of calculation of the content of C_1 executes when true
Next stage event is R_S_1, therefore selects true value in this step);Then, using next stage event as currently performed thing
Part currently executes whether event is step condition, if then repeating above-mentioned to step item according to the practical logic judgment that executes
The configuration process of the incidence relation of part configures its incidence relation if otherwise selecting the rule step:In corresponding current event Knitting
Number column(Object_ID)The middle number for recording the rule step(Rule_Step_ID), on corresponding higher level's Case Number column
(Parent_ID)In level-one event recorded thereon number(That is the step condition number Condition_ID of upper level), right
The complete trails column answered(FullPath)The execution route of middle record current event(To current thing since the event of first execution
The path of part), the implementing result of record upper level event is true or is that fictitious time executes current thing in " whether being true " column
Part(By taking regular R1 as an example, in the incidence relation of R_S_1, IsTrue is true), on corresponding execution sequence column(Order)Middle record
The incidence relation executes sequence, in corresponding event type(Typle)The type of current event is recorded in one column(It is rule at this time
Then, it can be indicated with 1), after having recorded above- mentioned information, complete the configuration of the incidence relation;Then judge whether to continue, that is, exist
Whether it is not configured the event of incidence relation in the rule comprising other also, a line is increased newly if having, according to execution logic judgment
Its type is repeated the above process according to corresponding type, until completing the configuration of the incidence relation of all events in a rule.
The configuration method of above-mentioned incidence relation according to the present invention is associated relationship with the pass for postponing generation to regular R1
It is as shown in table 8 to join relation table:
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 step condition Knitting, and rule step Knitting is child node, the two structure
At a tree structure.
It can be seen that in the present invention, often executing an event and just configuring an incidence relation, the relevant pass of institute of configuration
System is stored according to execution sequence of the corresponding event in executing logic in incidence relation table.Such configuration method is flexible, only
Incidence relation need to be changed, so that it may with by rule step table and step condition table rule step and step conditional combination at difference
Execution logic, to change rule implementation effect.
According to the configuration of each table in step S1-S2, implementation rule R1, executing logic can be reduced to:
In step s3, a button can be set, add the rule in customizing form for the button, touched in the button
After hair, judgement receives executing instruction for the customizing form, and the execution for not limiting transmission customizing form in the present invention refers to
The mode of order can be realized using any technology in the prior art.It is the stream of button arrangement trigger event in the present invention
Journey figure is as shown in fig. 7, first, startup customizing form designer is inserted into a button control in design panel, then clicks this and press
The attribute of button repeats the steps of the rule until completing addition customizing form:The rule of customizing form are added for the button
Then, corresponding information is obtained from rule list and incidence relation table.After the rule for completing addition customizing form, preservation is made by oneself
Adopted list, completing button configuration.After button is triggered, the strictly all rules number in the configuration information of the button is obtained.
In the present embodiment, step S4 includes following sub-step:S41, one rule of execution sequential selection by each rule;
S42, it is closed one by one according to the association of the rule step of the rule stored in the incidence relation table and step condition in order
System, executes rule step stored in the rule step table and the step condition table, corresponding with the rule and step item
Part;S43, strictly all rules of the step S41 to step S42 until completing the execution customizing form are repeated.According to trigger button
Mode come trigger execute customizing form in rule, in step S41, it is each rule in execution sequence refer in button
Sequence when addition rule.
It is executed in the present invention(It calls)The flow of the rule of customizing form is as shown in figure 8, flow initially enters step
S801 selects currently need to be performed one according to execution sequence in step S801 from the strictly all rules of acquisition number
Rule numbers;Then in step S802, the incidence relation information of the rule is obtained from incidence relation table;It enters step
S803 executes sequence according to the incidence relation of acquisition(Order)It determines in the rule and needs the thing being performed in the 1st (N) step
The type of part;In step S804, judge to need whether the event being performed is step condition in the 1st (N) step, if then counting
It calculates the content of the step condition and executes step S805, then follow the steps S810 if not;In step S805, judgment step condition
Whether the result of calculation of content is true;In step S806, if result of calculation in incidence relation table if true, find to work as
Preceding step condition is higher level's event(Parent_ID)And true value column is 1(Information i.e. in mono- columns IsTrue is 1)All knots
Fruit, and inquire result and sort according to the execution sequence of incidence relation;Then, in step S807, judge the knot found
Fruit records whether number is more than 0, if then return to step S803, thens follow the steps S808 if not;In step S808, judging should be certainly
Whether also include other rules, if then return to step S801, if otherwise terminating flow if defining in list.
Judge whether the result of calculation of step conditional content is that fictitious time executes step S809 in step S805, in step
In rapid S809, found in incidence relation table with current step condition as higher level's event(Parent_ID)And true value column is 0
(Information i.e. in mono- columns IsTrue is 0)It is all as a result, and inquire result according to incidence relation execution sequence sort,
Then step S807 is executed.
In step S810, judge to need whether the event being performed is rule step in the 1st (N) step, if otherwise returning
Step S803, if so then execute S811 is entered step after the rule step;In step S811, judge in the rule at this
Further include rule step or rule condition after rule step, if then return to step S803, thens follow the steps S808 if not.
The execution event of n-th rule is read by the execution sequence Order in incidence relation table, query statement is as follows
(mssql):
Select*from incidence relation table where Rule_id=' R1 ';
Rule condition 1 and IsTrue=1 are read by fullpath, Order is as a result pressed and sorts, querying condition is as follows
(mssql):
where left(fullpath,3)=’C_1’and IsTrue=1order by Order asc
Rule condition 2 and IsTrue=1 are read by fullpath, Order is as a result pressed and sorts, querying condition is as follows
(mssql):
where left(fullpath,6)=’C_1C_2’and IsTrue=1order by Order asc
It, when there is multiple step condition nestings, is adopted by fullpath read step conditions using filtering in memory herein
Use recursive fashion.
In the above by taking regular R1 as an example, rule list, rule step table, step are configured with for it according to the method for the present invention
Rapid condition and incidence relation table, respectively referring to shown in table 2,4,6,8.It executes as shown in Figure 9 by the flow of the R1 of above-mentioned configuration:
Step condition 1 is calculated after starting;Judge whether result of calculation is true;If then computation rule step 1;Then step item is calculated
Part 2;Then whether the result of calculation of judgment step condition 2 is true;If then computation rule step 2;Then computation rule step
Terminate after 4.If the result of calculation of step condition 2 is fictitious time, computation rule step 3;Then then computation rule step 4 is tied
Beam.If the result for calculating step condition 1 is fictitious time, then computation rule step 5 terminates.
It can be seen that in the present invention, since the step of configuring is fewer, so each rule in operation customizing form
Step is also less.
In the method for the rule of the configuration and calling customizing form of the present invention:On the one hand, the rule of same list, rule
Then the configuration of step and step condition is mutual indepedent, is independent of each other, and configuration is simple, by option and installment rule, rule step and
The mode of incidence relation between step condition carrys out the implementation procedure of configuration event, and configuration method is flexible, simplifies configuration step,
Improve allocative efficiency;On the other hand, by call it is configure, by simplified operating procedure, raising operational efficiency.
The functional block diagram of the system 100 of the configuration of the present invention and the rule of calling customizing form is as shown in Figure 10, system
100 include:
First dispensing unit 110, rule list, rule step table and step for being respectively configured and preserving customizing form
Rapid condition table;
Second dispensing unit 120 configures the rule step and step of each rule for the execution logic according to each rule
The incidence relation of condition is simultaneously stored in incidence relation table;
Response unit 130 is instructed, for receiving when executing instruction of customizing form, being obtained from rule list should be certainly
Define the information for the strictly all rules that list includes, wherein execute instruction and execute sequence including each rule;
Execution unit 140, the strictly all rules for executing the customizing form according to execution sequence, wherein according to association
The rule step of each rule stored in relation table and the incidence relation of step condition, corresponding executing rule step table and step
The rule step and step condition stored in rapid condition table, to execute each rule.
Wherein, corresponding storage includes customizing form number and rule numbers in rule list, is corresponded in rule step table
Storage includes customizing form number, rule numbers, rule step number and step content, and storage is corresponded in step condition table
Including customizing form number, rule numbers, step condition number and conditional content.
Second dispensing unit 120 includes:
Configuration module 121, for often executing an event configuration one according to the execution logic of rule for each rule
Incidence relation, the event are rule step or step condition, and each incidence relation includes the type of current event, current thing
The execution route of part, the implementing result of upper level event are true or are that fictitious time executes current event and the incidence relation
Execute sequence;
Memory module 122, for the institute configured in each rule relevant to be stored in the pass in order respectively
Join relation table.
Execution unit 140 includes:
Regular selecting module 141, for one rule of execution sequential selection by each rule;
Execution module 142, in order one by one according to the rule step of the rule stored in the incidence relation table
And the incidence relation of step condition, it executes being stored in the rule step table and the step condition table, right with the rule
The rule step and step condition answered.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should be included within scope of the presently claimed invention.
Claims (10)
1. a kind of method of the rule of configuration and calling customizing form, the customizing form includes one or more rules,
Each rule includes one or more rule steps and one or more steps condition, which is characterized in that the method includes
Following steps:
S1, it is respectively configured and preserves the rule list of customizing form, rule step table and step condition table;
S2, according to the execution logic of each rule, configure the rule step of each rule and incidence relation and the storage of step condition
In incidence relation table;
S3, when executing instruction of customizing form is being received, the institute that the customizing form includes is obtained from the rule list
Well-regulated information, wherein described execute instruction executes sequence including each rule;
S4, the strictly all rules that the customizing form is executed according to execution sequence, wherein deposited according in the incidence relation table
The rule step of each rule of storage and the incidence relation of step condition, execute the rule step table and the step accordingly
The rule step and step condition stored in condition table, to execute each rule.
2. the method for the rule of configuration according to claim 1 and calling customizing form, which is characterized in that the step
S2 includes following sub-step:
S21, it is each rule in, according to rule execution logic, often execute one incidence relation of an event configuration, the thing
Part is rule step or step condition;
S22, the institute configured in each rule relevant is stored in the incidence relation table in order respectively.
3. the method for the rule of configuration according to claim 2 and calling customizing form, which is characterized in that each association
Relationship include the type of current event, the execution route of current event, upper level event implementing result be true or be fictitious time
Execute current event and the incidence relation executes sequence.
4. the method for the rule of configuration according to claim 3 and calling customizing form, which is characterized in that the step
S4 includes following sub-step:
S41, one rule of execution sequential selection by each rule;
S42, in order one by one according to the rule step of the rule stored in the incidence relation table and the pass of step condition
Connection relationship executes rule step stored in the rule step table and the step condition table, corresponding with the rule and step
Rapid condition;
S43, strictly all rules of the step S41 to step S42 until completing the execution customizing form are repeated.
5. the method for the rule of configuration according to claim 1 and calling customizing form, which is characterized in that the rule
Corresponding storage includes customizing form number and rule numbers in table, and it includes self-defined to correspond to storage in the rule step table
Form number, rule numbers, rule step is numbered and step content, and corresponding storage includes self-defined in the step condition table
Form number, rule numbers, step condition number and conditional content.
6. a kind of system (100) of the rule of configuration and calling customizing form, the customizing form include one or more
Rule, each rule include one or more rule steps and one or more steps condition, which is characterized in that the system
(100) include:
First dispensing unit (110), rule list, rule step table and step for being respectively configured and preserving customizing form
Condition table;
Second dispensing unit (120) configures the rule step and step item of each rule for the execution logic according to each rule
The incidence relation of part is simultaneously stored in incidence relation table;
Response unit (130) is instructed, for receiving when executing instruction of customizing form, being obtained from the rule list should
The information for the strictly all rules that customizing form includes, wherein described execute instruction executes sequence including each rule;
Execution unit (140), the strictly all rules for executing the customizing form according to execution sequence, wherein according to institute
The rule step of each rule stored in incidence relation table and the incidence relation of step condition are stated, executes the rule accordingly
The rule step and step condition stored in step table and the step condition table, to execute each rule.
7. the system of the rule of configuration according to claim 6 and calling customizing form, which is characterized in that described second
Dispensing unit (120) includes:
Configuration module (121), for often executing one pass of an event configuration according to the execution logic of rule for each rule
Connection relationship, the event are rule step or step condition;
Memory module (122), for the institute configured in each rule relevant to be stored in the association in order respectively
Relation table.
8. the system of the rule of configuration according to claim 7 and calling customizing form, which is characterized in that each association
Relationship include the type of current event, the execution route of current event, upper level event implementing result be true or be fictitious time
Execute current event and the incidence relation executes sequence.
9. the system of the rule of configuration according to claim 8 and calling customizing form, which is characterized in that the execution
Unit (140) includes:
Regular selecting module (141), for one rule of execution sequential selection by each rule;
Execution module (142), in order one by one according to the rule step of the rule stored in the incidence relation table with
And the incidence relation of step condition, it executes being stored in the rule step table and the step condition table, corresponding with the rule
Rule step and step condition.
10. the system of the rule of configuration according to claim 6 and calling customizing form, which is characterized in that the rule
Then corresponding storage includes customizing form number and rule numbers in table, and it includes making by oneself that storage is corresponded in the rule step table
Adopted form number, rule numbers, rule step is numbered and step content, and corresponding storage includes making by oneself in the step condition table
Adopted form number, rule numbers, step condition number and conditional content.
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 CN104239017A (en) | 2014-12-24 |
CN104239017B true 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) |
Families Citing this family (3)
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 |
CN110737439B (en) * | 2019-10-18 | 2022-07-22 | 四川长虹电器股份有限公司 | Equipment control system and method based on rule file |
CN114371867B (en) * | 2020-10-14 | 2024-08-16 | 腾讯科技(深圳)有限公司 | Information processing method, device and medium for business rule |
Citations (6)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727345B (en) * | 2008-10-29 | 2013-09-04 | 国际商业机器公司 | Method and system for controlling loading state of dynamic link library DLL |
-
2013
- 2013-06-19 CN CN201310244019.6A patent/CN104239017B/en active Active
Patent Citations (6)
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 |
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)
Title |
---|
基于Web工作流表单的设计与实现;廖斌;《科学技术与工程》;20090228;第9卷(第3期);第721-724页 * |
基于Web的工作流系统中表单定义与处理;刘迎春等;《计算机工程与应用》;20050731;第192-195页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104239017A (en) | 2014-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105045514B (en) | A kind of application process management method and terminal | |
JP2019518257A (en) | State control method and apparatus | |
CN105260100A (en) | Information processing method, terminal and computer storage medium | |
CN104239017B (en) | A kind of method and system of configuration and the rule for calling customizing form | |
CN104133667B (en) | Realize method, device and the artificial intelligence editing machine of artificial intelligence behavior | |
CN106599229A (en) | Method and device for constructing business system based on Flex | |
JPWO2020219203A5 (en) | ||
CN105677334A (en) | General game state control system and method | |
CN102222043A (en) | Testing method and testing device | |
CN110058829A (en) | A kind of image processing method, device and storage medium | |
CN106230791A (en) | A kind of method and apparatus of single business many strategies Rapid matching | |
CN108304235A (en) | page display method and device | |
CN107147947B (en) | Key frame recognition methods and device | |
CN110287088A (en) | A kind of automated testing method based on dynamic UI model | |
CN105468699A (en) | Duplicate removal data statistics method and equipment | |
CN109144348A (en) | The implementation method and device of shortcut menu in a kind of application | |
CN101364233A (en) | Management system and management method for searching network resource | |
CN111767473B (en) | Object selection method and computer readable storage medium | |
CN107562619A (en) | A kind of automatic traversal control method and terminal based on neuron models | |
CN110465086A (en) | A kind of game articles methods of exhibiting, device and storage medium | |
CN105446601B (en) | A kind of playlist management method and mobile terminal | |
CN106055714A (en) | Method for capturing cloud calculating data from RIA (Rich Internet Application) page | |
CN109343913A (en) | A kind of game behavior tree control method | |
CN103765405A (en) | Persistent party rooms | |
CN108664550A (en) | It is a kind of that funnel analysis method and device are carried out to user behavior data |
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 |