CN107861811A - Mission bit stream transmission method, device and computer equipment in Workflow system - Google Patents

Mission bit stream transmission method, device and computer equipment in Workflow system Download PDF

Info

Publication number
CN107861811A
CN107861811A CN201711002175.6A CN201711002175A CN107861811A CN 107861811 A CN107861811 A CN 107861811A CN 201711002175 A CN201711002175 A CN 201711002175A CN 107861811 A CN107861811 A CN 107861811A
Authority
CN
China
Prior art keywords
bit stream
mission bit
storage
partition holding
server
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.)
Granted
Application number
CN201711002175.6A
Other languages
Chinese (zh)
Other versions
CN107861811B (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201711002175.6A priority Critical patent/CN107861811B/en
Priority to PCT/CN2017/112551 priority patent/WO2019080232A1/en
Publication of CN107861811A publication Critical patent/CN107861811A/en
Application granted granted Critical
Publication of CN107861811B publication Critical patent/CN107861811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to mission bit stream transmission method, device, storage medium and the computer equipment in a kind of Workflow system.Methods described includes:The mission bit stream that the reception server is sent obtains request, and the mission bit stream obtains in request and includes server identification;Obtain partition holding No. the first corresponding with the server identification;The request time of request is obtained according to the server identification and the mission bit stream, calculates the first storage burst number;Mission bit stream is taken out from storage region corresponding to the first storage burst number under the partition holding No. first, the mission bit stream is sent to the server.Mission bit stream transmission method, device, storage medium and computer equipment in above-mentioned Workflow system, the resource occupation in transformation task information can be reduced.

Description

Mission bit stream transmission method, device and computer equipment in Workflow system
Technical field
The present invention relates to technical field of information processing, more particularly to the mission bit stream transmission side in a kind of Workflow system Method, device, storage medium and computer equipment.
Background technology
Workflow (Workflow) is organized a group task to complete some business process, be to workflow and Business rule is abstracted, is broadly described between its each operating procedure.The workflow defining trigger sequence and trigger condition of task, Each task is split into multiple node tasks, each node tasks can be completed by one or more software systems, can also Completed by one or lineup, can also be cooperated completion by one or more people with software systems.What workflow solved mainly asks Topic is:In order to realize some business objective, text is transmitted automatically by certain pre-defined rule between multiple participants using computer Shelves, information or task.
In the processing procedure to Work stream data, Work stream data circulates to caused node on one or several nodes Task, the node tasks need to handle by corresponding interconnected system, and Workflow system is according to the processing knot of the interconnected system Fruit continues with the Work stream data.
Generally, the architecture of interconnected system application is all based on server cluster realization, forms the server cluster Each server pulls to correspond to from the computer equipment for deploy Workflow system needs mission bit stream to be processed.Tradition side In method, these servers are when pulling corresponding mission bit stream, it may appear that race condition, cause part server to pull and disappear Breath, or multiple server pulls are repeatedly processed through vaporization, condensation and absorption corresponding node task, make to deploy workflow to identical mission bit stream The computer equipment of system takes more resource when transmitting corresponding task information.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided a kind of mission bit stream transmission method in Workflow system, Device, storage medium and computer equipment, to reduce resource consumption when transmitting the mission bit stream in Workflow system.
A kind of mission bit stream transmission method in Workflow system, methods described include:The task that the reception server is sent Information acquisition request, the mission bit stream obtain in request and include server identification;Obtain corresponding with the server identification Partition holding No. first;The request time of request is obtained according to the server identification and the mission bit stream, calculates first Store burst number;Task letter is taken out from storage region corresponding to the first storage burst number under the partition holding No. first Breath, the mission bit stream is sent to the server.
In one of the embodiments, acquisition partition holding No. the first corresponding with the server identification, including: The system banner of the first interconnected system according to belonging to the server identification inquires about the server;Obtain and first system Partition holding No. first of system mark association.
In one of the embodiments, methods described also includes:Task letter is generated according to the transmitting state of Work stream data Breath, the mission bit stream include the type identification of task type;Obtain partition holding No. the second corresponding with the type identification; For mission bit stream distribution the second storage burst number;That mission bit stream storage is arrived under the partition holding No. second In storage region corresponding to two storage bursts number.
In one of the embodiments, acquisition partition holding No. the second corresponding with the type identification, including:Inspection The system banner with the presence or absence of the second interconnected system associated with the type identification is surveyed, is closed if so, then obtaining with described second Contact partition holding No. the second corresponding to the system banner of system.
In one of the embodiments, stored from corresponding to the first storage burst number under the partition holding No. first Before mission bit stream being taken out in region, in addition to:Create corresponding with the partition holding No. first and the first storage burst number Thread task;When performing the thread task, deposited according to the thread task from first under the partition holding No. first Mission bit stream is taken out in storage region corresponding to storage burst number.
In one of the embodiments, the establishment is corresponding with the partition holding No. first and the first storage burst number Thread task, including:Inquiry subregion thread identification corresponding with the first partition holding mark;Inquiry and the described first storage Burst sub-line journey corresponding to segmental identification identifies;Create corresponding to the burst sub-line journey mark belonged under the subregion thread identification Thread pool sub-line journey pond in thread task.
A kind of mission bit stream transmitting device in Workflow system, described device include:Mission bit stream obtains request and received Module, request is obtained for the mission bit stream that the reception server is sent, the mission bit stream obtains in request and includes server mark Know;Storage region enquiry module, for obtaining partition holding No. the first corresponding with the server identification;According to the service Device identifies the request time that request is obtained with the mission bit stream, calculates the first storage burst number;Mission bit stream transport module, For extracting the mission bit stream in storage region corresponding to the be stored under the partition holding No. first first storage burst number, The mission bit stream is sent to the server.
In one of the embodiments, described device also includes:Mission bit stream generation module, for according to Work stream data Transmitting state generation mission bit stream, the mission bit stream includes the type identification of task type;Mission bit stream memory module, use In acquisition partition holding No. the second corresponding with the type identification;For mission bit stream distribution the second storage burst number;Will In storage region corresponding to the mission bit stream storage to the second storage burst number under the partition holding No. second.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor The step of any one of the various embodiments described above methods described is realized during row.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, any one of the various embodiments described above methods described is realized described in the computing device during computer program Step.
Mission bit stream transmission method, device, storage medium and computer equipment in above-mentioned Workflow system, are being received After the mission bit stream that server is sent obtains request, default the first storage corresponding with the server identification of the server is obtained Partition number, further according to the server identification and request time, be calculated as the server-assignment first storage burst number, so from this Mission bit stream is taken out in storage region corresponding to the first storage burst number under partition holding No. first, and is sent to the service Device.So that each mission bit stream can be corresponding distribution to a server process, reduce mission bit stream be duplicatedly distributed or by The probability of multiple server competitions, reduces resource occupation of the computer equipment in transformation task information.
Brief description of the drawings
Fig. 1 is the applied environment figure of the mission bit stream transmission method in Workflow system in one embodiment;
Fig. 2 is the flow chart of the mission bit stream transmission method in Workflow system in one embodiment;
Fig. 3 is the flow chart of the generation and storage of mission bit stream in one embodiment;
Fig. 4 is the structured flowchart of the mission bit stream transmitting device in Workflow system in one embodiment;
Fig. 5 is the structured flowchart of the mission bit stream transmitting device in Workflow system in another embodiment;
Fig. 6 is the structured flowchart of the mission bit stream transmitting device in Workflow system in another embodiment;
Fig. 7 is the cut-away view of one embodiment Computer equipment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes Say, without departing from the scope of the invention, the first partition holding can be known as partition holding No. the second, and it is similar Ground, the second partition holding can be known as partition holding No. the first.Partition holding No. first and partition holding No. the second are both It is partition holding number, and can is identical or different partition holding number.
Mission bit stream transmission method in the Workflow system that the embodiment of the present invention is provided, it can be applied to as shown in Figure 1 Application environment in.With reference to shown in figure 1, computer equipment 110 can pass through network connection, the server with server cluster 120 Cluster 120 can be by forming comprising multiple servers (server 120A, 120B as shown).Deployed on computer equipment 110 Corresponding Workflow system, and more parts of Work stream datas are stored, and every part of Work stream data is caused by during circulation The mission bit stream of node tasks.The interconnected system that there is relevance with the Workflow system is deployed on server cluster 120, is taken Being engaged in device cluster 120 can be by caused related node tasks in interconnected system processing Workflow system.Computer equipment 110 The mission bit stream that any one or more servers in the server cluster 110 are sent can be received and obtain request, obtained according to this The mission bit stream of the corresponding storage of request extraction is taken, and is sent to corresponding server, realizes the transmission to mission bit stream.
In one embodiment, as shown in Figure 2, there is provided the mission bit stream transmission method in a kind of Workflow system.This Embodiment is mainly applied to computer equipment 110 as shown in Figure 1 to illustrate in this way, and this method includes:
Step S202, the mission bit stream that the reception server is sent obtain request, and mission bit stream is obtained in request comprising service Device identifies.
The work for being handled the Work stream data on present node has been preset in the present embodiment, in computer equipment Make streaming system, the Workflow system can be for being operated the inquiry of flow data, management to whole Work stream data and examining Criticize BPM (Business Process Management, the BPM) system for waiting processing.Server for be deployed with The Workflow system has the server in the server cluster of the interconnected system of incidence relation.One in the server cluster Or multiple servers can send mission bit stream to computer equipment and obtain request.Specifically, can be carried out according to default frequency Mission bit stream obtains the transmission of request.
Mission bit stream obtains the server identification that the server for sending the request is included in request.Server identification can be by pre- If the one or more therein such as the numeral of digit, letter and/or other spcial characters are formed.
Computer equipment can receive the mission bit stream that each server is sent according to the frequency being correspondingly arranged and obtain request, and The server identification of request carrying is extracted, the server of the request is sent with identification.
In one embodiment, server can send mission bit stream acquisition to computer equipment by preset JAR bags and ask Ask, computer equipment can receive the server and obtain request by the mission bit stream sent by way of preset JAR bags.Its In, the JAR bags can be JAR bags in JAVA, and support integrates with SPRING, PAFA third party's framework, can also be primary by JAVA Code means integrate.Computer equipment is asked by receiving to send in the form of JAR bags, need not can be configured to realize and the clothes The query interface of business device docking, obtains the request by calling query interface, can reduce the occupancy to resource.
Step S204, obtain partition holding No. the first corresponding with server identification.
In the present embodiment, computer equipment has divided multiple subregions to the storage region of store tasks information in advance, by phase Mission bit stream with task type is stored into the fixed partition holding of one or more, the task in each partition holding storage The task type of information is identical.For each partition holding of division, there is provided the storage for the unique mark partition holding Partition number.Wherein, the partition holding number can be the call number for determining partition holding.
For example the number of types of task type has N number of, then N number of partition holding can be set, the i-th partition holding correspondingly deposits Storing up the mission bit stream of the i-th task type so that the mission bit stream of same task type is stored in same partition holding, And the task type stored in different partition holdings is different.
Computer equipment pre-sets partition holding number corresponding with each server identification, different server mark pair The partition holding number answered is not necessarily identical.Computer equipment is inquired about to be deposited with the server identification corresponding first in the request obtained Partition number is stored up, so as to can determine that the partition holding for being sent to where the mission bit stream of the server.
Step S206, the request time of request is obtained according to server identification and mission bit stream, calculates the first storage point Piece number.
In the present embodiment, computer equipment has further divided multiple bursts, same storage to each partition holding in advance In different storage bursts in subregion, the task type of the mission bit stream of storage is identical, i.e., computer equipment can be by same task The mission bit stream of type, store to same or multiple partition holdings.For each storage burst of division, there is provided for The storage burst number of the unique mark storage burst.Such as the i-th partition holding, M storage point is further divided into Piece, each mission bit stream for storing burst and being used to store the i-th task type.Wherein, it can be for determining to deposit to store burst number Store up the call number of burst.
Computer equipment, which can be obtained further, receives the request time that the mission bit stream obtains request, and according to the request Time and service device identifies, and calculates the first storage burst number.By according to request time and server identification, calculating and being used for First storage burst number of the storage burst that distribution corresponding requests are inquired about so that can be from corresponding to the storage burst number calculated Store in burst, mission bit stream corresponding to extraction.
In one embodiment, the first storage burst number calculated, the first storage burst number calculated with the last time It is different.I.e. computer equipment can the mission bit stream that sends of each server of real-time reception obtain request, according to each mission bit stream Obtain request request time and comprising server identification, calculate in real time for corresponding server distribution storage burst, and It is different to the storage burst of adjacent time distribution.
In one embodiment, the hash algorithm model for calculating the partition number has been preset in computer equipment, by this Server identification and request time are imported in the hash algorithm model, output storage burst number, as the first storage burst number.Its In, according to different server identifications and identical request time, the storage burst difference calculated.Such as the first storage burst Number=HASH (server identification+request time).For example, when the mission bit stream for receiving multiple servers while sending obtains When taking request, it can calculate as the partition holding number of each server-assignment, and the partition holding number of each server-assignment is not Together.
In one embodiment, the storage burst number that the hash algorithm model exports every time is in all storage burst number Any one, the storage burst number of the output can be that random output stores burst number, and identical storage point is continuously allocated to reduce The probability of piece number.The detectable storage burst number calculated of computer equipment whether with the last storage burst phase calculated Together, if so, then re-starting calculating, until the storage burst number of generation is different from the last time, by the storage burst number of the generation As the first storage burst number.Wherein, last storage burst number refers to the storage burst number under partition holding No. the first.
Step S208, task letter is taken out from storage region corresponding to the first storage burst number under partition holding No. the first Breath, mission bit stream is sent to server.
In the present embodiment, computer equipment can be taken off being stored in after partition holding number and storage burst number is determined Mission bit stream in storage region corresponding to the first storage burst number under the partition holding number, the mission bit stream is sent to clothes Business device.The storage region is storage point corresponding with the first storage burst number under the partition holding No. first that is being divided Piece.
For example, for a certain mission bit stream, the mission bit stream caused by the Work stream data of production danger Claims Resolution type Represent to need the link for being related to artificial treatment (car setting loss, locality artificial quotation, quotation etc.), the mode of automatic job distribution can be used To assign processing people.After the mission bit stream generates, it can store in the storage burst under default corresponding partition holding.Logical Cross a certain mission bit stream that above-mentioned steps S202~S206 detects to receive and obtain request, the partition holding with the partition holding Number and the storage burst storage burst number to it is corresponding when be designated as partition holding No. the first and the first storage burst number), can perform should Step S208, mission bit stream is taken out from storage region corresponding to the first storage burst number under partition holding No. the first, will be appointed Business information is sent to server, so as to realize the accurate delivery to mission bit stream.
Mission bit stream transmission method in above-mentioned Workflow system, being obtained in the mission bit stream for receiving server transmission please After asking, default partition holding No. the first corresponding with the server identification of the server is obtained, further according to the server identification And request time, the server-assignment first storage burst number is calculated as, and then deposit from first under the partition holding No. first Mission bit stream is taken out in storage region corresponding to storage burst number, and is sent to the server.So that each mission bit stream can be pair It should distribute to a server process, reduce the probability that mission bit stream is duplicatedly distributed or competed by multiple servers, reduce Resource occupation of the computer equipment in transformation task information.
In one embodiment, step S204 includes:The first association system according to belonging to server identification inquires about server The system banner of system;Obtain the partition holding No. the first associated with system banner.
In the present embodiment, system banner is used for one system of unique mark, and computer equipment is pre-set for unique Identify the system banner of an interconnected system.Interconnected system may include multiple, node tasks of the different interconnected systems for processing Task type it is different.Similarly, the system banner equally can be by the numeral of presetting digit capacity, letter and/or other spcial characters Formed etc. one or more therein.For each interconnected system, computer equipment is pre-recorded to deploy each association The server identification of the server of system, the interconnected system belonging to server are the association system disposed on that server System.
Computer equipment has further preset the pass between the system banner of each interconnected system and each partition holding number Connection relation, according to the incidence relation, the partition holding No. the first associated with system banner can be obtained.Corresponding to the partition holding number In partition holding, store suitable for by the interconnected system come the mission bit stream that handles.Computer equipment passes through server mark Know the system banner of the first interconnected system belonging to inquiry server;The partition holding No. the first associated with system banner is obtained, The efficiency for determining respective stored subregion can be improved.
In one embodiment, as shown in figure 3, the process of generation and storage of the above method also including mission bit stream, is somebody's turn to do Process can perform before or after any one above-mentioned step or parallel.For example can be performed before above-mentioned step S202, Or performed after step S208.The process includes:
Step S302, mission bit stream is generated according to the transmitting state of Work stream data, mission bit stream includes task type Type identification.
In the present embodiment, a Work stream data can be a task in Workflow system, and computer equipment can be Any time obtains pending Work stream data.Transmitting state represents circulation progress of the Work stream data in corresponding node, The logical relation being provided with Workflow system between multiple nodes, and each node, different nodes have corresponded to a task Residing different phase.When Work stream data is flowed on a certain node, the node tasks of corresponding node can be generated.In not It may need to handle by Workflow system with the node tasks on node, or need by being associated with the Workflow system Interconnected system handled.Mission bit stream on present node is to correspond to Work stream data when on present node, required The relevant task data of processing.
In every part of mission bit stream, the task type mark comprising the task type belonging to the task, task type mark is used The task type belonging to mission bit stream is corresponded in unique mark.Task type mark can be according to the node and phase residing for the task The type of Work stream data is answered to determine.The task type of node tasks in same node point is not necessarily identical.Workflow It is applicable to handle polytype Work stream data in system, different types of Work stream data, can during processed It can circulate to one or more identical node.The task type of node tasks is the task type belonging to Work stream data. I.e. different types of Work stream data, when circulating to identical node, the task type of corresponding node task also differs.
For example, the Work stream data of processing insurance class, the workflow in its system are applicable in Workflow system The type of data includes endowment insurance type and dangerous type of sharing out bonus.Work stream data A and Work stream data B in Workflow system be present Endowment insurance type and dividend type are belonging respectively to, the double duty flow data circulates to present node respectively, the correspondence of generation Node tasks A is different with the task type belonging to node tasks B mission bit stream.
Step S304, obtain partition holding No. the second corresponding with type identification.
In the present embodiment, partition holding No. the second can be identical or different from the first above-mentioned partition holding number.Server Also the corresponding relation between each partition holding number and every kind of task type mark, itself and each partition holding be further established One task type mark of number correspondence so that according to the corresponding relation, the mission bit stream of same type is stored to identical and deposited Store up in subregion.Computer equipment according to the corresponding relation, can obtain depositing for the partition holding of the mission bit stream for storing generation Partition number is stored up, as the partition holding No. second.It is to be appreciated that partition holding No. the second can be with the first above-mentioned partition holding It is number identical or different.
Step S306, for mission bit stream distribution the second storage burst number.
In the present embodiment, the second storage burst number also can be identical or different with the first above-mentioned storage burst number.Computer Equipment can choose one of storage burst number according to default distribution model, from all storage bursts number, as this Mission bit stream distributes the second storage burst number.It is to be appreciated that the second storage burst number also can be with the first above-mentioned storage point Piece number is identical or different.
In one embodiment, computing technique equipment can obtain the task identification of the mission bit stream, can mission bit stream appoint The business generation time, according to the task identification and generation time, a storage burst number is calculated, as the second storage burst number. Wherein, task identification is used for mission bit stream corresponding to unique mark.
In one embodiment, the type can be identified and generated the above-mentioned hash algorithm mould of time importing by computer equipment In type, output storage burst number, as the second storage burst number.Further, the second of the detectable distribution of computer equipment is deposited Whether identical with the storage burst number of last time distribution store up burst number, if identical, reselect one second storage burst number, So that the second storage burst number of distribution, can be with the storage burst difference of last time distribution.Wherein, the storage of last distribution Burst number refers to the storage burst number under partition holding No. the first.
Step S308, by memory block corresponding to mission bit stream storage to the second storage burst number under partition holding No. the second In domain.
In the present embodiment, computer equipment be able to can incite somebody to action when partition holding No. the second and the second storage burst is determined Storage region corresponding to mission bit stream storage to the partition holding No. second and the second storage burst number.
In the present embodiment, by determining corresponding partition holding number and storage burst number according to task type, so that will The mission bit stream of different task type is generated, stores to second under different partition holdings No. second to store and is deposited corresponding to burst number , can be from corresponding different storage region when the mission bit stream for receiving different server transmission obtains request in storage area domain Mission bit stream is taken out, with the probability for avoiding mission bit stream from being duplicatedly distributed or being competed by multiple servers, computer is reduced and sets The standby resource occupation in transformation task information.
In one embodiment, the size of memory space corresponding to each subregion and each burst, can be produced according to history Mission bit stream quantity and correspondingly extract the extraction efficiency of the mission bit stream to determine so that for different types of Business information, the memory space of the corresponding different size of division.
In one embodiment, step S304 includes:Detect whether the second interconnected system associated with type identification be present System banner, if so, then obtaining corresponding with the system banner of the second interconnected system partition holding No. the second.
In the present embodiment, computer equipment is applied to the task type of processing for different interconnected systems, establishes this The system banner of interconnected system, with the corresponding relation between the type identification of the corresponding task type for being applicable processing.Computer is set It is standby to can detect whether system banner corresponding with the task type be present, if in the presence of, judge the mission bit stream can be allocated to Interconnected system corresponding to the system banner is handled, so as to obtain partition holding number corresponding to the system banner.Wherein, the system Interconnected system corresponding to mark is above-mentioned second interconnected system, and corresponding partition holding number is above-mentioned second partition holding Number.If it is not present, then it represents that can be handled by Workflow system itself, then need not obtain the partition holding number of above-mentioned setting, can press Be used to being applied to Workflow system itself according to default come the storage that handles or processing strategy, the mission bit stream is stored or Processing.
In the present embodiment, computer equipment is obtained by inquiring about with the presence or absence of the system banner associated with type identification Partition holding No. second corresponding to the system banner inquired, point to mission bit stream not related to interconnected system can be reduced The processing of piece storage is distinguished, reduces the follow-up extraction query context for taking out mission bit stream, improves the effect of mission bit stream transmission Rate.
In one embodiment, before step S208, the above method also includes:Create and partition holding No. the first and the Thread task corresponding to one storage burst number;When execution thread task, according to thread task under partition holding No. the first Mission bit stream is taken out in storage region corresponding to first storage burst number.
In the present embodiment, computer equipment can create corresponding line according to every received task information acquisition request Journey task, the mission bit stream that the thread task is asked by transmission and corresponding task information acquisition request.Computer equipment can be The thread task of establishment is provided for the thread identification of the unique mark thread task, establishes each thread task and according to this Corresponding relation between partition holding number, storage burst number and server identification that information acquisition request of being engaged in determines.
The thread task of each establishment can be put into default thread pool by computing technique equipment, and can be according to creation time The thread task being stored in thread pool is ranked up, forms thread task queue, and take out from the head of the queue of the thread queue Corresponding thread task, the thread task in head of the queue, in the current thread queue, the earliest thread of creation time Task.The thread task taken out is performed, burst correspondence is stored from first under partition holding No. the first according to the thread task Storage region in take out mission bit stream.
In one embodiment, computer equipment can take out according to the default execution period from the head of the queue of the thread queue Corresponding thread task.The default execution period can be that the fixed of any setting performs the period, can also be according to computer The execution period that the current system resource occupancy of equipment automatically determines.The system resource occupancy can be to CPU usage Or the occupancy of one or more synthesis therein such as memory usage, when system resource occupancy is less than default occupancy When, judge that current time is in and perform within the period.
In one embodiment, thread corresponding with the first partition holding mark and the first storage segmental identification is created to appoint Business, including:Inquiry subregion thread identification corresponding with the first partition holding mark;Inquiry is corresponding with the first storage segmental identification Burst sub-line journey identifies;Create belong under subregion thread identification burst sub-line journey mark corresponding to thread pool sub-line journey pond In thread task.
In the present embodiment, thread pool is also further divided into multiple sub-line journey ponds.Thread task in different threads pond It can perform parallel, the thread task in the group of different sub-line journey ponds can also perform parallel.Each thread pool is provided with to applied to only One identifies the subregion thread identification of the thread pool, and each sub-line journey pond, which is provided with, to be divided the sub-line journey pond applied to unique mark Slice, thin piece thread identification.
Each subregion thread identification is corresponding with wherein one or more partition holdings number respectively, different subregions thread identification pair The partition holding difference answered so that the thread task being present in the group of different threads pond, only taken from corresponding partition holding Go out on missions information, reduce the coupling between different threads task.Similarly, each burst sub-line journey mark respectively with wherein One or more storage burst correspondence, storage burst difference corresponding to different burst sub-line journey marks so that be present in not With the thread task in sub-line journey pond, mission bit stream only is taken out from corresponding storage burst, reduce further different threads Coupling between task.
As an example it is assumed that having divided 32 subregions in advance, each subregion is divided into 32 bursts again.The number of thread pool It is 8 to measure A, and the quantity B for the sub-line journey pond B that each thread pool is divided is 8.If taking the principle of decile, there can be 8 threads Pond handles the mission bit stream (each thread pool handles 4 subregions) in 32 subregions, and each thread pool can distribute 8 sub- thread pools To handle the burst under corresponding 4 subregions.Computing technique equipment divided can parallel processing total number of threads amount=A+A*B= 72.Such dividing mode is taken, feasible level lock, deadlock, improves the efficiency that computer equipment extracts to mission bit stream.
In one embodiment, computer is according to above-mentioned default corresponding relation, inquiry and the first partition holding mark pair The subregion thread identification answered;Inquiry burst sub-line journey corresponding with the first storage segmental identification identifies;Establishment belongs to subregion thread The lower burst sub-line journey of mark identify corresponding to thread pool sub-line journey pond in thread task.So as to subsequently perform the line During journey task, can the burst according to corresponding to each thread task of setting go to extract corresponding mission bit stream, by the mission bit stream Send to corresponding server.
In one embodiment, as shown in Figure 4, there is provided the mission bit stream transmitting device in a kind of Workflow system, should Device includes:
Mission bit stream obtains request receiving module 402, and request, task are obtained for the mission bit stream that the reception server is sent Server identification is included in information acquisition request.
Storage region enquiry module 404, for obtaining partition holding No. the first corresponding with server identification;According to service Device identifies the request time that request is obtained with mission bit stream, calculates the first storage burst number.
Mission bit stream transport module 406, it is right for extracting the be stored under partition holding No. the first first storage burst number Mission bit stream in the storage region answered, mission bit stream is sent to server.
In one embodiment, storage region enquiry module 404 is additionally operable to according to belonging to server identification inquires about server The first interconnected system system banner;Obtain the partition holding No. the first associated with the first system mark.
In one embodiment, as shown in Figure 5, there is provided the mission bit stream transmitting device in another Workflow system, The device also includes:
Mission bit stream generation module 408, for generating mission bit stream, mission bit stream according to the transmitting state of Work stream data Type identification comprising task type;
Mission bit stream memory module 410, for obtaining partition holding No. the second corresponding with type identification;For mission bit stream The storage burst number of distribution second;By storage corresponding to mission bit stream storage to the second storage burst number under partition holding No. the second In region.
In one embodiment, mission bit stream memory module 410 is additionally operable to detect whether there is what is associated with type identification The system banner of second interconnected system, if so, then obtaining the second partition holding corresponding with the system banner of the second interconnected system Number.
In one embodiment, as shown in Figure 6, there is provided the mission bit stream transmitting device in another Workflow system, The device also includes:
Thread task creation module 412, for creating line corresponding with partition holding No. the first and the first storage burst number Journey task.
Mission bit stream transport module 406 is additionally operable to when execution thread task, according to thread task from the first partition holding Mission bit stream is taken out in storage region corresponding to the first storage burst number under number.
In one embodiment, it is corresponding with the first partition holding mark to be additionally operable to inquiry for thread task creation module 412 Subregion thread identification;Inquiry burst sub-line journey corresponding with the first storage segmental identification identifies;Establishment belongs to subregion thread identification Under burst sub-line journey mark corresponding to thread pool sub-line journey pond in thread task.
Modules in said apparatus can be realized fully or partially through software, hardware and combinations thereof.Above-mentioned each mould Block can in the form of hardware be embedded in or independently of in the processor in computer equipment, can also be stored in calculating in a software form In memory in machine equipment, operation corresponding to above modules is performed in order to which processor calls.The processor can be CPU (CPU), microprocessor, single-chip microcomputer etc..
In one embodiment, there is provided a kind of computer-readable recording medium, be stored thereon with computer program, the meter Calculation machine program realizes the mission bit stream transmission method in the Workflow system in any of the above-described embodiment when being executed by processor The step of.
In one embodiment, following steps are realized when the computer program is executed by processor:The reception server is sent Mission bit stream obtain request, mission bit stream obtain request in include server identification;Obtain corresponding with server identification the Partition holding No. one;The request time of request is obtained according to server identification and mission bit stream, calculates the first storage burst number; Mission bit stream is taken out from storage region corresponding to the first storage burst number under partition holding No. the first, mission bit stream is sent To server.
In one embodiment, following steps are also realized when the computer program is executed by processor:According to server mark Know the system banner of the first interconnected system belonging to inquiry server;Obtain the first partition holding associated with the first system mark Number.
In one embodiment, following steps are also realized when the computer program is executed by processor:According to work fluxion According to transmitting state generate mission bit stream, mission bit stream includes the type identification of task type;Obtain corresponding with type identification Partition holding No. second;For mission bit stream distribution the second storage burst number;By under mission bit stream storage to partition holding No. the second The second storage burst number corresponding in storage region.
In one embodiment, following steps are also realized when the computer program is executed by processor:Detect whether exist The system banner of the second interconnected system associated with type identification, if so, then obtaining the system banner pair with the second interconnected system The partition holding No. the second answered.
In one embodiment, following steps are also realized when the computer program is executed by processor:Establishment is deposited with first Store up thread task corresponding to partition number and the first storage burst number;When execution thread task, deposited according to thread task from first Mission bit stream is taken out in storage region corresponding to the first storage burst number under storage partition number.
In one embodiment, following steps are also realized when the computer program is executed by processor:Inquiry is deposited with first Store up subregion thread identification corresponding to partition identification;Inquiry burst sub-line journey corresponding with the first storage segmental identification identifies;Create Belong under subregion thread identification burst sub-line journey mark corresponding to thread pool sub-line journey pond in thread task.
In one embodiment, there is provided a kind of computer equipment, including memory, processor and storage are on a memory And the computer program that can be run on a processor, realize in any of the above-described embodiment during the computing device computer program Workflow system in mission bit stream transmission method the step of.
The computer equipment can be server or terminal etc. it is therein any one.Terminal include but is not limited to mobile phone, Tablet personal computer, portable notebook or Intelligent worn device etc..As shown in fig. 7, in one embodiment Computer equipment Portion's structural representation.The computer equipment includes processor, memory and the network interface connected by system bus.Wherein, The processor of the computer equipment is used to provide calculating and control ability, supports the operation of whole computer equipment.Memory is used In data storage, instruction code etc., at least one computer program is stored on memory, the computer program can be held by processor OK, the mission bit stream transmission side the Workflow system suitable for computer equipment provided with realizing in the embodiment of the present application Method.Memory may include that the non-volatile memories such as magnetic disc, CD, read-only memory (Read-Only Memory, ROM) are situated between Matter etc..For example, in one embodiment, memory includes non-volatile memory medium and built-in storage.Non-volatile memories are situated between Matter is stored with operating system, database and computer program.It is stored with the database for each embodiment institute more than realizing The data of mission bit stream transmission method correlation in a kind of Workflow system provided, for example the mission bit stream of generation can be stored Deng.The computer program can be performed by processor, for a kind of realization workflow system that each embodiment is provided above Mission bit stream transmission method in system.Built-in storage in computer equipment be operating system in non-volatile memory medium, Database and computer program provide the running environment of cache.Network interface can be Ethernet card or wireless network card etc., Communicated for the terminal or server with outside.It will be understood by those skilled in the art that the structure shown in Fig. 7, only It is the block diagram of the part-structure related to application scheme, does not form the computer being applied thereon to application scheme and set Standby restriction, specific computer equipment can be included than more or less parts shown in figure, or some parts of combination, Or arranged with different parts.
In one embodiment, following steps are realized during the computing device computer program:What the reception server was sent Mission bit stream obtains request, and mission bit stream obtains in request and includes server identification;Obtain corresponding with server identification first Partition holding number;The request time of request is obtained according to server identification and mission bit stream, calculates the first storage burst number;From Take out mission bit stream in storage region corresponding to the first storage burst number under partition holding No. first, by mission bit stream send to Server.
In one embodiment, following steps are also realized during the computing device computer program:According to server identification Inquire about the system banner of the first interconnected system belonging to server;Obtain the first partition holding associated with the first system mark Number.
In one embodiment, following steps are also realized during the computing device computer program:According to Work stream data Transmitting state generation mission bit stream, mission bit stream includes the type identification of task type;Obtain corresponding with type identification the Partition holdings No. two;For mission bit stream distribution the second storage burst number;By under mission bit stream storage to partition holding No. the second In storage region corresponding to second storage burst number.
In one embodiment, following steps are also realized during the computing device computer program:Detect whether exist with The system banner of second interconnected system of type identification association, if so, then obtaining corresponding with the system banner of the second interconnected system Partition holding No. the second.
In one embodiment, following steps are also realized during the computing device computer program:Create and the first storage Thread task corresponding to partition number and the first storage burst number;When execution thread task, stored according to thread task from first Mission bit stream is taken out in storage region corresponding to the first storage burst number under partition number.
In one embodiment, following steps are also realized during the computing device computer program:Inquiry and the first storage Subregion thread identification corresponding to partition identification;Inquiry burst sub-line journey corresponding with the first storage segmental identification identifies;Create category Under subregion thread identification burst sub-line journey mark corresponding to thread pool sub-line journey pond in thread task.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program.The computer program is storable on memory, for example is stored in In one non-volatile computer read/write memory medium.When the program is performed, it can be achieved to include the implementation such as above-mentioned each method The flow of example.
Any reference used in the present invention to memory, storage, database or other media may include non-volatile Memory.Suitable nonvolatile memory may include read-only storage (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.
Each technical characteristic of the various embodiments described above can be combined arbitrarily, to make description succinct, not to above-mentioned implementation The all possible combination of each technical characteristic in example is all described, as long as however, the combination of these technical characteristics is not present Contradiction, all it is considered to be the scope of this specification record.
Above-described embodiment only expresses the several embodiments of the present invention, and its description is more specific and detailed, but can not Therefore it is construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, On the premise of not departing from present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. the mission bit stream transmission method in a kind of Workflow system, it is characterised in that methods described includes:
The mission bit stream that the reception server is sent obtains request, and the mission bit stream obtains in request and includes server identification;
Obtain partition holding No. the first corresponding with the server identification;
The request time of request is obtained according to the server identification and the mission bit stream, calculates the first storage burst number;
Mission bit stream is taken out from storage region corresponding to the first storage burst number under the partition holding No. first, by described in Mission bit stream is sent to the server.
2. according to the method for claim 1, it is characterised in that the acquisition corresponding with the server identification first is deposited Partition number is stored up, including:
The system banner of the first interconnected system according to belonging to the server identification inquires about the server;
Obtain the partition holding No. the first associated with the first system mark.
3. according to the method for claim 1, it is characterised in that methods described also includes:
Mission bit stream is generated according to the transmitting state of Work stream data, the mission bit stream includes the type identification of task type;
Obtain partition holding No. the second corresponding with the type identification;
For mission bit stream distribution the second storage burst number;
By in storage region corresponding to mission bit stream storage to the second storage burst number under the partition holding No. second.
4. according to the method for claim 3, it is characterised in that described to obtain the second storage corresponding with the type identification Partition number, including:
Detect whether the system banner of the second interconnected system associate with the type identification be present, if so, then acquisition with it is described Partition holding No. second corresponding to the system banner of second interconnected system.
5. according to the method for claim 1, it is characterised in that divide from the first storage under the partition holding No. first Before mission bit stream being taken out in storage region corresponding to piece number, in addition to:
Create thread task corresponding with the partition holding No. first and the first storage burst number;
When performing the thread task, burst is stored from first under the partition holding No. first according to the thread task Mission bit stream is taken out in storage region corresponding to number.
6. according to the method for claim 5, it is characterised in that the establishment is deposited with the partition holding No. first and first Thread task corresponding to burst number is stored up, including:
Inquiry subregion thread identification corresponding with the first partition holding mark;
Inquiry burst sub-line journey corresponding with the described first storage segmental identification identifies;
Create belong under the subregion thread identification burst sub-line journey mark corresponding to thread pool sub-line journey pond in line Journey task.
7. the mission bit stream transmitting device in a kind of Workflow system, it is characterised in that described device includes:
Mission bit stream obtains request receiving module, and request, the task letter are obtained for the mission bit stream that the reception server is sent Breath obtains in request and includes server identification;
Storage region enquiry module, for obtaining partition holding No. the first corresponding with the server identification;According to the clothes Device mark of being engaged in obtains the request time of request with the mission bit stream, calculates the first storage burst number;
Mission bit stream transport module, for extracting corresponding to the be stored under the partition holding No. first first storage burst number Mission bit stream in storage region, the mission bit stream is sent to the server.
8. device according to claim 7, it is characterised in that described device also includes:
Mission bit stream generation module, for generating mission bit stream, the mission bit stream bag according to the transmitting state of Work stream data Type identification containing task type;
Mission bit stream memory module, for obtaining partition holding No. the second corresponding with the type identification;Believe for the task Breath distribution the second storage burst number;The second storage burst number that mission bit stream storage is arrived under the partition holding No. second In corresponding storage region.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt The step of method any one of claim 1 to 6 is realized during computing device.
10. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that realize any one of claim 1 to 6 institute described in the computing device during computer program The step of stating method.
CN201711002175.6A 2017-10-24 2017-10-24 Task information transmission method and device in workflow system and computer equipment Active CN107861811B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711002175.6A CN107861811B (en) 2017-10-24 2017-10-24 Task information transmission method and device in workflow system and computer equipment
PCT/CN2017/112551 WO2019080232A1 (en) 2017-10-24 2017-11-23 Task information transmission method and apparatus in workflow system, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711002175.6A CN107861811B (en) 2017-10-24 2017-10-24 Task information transmission method and device in workflow system and computer equipment

Publications (2)

Publication Number Publication Date
CN107861811A true CN107861811A (en) 2018-03-30
CN107861811B CN107861811B (en) 2020-07-31

Family

ID=61696380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711002175.6A Active CN107861811B (en) 2017-10-24 2017-10-24 Task information transmission method and device in workflow system and computer equipment

Country Status (2)

Country Link
CN (1) CN107861811B (en)
WO (1) WO2019080232A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763082A (en) * 2018-05-30 2018-11-06 平安普惠企业管理有限公司 Test data generating method, device, computer equipment and storage medium
CN109165086A (en) * 2018-08-13 2019-01-08 深圳市特康生物工程有限公司 Task executing method and single-chip microcontroller
CN109614209A (en) * 2018-10-26 2019-04-12 阿里巴巴集团控股有限公司 A kind of task processing method, application server and system
CN110881058A (en) * 2018-09-06 2020-03-13 阿里巴巴集团控股有限公司 Request scheduling method, device, server and storage medium
CN111008069A (en) * 2019-12-02 2020-04-14 浙江大搜车软件技术有限公司 Service processing method, device, computer equipment and storage medium
CN114079612A (en) * 2020-08-03 2022-02-22 阿里巴巴集团控股有限公司 Disaster recovery system and control method, device, equipment and medium thereof
CN116561171A (en) * 2023-07-10 2023-08-08 浙江邦盛科技股份有限公司 Method, device, equipment and medium for processing dual-time-sequence distribution of inclination data
CN114079612B (en) * 2020-08-03 2024-06-04 阿里巴巴集团控股有限公司 Disaster recovery system and management and control method, device, equipment and medium thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070107012A1 (en) * 2005-09-07 2007-05-10 Verizon Business Network Services Inc. Method and apparatus for providing on-demand resource allocation
CN102761617A (en) * 2012-07-02 2012-10-31 北京京北方信息技术有限公司 Workflow queue server and workflow scheduling system and method
CN103116525A (en) * 2013-01-24 2013-05-22 贺海武 Map reduce computing method under internet environment
CN104239148A (en) * 2013-06-06 2014-12-24 腾讯科技(深圳)有限公司 Distributed task scheduling method and device
CN104463482A (en) * 2014-12-16 2015-03-25 用友软件股份有限公司 Task allocation method and task allocation device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129610A (en) * 2011-01-17 2011-07-20 西安交通大学 Method for implementing combination control on cross-organization workflows
CN103546508B (en) * 2012-07-12 2016-08-10 阿里巴巴集团控股有限公司 Information synchronization system and method
CN106897858A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 A kind of workflow processing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070107012A1 (en) * 2005-09-07 2007-05-10 Verizon Business Network Services Inc. Method and apparatus for providing on-demand resource allocation
CN102761617A (en) * 2012-07-02 2012-10-31 北京京北方信息技术有限公司 Workflow queue server and workflow scheduling system and method
CN103116525A (en) * 2013-01-24 2013-05-22 贺海武 Map reduce computing method under internet environment
CN104239148A (en) * 2013-06-06 2014-12-24 腾讯科技(深圳)有限公司 Distributed task scheduling method and device
CN104463482A (en) * 2014-12-16 2015-03-25 用友软件股份有限公司 Task allocation method and task allocation device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763082A (en) * 2018-05-30 2018-11-06 平安普惠企业管理有限公司 Test data generating method, device, computer equipment and storage medium
CN109165086A (en) * 2018-08-13 2019-01-08 深圳市特康生物工程有限公司 Task executing method and single-chip microcontroller
CN110881058A (en) * 2018-09-06 2020-03-13 阿里巴巴集团控股有限公司 Request scheduling method, device, server and storage medium
CN110881058B (en) * 2018-09-06 2022-04-12 阿里巴巴集团控股有限公司 Request scheduling method, device, server and storage medium
CN109614209A (en) * 2018-10-26 2019-04-12 阿里巴巴集团控股有限公司 A kind of task processing method, application server and system
CN109614209B (en) * 2018-10-26 2023-09-05 创新先进技术有限公司 Task processing method, application server and system
CN111008069A (en) * 2019-12-02 2020-04-14 浙江大搜车软件技术有限公司 Service processing method, device, computer equipment and storage medium
CN111008069B (en) * 2019-12-02 2023-12-15 浙江大搜车软件技术有限公司 Service processing method, device, computer equipment and storage medium
CN114079612A (en) * 2020-08-03 2022-02-22 阿里巴巴集团控股有限公司 Disaster recovery system and control method, device, equipment and medium thereof
CN114079612B (en) * 2020-08-03 2024-06-04 阿里巴巴集团控股有限公司 Disaster recovery system and management and control method, device, equipment and medium thereof
CN116561171A (en) * 2023-07-10 2023-08-08 浙江邦盛科技股份有限公司 Method, device, equipment and medium for processing dual-time-sequence distribution of inclination data
CN116561171B (en) * 2023-07-10 2023-09-15 浙江邦盛科技股份有限公司 Method, device, equipment and medium for processing dual-time-sequence distribution of inclination data

Also Published As

Publication number Publication date
CN107861811B (en) 2020-07-31
WO2019080232A1 (en) 2019-05-02

Similar Documents

Publication Publication Date Title
CN107861811A (en) Mission bit stream transmission method, device and computer equipment in Workflow system
CN107333292B (en) A kind of SIM card state judging method and device
US20170329643A1 (en) Distributed node intra-group task scheduling method and system
CN104901989B (en) A kind of Site Service offer system and method
CN109143948B (en) Intelligent safety and defence system based on Internet of Things
CN105338027B (en) Carry out the method, system and device of video data cloud storage
CN106209682A (en) Business scheduling method, device and system
CN110163473A (en) A kind of monitoring method and equipment of Task Progress
CN109902195A (en) Monitoring image querying method, device, equipment and medium
CN107909330A (en) Work stream data processing method, device, storage medium and computer equipment
CN106780909A (en) The control method and device of gate equipment
CN107682444A (en) A kind of cloud reservation management method, platform and the system in government affairs hall
CN110471763A (en) Dispatching method, system, medium and electronic equipment based on shared object pond
CN107741899A (en) The method, apparatus and system of processing terminal data
CN110311959A (en) The method, apparatus and data processing system of message push and renewal of the page
CN109242405A (en) Government affairs processing method and processing device, computer equipment and readable storage medium storing program for executing
CN106303420A (en) A kind of monitoring method being applied to moving target and monitoring system
CN113886034A (en) Task scheduling method, system, electronic device and storage medium
CN106446050A (en) Method and system for subscription by aiming at changed data of database
CN107577806A (en) Spacecraft data automated interpretation system and interpretation method
CN109067840A (en) Method, system and the storage medium of artificial intelligence online service
CN109067765B (en) Communication management method for Internet of Things security system
CN107402812A (en) Cluster resource dispatching method, device, equipment and storage medium
CN109040075B (en) Management method, server and system for nodes in wireless mobile sensor network
CN114331446B (en) Method, device, equipment and medium for realizing out-of-chain service of block chain

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
GR01 Patent grant
GR01 Patent grant