CN102004665B - Task concurrent processing method in workflow system - Google Patents

Task concurrent processing method in workflow system Download PDF

Info

Publication number
CN102004665B
CN102004665B CN 201010539998 CN201010539998A CN102004665B CN 102004665 B CN102004665 B CN 102004665B CN 201010539998 CN201010539998 CN 201010539998 CN 201010539998 A CN201010539998 A CN 201010539998A CN 102004665 B CN102004665 B CN 102004665B
Authority
CN
China
Prior art keywords
task
input
type
concurrent
processing method
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.)
Active
Application number
CN 201010539998
Other languages
Chinese (zh)
Other versions
CN102004665A (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.)
Beijing Shenzhou Taiyue Software Co Ltd
Original Assignee
Beijing Shenzhou Taiyue Software 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 Shenzhou Taiyue Software Co Ltd filed Critical Beijing Shenzhou Taiyue Software Co Ltd
Priority to CN 201010539998 priority Critical patent/CN102004665B/en
Publication of CN102004665A publication Critical patent/CN102004665A/en
Application granted granted Critical
Publication of CN102004665B publication Critical patent/CN102004665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a task concurrent processing method in a workflow system, comprising the following steps: S1, receiving task input of an input channel; and S2, screening the received task input to finish the implementation of a task in multiple same tasks concurrent input. The task concurrent processing method of the invention ensures that one task is finished by only one input channel through adding the screening step when the task is processed; and other same inputs are thrown exceptionally, thus shortening the throwing exception waiting time of the input channel, and improving the task processing efficiency.

Description

Task concurrent processing method in the Workflow system
Technical field
The present invention relates to the workflow processing technical field, task concurrent processing method in particularly a kind of Workflow system.
Background technology
Along with the expansion gradually of Workflow system range of application, a lot of Workflow systems begin to be deployed in the middle of some high load capacities, the high concurrent application system, and this just makes Workflow system raise gradually for high load capacity, high concurrent requirement.The all very low or poor user experience of efficient that most of commercial pursuit streaming systems are handled for task in this high load capacity, the high concurrent scene on the market now.Because task handling is accomplished by an input, a task can have a plurality of input channels, but can only be accomplished by an input channel.The mode that following two kinds of Processing tasks are arranged at present:
1, as shown in Figure 1; When a plurality of inputs are concurrent when handling; Certain input is if accomplished task earlier, and other input will be dished out because task has been done unusually, but because the task handling process is very very long sometimes; Just can get access to for a long time unusually so input can be waited for, cause the exception response overlong time of system;
2, as shown in Figure 2, if Workflow system adopts single-threaded Processing tasks to avoid the generation of this problem, will let all inputs all can rank, handling one by one causes the task treatment effeciency to reduce.
Summary of the invention
The technical matters that (one) will solve
The technical matters that the present invention will solve is: in the Workflow system that requires high concurrent, high load capacity, how to reduce the unusual stand-by period of dishing out of input channel, improve the task treatment effeciency simultaneously.
(2) technical scheme
Task concurrent processing method in a kind of Workflow system may further comprise the steps:
S1: input channel receives the input of task;
S2: the input to the task of receiving is screened, and makes a task in a plurality of same task of concurrent input complete.
Wherein, screening mode is following among the said step S2:
Whether the state of checking this task is completion status, if it is unusual then to dish out,
Otherwise if the input of this task is to make task accomplish the input of type, the state that then writes down and preserve this task is a completion status, and handles the said input that makes task accomplish type, the completion status of this task of back deletion of finishing dealing with; If the input of this task is the input of interim treatment type, then stage is carried out in the input of this stage treatment type and handle, and add the interim record of handling.
Wherein, When if same task has the input of a plurality of interim treatment type; The interim real-time status of handling of logger task, this moment, the state that then writes down and preserve this task was a completion status if receive the input that makes task completion type; And handle the said input that makes task accomplish type, the completion status of this task of back deletion of finishing dealing with.
Wherein, said input channel is the multi-thread concurrent passage.
Wherein, adopt single-threaded channel screen.
(3) beneficial effect
The present invention guarantees each task only by an input channel completion through when task is handled, adding the screening step, and other identical input is then dished out unusually, has reduced the unusual stand-by period of dishing out of input channel, has improved the task treatment effeciency.
Description of drawings
Fig. 1 is the method synoptic diagram of concurrent processing task traditional in the Workflow system;
Fig. 2 is the method synoptic diagram of the single-threaded Processing tasks of Traditional use in the Workflow system;
Fig. 3 is a task concurrent processing method synoptic diagram in a kind of Workflow system of embodiments of the invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail.Following examples are used to explain the present invention, but are not used for limiting scope of the present invention.
As shown in Figure 3, be task concurrent processing method synoptic diagram in a kind of Workflow system of embodiments of the invention.The input of the task that input channel is received at the execution row filter that advances, makes a task in a plurality of same task of concurrent input complete.Wherein input has two types input, and a kind of is to make task accomplish the input of type, has promptly carried out each stage or the step of task; Another kind is the input of task being carried out interim treatment type, has only carried out or implemented wherein certain stage or step.Above-mentioned two kinds of inputs are all received by the multi-thread concurrent passage.Among Fig. 3, have two tasks 1 to be transfused to, top task 1 is accomplished the input of type for making task; Following task 1 is for the input of interim treatment type or make task accomplish the input of type; When screening, realize, to distinguish arriving in two very short times of being separated by of task, because top task 1 is carried out earlier through screening through single-threaded passage; So following task 1 is in time dished out unusually, has saved unusually and has dished out the time.
Concrete screening process is following:
Whether the state of checking this task is completion status, if it is unusual then to dish out,
Otherwise if this task is to make task accomplish the input of type, the state that then writes down and preserve this task is a completion status, and handles the input that this makes task completion type, the completion status deletion of this task that will before preserve after finishing dealing with; If this task is the input of interim treatment type, then stage is carried out in the input of this stage treatment type and handle, and add the interim record of handling, be i.e. the interim real-time status of handling of logger task.
Same task can have a plurality of interim processing to import simultaneously simultaneously, but an input that task is accomplished can only be arranged, and must in the end handle.When if same task has the input of a plurality of interim treatment type; The interim real-time status of handling of logger task, this moment, the state that then writes down and preserve this task was a completion status if receive this task of input that makes task completion type; And handle this and make task accomplish the input of type; If the input of identical task is arranged again, it is unusual then to dish out in the time of in processing procedure, the completion status deletion of this task that will before preserve after the completion.
Specifically give an example with one below the present invention be described:
As: a phone call for appeal is got to 10086 mobile customer services, says that phone can't breathe out the task of a handling problem of customer service program creation.
If backstage personnel one have A, B, C, four treatment peoples of D, seen this task simultaneously, wherein:
A carries out phase process, " whether inquiring about this user telephone fee uses up "
B has carried out accomplishing processing, " this user telephone fee uses up, and please point out the user to supplement with money "
C has carried out accomplishing processing, " this user telephone fee uses up, and please point out the user to supplement with money "
D carries out phase process, " whether inquiring about this user telephone fee uses up "
Because A, B, C and D are in this task of processing, therefore above-mentioned B and C have handled the step of be over " whether inquiring about this user telephone fee uses up ".
Four people submit to simultaneously, and input channel receives four inputs simultaneously, promptly concurrent input, and the order when screening is ABCD.At this moment; A can be let slip by screening; B also can be let slip and logger task sign by screening, and expression has received the input that task is accomplished type, C can dish out because task identification exists unusual (task is processed); D also can dish out because task identification exists unusual (task is processed), and finally this task is accomplished by B.Handle the input of B screening back, and as Query Information is sent to the client, after the input of B finished dealing with, this task had also just been finished dealing with.The task identification of deletion precedence record after task is finished dealing with.
The present invention is particularly suitable in high concurrent, the Workflow system that the preemptive type task is handled.
Above embodiment only is used to explain the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also be made various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (3)

1. task concurrent processing method in the Workflow system is characterized in that, may further comprise the steps:
S1: input channel receives the input of task;
S2: the input to the task of receiving is screened, and makes a task in a plurality of same task of concurrent input complete, adopts single-threaded channel screen, and screening mode is following:
Whether the state of checking this task is completion status, if it is unusual then to dish out,
Otherwise if the input of this task is to make task accomplish the input of type, the state that then writes down and preserve this task is a completion status, and handles the said input that makes task accomplish type, the completion status of this task of back deletion of finishing dealing with; If the input of this task is the input of interim treatment type, then stage is carried out in the input of this stage treatment type and handle, and add the interim record of handling,
Wherein, making task accomplish the input of type, is each stage or the step of having carried out task; The input of interim treatment type is certain stage or the step of only having carried out or having implemented wherein.
2. task concurrent processing method in the Workflow system as claimed in claim 1; It is characterized in that, when the input of a plurality of interim treatment type being arranged as if same task, the interim real-time status of handling of logger task; Make task accomplish the input of type if receive this moment; The state that then writes down and preserve this task is a completion status, and handles the said input that makes task accomplish type, the completion status of this task of back deletion of finishing dealing with.
3. task concurrent processing method in according to claim 1 or claim 2 the Workflow system is characterized in that said input channel is the multi-thread concurrent passage.
CN 201010539998 2010-11-09 2010-11-09 Task concurrent processing method in workflow system Active CN102004665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010539998 CN102004665B (en) 2010-11-09 2010-11-09 Task concurrent processing method in workflow system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010539998 CN102004665B (en) 2010-11-09 2010-11-09 Task concurrent processing method in workflow system

Publications (2)

Publication Number Publication Date
CN102004665A CN102004665A (en) 2011-04-06
CN102004665B true CN102004665B (en) 2012-12-19

Family

ID=43812044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010539998 Active CN102004665B (en) 2010-11-09 2010-11-09 Task concurrent processing method in workflow system

Country Status (1)

Country Link
CN (1) CN102004665B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630583A (en) * 2014-11-26 2016-06-01 阿里巴巴集团控股有限公司 Data processing method and device
CN104468328A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Information access processing method and device
CN105573840B (en) * 2015-12-08 2019-06-14 东软集团股份有限公司 The event-handling method and device of work flow operation phase
CN106874083B (en) * 2017-01-03 2019-06-28 杭州医学院 A kind of data actuation man-machine interface method for scheduling task

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866458A (en) * 2010-06-23 2010-10-20 用友软件股份有限公司 Method and system for obtaining schedule data of task

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7840857B2 (en) * 2006-09-25 2010-11-23 International Business Machines Corporation Method and system for automated handling of resolvable and non-resolvable errors in execution of system management flows consisting of system management tasks
WO2008118613A1 (en) * 2007-03-01 2008-10-02 Microsoft Corporation Executing tasks through multiple processors consistently with dynamic assignments

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866458A (en) * 2010-06-23 2010-10-20 用友软件股份有限公司 Method and system for obtaining schedule data of task

Also Published As

Publication number Publication date
CN102004665A (en) 2011-04-06

Similar Documents

Publication Publication Date Title
CN102469064B (en) Realization Method of Communication and communication equipment
CN101102565B (en) A processing method, device and equipment of user data in communication terminal
CN102004665B (en) Task concurrent processing method in workflow system
CN105406889A (en) Method and device for determining network type and mobile terminal
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
CN103353957A (en) Realization method of human-centered cooperative workflow system and apparatus thereof
CN104394269B (en) Call control method and mobile terminal
CN102929526A (en) Implementation method for quickly entering application program in standby state
CN106484882A (en) A kind of management method of database connection pool and device
CN107623731A (en) A kind of method for scheduling task, client, service cluster and system
CN102402457A (en) Method for processing mobile phone application program alterative events
CN101841490A (en) Method and system for releasing shared information in instant communication system
EP2124487A1 (en) Service processing method and processing system and service control point
CN106954191B (en) Broadcast transmission method, apparatus and terminal device
CN100484162C (en) Method for selecting communication module and multi-standby mobile terminal
CN102420732B (en) Data service method in a home network, equipment and system
CN102117261B (en) Communication method between inner processors of chip
WO2010043138A1 (en) Method for accessing magnanimity data of intelligent network service database and system and device thereof
CN106534571A (en) Event notification method and terminal
CN103491264A (en) Multi-channel incoming call synchronous processing method and system of call center
CN110263023A (en) Automatic outer call method, apparatus and computer readable storage medium
CN101320443A (en) Electronic work order processing method and device
CN105740009B (en) Version upgrading method and terminal device
CN101472258A (en) Method and device for scheduling home location register instruction by business operation support system
CN106879056A (en) The electricity saving method and device of a kind of terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 818, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.

Address before: 100107, No. 1, building 13, court 22, Beiyuan Road, Beijing, Chaoyang District

Patentee before: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.

CP02 Change in the address of a patent holder