Summary of the invention
In view of the above technical problems, the participation that this specification embodiment provides a kind of business activity executes method and apparatus,
Technical solution is as follows:
According to this specification embodiment in a first aspect, the participation for providing a kind of business activity executes method, this method packet
It includes:
It receives business activity and participates in request;
The process configuration of the business activity is obtained according to the unique identification of business activity, includes extremely in the process configuration
The implementation strategy that a few operational phase needed to be implemented and the operational phase should call;
It is configured according to the process, calls corresponding implementation strategy respectively in common policy library, wherein common policy library
In be integrated with the executable different operational phases of business activity and the corresponding at least one implementation strategy of every kind of operational phase;
Determine that activity participates in result according to policy execution result.
According to the second aspect of this specification embodiment, a kind of business activity configuration device is provided, which includes:
Request receiving module: request is participated in for receiving business activity;
Process determining module: the process configuration of the business activity, institute are obtained for the unique identification according to business activity
State the implementation strategy that the operational phase and the operational phase needed to be implemented in process configuration comprising at least one should call;
Policy enforcement module: for configuring according to the process, corresponding execution plan is called respectively in common policy library
Slightly, wherein be integrated with the executable different operational phases of business activity in common policy library and every kind of operational phase is corresponding extremely
A kind of few implementation strategy;
As a result determining module: for determining that activity participates in result according to policy execution result.
According to the third aspect of this specification embodiment, a kind of computer equipment is provided, including memory, processor and deposit
Store up the computer program that can be run on a memory and on a processor, wherein the processor is realized when executing described program
A kind of participation execution method of business activity, which comprises
It receives business activity and participates in request;
The process configuration of the business activity is obtained according to the unique identification of business activity, includes extremely in the process configuration
The implementation strategy that a few operational phase needed to be implemented and the operational phase should call;
It is configured according to the process, calls corresponding implementation strategy respectively in common policy library, wherein common policy library
In be integrated with the executable different operational phases of business activity and the corresponding at least one implementation strategy of every kind of operational phase;
Determine that activity participates in result according to policy execution result.
Technical solution provided by this specification embodiment, the participation for providing a kind of business activity execute method, first mention
It takes business activity in the implementation strategy of different operational phases, and common policy library is added.When having new business activity, formulated for it
Process configuration comprising operational phase and corresponding implementation strategy.It is configured according to the process of the business activity in common policy library tune
It participates in requesting with corresponding policy handler processing business activity, business and implementation strategy is decoupled, business activity can be with
It is living to support business without carrying out code development for new business activity for the implementation strategy that the combination of freedom and flexibility needs oneself
Dynamic Quick thread.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
This specification embodiment can be limited.
In addition, any embodiment in this specification embodiment does not need to reach above-mentioned whole effects.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
With the development of internet, on various lines product release, be directed to product with there are many business activities
Or platform is marketed.These business activity playing methods are numerous, and each playing method has respective difference.In the prior art, need for
Every kind of business activity carries out new code development, writes a set of activity for it and participates in logic.It is industry in conventional method referring to Fig. 1
Movable participation execution process of being engaged in obtains basis after the business activity that marketing system receives operation system transmission participates in request
The entire work flow rule that the business activity is write in advance, by sequentially executing the flow rules to complete to participate in asking to business activity
The processing asked.Such as the operation system 1 and operation system 2 of Fig. 1, each business activity needs to develop its individual system and process rule
Then, but individually each activity is developed to take a long time, it is inflexible quick, and can not support the Quick thread of business activity, it can wave
Take some operational time machine meetings.
In view of the above problems, the participation that this specification embodiment provides a kind of business activity executes method and a kind of use
In the participation executive device for the business activity for executing this method, the participation side of execution for the business activity being related to below to the present embodiment
Method is described in detail, and shown referring to figs. 2 and 3, this method may comprise steps of:
S201 receives business activity and participates in request;
Generally, the sender of the service request is operation system, and recipient is activity marketing system.Operation system receives
The information of user's submission and activity participate in request, are integrated into business activity participation request Concurrency and give activity marketing system.
Illustrate one of application scenarios: user submits the activity of itself to participate in asking by the loose-leaf of client
Server is sought and be sent to, after the activity that the operation system of server receives user participates in request, business activity needs are made
User related information and business activity participate in the activity marketing system that request is jointly sent to server.
S202 is configured according to the process that the unique identification of business activity obtains the business activity, in the process configuration
The implementation strategy that the operational phase and the operational phase needed to be implemented comprising at least one should call.
Specifically, for the unique identification of the business activity for inquiring and determining that the business activity process configures, this is unique
Mark can be the business scenario code of the business activity.
Generally, the process configuration of business activity can be the configuration file write in advance.Including the business
Activity is by the specific implementation strategy which operational phase forms and each operational phase needs to choose.
For example, total at present, to divide operational phase altogether include A-G totally 8 different phases.It is true according to active characteristics
Which operational phase the fixed business activity needs to be implemented.If determining that its activity process can according to the active characteristics of a certain business activity
It is divided into 3 stages, respectively operational phase A, operational phase B and operational phase E.Continue special according to the activity of the business activity
It levies and determines that its operational phase A needs that implementation strategy A1, operational phase B is called to need that implementation strategy B2, operational phase C is called to need
Call implementation strategy E5.
In general business activity application scenarios, operational phase generally includes the parameter verification stage, the activity query stage,
Activity checking stage, movable participation stage and activity participate in post-processing stages.
S203 configures according to the process, calls corresponding implementation strategy respectively in common policy library, wherein public
The executable different operational phases of business activity and the corresponding at least one execution plan of every kind of operational phase are integrated in policy library
Slightly;
Common policy library is according to existing business activity creation comprising different operational phases and each operational phase pair
The database for the multiple implementation strategies answered.Specifically, it separates and to extract the versatility that existing business activity can mark off higher
Operational phase and the business activity implementation strategy used in the operational phase.Under general scene, existing business can be analyzed
Movable code extracts corresponding operational phase code, its generalization is become corresponding policy handler, and sort out
Common policy library is added.
S204 determines that activity participates in result according to policy execution result.
Wherein, the method for determination of process configuration can be found in attached drawing 4, specifically can comprise the following steps that
S401 determines the active characteristics of the business activity.
The active characteristics of business activity may include many kinds, such as: movable participation method participates in condition, if deposit
It is participating in rewarding, the acquisition modes etc. for participating in reward can be seen as the active characteristics of business activity.
S402 sets operational phase that at least one is needed to be implemented according to the active characteristics and the operational phase is answered
The implementation strategy of calling;
For example, if participation condition is not present in some business activity, but presence participates in reward, then can not set participation item
Part Qualify Phase, setting participate in reward processing stage.And having in participation reward processing strategie in policy library chooses the industry
The applicable implementation strategy of business activity.Finally by the operational phase that activity needs to be implemented and the execution that the operational phase should call
Strategy write-in procedure configuration files.
S403, by the execution mark write-in procedure configuration files of the implementation strategy.
Wherein, the creation mode in common policy library specifically refers to Fig. 5, includes the following steps:
S501 obtains different history service activities;
S502 extracts each operational phase performed by the history service activity;
S503 extracts the corresponding implementation strategy of operational phase performed by the history service activity;
Common policy library is added in the operational phase and corresponding implementation strategy by S304.
Wherein, corresponding a variety of comprising different executable operational phases and each operational phase in common policy library
Implementation strategy.Under a kind of specific application scenarios, different subregions can be turned to according to different operational phases in common policy library,
Each partitioned storage stores up the implementation strategy processor of the corresponding operational phase.
Further, operational phase and corresponding implementation strategy are in addition to that can extract simultaneously generalization from history service activity
Outside, it can also be redesigned and be write according to new business activity demand.
Corresponding to above method embodiment, this specification embodiment also provides a kind of participation executive device of business activity,
It is shown in Figure 6, the apparatus may include: request receiving module 610, process determining module 620, policy enforcement module 630
With result determining module 640.
Request receiving module 610: request is participated in for receiving business activity;
Process determining module 620: obtaining the process configuration of the business activity for the unique identification according to business activity,
The implementation strategy that the operational phase and the operational phase needed to be implemented in process configuration comprising at least one should call;
Policy enforcement module 630: for configuring according to the process, corresponding execution is called respectively in common policy library
Strategy, wherein be integrated with the executable different operational phases of business activity in common policy library and every kind of operational phase is corresponding
At least one implementation strategy;
As a result determining module 640: for determining that activity participates in result according to policy execution result.
This specification embodiment also provides a kind of computer equipment, includes at least memory, processor and is stored in
On reservoir and the computer program that can run on a processor, wherein processor realizes that aforementioned business is living when executing described program
Dynamic participation executes method, and the method includes at least:
It receives business activity and participates in request;
The process configuration of the business activity is obtained according to the unique identification of business activity, includes extremely in the process configuration
The implementation strategy that a few operational phase needed to be implemented and the operational phase should call;
It is configured according to the process, calls corresponding implementation strategy respectively in common policy library, wherein common policy library
In be integrated with the executable different operational phases of business activity and the corresponding at least one implementation strategy of every kind of operational phase;
Determine that activity participates in result according to policy execution result.
Fig. 7 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram,
The equipment may include: processor 1110, memory 1120, input/output interface 1130, communication interface 1140 and bus
1150.Wherein processor 1110, memory 1120, input/output interface 1130 and communication interface 1140 are real by bus 1150
The now communication connection inside equipment each other.
Processor 1110 can use general CPU (Central Processing Unit, central processing unit), micro- place
Reason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one
Or the modes such as multiple integrated circuits are realized, for executing relative program, to realize technical side provided by this specification embodiment
Case.
Memory 1120 can use ROM (Read Only Memory, read-only memory), RAM (Random Access
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 1120 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 1120, and execution is called by processor 1110.
Input/output interface 1130 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 1140 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1150 include an access, equipment various components (such as processor 1110, memory 1120, input/it is defeated
Outgoing interface 1130 and communication interface 1140) between transmit information.
It should be noted that although above equipment illustrates only processor 1110, memory 1120, input/output interface
1130, communication interface 1140 and bus 1150, but in the specific implementation process, which can also include realizing normal fortune
Other assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising real in above equipment
Component necessary to existing this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Realize that the participation of business activity above-mentioned executes method when sequence is executed by processor, the method includes at least:
It receives business activity and participates in request;
The process configuration of the business activity is obtained according to the unique identification of business activity, includes extremely in the process configuration
The implementation strategy that a few operational phase needed to be implemented and the operational phase should call;
It is configured according to the process, calls corresponding implementation strategy respectively in common policy library, wherein common policy library
In be integrated with the executable different operational phases of business activity and the corresponding at least one implementation strategy of every kind of operational phase;
Determine that activity participates in result according to policy execution result.
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.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
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.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several 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 device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.