Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without creative efforts
Range.
Fig. 1 shows the management method of the decision trigger method of the application one embodiment.The method of Fig. 1 can be by decision
The managing device of trigger method executes.As illustrated in FIG. 1, method includes:
S102, the selection in response to user input, and determine at least one business event attribute and the institute of current business event
State at least one corresponding relational operator of business event attribute.
As an example, decision trigger method administration page shown in Fig. 2 can be provided for user.Decision trigger method
" EventSelect list " and " operator " on administration page is drop-down choice box, and user can " EventSelect arranges by click
Table " combobox select current business event at least one business event attribute, by click " operator " combobox select to
Few corresponding relational operator of a business event attribute.Here relational operator is the attribute type with business event attribute
Compatible operator.The attribute type of business event attribute can be character string type, numeric type, amount of money type (including
The amount of money and currency type) etc..It is corresponding, if attribute type is character string type, relational operator may include " being equal to ",
" being not equal to ", "comprising", " not including " etc..If attribute type is numeric type, relational operator may include " being greater than ",
" being more than or equal to ", " being less than ", " being less than or equal to ", " being equal to ", " being not equal to " etc..
Above-mentioned business event attribute may include attribute code and Property Name shown in Fig. 2.For example, current industry
Business event is that account balance allots event, and attribute code is account balance code, and Property Name is account balance.
S104, the numerical value typing in response to the user input, and determine that at least one described business event attribute is corresponding
Preset attribute value.
It should be noted that numerical value typing input here can be the input modified to existing preset attribute value,
It is also possible to re-type the input of preset attribute value.
For example, user can it is shown in Fig. 2 go out decision trigger method administration page on " value " corresponding text box in
Carry out the input of preset attribute value.
Further, in S104, based on the attribute type of business event attribute, numerical value typing operation input is passed through to user
Numerical value carry out format check;In the case where format check passes through, the numerical value is determined as the business event attribute pair
The preset attribute value answered.In other words, the edit box of preset attribute value can be reasonably presented according to attribute type.For example, such as
Fruit attribute type be integer type, then the edit box of preset attribute value be integer editing component, can to user input numerical value into
Row format verification can prompt user input format mistake if the numerical value of user's input is not integer, carry out again defeated
Enter.By format check, maintenance cost caused by output error can be avoided.
S106, based on described at least one business event attribute, at least one described corresponding relationship of business event attribute
Operator and the corresponding preset attribute value of at least one described business event attribute, create at least one decision trigger condition category
Property.
As shown in Figure 2, each decision trigger condition attribute can have a serial number, which is generated by front end,
For one decision trigger condition attribute of unique identification.Decision trigger method administration page in Fig. 2 additionally provide " addition " and
" deletion " option, user can create new decision trigger condition attribute by " addition " option, can also be selected by " deletion "
The entry deletion one decision trigger condition attribute created.
S108, creates input in response to the decision trigger method of the user, triggers item based at least one described decision
Part attribute creates the decision trigger method.
As an example it is assumed that a business event attribute is account balance, preset attribute value is 200,000, corresponding relationship fortune
Operator is not equal to then decision trigger method is that account balance triggers decision operation when being not equal to 200,000.Here decision operation
Such as can be and produce that a part of money for having more 200,000 in 20 Wan Shicong accounts when account balance is greater than, when account balance is less than
That a part of money fewer than 200,000 is transferred in 20 Wan Shixiang accounts.
Further, the quantity of at least one decision trigger condition attribute is multiple, then in S108, based on described at least one
A decision trigger condition attribute creates the decision trigger method, comprising: based at least one described decision trigger condition attribute
With at least one logical operator, the decision trigger method is created.
In other words, decision trigger method may include that at least one is made of decision trigger condition attribute and logical operator
Logical expression.User can be created by decision trigger method and be inputted, and inputting at least one decision trigger condition attribute needs
The logical expression to be met, the logical expression may be considered decision trigger method.For example, one shown in Figure 2 is determined
Plan trigger method is 1&&2 | | 3.
Above at least one logical operator include at least one of following logical operator: with () or (|
|), non-(!) and left bracket (() and right parenthesis ()).Therefore a variety of logics of multiple decision trigger condition attributes be can be realized
The applicable scene of decision trigger method is enriched in combination.
Further, in some embodiments, decision trigger method includes at least one decision trigger condition;In this feelings
Under condition, in S108, based at least one decision trigger condition attribute and at least one logical operator, the decision triggering is created
Scheme, comprising: based at least one described decision trigger condition attribute and at least one described logical operator, creation at least one
A decision trigger condition;Based at least one described decision trigger condition, the decision trigger method is created, for example, showing in Fig. 2
1&&2 out | | 3 may be considered a decision trigger condition.
That is, a decision trigger method in the embodiment of the present application may include at least one decision triggering item
Part, a decision trigger condition can be made of multiple decision trigger condition attributes.Decision trigger condition and decision trigger condition
Relationship between attribute can relationship between decision trigger condition entity as shown in Figure 3 and decision trigger condition attribute entities
It shows.Condition in Fig. 3 refers to that decision trigger condition entity, table 1 show decision trigger condition entity attributes name
Claim and corresponding attribute specification.Condition_property in Fig. 3 refers to decision trigger condition attribute entities, in table 2
Show the Property Name and corresponding attribute specification of decision trigger condition attribute entities.
Table 1
Property Name |
Attribute specification |
id |
Decision trigger condition major key id, unique identification decision trigger condition |
expression |
Decision trigger condition, such as the 1&&2 in Fig. 2 | | 3 |
last_operator |
The last human editor of decision trigger condition |
gmt_creat |
The creation time of decision trigger condition |
gmt_modified |
The nearest modification time of decision trigger condition |
Table 2
It is understood that the S102-S108 in method shown in FIG. 1 is the method that front end executes.In creation decision touching
After originating party case, need for decision trigger method to be submitted to backstage.For example, user can click decision triggering side illustrated in fig. 2
The decision trigger method of creation is submitted to backstage by " submission " key on case administration page.
Further, as illustrated in FIG. 4, method shown in FIG. 1 further include:
S110 obtains the current attribute of at least one business event attribute when the current business event is preparatory
Value.
Optionally, in some embodiments, according to prefixed time interval, at least one business event attribute is obtained described
Current property value when current business event is run;Or, obtaining at least one business thing in the case where receiving instruction information
Current property value of the part attribute when the current business event is run.
Further, before S110, format check is carried out at least one decision trigger condition, it is corresponding, extremely
In the case that a few decision trigger condition format check passes through, obtains at least one service attribute and run in current business event
When current property value.
In other words, after decision trigger method is submitted to rear end, rear end carries out format check, example to decision trigger method
Whether the grammer for such as verifying the decision trigger condition in decision trigger method is correct.It is possible thereby to which decision trigger method is avoided to transport
Occur mistake during row, reduces maintenance cost.
S112, current property value, at least one described business event category based at least one business event attribute
Property preset attribute value and the corresponding relational operator of at least one described business event, determine at least one described business event
The corresponding relational calculus result of attribute.
S114, based on the relational calculus as a result, determining at least one described corresponding logical operation of decision trigger condition
As a result.
As an example it is assumed that a decision trigger condition is that account balance is greater than 50 yuan, then if current account balance is big
In 50 yuan, it is determined that the logic operation result of decision trigger condition is "true", is otherwise "false".
S116, when at least one described corresponding logic operation result of decision trigger condition is true, triggering with it is described
The relevant decision operation of decision trigger method.
For example, if decision trigger method includes two decision trigger conditions, a decision trigger condition is account
Remaining sum is greater than 50 yuan, another decision trigger condition is account balance less than 100 yuan, if current account balance is 80 yuan,
Then determine that the two decision trigger conditions are that very, i.e., will trigger decision operation relevant to decision trigger method.
It is understood that in the embodiment of the present application, decision trigger method and decision relevant to decision trigger method
Operation can be referred to as decision scheme.
Optionally, in some embodiments, the corresponding logical operation of decision trigger condition is judged using method shown in fig. 5
As a result.As illustrated in FIG. 5, method includes:
S502 obtains the decision trigger condition for needing to judge.
It is understood that having incidence relation (it is also assumed that business thing between business event and decision trigger method
There is incidence relation between part and decision scheme), there is incidence relation, decision between decision trigger method and decision trigger condition
There is incidence relation between trigger condition and decision trigger condition attribute.Pass through the pass between business event and decision trigger method
Incidence relation between connection relationship and decision trigger method and decision trigger condition is available to the decision for needing to judge touching
Clockwork spring part.
S504 obtains the relevant decision trigger condition attribute of decision trigger condition.
For example, obtaining decision according to the incidence relation between decision trigger condition and decision trigger condition attribute and triggering item
The relevant decision trigger condition attribute of part.For example, the condition_id in the id according to shown in table 1 and table 2 obtains decision
The relevant decision trigger condition attribute of trigger condition.
S506 traverses decision trigger condition attribute, judges whether the number for the decision trigger condition attribute not being traversed is big
In 0.
The traversal of decision trigger condition attribute can be realized by way of looping to determine.Such as setting int i=0, sentence
Whether the number of the disconnected decision trigger condition attribute not being traversed is greater than 0, that is, whether judges i < property_list.size ()
It is true.
S508 obtains the decision being currently traversed to when the number for the decision trigger condition attribute not being traversed is greater than 0
Current property value of the trigger condition attribute when business event is run.
For example, obtaining the decision trigger condition category being currently traversed to by entity attribute left_exp shown in table 3
The property current property value leftExpValue on business event at this time.
S510 obtains the corresponding relational operator of decision trigger condition attribute being currently traversed to.
Current property value and preset attribute value are carried out the corresponding operation of relational operator, obtain relational calculus knot by S512
Fruit.
For example, it is corresponding that leftExpValue and business side the preset attribute value right_exp being arranged are carried out operation
Operation, obtain operation result result.
S514 stores the corresponding relational calculus of decision trigger condition attribute being currently traversed to as a result, and returning to execution
S506 and its subsequent step.
For example, the key-value that result is stored as order_id and result map is mapped, key is decision triggering
The serial number of conditional attribute, result are the corresponding operation result of decision trigger condition attribute.
S516 obtains the institute that decision trigger condition includes when the number for the decision trigger condition attribute not being traversed is 0
There is the corresponding operation result of decision trigger condition attribute.
It is touched for example, the order_id in the expression attribute in table 1 is replaced with the corresponding decision of the order_id
Send out the corresponding result of conditional attribute.1&&2 in table 1 | | for 3, order_id 1,2 and 3, if 1 corresponding operation
It as a result is "true", 2 corresponding operation results are "false", and 3 corresponding operation results are "false", then expression attribute is Zhen &&
It is false | | it is false.
S518 determines the corresponding logic operation result of decision trigger condition.
True && as escribed above is false | | false, then the logic operation result of decision trigger condition is "false".
Below in conjunction with Fig. 6 detailed description according to the electronic equipment of the application one embodiment.With reference to Fig. 6, in hardware layer
Face, electronic equipment include processor, optionally, including internal bus, network interface, memory.Wherein, memory may include
Memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile deposit
Reservoir (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that it
Hardware required for his business.
Processor, network interface and memory can be connected with each other by internal bus, which can be industry
Standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect standard
(Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended
Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus,
Control bus etc..Only to be indicated with a four-headed arrow in Fig. 6, it is not intended that an only bus or one kind convenient for indicating
The bus of type.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer
The managing device of decision trigger method is formed on face.Processor executes the program stored of memory, and be specifically used for executing with
Lower operation:
In response to user selection input, determine current business event at least one business event attribute and it is described at least
The corresponding relational operator of one business event attribute;
In response to the numerical value typing input of the user, the corresponding default category of at least one described business event attribute is determined
Property value;
Based at least one described business event attribute, at least one described corresponding relational operator of business event attribute
Preset attribute value corresponding at least one described business event attribute, creates at least one decision trigger condition attribute;
Input is created in response to the decision trigger method of the user, based at least one described decision trigger condition category
Property, create the decision trigger method.
The method that the managing device by decision trigger method disclosed in the above-mentioned embodiment illustrated in fig. 1 such as the application executes can be with
It is realized applied in processor, or by processor.Processor may be a kind of IC chip, the processing energy with signal
Power.During realization, each step of the above method can pass through the integrated logic circuit or software of the hardware in processor
The instruction of form is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing
Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute the public affairs in the embodiment of the present application
Each method, step and the logic diagram opened.General processor can be microprocessor or the processor be also possible to it is any often
The processor etc. of rule.The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and hold
Row complete, or in decoding processor hardware and software module combine execute completion.Software module can be located at deposits at random
Reservoir, flash memory, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register
In mature storage medium.The storage medium is located at memory, and processor reads the information in memory, completes in conjunction with its hardware
The step of above method.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of the application, for example patrol
Collect device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each patrol
Unit is collected, hardware or logical device are also possible to.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, which holds when by the electronic equipment including multiple application programs
When row, the method that the electronic equipment can be made to execute embodiment illustrated in fig. 1, and be specifically used for executing following methods:
In response to user selection input, determine current business event at least one business event attribute and it is described at least
The corresponding relational operator of one business event attribute;
In response to the numerical value typing input of the user, the corresponding default category of at least one described business event attribute is determined
Property value;
Based at least one described business event attribute, at least one described corresponding relational operator of business event attribute
Preset attribute value corresponding at least one described business event attribute, creates at least one decision trigger condition attribute;
Input is created in response to the decision trigger method of the user, based at least one described decision trigger condition category
Property, create the decision trigger method.
Fig. 7 is the managing device structural schematic diagram of the decision trigger method of one embodiment of the application.Referring to FIG. 7,
In a kind of Software Implementation, the managing device 700 of decision trigger method can include: first processing units 71, second processing
Unit 72, third processing unit 73 and fourth processing unit 74, wherein
First processing units 71, the selection in response to user input, and determine at least one business thing of current business event
Part attribute and at least one described corresponding relational operator of business event attribute;
The second processing unit 72, the numerical value typing in response to the user input, and determine at least one described business event
The corresponding preset attribute value of attribute;
Third processing unit 73, based on described at least one business event attribute, at least one described business event attribute
Corresponding relational operator and the corresponding preset attribute value of at least one described business event attribute create the touching of at least one decision
Send out conditional attribute;
Fourth processing unit 74 creates input in response to the trigger method of the user, based at least one described decision
Trigger condition attribute creates the decision trigger method.
The managing device of the decision trigger method of the embodiment of the present application is inputted by the selection input of user, numerical value typing
And the creation of decision trigger method can be thus achieved in the creation input of decision trigger method, without business personnel by writing logic
The mode of script realizes the management of decision trigger method, can reduce management difficulty, improves the efficiency of management of decision trigger method,
And it can reduce and mistake is manually entered, to reduce the maintenance cost of technical staff.
Optionally, as one embodiment, the quantity of at least one decision trigger condition attribute be it is multiple, described the
Four processing units 74:
Based at least one described decision trigger condition attribute and at least one logical operator, the decision triggering is created
Scheme.
Optionally, as one embodiment, the decision trigger method includes at least one decision trigger condition;
Wherein, the fourth processing unit 74:
Based at least one described decision trigger condition attribute and at least one described logical operator, at least one is created
Decision trigger condition;
Based at least one described decision trigger condition, the decision trigger method is created.
Optionally, as one embodiment, described the second processing unit 72:
Based on the attribute type of the business event attribute, the number of the numerical value typing operation input is passed through to the user
Value carries out format check;
In the case where format check passes through, the numerical value is determined as the corresponding preset attribute of the business event attribute
Value.
Optionally, as one embodiment, at least one described logical operator include in following logical operator extremely
Few one kind: with or non-, left bracket and right parenthesis.
Optionally, as one embodiment, the fourth processing unit 74:
Obtain the current property value of at least one business event attribute when the current business event is run;
Current property value, at least one business event attribute based at least one business event attribute it is pre-
If attribute value and the corresponding relational operator of at least one described business event, at least one described business event attribute pair is determined
The relational calculus result answered;
Based on the relational calculus as a result, determining at least one described corresponding logic operation result of decision trigger condition;
When at least one described corresponding logic operation result of decision trigger condition is true, triggering is touched with the decision
The relevant decision operation of originating party case.
Optionally, as one embodiment, the fourth processing unit 74:
According to prefixed time interval, at least one described business event attribute is obtained when the current business event is run
Current property value;Or,
In the case where receiving instruction information, at least one described business event attribute is obtained in the current business thing
Current property value when part is run.
Optionally, as one embodiment, the fourth processing unit 74:
Format check is carried out at least one described decision trigger condition;
In the case where at least one described decision trigger condition format check passes through, at least one described business category is obtained
Property the current business event operation when current property value.
The managing device of the decision trigger method of the embodiment of the present application can also carry out decision trigger method of the Fig. 1 into Fig. 5
The method that executes of managing device, and realize function of the managing device in Fig. 1 to embodiment illustrated in fig. 5 of decision trigger method,
Details are not described herein.
In short, being not intended to limit the protection scope of the application the foregoing is merely the preferred embodiment of the application.
Within the spirit and principles of this application, any modification, equivalent replacement, improvement and so on should be included in the application's
Within protection scope.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.