CN104063273B - A kind of middle controlled operation flow dispatching management information system and implementation method - Google Patents
A kind of middle controlled operation flow dispatching management information system and implementation method Download PDFInfo
- Publication number
- CN104063273B CN104063273B CN201410265833.0A CN201410265833A CN104063273B CN 104063273 B CN104063273 B CN 104063273B CN 201410265833 A CN201410265833 A CN 201410265833A CN 104063273 B CN104063273 B CN 104063273B
- Authority
- CN
- China
- Prior art keywords
- file
- module
- flow
- task
- parameter
- 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
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A kind of middle controlled operation flow dispatching management information system and implementation method, including workflow management module, business service module, timed task module, profile management module, receiver module, maker module, transmitter module, Data access module, profile management module, file scan module, document processing module, file content authentication module, file sending module, model and file conversion module;The present invention have good expandability and reusability, adapt to not homologous ray functional requirement and in terms of extension, be advantageously implemented personalized scheduling request, improve reusability.
Description
Technical field
The present invention relates to operation flow scheduling field, a kind of specifically pipe for operation flow scheduling of middle controlled
Reason system and its implementation.
Background technique
As information-based is popularized, Business Process Management is become more and more important.In today's society, diversified user is needed
Asking makes operation flow that continuous update and variation occur.Because user demand, business function setting are different, each system is in operation flow
Management design on it is also different.Research, which using the method for optimization efficiently manages these operation flows and is one, urgently to be resolved asks
Topic.
Process design embodies the functional requirement of system, it is the important link and shadow of system design and software design
Acoustic system scalability, maintainable key factor.In the design of many flow scheduling management systems, process is usually surrounded
Step constructs system architecture, and the mode of thinking solved the problems, such as may be met by doing so, but the scalability of system and versatility
It is restricted.The operation flow schedule management method published at present, solution is more stiff, if Business Stream
The frequent change of journey will bring huge challenge to system maintenance.
Summary of the invention
Technology of the invention solves the problems, such as: overcoming the deficiencies of the prior art and provide a kind of middle controlled operation flow scheduling
Management system and implementation method, have good expandability and reusability, adapt to not homologous ray in functional requirement and industry
The extension of business demand etc..
The technical solution of the invention is as follows: a kind of middle controlled operation flow dispatching management information system, include as shown in Figure 1 with
Lower module:
Workflow management module: it is made of workflow manager, flow scheduling device and flow processor three parts;Wherein process pipe
It manages device and obtains order from document processing module, obtain workflow management parameter and flow scheduling parameter from profile management module,
Manage all flow instances for waiting scheduling and being currently running;Flow scheduling device is obtained from workflow manager to scheduling flow, root
Process is chosen according to scheduling strategy, and flow processor is transferred to start the process;Flow processor is obtained from document processing module and is reported
It accuses, obtains process configuration parameter from profile management module, give flow scheduling parameter to flow scheduling engine, process is provided
Processing service;
Business service module: the calling of process scheduling engine is received, order, task are provided and are reported in flow scheduling sum number
According to required all kinds of business services when access, including inquiry operation, receive operation, review operations, generate operation, send operate,
Cancel operation;Wherein, the processing of operation calls receiver module is received, the processing of operation calls maker module is generated, sends operation
Transmitter module processing is called, other data access operations call Data access module processing;
Timed task module: obtaining timed task parameter from profile management module, appoints in the time of agreement by timing
The parameter of business setting starts timed task, and timed task is allowed to be executed at a certain moment once, or since certain moment, by specified
Time interval repeats repeatedly;The execution parameter of pending timed task, timed task is configurable;
Receiver module: receiving the reception parameter of business service module, completes to receive operation, and reception result is back to
Business service module;During executing reception operation, Data access module is called to carry out data storage;According to data type
Difference provide different receivers, data type is different, and reception behavior features are also different, can expand the type of receiver
Exhibition, to meet system requirements;
Maker module: receiving the generation parameter of business service module, completes to generate operation, and be back to result is generated
Business service module;During executing generation operation, Data access module is called to carry out data storage;According to data type
Difference provide different generators, data type is different, and it is also different to generate behavior, can expand the type of generator
Exhibition, to meet system requirements;
Transmitter module: receiving the transmission parameter of business service module, completes to send operation, and be back to result is sent
Business service module;During executing transmission operation, Data access module is called to carry out data storage;When sending, adjust
Internal model object is converted into corresponding external interface file with model with file conversion module, and calls file sending module
External interface file is sent by specified sending method;External interface definition is different, and the behavior of transmitter is also different;
Data access module: being connect in a manner of being adapted to external data base, receive business service module, receiver module,
The data access request of maker module and transmitter module, data access is provided as a result, for system provide data inquiry,
It updates, four class basic operations of addition and deletion;
Profile management module: management system configuration file is workflow management module, timed task module, file hair
Module and file scan module is sent to provide configuration parameter;And provide configuration parameter modification service;
File scan module: when external interface is file format, obtaining sweep parameter from profile management module, fixed
When the specified file path of scanning, file is matched, filtered, removed and is backed up, file is transferred to for successful match file
Processing module executes subsequent operation, otherwise provides the illegal prompt of file;
Document processing module: when external interface is file format, the file of file scan module is received, is called in file
Hold the legitimacy of authentication module verifying file content;Calling model and file conversion module complete external interface file to internal mode
The conversion of type object;Workflow manager in call flow management module handles order;Process in call flow management module
Processor handles task confirmation report and completion report;
File content authentication module: when external interface is file format, the calling of document processing module is received, completes text
Part content verification operation;File type is different, and verifying logic may be different;
Model and file conversion module: when external interface is file format, the calling of document processing module is received, is provided
Conversion of the external interface file to internal model object;The calling of receiver transmitter module provides internal model object to outside
The conversion of interface document.Different, the different external interface file of the external interface file that different internal model objects is converted into
The internal model object being converted into is also different;The transformation rule of internal model object and external interface file is configurable;
File sending module: when external interface is file format, file to be sent is received, from profile management module
It obtains and sends parameter, file is provided and sends service;File sending method includes that FTP is sent, SSH is sent, can be according to sender
The different of formula are extended transmission service type, to meet system requirements.
The workflow management module realizes that process is as follows:
(1) workflow manager from profile management module obtain workflow management parameter, including etc. process team to be scheduled
The maximum capacity of the maximum capacity of column, running process uses the parameter initialization and Booting sequence manager of acquisition;
(2) Booting sequence processor, flow processor obtain process configuration parameter from profile management module, and will stream
Journey scheduling parameter gives flow scheduling engine, provides flow processing service;
(3) workflow manager obtains flow scheduling parameter, including flow scheduling strategy, process from profile management module
Scheduling time inter;Corresponding dispatch service is searched according to flow scheduling strategy, initializes and Booting sequence scheduler, unlatching is dispatched
Thread;
(4) workflow manager obtains order from document processing module, and does following processing: a. judges current etc. to be scheduled
Whether process queue has reached maximum capacity, if had reached, process addition failure is returned " waiting to be added ";If do not reached
It arrives, then process is added to etc. in process queue to be scheduled, return " adding successfully ";B. workflow manager management process identifies
With the mapping relations of flow instance, the flow instance for facilitating access to be managed;
(5) currently whether running process queue reaches maximum capacity to flow scheduling device periodic detection, if had reached
Maximum capacity, fixed time intervals detect again behind interval, otherwise do following processing: a, by flow scheduling strategy from workflow management
The flow instance of a highest priority is obtained in the process queue to be scheduled such as device;B, the flow instance that will acquire from wait team
Column move into operation queue;C, call flow processor is disposed, starts the process;
(6) during flow scheduling, task, order report by flow scheduling engine calling business service module generate,
Debriefing is obtained by flow processor from document processing module, and then executes flow processing request.Flow processing is requested
Pending process wakes up pending process, cancels process, restarts process;
(7) at the end of certain scheduling flow living example, workflow manager removes the process from operation queue, and clears up stream
Journey related data.
The timed task module realizes that process is as follows:
(1) all pending timed tasks of user configuration and parameter is executed, timed task module is from configuration file management
Module obtains timed task parameter, initializes and starts timed task scheduler;
(2) all timed task and timed task monitor are registered.There are two types of logon modes for timed task: a, basis are matched
The timed task parameter configured in file is set, all timed task and task monitor are registered;B, the dynamic when system is run
Register timed task and task monitor;
(3) a listening thread is opened for each timed task to succeed in registration, monitors the timing thing of the task setting
Part;
(4) start timed task by the parameter of timed task setting in the time of agreement, timed task is allowed to hold at a certain moment
Row is primary, or since certain moment, repeats repeatedly by specified time interval.When timed task starts to execute, readjustment
The starting monitor method of the task;
(5) after timed task executes, the end monitor method of the task is adjusted back.
The file scan module realizes that process is as follows:
(1) sweep parameter is obtained from profile management module, including the adaptation that system needs, the name of every kind of adaptation
Claim and matching rule, that is, adaptation can matched file type, for file matching service setting match parameter;
(2) sweep parameter is obtained from profile management module, including all file scan catalogues, file backup road
Diameter, file scan time interval etc., and file opening scans thread;
(3) for each file scan path, interval scan is primary at every fixed time, obtains all texts under the path
Part;
(4) it if any file has not been obtained, goes to step (3) and continues to execute, it is no to then follow the steps (5);
(5) for the file that each is scanned, file matching service is obtained according to file type first, verifies this document
It whether is the insignificant file of system, if a, the file scanned are negligible file, scanning thread is without any processing, text
Part stays under former catalogue;If file b, scanned is that can not ignore file, call file matching service to file progress
With filtering;If it fails to match, file movement is backed up under path, otherwise gives file to document processing module processing.Such as
Fruit document processing module processing result is " waiting to be processed ", then file is stayed under former catalogue and is not processed, otherwise that file is mobile
To under backup path;
(6) it after having handled all files scanned, goes to step (3) and continues to execute.
The system realizes that steps are as follows:
(1) activation system;
(2) file scan module periodic scanning specified file path, the All Files scanned are matched, are filtered,
It removes and backs up;If this document matching is unsuccessful, it is considered as garbage files, is not processed after removal;For successful match
File, if this document is negligible file, file is stayed under scan path and is not processed, and is otherwise removed file and is backed up
Afterwards, file is given to document processing module to handle;
(3) document processing module gives file to file content authentication module, carries out legitimate verification, if the verification passes
(4) are thened follow the steps, otherwise terminates the processing to this document, continues with alternative document;
(4) according to file type and file content, document processing module gives file to model and file conversion module, will
File is converted into corresponding internal model object, and workflow management module is transferred to be handled;
(5) the received model object of workflow management resume module.If received model object type is order object, hold
Row step (6) thens follow the steps (13), if received if received model object type is that task confirms report objects
Model object type is Mission Accomplishment Report object, thens follow the steps (14);
(6) workflow management module obtains the corresponding process parameter of the order object from profile management module, according to this
The waiting scheduling queue of workflow manager is added in process parameter's product process object instance;
(7) flow scheduling device is using specified flow scheduling strategy, periodically from the process team to be scheduled such as workflow manager
A flow instance is obtained in column, which is added to operation queue, and call flow processor is handled.Flow processor will
Flow scheduling parameter gives flow scheduling engine, opens scheduling flow;
(8) after process is opened, the conversion of flow scheduling engine calling business service module, first persistence order file is generated
Order object;
(9) flow scheduling engine calling business service module generates and saves acknowledgement of orders report, and by acknowledgement of orders report
It accuses object and is converted into acknowledgement of orders report file, be sent to order sender;
(10) system manager completes order review operations, saves auditing result.Flow scheduling engine calling business service
Auditing result is converted into order audit report, is sent to order sender by module.If audit passes through, step is continued to execute
(11), otherwise terminate process, execute step (17);
(11) flow scheduling engine calling business service module generates according to order data and saves task object, for
Each task object generated opens task schedule process, and it is step (12) to (15) that task schedule process, which executes step,;
(12) task object of generation is converted into assignment file by flow scheduling engine calling business service module, is sent
Give task recipient;
(13) when file scan module receives task confirmation report file, document processing module is given.File process
Module verification file content, and after completing file to the conversion of model, call flow processor continues with;Flow processing module
Call flow scheduling engine wakes up the corresponding flow instance of this document.Flow scheduling engine calling business service module saves true
Recognize report objects, continues waiting for Mission Accomplishment Report;
(14) when file scan module receives Mission Accomplishment Report file, document processing module is given.File process
Module verification file content, and after completing file to the conversion of model, call flow processor continues with;Flow processing module
Call flow scheduling engine wakes up the corresponding flow instance of this document.Flow scheduling engine calling business service module saves and appoints
Business completion report object;
(15) after task schedule process, workflow manager terminates and removes the task schedule process;
(16) after the completion of the scheduling flow for all tasks that order decomposition goes out, flow scheduling engine calling business service mould
Block generates and saves order completion report, and order completion report object is converted into order completion report file, is sent to and orders
Single sender;
(17) after order dispatch process, workflow manager terminates and removes the process.
The advantages of the present invention over the prior art are that:
(1) reception of control mode, management and the processing request for dispatching external constituents' transmission in system use, according to Business Stream
Cheng Dingyi opens scheduling flow, coordinates external constituents and completes the processing to the request jointly.In scheduling process, with order mould
Type describes the received processing request of this system, describes the processing request that this system is sent to other systems with task model.Task
After scheduling flow, the order dispatch process belonging to it is notified.The mabage report generated in order and task processes is used
Report model indicates.
(2) scheduling flow can be configured by configuration file, without strong dependence, user Ke Gen between process action
Process step and process parameter are customized according to actual demand;The accessible order of system, task and Report Type can be by configuring text
Part extension;System uses two-stage core machine contracting system, and level-one core packet provides base support for system, and second level core packet is system
Use file as an expanding packet of external interface.If external interface file format needs to change, it is only necessary to replace second level
The interface of core packet is realized.If external interface not instead of file, other forms, then second level core packet is replaceable.This
It is a little to provide good support for secondary system exploitation.
(3) present system provides modularization, lower coupling, the assembly management environment that can dynamically plug, each component can be to
Web services registry registration is inquired and using service.The service model of system is to be issued, found with service, binding fundamental operation
Dynamic cooperative model.When service is registered or is nullified, whether other can be can be used using the component of the service with aware services,
And dynamically change factum.In the whole process, system keeps stablizing, and does not need to restart.
Detailed description of the invention
Fig. 1 is system structure of the invention figure;
Fig. 2 is that present system realizes process;
Fig. 3 is that the workflow management module in present system realizes process;
Fig. 4 is that the timed task module in present system realizes process;
Fig. 5 is that the file scan module in present system realizes process.
Specific embodiment
The following describes the present invention in detail with reference to the accompanying drawings and embodiments.
(1) middle controlled: the external constituents of this system are divided into two classes: active system and passive system, active system and by
Dynamic system is transparent each other, does not interact.Active system sends order dispatch request to this system, and this system is waited to feed back
All kinds of order processing reports.After this system receives the order dispatch request of active system transmission, it is passive to coordinate to need to participate in
System generates all kinds of processing tasks according to order dispatch request, task is distributed to corresponding passive system.Passive system receives
To after processing task, processing task is executed to this system and feeds back each generic task mabage report.
(2) two-layer model: order and task two-layer model, order are asked for the scheduling that other subsystems are sent to this system
It asks, task is that order generates and is distributed to the processing request of other subsystems this system based on the received.At order and task
Order processing report and task mabage report can be generated during reason, wherein order processing report includes acknowledgement of orders report, orders
Single audit report, order completion report, task mabage report include task confirmation report, Mission Accomplishment Report.Order processing report
It accuses and active system is reported to by this system, task mabage report is reported to this system by passive system;
(3) two-stage core packet: level-one core packet is based on inner model of system object and provides all kinds of services, second level core Bao Ji
In external interface file, the services such as file scan, verifying, transmission, file and internal model conversion are provided.Level-one core packet be
System provides base support, and second level core packet is that system uses an expanding packet of the file as external interface.If external interface
It is not file but other forms, then second level core packet is replaceable.
For a better understanding of the present invention, first basic concepts are once illustrated.
Order: in scheduling process, the processing request that external constituents send to this system is order, order contents description
The contents such as the type of the order, urgency level, sender, recipient, creation time, pending processing task parameters.It orders
It is singly the starting point of a scheduling flow.
Task: in scheduling process, this system receives the order that external constituents send, and parses to order contents,
It decomposes and the processing request for being sent to other external subsystems is task.Task definition describe the type of the task, priority,
Send hair, recipient, creation time, pending processing task parameters etc..Task is the intermediate output an of scheduling flow.
Report: in scheduling process, it is report that this system, which receives or sends to the processing status of other external constituents,.Report
Announcement is divided to two classes, and one kind is order processing report, including acknowledgement of orders report, order audit report, order completion report etc.;It is a kind of
It is task mabage report, including task confirmation report, Mission Accomplishment Report etc..Order processing report is generally sent to by this system
External constituents, debriefing are generally sent to this system by external constituents.
Acknowledgement of orders report: after this system receives order, acknowledgement of orders report is sent to external system.Acknowledgement of orders
Described in report order whether be received, receiving time, sender, the parameters such as recipient.If be not received, retouched in report
It has stated order and has been rejected reason.
Order audit report: after this system completes order audit, order audit report is issued into external system.Order audit
The parameters such as order auditing result, audit time, sender, recipient are described in report.
Order completion report: after the completion of order processing, this system sends order completion report to external system, and order is completed
The parameters such as order processing result, processing time, sender, recipient are described in report.
Task confirmation report: when external system receives task, task confirmation report is sent to this system.Task confirmation report
Described in announcement task whether be received, receiving time, sender, the parameters such as recipient.If task is not received, in report
The reason of task of describing is rejected.
Mission Accomplishment Report: after the completion of task processing, external system sends Mission Accomplishment Report to this system.Task is completed
The parameters such as task processing result, processing time, sender, recipient are described in report.
Process action: process action refers to each step executed during flow scheduling.Process action is divided into starting
Movable (first activity of process), task activity (executing a specified process movement), waiting activity (wait certain specific thing
The generation of part can just continue to execute the activity of process), branch activity (it is concurrent that certain process step is broken down into multiple parallel branches
Execute), merger activity (multiple branch's activities can just continue to execute the activity of process after the completion of being carried out), termination activity (process
The last one activity) etc..
Flow scheduling strategy: from etc. obtain in process queue to be scheduled a highest priority flow instance side
Method.Scheduling strategy can be there are many mode, such as first in first out, obtains by urgency level, obtains by most short scheduling time.Specifically
The scheduling strategy used can configure in configuration file.System provides the flow scheduling strategy of default.Flow scheduling strategy
It can be extended by secondary development.
Operation flow definition: operation flow define describe all process actions execute between sequence, process action according to
Rely relationship, the execution condition of process action, execution branch of process action etc..Operation flow definition is generally retouched by xml document
It states.Operation flow definition is configurable, and user can carry out personalized customization according to their own needs, to meet project need
It asks.
File matching verifying: whether verifying file matches with scheduled requirement.System provides file name suffix at present
Whether matching, filename prefix matching, filename contain specified substring matching, whether filename meets specified regular expression
The matchings services such as matching.
Model and file transformation rule: the conversion regime of model object Yu external interface file is described, i.e., from model pair
When as being converted into file or be converted into model object from file, the attribute of model object how the content phase mapping with file.
Model is configurable with file transformation rule, and user can carry out personalized customization according to their own needs, to meet project
Demand.
As shown in Figure 1, the present invention is by workflow management module, business service module, timed task module, file scan mould
The composition such as block, model and file conversion module, whole system realize that process is as shown in Figure 2.Realization process is as follows:
(1) activation system;
(2) file scan module periodic scanning specified file path, the All Files scanned are matched, are filtered,
It removes and backs up;If this document matching is unsuccessful, it is considered as garbage files, is not processed after removal;For successful match
File, if this document is negligible file, file is stayed under scan path and is not processed, and is otherwise removed file and is backed up
Afterwards, file is given to document processing module to handle;
(3) document processing module gives file to file content authentication module, carries out legitimate verification, if the verification passes
(4) are thened follow the steps, otherwise terminates the processing to this document, continues with alternative document;
(4) according to file type and file content, document processing module gives file to model and file conversion module, will
File is converted into corresponding internal model object, and workflow management module is transferred to be handled;
(5) the received model object of workflow management resume module.If received model object type is order object, hold
Row step (6) thens follow the steps (13), if received if received model object type is that task confirms report objects
Model object type is Mission Accomplishment Report object, thens follow the steps (14);
(6) workflow management module obtains the corresponding process parameter of the order object from profile management module, according to this
The waiting scheduling queue of workflow manager is added in process parameter's product process object instance;
(7) flow scheduling device is using specified flow scheduling strategy, periodically from the process team to be scheduled such as workflow manager
A flow instance is obtained in column, which is added to operation queue, and call flow processor is handled.Flow processor will
Flow scheduling parameter gives flow scheduling engine, opens scheduling flow;
(8) after process is opened, the conversion of flow scheduling engine calling business service module, first persistence order file is generated
Order object;
(9) flow scheduling engine calling business service module generates and saves acknowledgement of orders report, and by acknowledgement of orders report
It accuses object and is converted into acknowledgement of orders report file, be sent to order sender;
(10) system manager completes order review operations, saves auditing result.Flow scheduling engine calling business service
Auditing result is converted into order audit report, is sent to order sender by module.If audit passes through, step is continued to execute
(11), otherwise terminate process, execute step (17);
(11) flow scheduling engine calling business service module generates according to order data and saves task object, for
Each task object generated opens task schedule process, and it is step (12) to (15) that task schedule process, which executes step,;
(12) task object of generation is converted into assignment file by flow scheduling engine calling business service module, is sent
Give task recipient;
(13) when file scan module receives task confirmation report file, document processing module is given.File process
Module verification file content, and after completing file to the conversion of model, call flow processor continues with;Flow processing module
Call flow scheduling engine wakes up the corresponding flow instance of this document.Flow scheduling engine calling business service module saves true
Recognize report objects, continues waiting for Mission Accomplishment Report;
(14) when file scan module receives Mission Accomplishment Report file, document processing module is given.File process
Module verification file content, and after completing file to the conversion of model, call flow processor continues with;Flow processing module
Call flow scheduling engine wakes up the corresponding flow instance of this document.Flow scheduling engine calling business service module saves and appoints
Business completion report object;
(15) after task schedule process, workflow manager terminates and removes the task schedule process;
(16) after the completion of the scheduling flow for all tasks that order decomposition goes out, flow scheduling engine calling business service mould
Block generates and saves order completion report, and order completion report object is converted into order completion report file, is sent to and orders
Single sender;
(17) after order dispatch process, workflow manager terminates and removes the process.
Above-mentioned main modular the specific implementation process is as follows:
1, workflow management module
The realization process of the module is as shown in Figure 3:
(1) workflow manager from profile management module obtain workflow management parameter, including etc. process team to be scheduled
The maximum capacity of the maximum capacity of column, running process uses the parameter initialization and Booting sequence manager of acquisition;
(2) Booting sequence processor, flow processor obtain process configuration parameter from profile management module, and will stream
Journey scheduling parameter gives flow scheduling engine, provides flow processing service;
(3) workflow manager obtains flow scheduling parameter, including flow scheduling strategy, process from profile management module
Scheduling time inter;Corresponding dispatch service is searched according to flow scheduling strategy, initializes and Booting sequence scheduler, unlatching is dispatched
Thread;
(4) workflow manager obtains order from document processing module, and does following processing: a. judges current etc. to be scheduled
Whether process queue has reached maximum capacity, if had reached, process addition failure is returned " waiting to be added ";If do not reached
It arrives, then process is added to etc. in process queue to be scheduled, return " adding successfully ";B. workflow manager management process identifies
With the mapping relations of flow instance, the flow instance for facilitating access to be managed;
(5) currently whether running process queue reaches maximum capacity to flow scheduling device periodic detection, if had reached
Maximum capacity, fixed time intervals detect again behind interval, otherwise do following processing: 1, by flow scheduling strategy from workflow management
The flow instance of a highest priority is obtained in the process queue to be scheduled such as device;2, the flow instance that will acquire from wait team
Column move into operation queue;3, call flow processor is disposed, starts the process;
(6) during flow scheduling, task, order report by flow scheduling engine calling business service module generate,
Debriefing is obtained by flow processor from document processing module, and then executes flow processing request.Flow processing is requested
Pending process wakes up pending process, cancels process, restarts process etc.;
(7) at the end of certain scheduling flow living example, workflow manager removes the process from operation queue, and clears up stream
Journey related data.
2, timed task module
The realization process of the module is as shown in Figure 4:
(1) all pending timed tasks of user configuration and parameter is executed, timed task module is from configuration file management
Module obtains timed task parameter, initializes and starts timed task scheduler;
(2) all timed task and timed task monitor are registered.There are two types of logon modes for timed task: 1, basis is matched
The timed task parameter configured in file is set, all timed task and task monitor are registered;2, the dynamic when system is run
Register timed task and task monitor;
(3) a listening thread is opened for each timed task to succeed in registration, monitors the timing thing of the task setting
Part;
(4) start timed task by the parameter of timed task setting in the time of agreement, timed task is allowed to hold at a certain moment
Row is primary, or since certain moment, repeats repeatedly by specified time interval.When timed task starts to execute, readjustment
The starting monitor method of the task;
(5) after timed task executes, the end monitor method of the task is adjusted back.
3, file scan module
The realization process of the module is as shown in Figure 5:
(1) sweep parameter is obtained from profile management module, including the adaptation that system needs, the name of every kind of adaptation
Claim and matching rule (i.e. adaptation can matched file type), for file matching service setting match parameter;
(2) sweep parameter is obtained from profile management module, including all file scan catalogues, file backup road
Diameter, file scan time interval etc., and file opening scans thread;
(3) for each file scan path, interval scan is primary at every fixed time, obtains all texts under the path
Part;
(4) it if any file has not been obtained, goes to step (3) and continues to execute, it is no to then follow the steps (5);
(5) for the file that each is scanned, file matching service is obtained according to file type first, verifies this document
It whether is the insignificant file of system.If the file 1, scanned is negligible file, scanning thread is without any processing, text
Part stays under former catalogue;If the file 2, scanned is that can not ignore file, call file matching service to file progress
With filtering.If it fails to match, file movement is backed up under path, otherwise gives file to document processing module processing.Such as
Fruit document processing module processing result is " waiting to be processed ", then file is stayed under former catalogue and is not processed, otherwise that file is mobile
To under backup path;
(6) it after having handled all files scanned, goes to step (3) and continues to execute.
What the present invention did not elaborated partly belongs to techniques well known.
Claims (5)
1. a kind of middle controlled operation flow dispatching management information system, it is characterised in that including workflow management module, business service module,
Timed task module, profile management module, receiver module, maker module, transmitter module, Data access module,
Profile management module, file scan module, document processing module, file content authentication module, file sending module, model
With file conversion module;Wherein:
Workflow management module: it is made of workflow manager, flow scheduling device and flow processor three parts;Wherein workflow manager
Order is obtained from document processing module, obtains workflow management parameter and flow scheduling parameter, management from profile management module
All flow instances for waiting scheduling and being currently running;Flow scheduling device is obtained from workflow manager to scheduling flow, according to tune
Degree strategy chooses process, and flow processor is transferred to start the process;Flow processor is obtained from document processing module and is reported, from
Profile management module obtains process configuration parameter, gives flow scheduling parameter to flow scheduling engine, provides flow processing
Service;
Business service module: receiving the calling of process scheduling engine, provides order, task and is reported in flow scheduling and data visit
Required all kinds of business services when asking, including inquiry operation, reception operation, review operations, generation operation, transmission operation, cancellation
Operation;Wherein, the processing of operation calls receiver module is received, the processing of operation calls maker module is generated, sends operation calls
Transmitter module processing, other data access operations call Data access module processing;
Timed task module: timed task parameter is obtained from profile management module, is set in the time of agreement by timed task
Fixed parameter starts timed task, and timed task is allowed to be executed at a certain moment once, or since certain moment, by the specified time
Interval repeats repeatedly;The execution parameter of pending timed task, timed task is configurable;
Receiver module: receiving the reception parameter of business service module, completes to receive operation, and reception result is back to business
Service module;During executing reception operation, Data access module is called to carry out data storage;Not according to data type
With different receivers is provided, data type is different, and reception behavior features are also different, can be extended to the type of receiver,
To meet system requirements;
Maker module: receiving the generation parameter of business service module, completes to generate operation, and be back to business for result is generated
Service module;During executing generation operation, Data access module is called to carry out data storage;Not according to data type
With different generators is provided, data type is different, and generation behavior is also different, can be extended to the type of generator,
To meet system requirements;
Transmitter module: receiving the transmission parameter of business service module, completes to send operation, and be back to business for result is sent
Service module;During executing transmission operation, Data access module is called to carry out data storage;When sending, mould is called
Internal model object is converted to corresponding external interface file with file conversion module by type, and calls file sending module will be outer
Portion's interface document is sent by specified sending method;External interface definition is different, and the behavior of transmitter is also different;
Data access module: being connect in a manner of being adapted to external data base, receives business service module, receiver module, generation
The data access request of device module and transmitter module provides data access as a result, providing the inquiry, more of data for system
Newly, add and delete four class basic operations;
Profile management module: management system configuration file is workflow management module, timed task module, file transmission mould
Block and file scan module provide configuration parameter;And provide configuration parameter modification service;
File scan module: when external interface is file format, sweep parameter is obtained from profile management module, is periodically swept
Specified file path is retouched, file is matched, filter, remove and is backed up, file process is transferred to for successful match file
Module executes subsequent operation, otherwise provides the illegal prompt of file;
Document processing module: when external interface is file format, the file of file scan module is received, file content is called to test
Demonstrate,prove the legitimacy of module verification file content;Calling model and file conversion module complete external interface file to internal model pair
The conversion of elephant;Workflow manager in call flow management module handles order;Flow processing in call flow management module
Device handles task confirmation report and completion report;
File content authentication module: when external interface is file format, the calling of document processing module is received, is completed in file
Hold verification operation;File type is different, and verifying logic may be different;
Model and file conversion module: when external interface is file format, the calling of document processing module is received, outside is provided
Conversion of the interface document to internal model object;The calling of receiver transmitter module provides internal model object to external interface
The conversion of file, the external interface file that different internal model objects is converted into is different, different external interface file conversions
At internal model object it is also different;The transformation rule of internal model object and external interface file is configurable;
File sending module: when external interface is file format, file to be sent is received, is obtained from profile management module
Parameter is sent, file is provided and sends service;File sending method includes that FTP is sent, SSH is sent, can be according to sending method
Difference is extended to service type is sent, to meet system requirements.
2. a kind of middle controlled operation flow dispatching management information system according to claim 1, it is characterised in that: the process
Management module realizes that process is as follows:
(1) workflow manager obtains workflow management parameter from profile management module, including etc. process queue to be scheduled
The maximum capacity of maximum capacity, running process uses the parameter initialization and Booting sequence manager of acquisition;
(2) Booting sequence processor, flow processor obtain process configuration parameter from profile management module, and by process tune
Degree parameter gives flow scheduling engine, provides flow processing service;
(3) workflow manager obtains flow scheduling parameter, including flow scheduling strategy, flow scheduling from profile management module
Time interval;Corresponding dispatch service is searched according to flow scheduling strategy, initializes and line is dispatched in Booting sequence scheduler, unlatching
Journey;
(4) workflow manager obtains order from document processing module, and does following processing: a. judges the process to be scheduled such as current
Whether queue has reached maximum capacity, if had reached, process addition failure is returned " waiting to be added ";If not up to,
Process is added to etc. in process queue to be scheduled, is returned " adding successfully ";B. workflow manager management process mark and stream
The mapping relations of journey example, the flow instance for facilitating access to be managed;
(5) currently whether running process queue reaches maximum capacity to flow scheduling device periodic detection, if having reached maximum
Capacity, fixed time intervals detect again behind interval, otherwise do following processing: a, by flow scheduling strategy from workflow manager etc.
The flow instance of a highest priority is obtained in process queue to be scheduled;B, the flow instance that will acquire is moved from waiting list
Enter operation queue;C, call flow processor is disposed, starts the process;
(6) during flow scheduling, task, order report are by the generation of flow scheduling engine calling business service module, task
Report is obtained by flow processor from document processing module, and then executes flow processing request, and flow processing request includes pending
Process wakes up pending process, cancels process, restarts process;
(7) at the end of certain scheduling flow living example, workflow manager removes the process from operation queue, and clean-up process phase
Close data.
3. a kind of middle controlled operation flow dispatching management information system according to claim 1, it is characterised in that: the timing
Task module realizes that process is as follows:
(1) all pending timed tasks of user configuration and parameter is executed, timed task module is from profile management module
Timed task parameter is obtained, initializes and starts timed task scheduler;
(2) all timed task and timed task monitor is registered, there are two types of logon modes for timed task: a, according to configuration text
The timed task parameter configured in part registers all timed task and task monitor;B, the dynamic registration when system is run
Timed task and task monitor;
(3) a listening thread is opened for each timed task to succeed in registration, monitors the timed events of the task setting;
(4) start timed task by the parameter of timed task setting in the time of agreement, timed task is allowed to execute one at a certain moment
It is secondary, or since certain moment, repeated repeatedly by specified time interval, when timed task starts to execute, adjust back this
The starting monitor method of business;
(5) after timed task executes, the end monitor method of the task is adjusted back.
4. a kind of middle controlled operation flow dispatching management information system according to claim 1, it is characterised in that: the file
Scan module realizes that process is as follows:
(1) from profile management module obtain sweep parameter, including system need adaptation, the title of every kind of adaptation and
Matching rule, that is, adaptation can matched file type, for file matching service setting match parameter;
(2) sweep parameter is obtained from profile management module, including all file scan catalogues, file backup path, text
Part trace interval, and file opening scans thread;
(3) for each file scan path, interval scan is primary at every fixed time, obtains All Files under the path;
(4) it if any file has not been obtained, goes to step (3) and continues to execute, it is no to then follow the steps (5);
(5) for the file that each is scanned, file matching service is obtained according to file type first, whether is verifying this document
For the insignificant file of system, if a, the file scanned are negligible file, scanning thread is without any processing, and file stays
Under former catalogue;If file b, scanned is that can not ignore file, file matching service is called matched to file
Filter;If it fails to match, file movement is backed up under path, otherwise file is given to document processing module processing, if literary
Part processing module processing result is " waiting to be processed ", then file is stayed under former catalogue and is not processed, and is otherwise moved to file standby
Under part path;
(6) it after having handled all files scanned, goes to step (3) and continues to execute.
5. a kind of middle controlled operation flow dispatching management information system according to claim 1, it is characterised in that: the system is real
It is existing that steps are as follows:
(1) activation system;
(2) file scan module periodic scanning specified file path matches the All Files scanned, is filtered, is removed
And backup;If this document matching is unsuccessful, it is considered as garbage files, is not processed after removal;For the file of successful match,
If this document is negligible file, file is stayed under scan path and is not processed, will be literary after file is otherwise removed backup
Part is given document processing module and is handled;
(3) document processing module gives file to file content authentication module, carries out legitimate verification, then holds if the verification passes
Row step (4), otherwise terminates the processing to this document, continues with alternative document;
(4) according to file type and file content, document processing module gives file to model and file conversion module, by file
It is converted into corresponding internal model object, workflow management module is transferred to be handled;
(5) the received model object of workflow management resume module executes step if received model object type is order object
Suddenly (6) then follow the steps (13), if received model if received model object type is that task confirms report objects
Object type is Mission Accomplishment Report object, thens follow the steps (14);
(6) workflow management module obtains the corresponding process parameter of the order object from profile management module, according to the process
The waiting scheduling queue of workflow manager is added in parameter product process object instance;
(7) flow scheduling device is using specified flow scheduling strategy, periodically from the process queue to be scheduled such as workflow manager
A flow instance is obtained, which is added to operation queue, and call flow processor is handled, flow processor is by process
Scheduling parameter gives flow scheduling engine, opens scheduling flow;
(8) after process is opened, what the conversion of flow scheduling engine calling business service module, first persistence order file generated is ordered
Single object;
(9) flow scheduling engine calling business service module, generate and save acknowledgement of orders report, and by acknowledgement of orders report pair
As being converted into acknowledgement of orders report file, it is sent to order sender;
(10) system manager's completion order review operations, preservation auditing result, flow scheduling engine calling business service module,
Auditing result is converted into order audit report, is sent to order sender, if audit passes through, continues to execute step (11),
Otherwise terminate process, execute step (17);
(11) flow scheduling engine calling business service module generates according to order data and saves task object, for each
The task object of a generation opens task schedule process, and it is step (12) to (15) that task schedule process, which executes step,;
(12) task object of generation is converted into assignment file by flow scheduling engine calling business service module, is sent to and is appointed
Be engaged in recipient;
(13) when file scan module receives task confirmation report file, document processing module, document processing module are given
File content is verified, and after completing file to the conversion of model, call flow processor is continued with;Flow processing module is called
Flow scheduling engine, wakes up the corresponding flow instance of this document, and flow scheduling engine calling business service module saves confirmation report
Object is accused, Mission Accomplishment Report is continued waiting for;
(14) when file scan module receives Mission Accomplishment Report file, document processing module, document processing module are given
File content is verified, and after completing file to the conversion of model, call flow processor is continued with;Flow processing module is called
Flow scheduling engine, wakes up the corresponding flow instance of this document, and it is complete to save task for flow scheduling engine calling business service module
At report objects;
(15) after task schedule process, workflow manager terminates and removes the task schedule process;
(16) after the completion of the scheduling flow for all tasks that order decomposition goes out, flow scheduling engine calling business service module,
Order completion report is generated and saved, and order completion report object is converted into order completion report file, is sent to order
Sender;
(17) after order dispatch process, workflow manager terminates and removes the process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410265833.0A CN104063273B (en) | 2014-06-13 | 2014-06-13 | A kind of middle controlled operation flow dispatching management information system and implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410265833.0A CN104063273B (en) | 2014-06-13 | 2014-06-13 | A kind of middle controlled operation flow dispatching management information system and implementation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104063273A CN104063273A (en) | 2014-09-24 |
CN104063273B true CN104063273B (en) | 2019-07-12 |
Family
ID=51550996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410265833.0A Active CN104063273B (en) | 2014-06-13 | 2014-06-13 | A kind of middle controlled operation flow dispatching management information system and implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104063273B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293687B (en) * | 2015-06-25 | 2019-11-19 | 腾讯科技(深圳)有限公司 | A kind of control method and device being packaged process |
CN107085605B (en) * | 2017-04-12 | 2020-06-09 | 泰康保险集团股份有限公司 | Method and device for data packaging and electronic equipment |
CN107480886A (en) * | 2017-08-15 | 2017-12-15 | 上海数聚软件系统股份有限公司 | Mission bit stream processing method |
CN107733922B (en) * | 2017-11-20 | 2020-12-08 | 百度在线网络技术(北京)有限公司 | Method and apparatus for invoking a service |
CN108462718A (en) * | 2018-03-27 | 2018-08-28 | 南京红松信息技术有限公司 | Data scheduling platform and its implementation |
CN109949129A (en) * | 2019-03-12 | 2019-06-28 | 北京思特奇信息技术股份有限公司 | A kind of order processing system and method for high concurrent |
CN110889369A (en) * | 2019-11-25 | 2020-03-17 | 泰康保险集团股份有限公司 | Self-service machine equipment and operation method thereof |
CN111949326A (en) * | 2020-08-03 | 2020-11-17 | 杭州当虹科技股份有限公司 | Micro-service workflow method based on Activiti |
CN112529389A (en) * | 2020-12-02 | 2021-03-19 | 哈尔滨商业大学 | Analysis system for service internet characteristics |
CN112948475A (en) * | 2021-01-25 | 2021-06-11 | 上海契云科技有限公司 | Data import and export subsystem |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101998288A (en) * | 2010-11-04 | 2011-03-30 | 哈尔滨工业大学 | TD-LTE-based wideband multimedia cluster system and method for implementing hierarchical dispatching of multiple dispatcher stations of same |
CN102663543A (en) * | 2012-03-22 | 2012-09-12 | 北京英孚斯迈特信息技术有限公司 | Scheduling system used for enterprise data unification platform |
CN102681885A (en) * | 2011-03-18 | 2012-09-19 | 新奥特(北京)视频技术有限公司 | Media asset management system capable of separating operations |
CN102916992A (en) * | 2011-08-03 | 2013-02-06 | 中兴通讯股份有限公司 | Method and system for scheduling cloud computing remote resources unifiedly |
CN103218677A (en) * | 2012-01-20 | 2013-07-24 | 广州从兴电子开发有限公司 | Automatic dispatch control method, automatic dispatch control device and automatic dispatch control system for processes |
-
2014
- 2014-06-13 CN CN201410265833.0A patent/CN104063273B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101998288A (en) * | 2010-11-04 | 2011-03-30 | 哈尔滨工业大学 | TD-LTE-based wideband multimedia cluster system and method for implementing hierarchical dispatching of multiple dispatcher stations of same |
CN102681885A (en) * | 2011-03-18 | 2012-09-19 | 新奥特(北京)视频技术有限公司 | Media asset management system capable of separating operations |
CN102916992A (en) * | 2011-08-03 | 2013-02-06 | 中兴通讯股份有限公司 | Method and system for scheduling cloud computing remote resources unifiedly |
CN103218677A (en) * | 2012-01-20 | 2013-07-24 | 广州从兴电子开发有限公司 | Automatic dispatch control method, automatic dispatch control device and automatic dispatch control system for processes |
CN102663543A (en) * | 2012-03-22 | 2012-09-12 | 北京英孚斯迈特信息技术有限公司 | Scheduling system used for enterprise data unification platform |
Also Published As
Publication number | Publication date |
---|---|
CN104063273A (en) | 2014-09-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104063273B (en) | A kind of middle controlled operation flow dispatching management information system and implementation method | |
CN106452841B (en) | Method for using transmission service quality in robot operating system | |
CN105808320B (en) | Equipment virtualization system and method based on L inux container | |
CN106874087A (en) | A kind of block chain intelligence contract timed task dispatching method | |
CN111679821B (en) | Middle platform system based on micro-service and software definition middle platform system construction method | |
CN106612188A (en) | Method and device for extending software function based on micro service architecture | |
CN102148817A (en) | Network equipment configuration method, client, server and network system | |
CN114844930B (en) | Vehicle-end remote control method and system based on SOA architecture | |
CN104239143A (en) | Satellite data receiving task scheduling system based on OSGI (Open Service Gateway Initiative) and workflow and satellite data receiving task scheduling method based on OSGI and workflow | |
CN109873867A (en) | Express cabinet information transmission method, device and system, express cabinet and storage medium | |
CN102509180A (en) | Server, activity program management method and activity program management system | |
CN109739665A (en) | Interface managerial method, device, server and storage medium | |
CN107977260A (en) | Task submits method and device | |
CN105468682A (en) | Event scheduling system | |
CN101610288A (en) | A kind of method for intelligently routing enterprise service bus | |
CN110457555A (en) | Collecting method, device and computer equipment, storage medium based on Docker | |
CN103678488A (en) | Distributed mass dynamic task engine and method for processing data with same | |
CN101562622B (en) | Method for executing user request and corresponding server thereof | |
US20080141263A1 (en) | Embedded agent framework and method of providing ubiquitous services using the same | |
CN117041179A (en) | Method, device and storage medium for opening computing power network | |
CN102130968A (en) | Water resource monitoring communication system and method | |
KR100646853B1 (en) | Apparatus and method for generating satellite mission scheduling | |
CN116149628A (en) | Car end service assembly method, architecture, device, equipment and medium | |
CN103064688A (en) | Workflow universal service method and system | |
US20120136747A1 (en) | Service creation system and implementing method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |