CN104598300A - Distributive business process customization method and system - Google Patents

Distributive business process customization method and system Download PDF

Info

Publication number
CN104598300A
CN104598300A CN201410817989.5A CN201410817989A CN104598300A CN 104598300 A CN104598300 A CN 104598300A CN 201410817989 A CN201410817989 A CN 201410817989A CN 104598300 A CN104598300 A CN 104598300A
Authority
CN
China
Prior art keywords
business
flow
runtime server
service
initiation
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
Application number
CN201410817989.5A
Other languages
Chinese (zh)
Inventor
徐锐波
邹月明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410817989.5A priority Critical patent/CN104598300A/en
Publication of CN104598300A publication Critical patent/CN104598300A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a distributive business process customization method and system. The distributive business process customization method comprises the steps of decomposing the operation finishing the business into a plurality of sub-business processes; combining the sub-business processes according to the business needs and setting the operation sequence to generate the business process; distributing the business process to an operation server; executing the corresponding business operation based on the business process through the operation server. By means of the distributive business process customization method and system, management on the business process is achieved, free combination of the sub-business processes can be achieved, the sequence can be changed conveniently, a new process can be added conveniently, management on the process executing the business can be achieved, system resources can be monitored, reliability and stability of business operation can be improved, the business process can be changed and customized conveniently, and flexibility and autonomy of business process customization can be improved.

Description

Distributed service process customizing method and system
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of distributed service process customizing method and system.
Background technology
At present, Internet firm generally all needs to dispose a large amount of servers, and server can dispose all kinds of business, service, configuration etc.The operation of business generally adopts distributed system, and multiple server runs business.In the operation of business, need to manage hardware resource, software, developer, configuration and safety etc., efficient these resources of management and service are the keys promoting work efficiency.
The existing system that business is managed at present, but in existing business management system, resource management platform only manages for hardware resource and configuration, such as, detect the resource survival condition etc. that configuration is corresponding, current resource management effect is too limited to.A lot of resource is also had to need management in system, such as, in the service operation of reality, the flow process of business is often along with the change of actual conditions needs to adjust, but current operation flow is all generate specific code to write in a program, when operation flow changes, need to upgrade the software on each server, be unfavorable for that operation flow carries out rapid adjustment.At present also not to the mechanism that the process of the business of operation manages, effectively can not manage the runnability of business, easily cause the generation that the abnormal occurrence such as congested occurs when visit capacity increases.
Summary of the invention
In view of this, the technical matters that the present invention will solve is to provide distributed service process customizing method, can realize the management to operation flow.
A kind of distributed service process customizing method, comprising: operation business completed is decomposed into multiple subservice flow process; Combine described multiple subservice flow process according to business demand and the operation of setting operation order, generate operation flow; Described operation flow is distributed to runtime server; Described runtime server performs corresponding business operation based on described operation flow.
According to one embodiment of present invention, further, runtime server starts initiation of services process; When described initiation of services process obtains described operation flow, for the corresponding business of each subservice flow startup in described operation flow performs subprocess, complete corresponding subservice flow process.
According to one embodiment of present invention, further, described according to business demand combination described multiple subservice flow process and the operation of setting operation order, generation operation flow comprises: from described multiple subservice flow process, choose one or more subservice flow process according to business demand and form child-operation combination, and arranges the operation order of described child-operation combination neutron operation flow; Generate business operation table based on described child-operation combination and described operation order, and be stored in Service Database.
According to one embodiment of present invention, further, describedly described operation flow is distributed to runtime server comprises: after the described business operation table of generation, in real time described business operation table is sent to described runtime server; The described business operation table received is passed to described initiation of services process by the business service process that described runtime server runs.
According to one embodiment of present invention, further, describedly described operation flow is distributed to runtime server comprises: the service customer end process that described runtime server runs periodically inquires about described Service Database with the time interval of setting; When obtaining described business operation table, described business operation table is passed to described initiation of services process by described service customer end process.
According to one embodiment of present invention, further, according to the number of processes in the configuration-direct received and operational order, control described business and perform the quantity of subprocess and described business execution subprocess is operated accordingly; Wherein, described operational order comprises: restart, hang up.
According to one embodiment of present invention, further, described runtime server arranges that SDK wraps, in described SDK bag, comprise configuration file; The incidence relation of resource name and resource object is set in described configuration file; When receiving configuration order, from described configuration order, parsing resource name, from described configuration configuration file, inquiring corresponding resource object based on described resource name and calling; Described resource object comprises: database, message queue, storage medium system.
According to one embodiment of present invention, further, operation monitoring process on multiple described runtime server, described monitoring process is monitored described business and is performed the operation conditions of subprocess or the state of resource object; When judge described business perform subprocess or resource object occur abnormal time, described monitoring process operates according to default strategy, comprising: warning of sending short messages, enable standby resources, restart process, automatic switchover.
The technical matters that the present invention will solve is to provide distributed service flow custom system, can realize the management to operation flow.
A kind of distributed service flow custom system, comprising: center management server, comprising: child-operation creating unit, the operation for business being completed is decomposed into multiple subservice flow process; Operation flow generation unit, for combining described multiple subservice flow process according to business demand and the operation of setting operation order, generates operation flow; Operation flow transmitting element, for being distributed to runtime server by described operation flow; Runtime server, comprising: business performance element, for performing corresponding business operation based on described operation flow.
According to one embodiment of present invention, further, described business performance element, comprising: initiation of services submodule, for starting initiation of services process on runtime server; When described initiation of services process obtains described operation flow, for the corresponding business of each subservice flow startup in described operation flow performs subprocess, complete corresponding subservice flow process.
According to one embodiment of present invention, further, described operation flow generation unit, forms child-operation combination for choosing one or more subservice flow process from described multiple subservice flow process according to business demand, and arranges the operation order of described child-operation combination neutron operation flow; Generate business operation table based on described child-operation combination and described operation order, and be stored in Service Database.
According to one embodiment of present invention, further, described operation flow transmitting element, for after the described business operation table of generation, is sent to described runtime server by described business operation table in real time; Described business performance element, comprising: push and receive submodule, for starting business service process, the described business operation table received is passed to described initiation of services process by described business service process.
According to one embodiment of present invention, further, described business performance element, comprising: synchronously receive submodule, and for starting service customer end process, described service customer end process periodically inquires about described Service Database with the time interval of setting; When obtaining described business operation table, described business operation table is passed to described initiation of services process by described service customer end process.
According to one embodiment of present invention, further, described initiation of services submodule, for according to the number of processes in the configuration-direct received and operational order, controls described business and performs the quantity of subprocess and operate accordingly described business execution subprocess; Wherein, described operational order comprises: restart, hang up.
According to one embodiment of present invention, further, described runtime server arranges that SDK wraps, in described SDK bag, comprise configuration file; The incidence relation of resource name and resource object is set in described configuration file; Described business performance element, comprising: configuration controls submodule, for when receiving configuration order, from described configuration order, parses resource name, inquires corresponding resource object and call based on described resource name from described configuration configuration file; Wherein, described resource object comprises: database, message queue, storage system.
According to one embodiment of present invention, further, described business performance element, comprising: monitoring unit, operation monitoring process on multiple described runtime server, described monitoring process is monitored described business and is performed the operation conditions of subprocess or the state of resource object; When judge described business perform subprocess or resource object occur abnormal time, described monitoring process operates according to default strategy, comprising: warning of sending short messages, enable standby resources, restart process, automatic switchover.
Distributed service process customizing method of the present invention and system, achieve BPM, can realize the independent assortment of subservice flow process, and can change easily order, insert new technological process; And can manage the process of the business of execution, and system resource is monitored.
Description of the invention provides in order to example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Selecting and describing embodiment is in order to principle of the present invention and practical application are better described, and enables those of ordinary skill in the art understand the present invention thus design the various embodiments with various amendment being suitable for special-purpose.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of an embodiment according to distributed service process customizing method of the present invention;
Fig. 2 is the structured flowchart of an embodiment according to distributed service flow custom system of the present invention.
Embodiment
With reference to the accompanying drawings the present invention is described more fully, exemplary embodiment of the present invention is wherein described.Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of an embodiment according to distributed service process customizing method of the present invention, as shown in Figure 1:
Step 101, operation business completed is decomposed into multiple subservice flow process.
Step 102, combines multiple subservice flow process according to business demand and the operation of setting operation order, generates operation flow.
Step 103, is distributed to runtime server by operation flow.
Step 104, runtime server performs corresponding business operation based on operation flow.
Distributed service process customizing method of the present invention, achieves workflow management, and business is made up of multiple subservice flow process, can realize the independent assortment of subservice flow process, and can change easily order, insert new technological process.
At present, Internet firm provides multiple business, and as familiar Web spider (reptile) business, Web spider is normally by network request, and each website on access internet, obtains some valuable information.When the website or webpage quantity that need access are more, in individual machine or single machine room, the ability of the obtaining information of spider will be very limited, need the spider business using multiple machine or multiple machine room, capture a large amount of websites and webpage.
Such as, in the business (such as safe network address white list, secure file white list etc.) of white list, spider process is due to IP problem, and under needing to be deployed in multiple IP world, spider process is substantially just distributed in each machine room.And be only deployed in a machine room of specifying to the task matching program of these spiders, task matching program need very frequently by task matching to each machine room spider capture process.The machine room at spider task matching program place is transmit leg machine room, and the machine room at spider capture program place is take over party's machine room.
The operation of Web Spider or Web spider business comprises: task matching, crawl webpage, web page extraction, storage webpage, text extracting, page analysis etc.The operation that Web Spider business completes is decomposed into 6 sub-operation flows: task matching, crawl webpage, web page extraction, storage webpage, text extracting, page analysis.Because internet demand is in real-time change, so service needed changes thereupon, such as: increase subservice, the order etc. of subservice process data is changed.
Actual demand according to business is combined Web Spider business when reaching the standard grade, comprise: task matching, crawl webpage, web page extraction, storage webpage, text extracting, page analysis 6 sub-processes, and the operation order of these 6 sub-flow operations is set: 6 sub-processes are run successively, complete the operation flow of Web Spider.This setting up procedure, developer can be completed by web page, directly perceived and convenient.The operation flow of Web Spider is distributed to runtime server, and the operation flow of runtime server spider Network Based performs corresponding business operation.
Original operation flow needs to increase sub-process, such as, when demand changes, newly-increased white list filter operation is needed in the business of Web Spider, namely first white list filter operation is carried out to the webpage captured, the new operation that then Web Spider business completes has had 7 sub-operation flows, respectively: task matching, crawl webpage, white list filtration, web page extraction, storage webpage, text extracting, page analysis.
A white list can be increased filter sub-process in original operation flow, and the execution sequence that white list filters sub-process is set: after crawl webpage, perform before web page extraction.7 sub-processes in the operation flow of new Web Spider are: task matching, crawl webpage, white list filtration, web page extraction, storage webpage, text extracting, page analysis.The new business flow process of Web Spider is distributed to runtime server, when runtime server receives the operation flow of new Web Spider, performs new business operation.
Original operation flow occur in sequence change, such as, perform after the storage webpage sub-process in the operation flow of Web Spider needs to be placed on page analysis sub-process.Reset the operation order of these 7 sub-flow operations, 7 sub-processes in the operation flow of new Web Spider are: task matching, crawl webpage, white list filtration, web page extraction, text extracting, page analysis, storage webpage.The new operation flow of Web Spider is distributed to runtime server, when runtime server receives the operation flow of new Web Spider, performs new business operation.
Distributed service process customizing method in above-described embodiment, can by the independent assortment of subservice flow process, and can the order of change easily, insert new technological process, make the change of operation flow, customization very convenient.
In one embodiment, runtime server starts initiation of services process.When initiation of services process obtains operation flow, initiation of services process is that the corresponding business of each subservice flow startup in operation flow performs subprocess, completes corresponding subservice flow process.
Such as, when initiation of services process receives Web Spider operation flow, 7 sub-processes for Web Spider operation flow: task matching, crawl webpage, white list filtration, web page extraction, text extracting, page analysis, storage webpage, start business executive process respectively: task matching executive process, crawl webpage executive process, white list filter executive process, web page extraction executive process, text extracting executive process, page analysis executive process, store webpage executive process executive process.The startup quantity of these 7 business executive process can be determined according to the parameter preset, and these 7 business executive process also according to concrete operation needs, can be deployed in the server in different servers and different machine rooms.Such as, task matching executive process is deployed in the attached server of transmit leg machine room, captures webpage executive process and is deployed in the server of take over party's machine room.
Communication mode between process can adopt: the modes such as pipeline, semaphore, message queue, shared drive.Below for the comparatively normal message queue used, message queue is by the chained list of message, to leave in kernel and to be identified by message queue identifier, message can be regarded as a record, have specific form and specific priority.
Such as, start a host process, host process is according to the sub-process order in operation flow, call this 7 processes successively, namely calling task distributes executive process, crawl webpage executive process, white list filtration executive process, web page extraction executive process, text extracting executive process, page analysis executive process, stores webpage executive process successively.Host process adopt message queue mode therewith 7 executive process communicate.
Such as, data to be processed are sent to message queue by host process.Task matching executive process, crawl webpage executive process, white list filter executive process, web page extraction executive process, text extracting executive process, page analysis executive process, store the monitoring information queue respectively of webpage executive process, and extract the message of self correspondence, and by the queue of result return messages.Also can for task matching executive process, capture webpage executive process, white list filters executive process, web page extraction executive process, text extracting executive process, page analysis executive process, store webpage executive process and set up with it 7 or more message queues one to one respectively.
In one embodiment, from multiple subservice flow process, choose one or more subservice flow process according to business demand and form child-operation combination, and the operation order of child-operation combination neutron operation flow is set.Generate business operation table based on child-operation combination and operation order, and be stored in Service Database.
Such as, 7 sub-processes to Web Spider operation flow: task matching, crawl webpage, white list filtration, web page extraction, text extracting, page analysis, storage webpage are numbered respectively, are respectively: task matching=1, crawl webpage=2, white list filtration=3, web page extraction=4, text extracting=5, page analysis=6, storage webpage=7.Web Spider operation flow is set to business operation table " 1-2-3-4-5-6-7 ", stores in a database.
When runtime server acquisition Web Spider operation flow is " 1-2-3-4-5-6-7 ", according to the setting in the configuration file arranged on runtime server in advance, such as, arrange 1 corresponding a.jar, 2 corresponding b.jar, 3 correspond to c.jar etc.
When initiation of services process acquisition operation flow is " 1-2-3-4-5-6-7 ", initiation of services process obtains corresponding jar according to configuration file and wraps, and initiating task is distributed executive process, crawl webpage executive process, white list filtration executive process, web page extraction executive process, text extracting executive process, page analysis executive process, stored webpage executive process.
Start host process, the order according to 1,2,3,4,5,6,7 is carried out calling task successively and is distributed executive process, crawl webpage executive process, white list filtration executive process, web page extraction executive process, text extracting executive process, page analysis executive process, stores webpage executive process.
In one embodiment, issuing of operation flow can adopt: the mode of real time down, periodic synchronous.Can in every station server deploy one application, be used for receiving the data of active push, dispose Another application, be used for passively obtaining data from the central database.Developer also can customize, and determines whether active push, if select active push, active push operational order is to every platform runtime server.
Real time down: the mode of active push can be adopted to send operation flow.After generation business operation table, in real time business operation table is sent to runtime server.The business operation table received is passed to initiation of services process by the business service process that runtime server runs.
Periodic synchronous: the operation flow that passive and synchronous mode is synchronously up-to-date can be adopted.The service customer end process that runtime server runs is with the time interval periodically query traffic data storehouse of setting.Time interval threshold value can be set to 30 seconds, 60 seconds etc.When obtaining business operation table, business operation table is passed to initiation of services process by service customer end process.
In one embodiment, can by developer interface to management of process.Runtime server is according to the number of processes in the configuration-direct received and operational order, and service control performs the quantity of subprocess and operates accordingly business execution subprocess.Wherein, operational order comprises: restart, hang up.Service needed process completes, and process is deployed on multiple server respectively, and managing process is one of distributed resource management key link.
Can by web webpage configure each business and sub-process thereof number of processes, the operation such as to restart.Such as, provide developer's managing web webpage, it is 10 that developer arranges by web webpage the quantity capturing webpage executive process.Then when starting crawl webpage executive process, starting 10 simultaneously and capturing webpage executive process.When traffic pressure increases, the quantity capturing webpage executive process is revised as 20 by web webpage by developer, then runtime server restarts 10 crawl webpage executive process.When developer thinks that needs are restarted, then issued by web webpage and capture webpage executive process reset command, then runtime server restarts crawl webpage executive process.
In one embodiment, runtime server is arranged SDK wraps, in SDK bag, comprise configuration file.The incidence relation of resource name and resource object being set in configuration file, when receiving configuration order, from configuration order, parsing resource name, from configuration configuration file, inquire corresponding resource object based on resource name and call.Resource object comprises: database, message queue, storage medium etc.
Business in the process of implementation, needs to use all kinds of basic resource, such as, and database, message queue, storage system etc.Storage system can comprise multiple storage medium.Basic resource has corresponding configuration, generally by these configurable write in the code of every platform machine, but can need when cutting configuration to change code, then restarts process, very inconvenient.Can configure all kinds of resource (db, cache, mq) by web page, each configuration all has title, coordinates SDK, only needs to use resource name to use, and achieves transparent to developer of resource.
Such as, runtime server is arranged SDK wraps, comprise configuration file X1 in SDK bag, setting data storehouse object in configuration file X1, comprising: URL, developer's name, password etc.X1 is XML file, arranges the parameter of DB1 in X1:
Db1URL="jdbc:mysql://localhost:1066/test";
DB1username=“root";
DB1password="root"。
Current database, by web page configuration database, is pointed to DB1 by developer.When runtime server receives configuration order, from configuration order, parse resource name DB1, from configuration configuration file X1, inquire corresponding resource object DB1 based on resource name DB1, obtain URL, developer's name, password, be connected on DB1 by JDBC.
In one embodiment, the resource of server needs to run without interruption, but has the situation of deadlock unavoidably, if the resource of infrastructure service is just in time on the server crashed, business so will certainly be caused to interrupt due to Service Source disappearance.Operation monitoring process on multiple runtime server, monitoring process monitoring business performs the operation conditions of subprocess or the state of resource object.
When judge business perform subprocess or resource object occur abnormal time, monitoring process operates according to default strategy, comprising: warning of sending short messages, enable standby resources, restart process, automatic switchover etc.
Such as, when judging that business performs subprocess or resource object appearance exception, monitoring process sends abnormal information according to the central management platform address of presetting to central management platform, central management platform is abnormal according to abnormal information process, carry out to developer send short breath of reporting to the police, automatically starting backup resource or to restarting, the operation such as automatic switchover.Or, automatically completed by monitoring process and send to developer short breath of reporting to the police, the operation such as the resource or carry out of automatically starting backup is restarted, automatic switchover.
Such as, monitoring process starts monitoring thread to the page analysis executive process of Web Spider business, judges whether page analysis executive process occurs exception by monitoring thread, such as, hang up, fallen by kill, then monitoring thread sends warning message, and restarts this page analysis executive process.
Such as, voting mechanism can be adopted, the monitoring process of all operational network spider business on multiple servers, Web Spider business adopts distributed deployment, server in multiple machine room can run, such as, Beijing, Guangzhou, Shenzhen machine room can be deployed in.
All operation monitoring processes on server in each machine room, such as, the machine room in Beijing, Guangzhou, Shenzhen.According to the monitor task that the watch-list obtained from central management platform or central management platform issue, the monitoring process of each machine room is all monitored resource object, and resource object can be database, message queue etc.When monitoring process judges that resource object occurs abnormal, send alarm information to central management platform.
Central management platform judges the quantity of server resource object being carried out to alarm, when the quantity of server exceedes a half of the server sum of operation monitoring process, it is abnormal that central management platform can judge that this resource object occurs, rule according to presetting processes, such as, send to developer short breath of reporting to the police, restart abnormal page analysis executive process of generation etc.
Such as, operation monitoring process in the server in the machine room in Beijing, Guangzhou, Shenzhen, according to the monitor task that central management platform issues, the server in 3 machine rooms all monitors the state of the database A be arranged in the machine room of Beijing.Monitoring process on the server of Beijing, Guangzhou machine room all cannot ping when leading to database A, then send alarm information to central management platform.
Central management platform judges have the server in 2 machine rooms to confirm, and database A has exception, reaches 2/3 of the server of monitor database A, exceedes half, then central management platform judges that this database A occurs extremely.The server participating in " ballot " is more, and conclusion is more accurate.
In one embodiment, each machine room arranges the client of transmission data, a transmission buffer memory for this machine room of buffer memory data to be transmitted; Each machine room arranges the worker that receives data simultaneously, and receives the reception buffer memory of data for this machine room of buffer memory.
When certain machinery requirement of A machine room transfers data to B machine room, data waiting for transmission are written in the transmission buffer memory A of A machine room by the client A of A machine room, and inform object machine room B and corresponding machine.After the worker B of object machine room B receives the notice of A machine room, by the feedback of status of the reception buffer memory B of oneself machine room to A machine room.After A machine room receives the feedback of B machine room, just can according to feedback information, the strategy that determination data sends, is specially:
If the load of the reception buffer memory B of 1 B machine room lower than receive buffer memory B memory capacity 80%, then the client A of A machine room can transfer data to B machine room immediately;
If the load of the reception buffer memory B of 2 B machine rooms greater than or equal to receive buffer memory B memory capacity 80%, then the client A time delay of A machine room transfers data to B machine room.
Meanwhile, A machine room is transferred to the data of B machine room, and only after the acknowledge message receiving B machine room, these data are just deleted by client A from transmission buffer memory A; If A machine room is transferred in the data of B machine room, having mass data not receive acknowledge message, then may be that the network of A to B occurs congested, or other reason causes loss of transmitted data, in this time, the data delay that A machine room can be transferred to B machine room by client A sends or reduces transmission frequency.
As shown in Figure 2, the invention provides a kind of distributed service flow custom system, comprising: center management server 22, web-based management platform 21, database, runtime server 25,26,27.
The operation that business completes by child-operation creating unit 221 is decomposed into multiple subservice flow process.Operation flow generation unit 222 combines multiple subservice flow process according to business demand and the operation of setting operation order, generates operation flow.Operation flow is distributed to runtime server by operation flow transmitting element 223.Business performance element 251 performs corresponding business operation based on operation flow.
Initiation of services submodule 253 starts initiation of services process on runtime server.When initiation of services process obtains operation flow, for the corresponding business of each subservice flow startup in operation flow performs subprocess, complete corresponding subservice flow process.
Operation flow generation unit 222 is chosen one or more subservice flow process according to business demand and is formed child-operation combination from multiple subservice flow process, and arranges the operation order of child-operation combination neutron operation flow.Generate business operation table based on child-operation combination and operation order, and be stored in Service Database.
Business operation table, after generation business operation table, is sent to runtime server by operation flow transmitting element 223 in real time.Push reception submodule 254 and start business service process, the business operation table received is passed to initiation of services process by business service process.
Synchronous reception submodule 255 starts service customer end process, and service customer end process is with the time interval periodically query traffic data storehouse of setting.When obtaining business operation table, business operation table is passed to initiation of services process by service customer end process.
Initiation of services submodule 253 is according to the number of processes in the configuration-direct received and operational order, and service control performs the quantity of subprocess and operates accordingly business execution subprocess.Operational order comprises: restart, hang-up etc.
Runtime server being arranged, SDK wraps, in SDK bag, comprises configuration file; The incidence relation of resource name and resource object is set in configuration file.When receiving configuration order, configuration controls submodule 256 and parse resource name from configuration order, inquires corresponding resource object and call based on resource name from configuration configuration file.Resource object comprises: database, message queue, storage medium etc.
Monitoring unit 252 starts monitoring process on multiple runtime server, and monitoring process monitoring business performs the operation conditions of subprocess or the state of resource object.When judge business perform subprocess or resource object occur abnormal time, monitoring process operates according to default strategy, comprising: warning of sending short messages, enable standby resources, restart process, automatic switchover.
The distributed service process customizing method that above-described embodiment provides and system, achieve BPM, can realize the independent assortment of subservice flow process, and can change easily order, insert new technological process.Make the change of operation flow, customization very convenient; And can manage the process of the business of execution, and system resource is monitored, improve the reliability and stability of service operation, and improve dirigibility and the independence of operation flow formulation.
Embodiments of the invention disclose:
A1, a kind of distributed service process customizing method, is characterized in that, comprising:
Operation business completed is decomposed into multiple subservice flow process;
Combine described multiple subservice flow process according to business demand and the operation of setting operation order, generate operation flow;
Described operation flow is distributed to runtime server;
Described runtime server performs corresponding business operation based on described operation flow.
A2, method as described in claim A1, it is characterized in that, described runtime server performs corresponding business operation based on described operation flow and comprises:
Runtime server starts initiation of services process;
When described initiation of services process obtains described operation flow, for the corresponding business of each subservice flow startup in described operation flow performs subprocess, complete corresponding subservice flow process.
A3, method as described in claim A2, is characterized in that, described according to the business demand described multiple subservice flow process of combination and the operation of setting operation order, generates operation flow and comprise:
From described multiple subservice flow process, choose one or more subservice flow process according to business demand and form child-operation combination, and the operation order of described child-operation combination neutron operation flow is set;
Generate business operation table based on described child-operation combination and described operation order, and be stored in Service Database.
A4, method as described in claim A3, is characterized in that, describedly described operation flow is distributed to runtime server comprises:
After the described business operation table of generation, in real time described business operation table is sent to described runtime server;
The described business operation table received is passed to described initiation of services process by the business service process that described runtime server runs.
A5, method as described in claim A3, is characterized in that, describedly described operation flow is distributed to runtime server comprises:
The service customer end process that described runtime server runs periodically inquires about described Service Database with the time interval of setting;
When obtaining described business operation table, described business operation table is passed to described initiation of services process by described service customer end process.
A6, as described in claim A2 method, it is characterized in that:
According to the number of processes in the configuration-direct received and operational order, control described business and perform the quantity of subprocess and described business execution subprocess is operated accordingly;
Wherein, described operational order comprises: restart, hang up.
A7, as described in claim A6 method, it is characterized in that:
Described runtime server arranges that SDK wraps, in described SDK bag, comprises configuration file;
The incidence relation of resource name and resource object is set in described configuration file;
When receiving configuration order, from described configuration order, parsing resource name, from described configuration configuration file, inquiring corresponding resource object based on described resource name and calling;
Described resource object comprises: database, message queue, storage system.
A8, method as described in claim A7, is characterized in that:
Operation monitoring process on multiple described runtime server, described monitoring process is monitored described business and is performed the operation conditions of subprocess or the state of resource object;
When judge described business perform subprocess or resource object occur abnormal time, described monitoring process operates according to default strategy, comprising: warning of sending short messages, enable standby resources, restart process, automatic switchover.
B9, a kind of distributed service flow custom system, is characterized in that, comprising:
Center management server, comprising:
Child-operation creating unit, the operation for business being completed is decomposed into multiple subservice flow process;
Operation flow generation unit, for combining described multiple subservice flow process according to business demand and the operation of setting operation order, generates operation flow;
Operation flow transmitting element, for being distributed to runtime server by described operation flow;
Runtime server, comprising:
Business performance element, for performing corresponding business operation based on described operation flow.
B10, system as described in claim B9, is characterized in that:
Described business performance element, comprising:
Initiation of services submodule, for starting initiation of services process on runtime server; When described initiation of services process obtains described operation flow, for the corresponding business of each subservice flow startup in described operation flow performs subprocess, complete corresponding subservice flow process.
B11, system as described in claim B10, is characterized in that:
Described operation flow generation unit, forms child-operation combination for choosing one or more subservice flow process from described multiple subservice flow process according to business demand, and arranges the operation order of described child-operation combination neutron operation flow; Generate business operation table based on described child-operation combination and described operation order, and be stored in Service Database.
B12, system as described in claim B11, is characterized in that:
Described operation flow transmitting element, for after the described business operation table of generation, is sent to described runtime server by described business operation table in real time;
Described business performance element, comprising:
Push and receive submodule, for starting business service process, the described business operation table received is passed to described initiation of services process by described business service process.
B13, system as described in claim B12, is characterized in that:
Described business performance element, comprising:
Synchronous reception submodule, for starting service customer end process, described service customer end process periodically inquires about described Service Database with the time interval of setting; When obtaining described business operation table, described business operation table is passed to described initiation of services process by described service customer end process.
B14, as described in claim B13 system, it is characterized in that:
Described initiation of services submodule, for according to the number of processes in the configuration-direct received and operational order, controls described business and performs the quantity of subprocess and operate accordingly described business execution subprocess; Wherein, described operational order comprises: restart, hang up.
B15, as described in claim B14 system, it is characterized in that:
Described runtime server arranges that SDK wraps, in described SDK bag, comprises configuration file; The incidence relation of resource name and resource object is set in described configuration file;
Described business performance element, comprising:
Configuration controls submodule, for when receiving configuration order, from described configuration order, parses resource name, inquires corresponding resource object and call based on described resource name from described configuration configuration file;
Wherein, described resource object comprises: database, message queue, storage system.
B16, system as described in claim B15, is characterized in that:
Described runtime server, comprising:
Monitoring unit, operation monitoring process on multiple described runtime server, described monitoring process is monitored described business and is performed the operation conditions of subprocess or the state of resource object;
Wherein, when judge described business perform subprocess or resource object occur abnormal time, described monitoring process operates according to default strategy, comprising: warning of sending short messages, enable standby resources, restart process, automatic switchover.
Method and system of the present invention may be realized in many ways.Such as, any combination by software, hardware, firmware or software, hardware, firmware realizes method and system of the present invention.Said sequence for the step of method is only to be described, and the step of method of the present invention is not limited to above specifically described order, unless specifically stated otherwise.In addition, in certain embodiments, can be also record program in the recording medium by the invention process, these programs comprise the machine readable instructions for realizing according to method of the present invention.Thus, the present invention also covers the recording medium stored for performing the program according to method of the present invention.

Claims (10)

1. a distributed service process customizing method, is characterized in that, comprising:
Operation business completed is decomposed into multiple subservice flow process;
Combine described multiple subservice flow process according to business demand and the operation of setting operation order, generate operation flow;
Described operation flow is distributed to runtime server;
Described runtime server performs corresponding business operation based on described operation flow.
2. the method for claim 1, is characterized in that, described runtime server performs corresponding business operation based on described operation flow and comprises:
Runtime server starts initiation of services process;
When described initiation of services process obtains described operation flow, for the corresponding business of each subservice flow startup in described operation flow performs subprocess, complete corresponding subservice flow process.
3. method as claimed in claim 2, is characterized in that, described according to the business demand described multiple subservice flow process of combination and the operation of setting operation order, generates operation flow and comprises:
From described multiple subservice flow process, choose one or more subservice flow process according to business demand and form child-operation combination, and the operation order of described child-operation combination neutron operation flow is set;
Generate business operation table based on described child-operation combination and described operation order, and be stored in Service Database.
4. method as claimed in claim 3, is characterized in that, describedly described operation flow is distributed to runtime server comprises:
After the described business operation table of generation, in real time described business operation table is sent to described runtime server;
The described business operation table received is passed to described initiation of services process by the business service process that described runtime server runs.
5. method as claimed in claim 3, is characterized in that, describedly described operation flow is distributed to runtime server comprises:
The service customer end process that described runtime server runs periodically inquires about described Service Database with the time interval of setting;
When obtaining described business operation table, described business operation table is passed to described initiation of services process by described service customer end process.
6. method as claimed in claim 5, is characterized in that:
Described runtime server arranges that SDK wraps, in described SDK bag, comprises configuration file;
The incidence relation of resource name and resource object is set in described configuration file;
When receiving configuration order, from described configuration order, parsing resource name, from described configuration configuration file, inquiring corresponding resource object based on described resource name and calling;
Described resource object comprises: database, message queue, storage system.
7. a distributed service flow custom system, is characterized in that, comprising:
Center management server, comprising:
Child-operation creating unit, the operation for business being completed is decomposed into multiple subservice flow process;
Operation flow generation unit, for combining described multiple subservice flow process according to business demand and the operation of setting operation order, generates operation flow;
Operation flow transmitting element, for being distributed to runtime server by described operation flow;
Runtime server, comprising:
Business performance element, for performing corresponding business operation based on described operation flow.
8. system as claimed in claim 7, is characterized in that:
Described business performance element, comprising:
Initiation of services submodule, for starting initiation of services process on runtime server; When described initiation of services process obtains described operation flow, for the corresponding business of each subservice flow startup in described operation flow performs subprocess, complete corresponding subservice flow process.
9. system as claimed in claim 8, is characterized in that:
Described operation flow generation unit, forms child-operation combination for choosing one or more subservice flow process from described multiple subservice flow process according to business demand, and arranges the operation order of described child-operation combination neutron operation flow; Generate business operation table based on described child-operation combination and described operation order, and be stored in Service Database.
10. system as claimed in claim 9, is characterized in that:
Described operation flow transmitting element, for after the described business operation table of generation, is sent to described runtime server by described business operation table in real time;
Described business performance element, comprising:
Push and receive submodule, for starting business service process, the described business operation table received is passed to described initiation of services process by described business service process;
Synchronous reception submodule, for starting service customer end process, described service customer end process periodically inquires about described Service Database with the time interval of setting; When obtaining described business operation table, described business operation table is passed to described initiation of services process by described service customer end process.
CN201410817989.5A 2014-12-24 2014-12-24 Distributive business process customization method and system Pending CN104598300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410817989.5A CN104598300A (en) 2014-12-24 2014-12-24 Distributive business process customization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410817989.5A CN104598300A (en) 2014-12-24 2014-12-24 Distributive business process customization method and system

Publications (1)

Publication Number Publication Date
CN104598300A true CN104598300A (en) 2015-05-06

Family

ID=53124117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410817989.5A Pending CN104598300A (en) 2014-12-24 2014-12-24 Distributive business process customization method and system

Country Status (1)

Country Link
CN (1) CN104598300A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843723A (en) * 2016-02-22 2016-08-10 乐视体育文化产业发展(北京)有限公司 Webpage quality monitoring method, apparatus and system
CN106779363A (en) * 2016-12-02 2017-05-31 浪潮通信信息系统有限公司 A kind of method for processing business and device
CN106790182A (en) * 2016-12-30 2017-05-31 广州华多网络科技有限公司 Distributed service service system and its corresponding device of centralized services control method
CN107277005A (en) * 2017-06-13 2017-10-20 深圳市永达电子信息股份有限公司 A kind of distributed operation flow detection method
CN107622060A (en) * 2016-07-13 2018-01-23 北京京东尚科信息技术有限公司 Order trace analysis method and device
CN107924502A (en) * 2016-03-01 2018-04-17 华为技术有限公司 Multistage high-effect Business Process Management engine
CN107944662A (en) * 2017-10-30 2018-04-20 链家网(北京)科技有限公司 A kind of Business Process Control processing method and processing device
CN108958832A (en) * 2018-06-12 2018-12-07 北京蜂盒科技有限公司 The method, apparatus and storage medium and electronic equipment of custom service process
CN109447411A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Business Process Control method, apparatus, computer equipment and storage medium
CN109583676A (en) * 2018-09-11 2019-04-05 阿里巴巴集团控股有限公司 The method of capturing service flow data, system and its server in distributed system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321096A (en) * 2008-07-11 2008-12-10 北京立通无限科技有限公司 Communication processing method and device based on sharing SOCKET
CN101566943A (en) * 2008-04-24 2009-10-28 深圳市同洲电子股份有限公司 Method, terminal and system for controlling terminal software functions
CN102404381A (en) * 2011-09-02 2012-04-04 西安交通大学 Software deployment system and deployment method based on workflow in cloud computing environment
CN102999317A (en) * 2012-12-30 2013-03-27 北京讯鸟软件有限公司 Multi-tenant oriented elastic multi-process service processing method
CN103092645A (en) * 2012-12-31 2013-05-08 武汉中地数码科技有限公司 Geographic spatial information application system and implement method thereof based on microkernel technology
CN103843029A (en) * 2011-09-30 2014-06-04 瓦里安医疗系统公司 Systems and methods for implementing medical workflow

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566943A (en) * 2008-04-24 2009-10-28 深圳市同洲电子股份有限公司 Method, terminal and system for controlling terminal software functions
CN101321096A (en) * 2008-07-11 2008-12-10 北京立通无限科技有限公司 Communication processing method and device based on sharing SOCKET
CN102404381A (en) * 2011-09-02 2012-04-04 西安交通大学 Software deployment system and deployment method based on workflow in cloud computing environment
CN103843029A (en) * 2011-09-30 2014-06-04 瓦里安医疗系统公司 Systems and methods for implementing medical workflow
CN102999317A (en) * 2012-12-30 2013-03-27 北京讯鸟软件有限公司 Multi-tenant oriented elastic multi-process service processing method
CN103092645A (en) * 2012-12-31 2013-05-08 武汉中地数码科技有限公司 Geographic spatial information application system and implement method thereof based on microkernel technology

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843723A (en) * 2016-02-22 2016-08-10 乐视体育文化产业发展(北京)有限公司 Webpage quality monitoring method, apparatus and system
CN107924502A (en) * 2016-03-01 2018-04-17 华为技术有限公司 Multistage high-effect Business Process Management engine
CN107622060A (en) * 2016-07-13 2018-01-23 北京京东尚科信息技术有限公司 Order trace analysis method and device
CN106779363A (en) * 2016-12-02 2017-05-31 浪潮通信信息系统有限公司 A kind of method for processing business and device
CN106790182A (en) * 2016-12-30 2017-05-31 广州华多网络科技有限公司 Distributed service service system and its corresponding device of centralized services control method
CN106790182B (en) * 2016-12-30 2020-10-16 广州华多网络科技有限公司 Distributed business service system, centralized service control method and corresponding device thereof
CN107277005A (en) * 2017-06-13 2017-10-20 深圳市永达电子信息股份有限公司 A kind of distributed operation flow detection method
CN107944662A (en) * 2017-10-30 2018-04-20 链家网(北京)科技有限公司 A kind of Business Process Control processing method and processing device
CN107944662B (en) * 2017-10-30 2020-09-11 贝壳找房(北京)科技有限公司 Business process control processing method and device
CN108958832A (en) * 2018-06-12 2018-12-07 北京蜂盒科技有限公司 The method, apparatus and storage medium and electronic equipment of custom service process
CN109583676A (en) * 2018-09-11 2019-04-05 阿里巴巴集团控股有限公司 The method of capturing service flow data, system and its server in distributed system
CN109447411A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Business Process Control method, apparatus, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104598300A (en) Distributive business process customization method and system
US9560109B2 (en) Message management facility for an industrial process control environment
EP3386150B1 (en) Terminal failure processing method, device and system
CN108712501B (en) Information sending method and device, computing equipment and storage medium
WO2022179140A1 (en) Data processing method and system
CN108769112B (en) Non-invasive RPC interface monitoring method and system
CN104536809A (en) Distributed timing task scheduling system based on client and server system
CN110830283B (en) Fault detection method, device, equipment and system
CN104965727B (en) A kind of method and device for restarting server
JPS61500751A (en) Method for stopping program processes in multiprocessing systems
CN103138985B (en) A kind of supporting network business host processes control method and system
CN101388903A (en) Mobile enterprise IT standardization management platform
CN103107921A (en) Monitoring method and system
CN107729213B (en) Background task monitoring method and device
CN110795264A (en) Monitoring management method and system and intelligent management terminal
CN113010379B (en) Electronic equipment monitoring system
CN112448987A (en) Fusing degradation triggering method and system and storage medium
JP4978693B2 (en) Manager, agent and system, and transmission control method
JP2009026221A (en) Business process operation management system, method, process operation management device, and its program
CN104618461A (en) Mobile code cloud mobile phone-based server monitoring method
US20170223136A1 (en) Any Web Page Reporting and Capture
CN113946362B (en) Consumption data processing method and storage medium
JP2010245841A (en) Method and device for managing network, and network apparatus
CN106230878B (en) Equipment service calling method and device based on AllJoyn framework
CN103957127A (en) Heterogeneous manufacturer transmission network interface adaptation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150506

RJ01 Rejection of invention patent application after publication