CN107133090A - A kind of method for processing business and device - Google Patents
A kind of method for processing business and device Download PDFInfo
- Publication number
- CN107133090A CN107133090A CN201710308817.9A CN201710308817A CN107133090A CN 107133090 A CN107133090 A CN 107133090A CN 201710308817 A CN201710308817 A CN 201710308817A CN 107133090 A CN107133090 A CN 107133090A
- Authority
- CN
- China
- Prior art keywords
- subservice
- business
- expression formula
- determined
- variable
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012545 processing Methods 0.000 title claims abstract description 82
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000004364 calculation method Methods 0.000 claims description 31
- 230000008859 change Effects 0.000 description 33
- 238000012217 deletion Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 239000004744 fabric Substances 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Abstract
The invention provides a kind of method for processing business and device, this method includes:It is determined that at least one business, at least one corresponding subservice of at least one business, and at least one corresponding relevant parameter of each described subservice;Obtain pending business;It is determined that at least one subservice corresponding with the pending business, and each determined subservice relevant parameter corresponding with the pending business;According to the relevant parameter determined, at least one the described subservice determined is called;Using at least one subservice described in calling, the pending business is handled.This programme can improve business processing efficiency.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for processing business and device.
Background technology
With the development of information technology, need class of business to be processed more and more in enterprise, every kind of business is corresponded to respectively
There is respective data-processing interface.
In traditional management software product, at the logic between every kind of corresponding subservice of business and each subservice
Reason rule is usually fixed.For example, data-processing interface A correspondence leaving office business, leaving office business has two subservices, is respectively
Change personal information and release labour contract, when handling leaving office business, solution could be performed after change personal information need to be first carried out
Except labour contract.In addition, data-processing interface B correspondence registration business, it has change personal information and newly-increased labour contract respectively
Two subservices, when handling registration business, newly-increased labour contract is performed after first carrying out change personal information again.
When there is new business to need processing, developer needs the combination according to the corresponding different subservices of new business, builds
Vertical new data-processing interface, lays equal stress on and newly writes corresponding processing routine, cause business processing less efficient.
The content of the invention
The embodiments of the invention provide a kind of method for processing business and device, business processing efficiency can be improved.
In a first aspect, the embodiments of the invention provide a kind of method for processing business, including:
It is determined that at least one business, at least one corresponding subservice of at least one business, and described in each
At least one corresponding relevant parameter of subservice;
Obtain pending business;
It is determined that at least one subservice corresponding with the pending business, and each determined sub- industry
Business relevant parameter corresponding with the pending business;
According to the relevant parameter determined, at least one the described subservice determined is called;
Using at least one subservice described in calling, the pending business is handled.
Preferably,
The relevant parameter includes:The order information of the subservice;
The relevant parameter determined described in the basis, calls at least one the described subservice determined, including:
According to the order information for each subservice determined, at least one subservice described in determining is carried out
Sequence;
According to ranking results, at least one described subservice is called successively;
It is described that the pending business is handled using at least one the described subservice called, including:
According to the ranking results, at least one the described subservice called is performed successively, the pending business is entered
Row processing.
Preferably,
Each described subservice includes:At least one expression formula;
It is described to call at least one described subservice successively according to ranking results, including:
According to the relevant parameter and the ranking results, determine treated with described from subservice each described successively
The corresponding expression formula of processing business;
It is described according to the ranking results, at least one the described subservice determined is performed successively, to described pending
Business is handled, including:
According to the ranking results, the expression formula in each the described subservice determined is performed successively, waits to locate to described
Reason business is handled.
Preferably,
Each described expression formula includes:Computation rule between at least one variable, and each described variable;
The expression formula performed successively in each the described subservice determined, at the pending business
Reason, including:
Circulation performs following step N1 to N3, until the expression formula is the last expression in the ranking results
Formula:
N1:Computation rule between at least one variable and each described variable for being included according to the current expression
Calculated;
N2:Result of calculation is sent to next expression formula in the ranking results;
N3:At least one variable that next expression formula is included using the result of calculation and the expression formula and
Computation rule between each described variable is calculated.
Preferably,
At least one change included in next expression formula using the result of calculation and the expression formula
Before computation rule between amount and each described variable is calculated, further comprise:
Judge that whether corresponding with the next expression formula result of calculation predetermined constant be identical, if it is, holding
At least one variable that row next expression formula is included using the result of calculation and the expression formula and each
Computation rule between the variable is calculated, otherwise output error message.
Second aspect, the embodiments of the invention provide a kind of business processing device, including:Memory cell, acquiring unit, really
Order member and processing unit;Wherein,
The memory cell, for storing at least one business, at least one corresponding sub- industry of at least one business
Business, and at least one corresponding relevant parameter of each described subservice;
The acquiring unit, for obtaining pending business;
The determining unit, at least one sub- industry corresponding for determining the pending business that the acquiring unit is obtained
Business, and each determined subservice relevant parameter corresponding with the pending business;
The processing unit, for the relevant parameter determined according to the determining unit, from the memory cell
In call at least one the described subservice determined, and using at least one the described subservice called, to described pending
Business is handled.
Preferably,
The relevant parameter includes:The order information of the subservice;
The processing unit, for the order information according to each subservice determined, described in determining
At least one subservice is ranked up, and according to ranking results, at least one described subservice is called successively, and perform successively
At least one the described subservice called, is handled the pending business.
Preferably,
Each described subservice includes:At least one expression formula;
The processing unit, for according to the relevant parameter and the ranking results, successively from sub- industry each described
Expression formula corresponding with the pending business is determined in business, and performs the table in each the described subservice determined successively
Up to formula, the pending business is handled.
Preferably,
Each described expression formula includes:Computation rule between at least one variable, and each described variable;
The processing unit, following step N1 is performed to N3 for circulating, until the expression formula is the ranking results
In the last expression formula:
N1:Computation rule between at least one variable and each described variable for being included according to the current expression
Calculated;
N2:Result of calculation is sent to next expression formula in the ranking results;
N3:At least one variable that next expression formula is included using the result of calculation and the expression formula and
Computation rule between each described variable is calculated.
Preferably,
Unit in the place, is further used for judging whether the result of calculation is corresponding pre- with next expression formula
If constant is identical, if it is, performing next expression formula using bag in the result of calculation and the expression formula
Computation rule between at least one variable included and each described variable is calculated, otherwise output error message.
The embodiments of the invention provide a kind of method for processing business and device, get after pending business, determine
At least one corresponding subservice, and the corresponding relevant parameter of each subservice, then according to the relevant parameter determined,
Corresponding subservice is called, then using the subservice called out, processing business is treated and is handled.Thus, when there is new business
When needing processing, it is only necessary to determine the corresponding subservice of new business, and call corresponding subservice, utilize the subservice called out
New business can be handled, the corresponding new data-interface of combination of new subservice without setting up, and compiled again
Corresponding processing routine is write, so as to improve business processing efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart for method for processing business that one embodiment of the invention is provided;
Fig. 2 is a kind of flow chart for method for processing business that another embodiment of the present invention is provided;
Fig. 3 is a kind of structural representation for business processing device that one embodiment of the invention is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of method for processing business, this method may comprise steps of:
Step 101:It is determined that at least one business, at least one corresponding subservice of at least one business, and often
At least one corresponding relevant parameter of one subservice;
Step 102:Obtain pending business;
Step 103:It is determined that at least one subservice corresponding with the pending business, and each determined
Subservice relevant parameter corresponding with the pending business;
Step 104:According to the relevant parameter determined, at least one the described subservice determined is called;
Step 105:Using at least one subservice described in calling, the pending business is handled.
In above-described embodiment, get after pending business, determine at least one corresponding subservice, and it is each
The corresponding relevant parameter of individual subservice, then according to the relevant parameter determined, calls corresponding subservice, then using calling
The subservice gone out, treats processing business and is handled.Thus, when there is new business to need processing, it is only necessary to determine new business pair
The subservice answered, and corresponding subservice is called, new business can be handled using the subservice called out, without building
The corresponding new data-interface of combination of vertical new subservice, and corresponding processing routine is write again, so as to improve industry
Business treatment effeciency.
In one embodiment of the invention, the relevant parameter includes:The order information of the subservice;
The embodiment of step 104, can include:
According to the order information for each subservice determined, at least one subservice described in determining is carried out
Sequence;
According to ranking results, at least one described subservice is called successively;
The embodiment of step 105 can include:
According to the ranking results, at least one the described subservice called is performed successively, the pending business is entered
Row processing.
For example, corresponding two subservices of leaving office business, respectively change personal information and change labour contract,
Determine after two subservices, corresponding order information is distinguished according to it, two subservices are ranked up, change personnel's letter
Breath is preceding, and change labour contract then calls and performed successively two subservices, the place of completion leaving office business rear according to this order
Reason.Thus, each subservice can be called and performed successively according to the order information of each subservice, complete pending business
Processing, so as to further improve the efficiency of business processing.
Specifically, in one embodiment of the invention, each described subservice includes:At least one expression formula;
It is described to call at least one described subservice successively according to ranking results, including:
According to the relevant parameter and the ranking results, determine treated with described from subservice each described successively
The corresponding expression formula of processing business;
It is described according to the ranking results, at least one the described subservice determined is performed successively, to described pending
Business is handled, including:
According to the ranking results, the expression formula in each the described subservice determined is performed successively, waits to locate to described
Reason business is handled.
For example, the subservice of change personal information includes two expression formulas, respectively leaving office business-deletion personnel letter
Breath and registration business-newly-increased personal information, change labour contract include two expression formulas, respectively leaving office business-releasing work
Contract and registration business-signing labour contract.Then determining the corresponding change personal information subservice of leaving office business and change
After the subservice of labour contract, corresponding relevant parameter is distinguished further according to two subservices, its specific expression formula point is determined
Not Wei leaving office business-deletion personal information and leaving office business-releasing labour contract, further according to the corresponding order of two subservices,
Two expression formulas determined are performed successively, complete the processing to leaving office business.Thus, according to specific expression formula in subservice
Treat processing business to be handled so that processing procedure is more accurate, so as to improve the accuracy rate of business processing.
In one embodiment of the invention, each described expression formula includes:At least one variable, and each described variable
Between computation rule;
The expression formula performed successively in each the described subservice determined, at the pending business
Reason, including:
Circulation performs following step N1 to N3, until the expression formula is the last expression in the ranking results
Formula:
N1:Computation rule between at least one variable and each described variable for being included according to the current expression
Calculated;
N2:Result of calculation is sent to next expression formula in the ranking results;
N3:At least one variable that next expression formula is included using the result of calculation and the expression formula and
Computation rule between each described variable is calculated.
Herein, the variable in expression formula is identifier and keyword of some specific formats etc., for example, (#TODAY) table
Show generation current time, (#NEWID) represents the random Guid of generation, and (#DEADLINE) represents the generation time, and (#GLOBAL) is represented
Expression formula is directly inputted by outside, computation rule is accorded with including some certain operations, for example, " " is represented when the pending industry obtained
When the data format of business is Json or Dictionary, the form of (#Block name identification .Key1) can be used to obtain whole part
Keyword is Key1 data in data." " operator is supported continuously to use, such as (#Block name identification .Key1.key1) table
Show the key1 data obtained in the corresponding data of keyword Key1.
In business procession, corresponding keyword and/or identifier are determined by the operator in expression formula, then
The keyword determined and/or identifier are sent to next expression formula, next expression formula is further according to the key received
Word and/or identifier obtain data.Thus achieve and completed to treat the processing of processing business according to the expression formula determined, and
The execution of next expression formula need to obtain the result of calculation of an expression formula output so that execution sequence is more rigorous accurate, enters
One step improves the accuracy of business processing.
In one embodiment of the invention, the result of calculation and the expression formula are utilized in next expression formula
Before computation rule between at least one variable included and each described variable is calculated, it may further include:
Judge that whether corresponding with the next expression formula result of calculation predetermined constant be identical, if it is, holding
At least one variable that row next expression formula is included using the result of calculation and the expression formula and each
Computation rule between the variable is calculated, otherwise output error message.
For example, when handling leaving office business, after the expression formula of leaving office business-deletion personal information is performed, performing
Before the expression formula of leaving office business-releasing labour contract, judge that the data of the expression formula of leaving office business-deletion personal information are calculated
As a result it is whether identical with the corresponding predetermined constant of expression formula of default leaving office business-releasing labour contract, only when identical,
The expression formula of leaving office business-releasing labour contract can be just continued executing with, this causes business procession more rigorous accurate, so as to enter
One step improves the accuracy of business handling.
Below exemplified by handling leaving office business, method for processing business provided in an embodiment of the present invention is described in detail,
As shown in Fig. 2 this method may comprise steps of:
Step 201:It is determined that leaving office business and registration business distinguish corresponding subservice, and the corresponding pass of each subservice
Join parameter.
Herein, leaving office business can be obtained from data source and registration business distinguishes corresponding subservice, and is stored in OTI clothes
It is engaged in pond.
For example, each subservice code is as follows:
OTI configurations are as shown in table 1:
Table 1
Method in this OTI, is for changing the public method come into force, not only trying out in leaving office business, it can also be used to enter
Occupation business, transfer or other business such as become a full member, with the repeatable superiority chosen and called.
The corresponding relevant parameter of each subservice is stored in Block, and Block configuration information is as shown in table 2:
Table 2
Step 202:Pending leaving office business is obtained, and determines that corresponding two subservices of pending leaving office business are change
Personal information and change labour contract, and two subservices distinguish corresponding relevant parameter.
Step 203:The order information that corresponding relevant parameter includes is distinguished according to two subservices, to change personnel's letter
Breath subservice and change labour contract subservice are ranked up.
For example, change personal information subservice is ranked the first, change labour contract subservice is come into last position.
Step 204:Corresponding relevant parameter is distinguished according to the order and two subservices of two subservices, from change personnel
Leaving office business-corresponding expression formula of deletion personal information is called in information subservice, is called from change labour contract subservice
Leaving office business-corresponding the expression formula of releasing labour contract.
Herein, change personal information subservice includes two expression formulas, respectively leaving office business-deletion personal information and
Registration business-newly-increased personal information, change labour contract subservice includes two expression formulas, respectively leaving office business-releasing labor
Dynamic circuit connector with and registration business-signing labour contract.Then distinguish corresponding relevant parameter according to two subservices, determine that its is specific
Expression formula is respectively leaving office business-deletion personal information and leaving office business-releasing labour contract, further according to two subservice correspondences
Order call successively.
When calling, using stored in Block ITP service with OTI service relevant parameter, by ITP service from
Call one or more OTI to service in OTI service pools, herein, call two OTI services.
For example, ITP services entitled HRPCDimissionBillEffect, data source format is Json, the reality got
Data are as follows:
ITP services be wrap up a business one layer of most external, external call ITP services be also thus layer enter, this from
The ITP service configuration of occupation business is as shown in table 3:
Table 3
Step 205:Leaving office business-corresponding expression formula of deletion personal information is performed, and exports implementing result.
Step 206:Judge whether implementing result is identical with default leaving office business-corresponding constant of releasing labour contract,
If it is, performing step 207, step 208 is otherwise performed.
Step 207:Leaving office business-corresponding expression formula of releasing labour contract is performed, and terminates current process.
The step can at least be realized by following program language:
Step 208:Output error message.
Herein, the expression formula of each subservice is stored in Param, when platform performs ITP can according to expression formula, from
Fetch and arrange in ITP data sources, the result after arrangement is used as parameter value.Multiple parameter values transfer to Block, incoming corresponding sub- industry
Performed in business method.The parameter that this example neutron operational approach needs is changeTypeId (changing type ID), personNm (people
Member's ISN), dicValues (incremental data dictionary), changeTypeId (changes type ID), personNm (personnel's ISN),
DicValues (incremental data dictionary) is corresponding respectively to be defined as shown in table 4 to table 6:
Table 4
Table 5
Table 6
In the scene that prior art is serviced without using ITP, this situation is such as run into, not merely needs customized development to release labor
The same interface of dynamic circuit connector, in addition it is also necessary to change the code of leaving office operational approach, recognize the project and increase call release labour contract
Interface, pole is unfavorable for production development.But in the case, it is only necessary to which the subservice method code for providing releasing labour contract is concurrent
Cloth OTI is serviced, and is mounted on the ITP of leaving office business, you can variation is performed when calling ITP to service and comes into force, release labor
Dynamic circuit connector realizes the extension of subservice method, without changing standardized product with two sub- operational approaches.
When the incoming ITP data serviced are Dictionary or Json, and its Key value and the OTI subservices called
When the parameter name stated in method is consistent, Param configuration can be saved, configuration complexity is reduced, ease for use is improved.
The return value of configuration ITP services describes attribute, can construct the return value form of ITP services, it is possible to specify return
The return value of some subservice method, also can return to a certain (if subservice method in subservice method return value in ITP services
Return value is Dictionary or Json), it might even be possible to by return value (full dose is a certain) group of multiple subservice methods
Synthesize new a Json or List.
, can be by existing ITP business as having sent out when including one or more existing complete ITP business in some business
The OTI services of cloth are used, and method is associated ITP unanimously with OTI with using Block.
Using the method when performing releasing labour contract subservice, it need to be configured accordingly, its detailed process is as follows:
Firstly the need of providing the code for releasing labour contract subservice method and stating that OTI is serviced, following program can be passed through
Language is realized:
Release the corresponding OTI configurations of labour contract as shown in table 7:
Table 7
OTI configuration attributes | Property value |
OTI Service names | ReleaseContractAPI |
OTI service describings | Release labour contract |
Program set name | Genersoft.HR.CO.Core |
Class name | Genersoft.HR.CO.Core.HRContractBaseMgr |
Method name | ReleaseContract |
Parameter (comma is separated) | personNm,bizDate,isChangeSuccess |
Singleton name | NULL |
Then OTI services are suspended under original leaving office business ITP by Block, Block configuration is as shown in table 8:
Table 8
In the releasing labour contract subservice method of exploitation, required parameter is stated.Therefore need to define these ginsengs
Several Param configurations, are corresponded with releasing the parameter needed for labour contract subservice method.Release labour contract subservice
Parameter needed for method is personNm (personnel's ISN), bizDate (business hours), and (personnel become isChangeSuccess
It is dynamic whether to succeed).It should be noted that personnel's ISN parameter and business hours (being leaving date in this business) are in incoming ITP
It can be got in the data of business, and whether isChangeSuccess personnel change and successful then need to use first subservice
The return value of method.Therefore (personnel become by personNm (personnel's ISN), bizDate (business hours), isChangeSuccess
It is dynamic whether to succeed) corresponding configuration is distinguished as shown in table 9 to table 11:
Table 9
Table 10
Table 11
So far configuration complete, because using caching mechanism, it is necessary to which restarting IIS side can come into force.Standard production need not thus be changed
Product code, realizes the extension of subservice method, while in turn ensure that the durability of customized development subservice method.
As shown in figure 3, the embodiments of the invention provide a kind of business processing device, including:Memory cell 301, acquisition are single
Member 302, determining unit 303 and processing unit 304;Wherein,
The memory cell 301, for storing at least one business, at least one corresponding son of at least one business
Business, and at least one corresponding relevant parameter of each described subservice;
The acquiring unit 302, for obtaining pending business;
The determining unit 303, for determining corresponding at least one of pending business that the acquiring unit is obtained
Subservice, and each determined subservice relevant parameter corresponding with the pending business;
The processing unit 304, it is single from the storage for the relevant parameter determined according to the determining unit
At least one the described subservice determined is called in member 301, and using at least one the described subservice called, is treated to described
Processing business is handled.
In above-described embodiment, get after pending business, determine at least one corresponding subservice, and it is each
The corresponding relevant parameter of individual subservice, then according to the relevant parameter determined, calls corresponding subservice, then using calling
The subservice gone out, treats processing business and is handled.Thus, when there is new business to need processing, it is only necessary to determine new business pair
The subservice answered, and corresponding subservice is called, new business can be handled using the subservice called out, without building
The corresponding new data-interface of combination of vertical new subservice, and corresponding processing routine is write again, so as to improve industry
Business treatment effeciency.
In one embodiment of the invention, the relevant parameter includes:The order information of the subservice;
The processing unit 304, for the order information according to each subservice determined, to the institute determined
State at least one subservice to be ranked up, and according to ranking results, at least one described subservice is called successively, and hold successively
At least one described subservice that row is called, is handled the pending business.
For example, corresponding two subservices of leaving office business, respectively change personal information and change labour contract,
Determine after two subservices, corresponding order information is distinguished according to it, two subservices are ranked up, change personnel's letter
Breath is preceding, and change labour contract then calls and performed successively two subservices, the place of completion leaving office business rear according to this order
Reason.Thus, each subservice can be called and performed successively according to the order information of each subservice, complete pending business
Processing, so as to further improve the efficiency of business processing.
Specifically, in one embodiment of the invention, each described subservice includes:At least one expression formula;
The processing unit 304, for according to the relevant parameter and the ranking results, successively from son each described
Expression formula corresponding with the pending business is determined in business, and is performed successively in each the described subservice determined
Expression formula, is handled the pending business.
For example, the subservice of change personal information includes two expression formulas, respectively leaving office business-deletion personnel letter
Breath and registration business-newly-increased personal information, change labour contract include two expression formulas, respectively leaving office business-releasing work
Contract and registration business-signing labour contract.Then determining the corresponding change personal information subservice of leaving office business and change
After the subservice of labour contract, corresponding relevant parameter is distinguished further according to two subservices, its specific expression formula point is determined
Not Wei leaving office business-deletion personal information and leaving office business-releasing labour contract, further according to the corresponding order of two subservices,
Two expression formulas determined are performed successively, complete the processing to leaving office business.Thus, according to specific expression formula in subservice
Treat processing business to be handled so that processing procedure is more accurate, so as to improve the accuracy rate of business processing.
In one embodiment of the invention, each described expression formula includes:At least one variable, and each described variable
Between computation rule;
The processing unit, following step N1 is performed to N3 for circulating, until the expression formula is the ranking results
In the last expression formula:
N1:Computation rule between at least one variable and each described variable for being included according to the current expression
Calculated;
N2:Result of calculation is sent to next expression formula in the ranking results;
N3:At least one variable that next expression formula is included using the result of calculation and the expression formula and
Computation rule between each described variable is calculated.
Herein, the variable in expression formula is identifier and keyword of some specific formats etc., for example, (#TODAY) table
Show generation current time, (#NEWID) represents the random Guid of generation, and (#DEADLINE) represents the generation time, and (#GLOBAL) is represented
Expression formula is directly inputted by outside, computation rule is accorded with including some certain operations, for example, " " is represented when the pending industry obtained
When the data format of business is Json or Dictionary, the form of (#Block name identification .Key1) can be used to obtain whole part
Keyword is Key1 data in data." " operator is supported continuously to use, such as (#Block name identification .Key1.key1) table
Show the key1 data obtained in the corresponding data of keyword Key1.
In business procession, corresponding keyword and/or identifier are determined by the operator in expression formula, then
The keyword determined and/or identifier are sent to next expression formula, next expression formula is further according to the key received
Word and/or identifier obtain data.Thus achieve and completed to treat the processing of processing business according to the expression formula determined, and
The execution of next expression formula need to obtain the result of calculation of an expression formula output so that execution sequence is more rigorous accurate, enters
One step improves the accuracy of business processing.
In one embodiment of the invention, unit 304 in the place, be further used for judging the result of calculation whether with institute
The corresponding predetermined constant of next expression formula is stated identical, if it is, performing next expression formula utilizes the meter
Computation rule between at least one variable and each described variable that calculation result and the expression formula include is calculated, no
Then output error message.
For example, when handling leaving office business, after the expression formula of leaving office business-deletion personal information is performed, performing
Before the expression formula of leaving office business-releasing labour contract, judge that the data of the expression formula of leaving office business-deletion personal information are calculated
As a result it is whether identical with the corresponding predetermined constant of expression formula of default leaving office business-releasing labour contract, only when identical,
The expression formula of leaving office business-releasing labour contract can be just continued executing with, this causes business procession more rigorous accurate, so as to enter
One step improves the accuracy of business handling.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method
Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
Present invention also offers a kind of computer-readable recording medium, including execute instruction, when described in the computing device of storage control
During execute instruction, the storage control performs the method that any of the above-described embodiment of the invention is provided.
In addition, present invention also offers a kind of storage control, including:Processor, memory and bus;The memory
For storing execute instruction, the processor is connected with the memory by the bus, when storage control operation
When, the execute instruction of memory storage described in the computing device, so that the storage control is performed in the present invention
The method that any embodiment offer is provided.
In summary, each embodiment of the invention at least has the advantages that:
1st, in embodiments of the present invention, get after pending business, determine at least one corresponding subservice, with
And the corresponding relevant parameter of each subservice, then according to the relevant parameter determined, corresponding subservice is called, it is then sharp
With the subservice called out, treat processing business and handled.Thus, when there is new business to need processing, it is only necessary to determine new
The corresponding subservice of business, and corresponding subservice is called, new business can be handled using the subservice called out, and
The corresponding new data-interface of combination of new subservice need not be set up, and writes corresponding processing routine again, so as to carry
High business processing efficiency.
2nd, in embodiments of the present invention, it can call and perform successively each sub- industry according to the order information of each subservice
Business, completes the processing of pending business, so as to further improve the efficiency of business processing.
3rd, in embodiments of the present invention, processing business is treated according to specific expression formula in subservice to be handled so that
Processing procedure is more accurate, so as to improve the accuracy rate of business processing.
4th, in embodiments of the present invention, its result of calculation is sent to next expression formula by current expression, is tied when calculating
When fruit constant corresponding with default next expression formula is identical, then next expression formula proceeds meter using result of calculation
Calculate, this causes business procession more rigorous accurate, so as to further increase the accuracy of business handling.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation makes a distinction with another entity or operation, and not necessarily require or imply exist between these entities or operation
Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, article or equipment including a series of key elements not only include those key elements,
But also other key elements including being not expressly set out, or also include solid by this process, method, article or equipment
Some key elements.In the absence of more restrictions, the key element limited by sentence " including one ", is not arranged
Except also there is other identical factor in the process including the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in the storage medium of embodied on computer readable, the program
Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention,
Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.
Claims (10)
1. a kind of method for processing business, it is characterised in that it is determined that at least one business, at least one business is corresponding at least
One subservice, and at least one corresponding relevant parameter of each described subservice;Also include:
Obtain pending business;
It is determined that at least one subservice corresponding with the pending business, and each determined subservice with
The corresponding relevant parameter of the pending business;
According to the relevant parameter determined, at least one the described subservice determined is called;
Using at least one subservice described in calling, the pending business is handled.
2. according to the method described in claim 1, it is characterised in that
The relevant parameter includes:The order information of the subservice;
The relevant parameter determined described in the basis, calls at least one the described subservice determined, including:
According to the order information for each subservice determined, at least one subservice described in determining is arranged
Sequence;
According to ranking results, at least one described subservice is called successively;
It is described that the pending business is handled using at least one the described subservice called, including:
According to the ranking results, at least one the described subservice called is performed successively, at the pending business
Reason.
3. method according to claim 2, it is characterised in that
Each described subservice includes:At least one expression formula;
It is described to call at least one described subservice successively according to ranking results, including:
According to the relevant parameter and the ranking results, determined successively from subservice each described with it is described pending
The corresponding expression formula of business;
It is described according to the ranking results, at least one the described subservice determined is performed successively, to the pending business
Handled, including:
According to the ranking results, the expression formula in each the described subservice determined is performed successively, to the pending industry
Business is handled.
4. method according to claim 3, it is characterised in that
Each described expression formula includes:Computation rule between at least one variable, and each described variable;
The expression formula performed successively in each the described subservice determined, is handled the pending business, bag
Include:
Circulation performs following step N1 to N3, until the expression formula is the last expression formula in the ranking results:
N1:Computation rule between at least one variable and each described variable for being included according to the current expression is carried out
Calculate;
N2:Result of calculation is sent to next expression formula in the ranking results;
N3:At least one variable that next expression formula is included using the result of calculation and the expression formula and each
Computation rule between the variable is calculated.
5. method according to claim 4, it is characterised in that
At least one variable for being included in next expression formula using the result of calculation and the expression formula and
Before computation rule between each described variable is calculated, further comprise:
Judge that whether corresponding with the next expression formula result of calculation predetermined constant be identical, if it is, performing institute
State described at least one variable and each that next expression formula included using the result of calculation and the expression formula
Computation rule between variable is calculated, otherwise output error message.
6. a kind of business processing device, it is characterised in that including:Memory cell, acquiring unit, determining unit and processing unit;
Wherein,
The memory cell, for storing at least one business, at least one corresponding subservice of at least one business, with
And at least one corresponding relevant parameter of each described subservice;
The acquiring unit, for obtaining pending business;
The determining unit, at least one subservice corresponding for determining the pending business that the acquiring unit is obtained,
And each the described subservice determined relevant parameter corresponding with the pending business;
The processing unit, for the relevant parameter determined according to the determining unit, is adjusted from the memory cell
With at least one subservice described in determining, and using at least one the described subservice called, to the pending business
Handled.
7. device according to claim 6, it is characterised in that
The relevant parameter includes:The order information of the subservice;
The processing unit, for according to the order information of each subservice determined, to described in determining at least
One subservice is ranked up, and according to ranking results, at least one described subservice is called successively, and execution is called successively
At least one described subservice, the pending business is handled.
8. device according to claim 7, it is characterised in that
Each described subservice includes:At least one expression formula;
The processing unit, for according to the relevant parameter and the ranking results, successively from subservice each described
Expression formula corresponding with the pending business is determined, and performs the expression in each the described subservice determined successively
Formula, is handled the pending business.
9. device according to claim 8, it is characterised in that
Each described expression formula includes:Computation rule between at least one variable, and each described variable;
The processing unit, following step N1 is performed to N3 for circulating, until the expression formula is in the ranking results
The last expression formula:
N1:Computation rule between at least one variable and each described variable for being included according to the current expression is carried out
Calculate;
N2:Result of calculation is sent to next expression formula in the ranking results;
N3:At least one variable that next expression formula is included using the result of calculation and the expression formula and each
Computation rule between the variable is calculated.
10. device according to claim 9, it is characterised in that
Unit in the place, is further used for judging that whether corresponding with next expression formula the result of calculation is default normal
Amount is identical, if it is, performing what next expression formula was included using the result of calculation and the expression formula
Computation rule between at least one variable and each described variable is calculated, otherwise output error message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710308817.9A CN107133090A (en) | 2017-05-04 | 2017-05-04 | A kind of method for processing business and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710308817.9A CN107133090A (en) | 2017-05-04 | 2017-05-04 | A kind of method for processing business and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107133090A true CN107133090A (en) | 2017-09-05 |
Family
ID=59716251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710308817.9A Pending CN107133090A (en) | 2017-05-04 | 2017-05-04 | A kind of method for processing business and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107133090A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664292A (en) * | 2018-05-02 | 2018-10-16 | 山东浪潮通软信息科技有限公司 | A method of supporting dynamic expansion data processing business |
CN110442464A (en) * | 2019-07-31 | 2019-11-12 | 中国工商银行股份有限公司 | Method for processing business, business processing device, electronic equipment and medium |
CN111930478A (en) * | 2020-06-08 | 2020-11-13 | 北京每日优鲜电子商务有限公司 | Service calling method and device based on dynamic bytecode |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055606A (en) * | 2009-11-10 | 2011-05-11 | 中国移动通信集团广西有限公司 | Business processing method, system and equipment in business support system |
CN106201537A (en) * | 2016-07-18 | 2016-12-07 | 浪潮通用软件有限公司 | A kind of data processing method and device |
-
2017
- 2017-05-04 CN CN201710308817.9A patent/CN107133090A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055606A (en) * | 2009-11-10 | 2011-05-11 | 中国移动通信集团广西有限公司 | Business processing method, system and equipment in business support system |
CN106201537A (en) * | 2016-07-18 | 2016-12-07 | 浪潮通用软件有限公司 | A kind of data processing method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664292A (en) * | 2018-05-02 | 2018-10-16 | 山东浪潮通软信息科技有限公司 | A method of supporting dynamic expansion data processing business |
CN110442464A (en) * | 2019-07-31 | 2019-11-12 | 中国工商银行股份有限公司 | Method for processing business, business processing device, electronic equipment and medium |
CN111930478A (en) * | 2020-06-08 | 2020-11-13 | 北京每日优鲜电子商务有限公司 | Service calling method and device based on dynamic bytecode |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020006910A1 (en) | Business componentization development method and apparatus, computer device, and storage medium | |
WO2020233330A1 (en) | Batch testing method, apparatus, and computer-readable storage medium | |
CN108876122A (en) | Processing method, device, computer equipment and the storage medium of batch work order | |
CN109583746B (en) | Method and device for setting routing rule of flow and readable storage medium | |
CN105677465B (en) | The data processing method and device of batch processing are run applied to bank | |
CN107122369A (en) | A kind of business data processing method, device and system | |
CN109189669A (en) | Test method, electronic device and the readable storage medium storing program for executing of business scenario | |
CN110175165A (en) | Transaction account checking method, device, computer equipment and storage medium | |
CN110928802A (en) | Test method, device, equipment and storage medium based on automatic generation of case | |
CN107133090A (en) | A kind of method for processing business and device | |
CN105988930A (en) | Test case generation method and device | |
WO2021027592A1 (en) | File processing method, apparatus, device and computer readable storage medium | |
CN104050543A (en) | Event processing method in stream processing system and stream processing system | |
CN106874484A (en) | The method and device that a kind of data are imported | |
CN110135967A (en) | The processing method and system of collection data | |
CN106649210A (en) | Data conversion method and device | |
CN114065948A (en) | Method and device for constructing pre-training model, terminal equipment and storage medium | |
CN111400187B (en) | Parameter dynamic verification system and method based on customized data source | |
CN112541688A (en) | Service data checking method and device, electronic equipment and computer storage medium | |
CN107368500B (en) | Data extraction method and system | |
CN110400560A (en) | Data processing method and device, storage medium, electronic device | |
CN109284268A (en) | A kind of method, system and the electronic equipment of fast resolving log | |
CN115378806A (en) | Flow distribution method and device, computer equipment and storage medium | |
CN114218261A (en) | Data query method and device, storage medium and electronic equipment | |
CN112363814A (en) | Task scheduling method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170905 |
|
RJ01 | Rejection of invention patent application after publication |