CN109144701A - A kind of task flow management method, device, equipment and system - Google Patents

A kind of task flow management method, device, equipment and system Download PDF

Info

Publication number
CN109144701A
CN109144701A CN201811031265.2A CN201811031265A CN109144701A CN 109144701 A CN109144701 A CN 109144701A CN 201811031265 A CN201811031265 A CN 201811031265A CN 109144701 A CN109144701 A CN 109144701A
Authority
CN
China
Prior art keywords
current state
task
thread
stream
task flow
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
CN201811031265.2A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811031265.2A priority Critical patent/CN109144701A/en
Publication of CN109144701A publication Critical patent/CN109144701A/en
Pending legal-status Critical Current

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The invention discloses a kind of task flow management methods, this method comprises: obtaining the corresponding current state of goal task stream in the database, and judge whether the status categories of current state are completion;If it is not, then obtaining the corresponding object run business of current state in the database;Using the status categories of current state, the corresponding target processing thread of current state is determined in default thread pool;It is adjusted using subject thread processing target operation service, and using current state of the processing result to goal task stream.The management of goal task stream is triggered from the visual angle of state, the current state of goal task stream is then adjusted according to the processing result of object run business, it can be achieved that efficiently being managed task flow.The invention also discloses a kind of task flow managing device, equipment, system and readable storage medium storing program for executing, have corresponding technical effect.

Description

A kind of task flow management method, device, equipment and system
Technical field
The present invention relates to computer application technology, more particularly to a kind of task flow management method, device, equipment, System and readable storage medium storing program for executing.
Background technique
Currently, the management of many task flows, is all using the realization of Activiti workflow framework, and Activiti work mostly The flow of task of various complexity can be managed by making stream frame.
But in practical applications, it needs to develop corresponding XML stream journey model file for each process, and can produce The database file of raw many activiti itself, and learning cost is high, development difficulty is big, debugging get up it is relatively difficult, and And it is also relatively difficult in subsequent maintenance work.In addition, most of application systems there are a large amount of processes are relatively single, mistake Journey is simultaneously uncomplicated, does not need the development task stream based on activiti.Using Activiti workflow framework come to task flow It is lower to be managed efficiency instead.
In conclusion the problems such as how being effectively managed to task flow, is that current those skilled in the art are badly in need of solution Certainly the technical issues of.
Summary of the invention
The object of the present invention is to provide a kind of task flow management method, device, equipment, system and readable storage medium storing program for executing, with Realization efficiently manages task flow.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of task flow management method, comprising:
The corresponding current state of goal task stream is obtained in the database, and judges that the status categories of the current state are No is to complete;
If it is not, then obtaining the corresponding object run business of the current state in the database;
Using the status categories of the current state, the corresponding target of the current state is determined in default thread pool Handle thread;
The object run business is handled using the subject thread, and using processing result to the goal task stream Current state is adjusted.
Preferably, using the status categories of the current state, the current state pair is determined in default thread pool The target processing thread answered;Include:
In default thread pool, the exclusive processing thread for handling the status categories of the current state is searched;
The exclusive processing thread is determined as the corresponding target processing thread of the current state.
Preferably, it in default thread, before finding the processing thread for handling the status categories of the current state, also wraps It includes:
An exclusive processing thread is respectively set for every kind of status categories.
Preferably, it is adjusted using current state of the processing result to the goal task stream, comprising:
Judge whether the object run business handles success using processing result;
If it is, adjusting the status categories of the current state of the goal task stream to presetting next processing stage Status categories;
If it is not, then carrying out rollback to the object run business.
It is preferably, described to obtain the corresponding current state of goal task stream in the database, comprising:
Goal task stream described in Test database corresponding save and/or update operation, determine the goal task The current state of stream.
A kind of task flow managing device, comprising:
Current state judgment module for obtaining the corresponding current state of goal task stream in the database, and judges institute Whether the status categories for stating current state are completion;
Object run business obtains module, if the status categories for the current state are not to complete, in the number According to obtaining the corresponding object run business of the current state in library;
Target handles thread determining module, for the status categories using the current state, in default thread pool really Make the corresponding target processing thread of the current state;
State adjusts module, for handling the object run business using the subject thread, and utilizes processing result The current state of the goal task stream is adjusted.
A kind of task processing system, comprising:
Task flow engine, task performer, event sniffer, event handler and database;
Wherein, the task flow engine, for periodically acquiring and by calling the task performer to handle the number According to the corresponding operation service of current state of each task flow in library;
The task performer executes each operation industry for receiving the call instruction of the task flow engine device Business;
The event sniffer, for monitoring the current state of each task flow in the database, and will be corresponding Task status change message be sent to the event handler;
The event handler changes message for receiving and recording the task status;
The database throughout manages stage corresponding status categories for storing each task flow, and The corresponding operation service of each status categories.
Preferably, further includes:
Task status enumerates class, throughout manages stage corresponding status categories for task flow to be arranged.
A kind of task flow management equipment, comprising:
Memory, for storing computer program;
Processor, the step of above-mentioned task flow management method is realized when for executing the computer program.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing The step of processor realizes above-mentioned task flow management method when executing.
Using method provided by the embodiment of the present invention, the corresponding current state of goal task stream is obtained in the database, And judge whether the status categories of current state are completion;If it is not, then obtaining the corresponding target of current state in the database Operation service;Using the status categories of current state, the corresponding target processing line of current state is determined in default thread pool Journey;It is adjusted using subject thread processing target operation service, and using current state of the processing result to goal task stream.
The current state of goal task stream is obtained, and judges whether the status categories of current state are completion.If it is determined that As a result be it is no, then obtain object run business corresponding to current state.Using the status categories of current state, presetting Thread pool in determine current state corresponding target processing thread.Then, thread process object run is handled using target Business, and be adjusted according to current state of the operating result to goal task stream.And in the current shape of adjustment goal task stream After state, iteration executes the current state for obtaining goal task stream, and repeats the corresponding object run of processing current state The step of business, until the status categories of the current state of goal task stream are to complete.To the management of goal task stream from state Visual angle triggering, the current state of goal task stream is then adjusted according to the processing result of object run business, i.e., control mesh Mark the circulation of task flow.Multiple exclusive threads are enabled, can concurrently complete the management of multiple tasks stream, it can be achieved that carrying out to task flow Efficient management.
In addition, when being managed to goal task stream, without developing corresponding XML stream journey model text for goal task stream Part reduces the workload of developer, can shorten the application and development period, and realization process is relatively easily realized, it is only necessary to be each Corresponding operation service is arranged in the status categories of the different phase of task flow, goes wrong and is easy positioning, maintenance cost compared with It is low.
Correspondingly, the embodiment of the invention also provides task flow management corresponding with above-mentioned task flow management method dresses It sets, equipment, system and readable storage medium storing program for executing, has above-mentioned technique effect, details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of task flow management method in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of task Workflow Management System in the embodiment of the present invention;
Fig. 3 is the implementation process diagram of upgrade-system in the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of task flow managing device in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of task flow management equipment in the embodiment of the present invention;
Fig. 6 is a kind of concrete structure schematic diagram of task flow management equipment in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 be the embodiment of the present invention in a kind of flow chart of task flow management method, this method include with Lower step:
S101, the corresponding current state of goal task stream is obtained in the database, and judge the status categories of current state It whether is completion.
In embodiments of the present invention, database can be preset, and stores each task flow in the database throughout Reason stage corresponding status categories (digital label can be used that status categories are marked, such as 00 expression preparation stage, 01 Indicate the incipient stage) and the corresponding operation service of different conditions classification, if status categories are to complete, without corresponding Object run business.For example, the data S1 received according to certain task flow is updated the data S0 in disk A, then may be used The task flow is divided into three phases, such as updates the preproduction phase, the more new stage updates ending phase and each stage is corresponding Status categories, such as update the preproduction phase and can specifically correspond to have obtained and data S1 state and data S1 state has not been obtained, update Stage corresponding update carry out state updates the corresponding update completion status of ending phase.In the database, it can also store to target The intermediate data that is generated when task flow is handled or by operation data.In this way, goal task stream can be obtained in the database Current state when, operated by goal task stream corresponding save and/or update in Test database, determine goal task The current state of stream.That is, being monitored by the alteration to the data in database, working as goal task stream can be determined Preceding state.
The corresponding current state of goal task stream is obtained in the database.Specifically, can periodically be obtained from data The corresponding current state of goal task stream may also set up Status Change of the monitoring thread to each goal task stream in database It is monitored, only when monitoring thread discovery goal task stream sends state change, goal task stream is obtained from database Corresponding current state.It should be noted that goal task stream described in the embodiment of the present invention can wait locating for any one Task flow in director's part.That is, in practical applications, can be considered goal task for each of database task flow Stream is, it can be achieved that realize concurrent management to the multiple tasks stream in database.
After getting the corresponding current state of goal task stream, judge whether current state is completion status.Because working as mesh The status categories for marking task flow are when completing, without corresponding object run business, if current state can not be obtained in the database When corresponding object run business, then explanation is completed to the goal task stream operational administrative, can enter step shown in FIG. 1 S105 (no operation).Can be by judging that current state whether there is corresponding object run business, and then determine current state Status categories whether be completion.It is, of course, also possible to determine the status categories of current state according to the state tag of current state It whether is completion.If it is determined that the status categories of current state are not that when completing, then the operation of step S102 can be performed.
S102, the corresponding object run business of current state is obtained in the database.
The status categories for determining current state are not that can obtain the corresponding target behaviour of current state in the database when completing Make business.
S103, the status categories using current state are determined at the corresponding target of current state in default thread pool Lineation journey.
In embodiments of the present invention, a thread pool can be preset, and multiple exclusive threads are set in the thread pool. When exclusive thread is set, an exclusive processing thread can be respectively set for each status categories.In this way, in use, if going out Existing failure or mistake can be positioned quickly, convenient for safeguarding.Certainly, status categories only just can in the task flow of only a few if it exists Occur or the frequency of occurrences of itself is lower, the operation service of the more middle status categories of a settable exclusive thread process.In this way, just It can determine that an exclusive thread handles line as the target of current state after the current state for obtaining goal task stream Journey.Specifically, can determine that the corresponding target of current state handles thread by executing following steps:
Step 1: searching the exclusive processing thread of the status categories of processing current state in default thread pool;
Step 2: exclusive processing thread, which is determined as the corresponding target of current state, handles thread.
It is illustrated for ease of description, below combining above-mentioned two step.
It can be preset in the thread pool including the exclusive thread for handling each status categories.Getting goal task stream Current state after, exclusive processing thread corresponding to the status categories of current state can be found out in the thread pool.So Afterwards, the exclusive processing thread is directly determined as the corresponding target of current state and handles thread.
S104, using subject thread processing target operation service, and using processing result to the current shape of goal task stream State is adjusted.
Thread process object run business is handled using target.Specifically, can handle thread by target enables target behaviour Make the mode processing target operation service of the treatment progress of business, the thread process object run industry directly can also be handled by target Business.It, i.e., can be according to processing result after the processing result of acquisition object run business after handling object run business The current state of goal task stream is adjusted.
Preferably, whether successfully current for adjustment only on the basis of processing target operation service to be conveniently adjusted current state The foundation of state.In addition, for keep data consistency, ensure goal task stream be correctly processed, can handle identification when, into Row rollback.It specifically can be with are as follows:
Step 1: judging whether object run business handles success using processing result.
If so, executing step 2;If it is not, then executing step 3.
Step 2: adjusting the status categories of the current state of goal task stream to the state class for presetting next processing stage Not.
Step 3: carrying out rollback to object run business.
It is illustrated for ease of description, below combining above three step.
When object run business be target data preservation operation or update operation when, executed object run business it Afterwards, it detects in database and has stored target data or to be changed to target data, then it is assumed that handle successfully, at this time The operation of executable step 2, i.e., adjust the status categories of the current state of goal task stream to preset next processing stage Status categories.For example, when processing result is to handle successfully, if the status categories of goal task stream are followed successively by A, B, C, D tetra- When a state, if the status categories of current state are B, then the status categories of the current state of goal task stream are adjusted to C.The state adjustment of goal task stream can so be completed.And processing result is when showing current object run service fail, this When can by object run business carry out rollback, to keep the consistency of data.
Using method provided by the embodiment of the present invention, the corresponding current state of goal task stream is obtained in the database, And judge whether the status categories of current state are completion;If it is not, then obtaining the corresponding target of current state in the database Operation service;Using the status categories of current state, the corresponding target processing line of current state is determined in default thread pool Journey;It is adjusted using subject thread processing target operation service, and using current state of the processing result to goal task stream.
The current state of goal task stream is obtained, and judges whether the status categories of current state are completion.If it is determined that As a result be it is no, then obtain object run business corresponding to current state.Using the status categories of current state, presetting Thread pool in determine current state corresponding target processing thread.Then, thread process object run is handled using target Business, and be adjusted according to current state of the operating result to goal task stream.And in the current shape of adjustment goal task stream After state, iteration executes the current state for obtaining goal task stream, and repeats the corresponding object run of processing current state The step of business, until the status categories of the current state of goal task stream are to complete.To the management of goal task stream from state Visual angle triggering, the current state of goal task stream is then adjusted according to the processing result of object run business, i.e., control mesh Mark the circulation of task flow.Multiple exclusive threads are enabled, can concurrently complete the management of multiple tasks stream, it can be achieved that carrying out to task flow Efficient management.
In addition, when being managed to goal task stream, without developing corresponding XML stream journey model text for goal task stream Part reduces the workload of developer, can shorten the application and development period, and realization process is relatively easily realized, it is only necessary to be each Corresponding operation service is arranged in the status categories of the different phase of task flow, goes wrong and is easy positioning, maintenance cost compared with It is low.
Embodiment two:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of task Workflow Management Systems, hereafter retouch The task Workflow Management System stated can correspond to each other reference with above-described task flow management method.
Referring to FIG. 2, Fig. 2 is a kind of structural schematic diagram of task Workflow Management System in the embodiment of the present invention.
Task flow engine 201, task performer 202, event sniffer 203, event handler 204 and database 205;
Wherein, task flow engine 201, for periodically acquiring and by calling task performer 202 to handle in database Each task flow the corresponding operation service of current state;
Task performer 202 executes each operation service for receiving the call instruction of task flow engine device;
Event sniffer 203, for the current state of each task flow in monitored data library, and by corresponding task status It changes message and is sent to event handler;
Event handler 204 changes message for receiving simultaneously logger task state;
Database 205 throughout manages stage corresponding status categories and each shape for storing each task flow The corresponding operation service of state classification.
Wherein, the line in Fig. 2 indicates the incidence relation between each device, the transmission direction of arrows show data.Example Such as, 201 arrow of task flow engine is directed toward the connecting line of task performer 202, that is, shows that task flow engine 201 calls task execution Device 202.
Wherein, task performer 202 is specifically as follows multiple processing threads, specifically can refer in above-described embodiment and is retouched Each exclusive thread in the thread pool stated.
Can also to include that task status enumerate class, for task flow to be arranged, throughout to manage the stage right respectively convenient for management The status categories answered.The task status, which enumerates class, can specially be arranged task flow in corresponding status categories of a processing stage, So as to task flow engine, task performer, event sniffer, event handler inquiry.
Specifically, specific flow of task can be first directed to, it is abstracted, class is enumerated in task status and is provided each Business state for example starts, prepares, carry out in, complete, unsuccessfully etc..In addition, can may also go out according in flow of task implementation procedure Existing several status of fail of mistake or exception definition, are defined on task status together and enumerate in class.Then, task flow engine is responsible for Start the task execution of designated state, such as periodically goes to obtain the task flow in beginning state in data, and carry out It handles in next step.Task performer receives the call instruction of task flow engine, executes real business operation, such as using exclusive The business operation of thread execution designated state.Event sniffer can listening state change, and detection save or update appoint The change operation of business in the database, and corresponding task is changed into message informing to event handler.Event handler is responsible for The message that event sniffer issues is received, records the event message, and according to specific event message, that is, task status, be somebody's turn to do The business operation for needing to complete under state.
Using task Workflow Management System provided by the embodiment of the present invention, it is corresponding that goal task stream is obtained in the database Current state, and judge whether the status categories of current state are completion;If it is not, then obtaining current state pair in the database The object run business answered;Using the status categories of current state, the corresponding mesh of current state is determined in default thread pool Mark processing thread;Using subject thread processing target operation service, and using processing result to the current state of goal task stream It is adjusted.
The current state of goal task stream is obtained, and judges whether the status categories of current state are completion.If it is determined that It as a result is no, object run business corresponding to acquisition current state.Using the status categories of current state, pre-set The corresponding target processing thread of current state is determined in thread pool.Then, thread process object run industry is handled using target Business, and be adjusted according to current state of the operating result to goal task stream.And in the current state of adjustment goal task stream Later, iteration executes the current state for obtaining goal task stream, and repeats the corresponding object run industry of processing current state The step of business, until the status categories of the current state of goal task stream are to complete.To the management of goal task stream from state Visual angle triggering, then adjusts the current state of goal task stream according to the processing result of object run business, i.e. control target The circulation of task flow.Multiple exclusive threads are enabled, can concurrently complete the management of multiple tasks stream, it can be achieved that carrying out to task flow high The management of effect.
In addition, when being managed to goal task stream, without developing corresponding XML stream journey model text for goal task stream Part reduces the workload of developer, can shorten the application and development period, and realization process is relatively easily realized, it is only necessary to be each Corresponding operation service is arranged in the status categories of the different phase of task flow, goes wrong and is easy positioning, maintenance cost compared with It is low.
Embodiment three:
For convenient for those skilled in the art understand that technical solution provided by the embodiment of the present invention, below with virtualization services For device system upgrade process, it is provided for the embodiments of the invention technical solution and is described in detail.
Firstly, settable virtualized server upgrades each stage of each task flow in process in Status Type.For example, Waiting for the start begins preparing, prepares to fail, wait for, upgrade successfully, upgrading states, the task flow engine such as unsuccessfully and be responsible for opening The task of dynamic designated state, such as when system upgrade, task flow engine needs acquisition state periodically from database is etc. Task wait start, begin preparing, wait for, and related service is called to operate;Task flow actuator, which receives an assignment, flows engine Calling, and execute specific business operation, complete the task of current state, and update task stream mode, promote task to next Step circulation;Event sniffer, eavesdropping target are the state of task flow.Specifically, event sniffer once listens to task execution Device performs the preservation of task list in database or updates operation, and task, which monitors module, to send message to event handler;Thing Part processor gets the notification message of event sniffer, then can take corresponding operation according to specific message content and remember Record the event.For example, in escalation process, if the state for listening to upgrading task flow is to upgrade successfully or unsuccessfully require The preparation done before upgrading is restored to original state, i.e. rolling back action.Specific implementation steps can refer to Fig. 3, and Fig. 3 is this The implementation process diagram of upgrade-system in inventive embodiments.Process, which is embodied, includes:
Enabling thread 1 in task flow engine periodically obtains the task that state is waiting for the start from task list, Enabling thread 2 and periodically obtaining state from task list is beginning preparing for task, enables thread 3 periodically from task It is waiting for for task that state is obtained in list.
Wherein, after enabling thread 1 gets the task that state is waiting for the start, task flow actuator is called to execute upgrading Preceding preparation operation, and task stream mode is changed to begin preparing and deposits into database;Enabling thread 2 and getting state is to begin preparing Task and judge to prepare whether operation is completed, if complete call task performer executes updating operation, and by task stream mode It is changed to wait for;If preparing operation not completing, terminate to upgrade, and modifies task status to prepare failure;Thread 3 is enabled to obtain Getting task status is waiting for for task, and judges whether updating operation is completed, if completed, calls task performer Modify corresponding task stream mode.
When each enabling thread executes corresponding operating respectively, event sniffer can modification to task status each time into Row is monitored, and sends corresponding message to event handler.Event handler can record event message, and according in current message Corresponding task stream mode takes corresponding operation, such as the state of task flow is that upgrading is completed or upgrading fails, event handling Device can carry out the preparation operation before rolling back action, such as rollback upgrading.
The event of event handler record, is associated with task flow, can easily check task flow executive condition, if Task flow executes failure, and specifically which step error can also be checked by the event of record, can quickly carry out troubleshooting.
Example IV:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of task flow managing devices, hereafter retouch The task flow managing device stated can correspond to each other reference with above-described task flow management method.
Shown in Figure 4, which comprises the following modules:
Current state judgment module 401 for obtaining the corresponding current state of goal task stream in the database, and judges Whether the status categories of current state are completion;
Object run business obtains module 402, if the status categories for current state are not to complete, in the database Obtain the corresponding object run business of current state;
Target handles thread determining module 403, for the status categories using current state, determines in default thread pool The corresponding target of current state handles thread out;
State adjusts module 404, for utilizing subject thread processing target operation service, and using processing result to target The current state of task flow is adjusted.
Using device provided by the embodiment of the present invention, the corresponding current state of goal task stream is obtained in the database, And judge whether the status categories of current state are completion;If it is not, then obtaining the corresponding target of current state in the database Operation service;Using the status categories of current state, the corresponding target processing line of current state is determined in default thread pool Journey;It is adjusted using subject thread processing target operation service, and using current state of the processing result to goal task stream.
The current state of goal task stream is obtained, and judges whether the status categories of current state are completion.If it is determined that As a result be it is no, then obtain object run business corresponding to current state.Using the status categories of current state, presetting Thread pool in determine current state corresponding target processing thread.Then, thread process object run is handled using target Business, and be adjusted according to current state of the operating result to goal task stream.And in the current shape of adjustment goal task stream After state, iteration executes the current state for obtaining goal task stream, and repeats the corresponding object run of processing current state The step of business, until the status categories of the current state of goal task stream are to complete.To the management of goal task stream from state Visual angle triggering, the current state of goal task stream is then adjusted according to the processing result of object run business, i.e., control mesh Mark the circulation of task flow.Multiple exclusive threads are enabled, can concurrently complete the management of multiple tasks stream, it can be achieved that carrying out to task flow Efficient management.
In addition, when being managed to goal task stream, without developing corresponding XML stream journey model text for goal task stream Part reduces the workload of developer, can shorten the application and development period, and realization process is relatively easily realized, it is only necessary to be each Corresponding operation service is arranged in the status categories of the different phase of task flow, goes wrong and is easy positioning, maintenance cost compared with It is low.
In a kind of specific embodiment of the invention, target handles thread determining module 402, comprising:
Exclusive processing thread determination unit, for searching the status categories of processing current state in default thread pool Exclusive processing thread;
Target handles thread determination unit, handles line for exclusive processing thread to be determined as the corresponding target of current state Journey.
In a kind of specific embodiment of the invention, further includes:
Thread setup module is handled, for finding the processing line of the status categories of processing current state in default thread Before journey, an exclusive processing thread is respectively set for every kind of status categories.
In a kind of specific embodiment of the invention, state adjusts module 403, is specifically used for judging using processing result Whether object run business handles success;
If it is, adjusting the status categories of the current state of goal task stream to the state for presetting next processing stage Classification;
If it is not, then carrying out rollback to object run business.
In a kind of specific embodiment of the invention, object run business obtains module 401, is specifically used for detection data Goal task stream corresponding save and/or update are operated in library, determine the current state of goal task stream.
Embodiment five:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of task flow management equipments, hereafter retouch A kind of task flow management equipment stated can correspond to each other reference with a kind of above-described task flow management method.
Shown in Figure 5, which includes:
Memory D1, for storing computer program;
Processor D2, when for executing computer program the step of the transaction methods of realization above method embodiment.
Referring to FIG. 6, being the structural schematic diagram of task flow management equipment provided in this embodiment, the task flow management equipment Bigger difference can be generated because configuration or performance are different, may include one or more processors (central Processing units, CPU) 322 (for example, one or more processors) and memory 332, one or more Store the storage medium 330 (such as one or more mass memory units) of application program 342 or data 344.Wherein, it deposits Reservoir 332 and storage medium 330 can be of short duration storage or persistent storage.The program for being stored in storage medium 330 may include One or more modules (diagram does not mark), each module may include to the series of instructions behaviour in data processing equipment Make.Further, central processing unit 322 can be set to communicate with storage medium 330, in task flow management equipment 301 Execute the series of instructions operation in storage medium 330.
Task flow management equipment 301 can also include one or more power supplys 326, one or more it is wired or Radio network interface 350, one or more input/output interfaces 358, and/or, one or more operating systems 341.For example, Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in task flow management method described above can be realized by the structure of task flow management equipment.
Embodiment six:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, are described below A kind of readable storage medium storing program for executing can correspond to each other reference with a kind of above-described task flow management method.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor The step of task flow management method of above method embodiment is realized when row.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-OnlyMemory, ROM), The various program storage codes such as random access memory (Random Access Memory, RAM), magnetic or disk can Read storage medium.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

Claims (10)

1. a kind of task flow management method characterized by comprising
Obtain the corresponding current state of goal task stream in the database, and judge the current state status categories whether be It completes;
If it is not, then obtaining the corresponding object run business of the current state in the database;
Using the status categories of the current state, the corresponding target processing of the current state is determined in default thread pool Thread;
The object run business is handled using the subject thread, and using processing result to the current of the goal task stream State is adjusted.
2. task flow management method according to claim 1, which is characterized in that utilize the state class of the current state Not, the corresponding target processing thread of the current state is determined in default thread pool, comprising:
In default thread pool, the exclusive processing thread for handling the status categories of the current state is searched;
The exclusive processing thread is determined as the corresponding target processing thread of the current state.
3. task flow management method according to claim 2, which is characterized in that in default thread, find described in processing Before the processing thread of the status categories of current state, further includes:
An exclusive processing thread is respectively set for every kind of status categories.
4. task flow management method according to claim 1, which is characterized in that using processing result to the goal task The current state of stream is adjusted, comprising:
Judge whether the object run business handles success using processing result;
If it is, adjusting the status categories of the current state of the goal task stream to the state for presetting next processing stage Classification;
If it is not, then carrying out rollback to the object run business.
5. task flow management method according to any one of claims 1 to 4, which is characterized in that described to obtain in the database Take the corresponding current state of goal task stream, comprising:
Goal task stream described in Test database corresponding save and/or update operation, determine the goal task stream Current state.
6. a kind of task flow managing device characterized by comprising
Current state judgment module is worked as obtaining the corresponding current state of goal task stream in the database, and described in judgement Whether the status categories of preceding state are completion;
Object run business obtains module, if the status categories for the current state are not to complete, in the database It is middle to obtain the corresponding object run business of the current state;
Target handles thread determining module, for the status categories using the current state, determines in default thread pool The corresponding target of the current state handles thread;
State adjusts module, for handling the object run business using the subject thread, and using processing result to institute The current state for stating goal task stream is adjusted.
7. a kind of task processing system characterized by comprising
Task flow engine, task performer, event sniffer, event handler and database;
Wherein, the task flow engine, for periodically acquiring and by calling the task performer to handle the database In each task flow the corresponding operation service of current state;
The task performer executes each operation service for receiving the call instruction of the task flow engine device;
The event sniffer for monitoring the current state of each task flow in the database, and will appoint accordingly Business state changes message and is sent to the event handler;
The event handler changes message for receiving and recording the task status;
The database throughout manages stage corresponding status categories and each for storing each task flow The corresponding operation service of the status categories.
8. task Workflow Management System according to claim 7, which is characterized in that further include:
Task status enumerates class, throughout manages stage corresponding status categories for task flow to be arranged.
9. a kind of task flow management equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the task flow management method as described in any one of claim 1 to 5 when for executing the computer program The step of.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing It is realized when calculation machine program is executed by processor as described in any one of claim 1 to 5 the step of task flow management method.
CN201811031265.2A 2018-09-05 2018-09-05 A kind of task flow management method, device, equipment and system Pending CN109144701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811031265.2A CN109144701A (en) 2018-09-05 2018-09-05 A kind of task flow management method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811031265.2A CN109144701A (en) 2018-09-05 2018-09-05 A kind of task flow management method, device, equipment and system

Publications (1)

Publication Number Publication Date
CN109144701A true CN109144701A (en) 2019-01-04

Family

ID=64826995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811031265.2A Pending CN109144701A (en) 2018-09-05 2018-09-05 A kind of task flow management method, device, equipment and system

Country Status (1)

Country Link
CN (1) CN109144701A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162444A (en) * 2019-05-14 2019-08-23 海南电网有限责任公司信息通信分公司 A kind of system performance monitoring method and platform
CN110879763A (en) * 2019-10-31 2020-03-13 北京浪潮数据技术有限公司 Task item execution method, device and equipment and computer readable storage medium
CN111352686A (en) * 2020-03-04 2020-06-30 北京百分点信息科技有限公司 Method and device for displaying task flow, readable storage medium and electronic equipment
CN111722888A (en) * 2020-06-19 2020-09-29 浪潮电子信息产业股份有限公司 Operation execution method, device, equipment and readable storage medium
CN112507010A (en) * 2020-12-14 2021-03-16 深圳佑驾创新科技有限公司 Service data processing method and device, computer equipment and storage medium
CN112732460A (en) * 2021-01-05 2021-04-30 卓望数码技术(深圳)有限公司 Data state management method, system and storage medium
CN114584802A (en) * 2020-11-30 2022-06-03 腾讯科技(深圳)有限公司 Multimedia processing method, device, medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201753A (en) * 2007-12-13 2008-06-18 浪潮通信信息系统有限公司 Method for configuring and managing multimode machine supervising engine
US9575802B2 (en) * 2014-10-28 2017-02-21 International Business Machines Corporation Controlling execution of threads in a multi-threaded processor
CN107656824A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 The processing method and relevant apparatus and server of a kind of operation flow

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201753A (en) * 2007-12-13 2008-06-18 浪潮通信信息系统有限公司 Method for configuring and managing multimode machine supervising engine
US9575802B2 (en) * 2014-10-28 2017-02-21 International Business Machines Corporation Controlling execution of threads in a multi-threaded processor
CN107656824A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 The processing method and relevant apparatus and server of a kind of operation flow

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162444A (en) * 2019-05-14 2019-08-23 海南电网有限责任公司信息通信分公司 A kind of system performance monitoring method and platform
CN110879763A (en) * 2019-10-31 2020-03-13 北京浪潮数据技术有限公司 Task item execution method, device and equipment and computer readable storage medium
CN111352686A (en) * 2020-03-04 2020-06-30 北京百分点信息科技有限公司 Method and device for displaying task flow, readable storage medium and electronic equipment
CN111352686B (en) * 2020-03-04 2023-10-03 北京百分点科技集团股份有限公司 Method and device for displaying task stream, readable storage medium and electronic equipment
CN111722888A (en) * 2020-06-19 2020-09-29 浪潮电子信息产业股份有限公司 Operation execution method, device, equipment and readable storage medium
CN111722888B (en) * 2020-06-19 2022-06-10 浪潮电子信息产业股份有限公司 Operation execution method, device, equipment and readable storage medium
CN114584802A (en) * 2020-11-30 2022-06-03 腾讯科技(深圳)有限公司 Multimedia processing method, device, medium and electronic equipment
CN114584802B (en) * 2020-11-30 2024-03-08 腾讯科技(深圳)有限公司 Multimedia processing method, device, medium and electronic equipment
CN112507010A (en) * 2020-12-14 2021-03-16 深圳佑驾创新科技有限公司 Service data processing method and device, computer equipment and storage medium
CN112507010B (en) * 2020-12-14 2022-10-28 深圳佑驾创新科技有限公司 Service data processing method and device, computer equipment and storage medium
CN112732460A (en) * 2021-01-05 2021-04-30 卓望数码技术(深圳)有限公司 Data state management method, system and storage medium

Similar Documents

Publication Publication Date Title
CN109144701A (en) A kind of task flow management method, device, equipment and system
US10776147B2 (en) Orchestration engine for migrating application data and application services using migration steps in migration component
US10496532B1 (en) Automatically reconfiguring a performance test environment
CN101411123B (en) Method, system and computer program for the centralized system management on endpoints of a distributed data processing system
US10073683B2 (en) System and method for providing software build violation detection and self-healing
US9292343B2 (en) Method and system for performing deployment management
US8020044B2 (en) Distributed batch runner
CN107660289A (en) Automatic network controls
CN114153482B (en) Deep learning programming method and system based on digital twin DaaS platform
US20170220324A1 (en) Data communication accelerator system
CN113569987A (en) Model training method and device
CN110673936B (en) Breakpoint continuous operation method and device for arrangement service, storage medium and electronic equipment
CN105487924A (en) Batch processing controlling method and device
CN105677465B (en) The data processing method and device of batch processing are run applied to bank
CN111400011B (en) Real-time task scheduling method, system, equipment and readable storage medium
US10372572B1 (en) Prediction model testing framework
US20230376726A1 (en) Inference service deployment method, device, and storage medium
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
JP2017016507A (en) Test management system and program
US11748213B2 (en) Multiple operation modes in backup operator
JP5387083B2 (en) Job management system and method
CN111538738B (en) Service upgrading method and device, electronic equipment and storage medium
CN112104497A (en) Terminal management method, device, system, server, terminal and storage medium
WO2015037975A1 (en) System and method for self-maintaining the cloud system
CN117667362B (en) Method, system, equipment and readable medium for scheduling process engine

Legal Events

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

Application publication date: 20190104

RJ01 Rejection of invention patent application after publication