CN108255467A - The method, apparatus and system of service are performed according to workflow sequence - Google Patents
The method, apparatus and system of service are performed according to workflow sequence Download PDFInfo
- Publication number
- CN108255467A CN108255467A CN201611223745.XA CN201611223745A CN108255467A CN 108255467 A CN108255467 A CN 108255467A CN 201611223745 A CN201611223745 A CN 201611223745A CN 108255467 A CN108255467 A CN 108255467A
- Authority
- CN
- China
- Prior art keywords
- flow
- service
- sequence
- definition information
- flow definition
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
Abstract
The present invention provides a kind of method, apparatus and system that service is performed according to workflow sequence, definitim flow can be passed through, Booting sequence, then sequence performs flow nodes service, so as to effectively solve the problems, such as to need sequence to call various services successively in application system service invocation procedure and then complete integrity service calling function.This method includes:Definitim flow, and preserve flow definition information;According to call request Booting sequence example, then the corresponding service of each flow nodes in flow is sequentially performed according to the flow definition information of preservation.
Description
Technical field
Computer technology and software field of the present invention more particularly to it is a kind of according to workflow sequence perform service method,
Apparatus and system.
Background technology
Workflow engine, i.e. Workflow Engine.As a part for application system, provided for application system to each
Application system is determinative to determine that information transmits the cores such as routing, content rating according to the different of role, the division of labor and condition
Solution.Workflow engine includes the critical functions such as the node administration of flow, flow direction management, flow sample management.
But current workflow engine such as JBPM etc. use it is relative complex, by taking JBPM as an example, in definitim flow section
It needs designer plug-in units or other design tools to be installed in developing instrument, and the configuration flow by way of picture before point
Node, configuration mode are relatively cumbersome.In addition it needs to rely on a large amount of jar packets before using JBPM, increases applied system design
Complexity, can also have certain loss to the performance of application system.
It follows that in the prior art, when the flow to be called of application system is configured using workflow engine, using system
The configuration complexity of system is higher, and workflow engine, which is not, is made to measure for application system, and the performance of application system can be produced
Raw certain loss, there is also the risks for leading to application system failure.
Invention content
In view of this, the present invention provides a kind of method, apparatus and system that service is performed according to workflow sequence, Neng Goutong
Definitim flow is crossed, Booting sequence, then sequence performs flow nodes service, so as to effectively solve application system service invocation procedure
Middle needs sequence calls various the problem of servicing and then completing integrity service calling function successively.
To achieve the above object, according to an aspect of the invention, there is provided one kind performs service according to workflow sequence
Method.
A kind of method for performing service according to workflow sequence of the present invention includes:Definitim flow, and preserve flow definition
Information;According to call request Booting sequence example, then it is sequentially performed in flow according to the flow definition information of preservation and respectively flows
The corresponding services of Cheng Jiedian.
Optionally, the flow definition information further includes:The corresponding service of process name, each flow nodes, each flow section
Point whether be first node and each flow nodes execution sequence information.
Optionally, flow definition information is preserved to further include:The flow definition information is preserved using database.
Optionally, flow definition information is preserved to further include:It is preserved using Redis cachings and/or application system configuration file
The flow definition information.
To achieve the above object, according to another aspect of the present invention, it provides one kind and performs service according to workflow sequence
Device.
A kind of device that service is performed according to workflow sequence of the present invention includes:Flow definition module, for defining stream
Journey, and flow definition information is preserved;Process control module, for according to call request Booting sequence example, then pressing
The corresponding service of each flow nodes in flow is sequentially performed according to the flow definition information of preservation.
Optionally, the flow definition information further includes:The corresponding service of process name, each flow nodes, each flow section
Point whether be first node and each flow nodes execution sequence information.
Optionally, described device further includes:Database, for preserving the flow definition information.
Optionally, described device further includes:Redis is cached and/or application system configuration file preserving module, for preserving
The flow definition information.
To achieve the above object, in accordance with a further aspect of the present invention, it provides one kind and performs service according to workflow sequence
System.
A kind of system for performing service according to workflow sequence of the present invention includes memory and processor, wherein:Storage
Device is for storing instruction;Processor is used to perform the side that service is performed according to workflow sequence of the present invention according to described instruction
Method.
According to the technique and scheme of the present invention, by definitim flow information, application system can pass through call flow control module
Start a flow instance, then sequence performs all flow nodes services since first node, should so as to effectively realize
Various services is called to realize the purposes that integrity services are called with systematic order, and compared with the prior art for, it is lightweight, simple, real
With convenient for extension and secondary development, it is simple to have reached design, and convenient purpose is configured;By by flow definition information preserve to
In database, so as to realize the flexible configuration of flow and flow nodes;Delayed by preserving flow definition information to Redis
Deposit or the configuration file of application system in, so as to flexibly preserve flow definition information, to facilitate the flow to defining
Flexibly called.
Description of the drawings
Attached drawing does not form inappropriate limitation of the present invention for more fully understanding the present invention.Wherein:
Fig. 1 is the signal of the key step of the method according to embodiments of the present invention that service is performed according to workflow sequence
Figure;
Fig. 2 is the signal of the main flow of the method according to embodiments of the present invention that service is performed according to workflow sequence
Figure;
Fig. 3 is showing for the service invocation procedure of the method according to embodiments of the present invention that service is performed according to workflow sequence
It is intended to;
Fig. 4 is the signal of the main modular of the device according to embodiments of the present invention that service is performed according to workflow sequence
Figure;
Fig. 5 is the signal of the major part of the system according to embodiments of the present invention that service is performed according to workflow sequence
Figure.
Specific embodiment
It explains below in conjunction with attached drawing to the exemplary embodiment of the present invention, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
For clarity and conciseness, the description to known function and structure is omitted in sample in following description.
The present invention mainly solve application system service invocation procedure in, need sequence call successively it is various service so that it is complete
The problem of integral service call function.
As previously mentioned, in the prior art, when application system will realize service call, typically using workflow engine into
Row.But workflow engine frame, such as JBPM, it needs that designer plug-in units or other design tools are installed, passes through the side of picture
Formula configuration flow node, configuration mode is relatively cumbersome, and using preceding needing to rely on a large amount of jar packets, such as component JBPM projects
Importing JAR is at least needed to be surrounded by:jbpm.jar、activation.jar、antlr.jar、commons-
collections.jar、commons-logging.jar、dom4j.jar、hibernate-code.jar、junit.jar、
Log4j.jar, hsqldb.jar, javassist.jar, juel-api.jar and juel-impl.jar, complex steps increase
The complexity of applied system design is added, larger loss is also had to the performance of application system.
In the embodiment of the present invention, flow can be directly defined in database or other memory modules, dealt with
Relatively convenient.When realization sequence is needed to perform the function of special services, the flow defined in flow definition module is needed.When should
When starting a flow instance with system call flow control module, process control module sequence can be held since servicing first node
All flow nodes services of row.The Technical Design of the embodiment of the present invention is simple, and configuration is convenient, can effectively solve work on hand
The shortcomings that flowing engine framework has the advantages that lightweight, simple, practicality, and convenient for extension and secondary development.Wherein, flow
Definition module refers to the relevant information of flow definition to be directly stored in database or cache by the language of programming
In module.Process control module is the maincenter of Row control, the method that it provides Booting sequence, which takes in call flow
The Core Features such as the method for business, processing exception are attained by the effect with various language, and it is convenient to realize.
Fig. 1 is the signal of the key step of the method according to embodiments of the present invention that service is performed according to workflow sequence
Figure.
As shown in Figure 1, a kind of method for performing service according to workflow sequence of the embodiment of the present invention includes:
Step S11:Definitim flow, and preserve flow definition information.The purpose of this step is definitim flow, configuration flow
Under various information.If whether process name, the corresponding service of each flow nodes, each flow nodes are first node and each flow
Information of execution sequence of node etc. belongs to the content of flow definition information.
It has been configured after flow definition information, database can have been utilized to preserve flow definition information.
After this step definitim flow, from step S12 processing.
Step S12:According to call request Booting sequence example, then it is sequentially performed according to the flow definition information of preservation
The corresponding service of each flow nodes in flow.According to the call request of application system, process control module starts a flow instance,
After Booting sequence example, flow definition information is obtained by querying flow definition module, then according to flow definition information by stream
The sequence that journey defines performs each service.
In the embodiment of the present invention, be configured completion flow and flow nodes in addition to that can be saved in database, can also
But it is not limited to be configured in application system configuration file or Redis cachings.If necessary to which flow and flow nodes are cooperated to
It puts in file, needs to generate configuration file by application system, then flow and flow nodes are written according to the form of XML respectively
Into configuration file;If necessary to which flow and flow section are configured in Redis cachings, then delay firstly the need of first installation Redis
It deposits, then flow and flow nodes is written in Redis cachings.Above-mentioned alternative solution is other realization sides of data storage
Formula.
As a result, in the embodiment of the present invention, mainly include according to the method that workflow sequence performs service:Determine first in flow
Flow defined in adopted module is given a definition service node in flow, and each flow nodes are exactly a specific service, need to set
Whether the flow nodes are the attributes such as the execution sequence of first node and each flow nodes.When application system call flow controls
When module starts a flow instance, process control module can sequentially perform all flow nodes clothes since first node service
Business.
Fig. 2 is the signal of the main flow of the method according to embodiments of the present invention that service is performed according to workflow sequence
Figure.
As shown in Fig. 2, realize the embodiment of the present invention according to workflow sequence perform service method can be based on it is as follows
Part:2. 3. 4. 1. process control module services flow definition module application system.
1. application system:Refer to need the application system of Booting sequence example.
2. flow definition module:The flow defined in flow definition module is first had to, is given a definition service node in flow, often
A node is exactly a specific service, needs to set whether the node is the categories such as first node and the execution sequence of each node
Property.
3. process control module:Booting sequence example and sequence perform the service that flow nodes define.
4. it services:Referring to needs the service that performs, such as can be Web service or other application system needs to adjust
Service, for example, Jingdone district Jeff JSF service etc..
Specific call flow is as follows:2. flow definition module definition flow first, and give a definition service node in flow, often
A node is exactly a specific service, needs to set whether node is the attributes such as first node and the execution sequence of each node;
1. application system, when calling 3. process control module Booting sequence example, 3. process control module can be from 2. flow definition module
Middle querying flow defines information, and automatic sequence performs the 4. service that flow nodes define, and completes whole flow process example service
It calls.
Fig. 3 is showing for the service invocation procedure of the method according to embodiments of the present invention that service is performed according to workflow sequence
It is intended to.
As shown in figure 3, application system module specifically calls the process of service as follows:When application system call flow controls mould
When block starts a flow instance, process control module can be sequentially performed all flow nodes clothes since first node service
Business.The method that service is called by workflow sequence of the embodiment of the present invention, does not need to developing instrument and additionally installs designer to insert
Part or other design tools, it is not required that rely on a large amount of jar packets, it is only necessary to which a jar packet can be realized, and design is simple, matches
It puts conveniently, so as to effectively solve the problem of that the complicated consumption of work on hand stream engine framework configuration can be higher.
The technical solution of method according to workflow sequence calling service according to embodiments of the present invention, which can be seen that, to be passed through
Definitim flow information, application system can start a flow instance by call flow control module, then suitable since first node
Sequence performs all flow nodes services, various services is called to realize integrity service so as to effectively realize application system sequence
The purpose of calling, and compared with the prior art for, it is lightweight, simple, practical, convenient for extension and secondary development, reached design letter
It is single, convenient purpose is configured;By preserving flow definition information into database, so as to realize flow and flow nodes
Flexible configuration;By preserving flow definition information into Redis cachings or the configuration file of application system, so as to spirit
Preservation flow definition information living, flexibly calls the flow defined with facilitating.
Fig. 4 is the signal of the main modular of the device according to embodiments of the present invention that service is performed according to workflow sequence
Figure;
As shown in figure 4, a kind of device 40 that service is performed according to workflow sequence of the embodiment of the present invention is determined including flow
Adopted module 401, process control module 402, wherein:Flow definition module 401 is used for definitim flow, and flow definition information is given
To preserve;Process control module 402 is used for according to call request Booting sequence example, then according to the flow definition information of preservation
It is sequentially performed the corresponding service of each flow nodes in flow.
Wherein, flow definition information may also include:The corresponding service of process name, each flow nodes, each flow nodes are
The information of the no execution sequence for being first node and each flow nodes.
In the embodiment of the present invention, device 40 may also include:Database (not shown), for preserving the flow definition
Information.
In addition, device 40 may also include:Redis is cached and/or application system configuration file preserving module (is not shown in figure
Go out), for preserving the flow definition information.
Fig. 5 is the signal of the major part of the system according to embodiments of the present invention that service is performed according to workflow sequence
Figure.
As shown in figure 5, a kind of system 50 that service is performed according to workflow sequence of the embodiment of the present invention includes memory
501 and processor 502, wherein:Memory 501 is for storing instruction;Processor 502 is used to perform present invention implementation according to instruction
The method that service is performed according to workflow sequence of example.
From the above, it can be seen that by definitim flow information, application system can be opened by call flow control module
A dynamic flow instance, then sequence performs all flow nodes services since first node, so as to effectively realize application
Systematic order calls various services to realize the purposes that integrity services are called, and compared with the prior art for, it is lightweight, simple, practical,
Convenient for extension and secondary development, design is reached simply, convenient purpose is configured;By preserving flow definition information to data
In library, so as to realize the flexible configuration of flow and flow nodes;By by flow definition information preserve to Redis caching or
In the configuration file of application system, so as to flexibly preserve flow definition information, the flow defined is carried out with facilitating
Flexibly call.
Above-mentioned specific embodiment, does not form limiting the scope of the invention.Those skilled in the art should be bright
It is white, depending on design requirement and other factors, various modifications, combination, sub-portfolio and replacement can occur.It is any
Modifications, equivalent substitutions and improvements made within the spirit and principles in the present invention etc., should be included in the scope of the present invention
Within.
Claims (9)
- A kind of 1. method that service is performed according to workflow sequence, which is characterized in that including:Definitim flow, and preserve flow definition information;According to call request Booting sequence example, then each flow in flow is sequentially performed according to the flow definition information of preservation The corresponding service of node.
- 2. according to the method described in claim 1, it is characterized in that, the flow definition information further includes:Process name, each stream Cheng Jiedian it is corresponding service, each flow nodes whether be first node and each flow nodes execution sequence information.
- 3. it according to the method described in claim 1, is further included it is characterized in that, preserving flow definition information:It is protected using database Deposit the flow definition information.
- 4. it according to the method described in claim 1, is further included it is characterized in that, preserving flow definition information:It is cached using Redis And/or application system configuration file preserves the flow definition information.
- 5. a kind of device that service is performed according to workflow sequence, which is characterized in that including:Flow definition module for definitim flow, and flow definition information is preserved;Process control module, for according to call request Booting sequence example, then according to the flow definition information of preservation sequence Ground performs the corresponding service of each flow nodes in flow.
- 6. device according to claim 5, which is characterized in that the flow definition information further includes:Process name, each stream Cheng Jiedian it is corresponding service, each flow nodes whether be first node and each flow nodes execution sequence information.
- 7. device according to claim 5, which is characterized in that described device further includes:Database, for preserving the stream Cheng Dingyi information.
- 8. device according to claim 5, which is characterized in that described device further includes:Redis is cached and/or application system System configuration file preserving module, for preserving the flow definition information.
- 9. a kind of system that service is performed according to workflow sequence, which is characterized in that including memory and processor, wherein:The memory is for storing instruction;The processor is used to perform holding according to workflow sequence as described in any one of claim 1-4 according to described instruction The method of row service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611223745.XA CN108255467A (en) | 2016-12-27 | 2016-12-27 | The method, apparatus and system of service are performed according to workflow sequence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611223745.XA CN108255467A (en) | 2016-12-27 | 2016-12-27 | The method, apparatus and system of service are performed according to workflow sequence |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108255467A true CN108255467A (en) | 2018-07-06 |
Family
ID=62719257
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611223745.XA Pending CN108255467A (en) | 2016-12-27 | 2016-12-27 | The method, apparatus and system of service are performed according to workflow sequence |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255467A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110661792A (en) * | 2019-09-18 | 2020-01-07 | 泰康保险集团股份有限公司 | Service ordered calling method and device, electronic equipment and storage medium |
CN112000386A (en) * | 2019-05-08 | 2020-11-27 | 北京奇虎科技有限公司 | Application implementation method and device |
WO2021139778A1 (en) * | 2020-01-10 | 2021-07-15 | 深圳壹账通智能科技有限公司 | System scheduling workflow generation method, system, apparatus, and computer readable storage medium |
CN113542796A (en) * | 2020-04-22 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Video evaluation method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050209836A1 (en) * | 2004-03-17 | 2005-09-22 | Schlumberger Technology Corporation | Method and apparatus and program storage device including an integrated well planning workflow control system with process dependencies |
US20090132580A1 (en) * | 2007-11-21 | 2009-05-21 | General Electric Company | Systems and Methods for Creating and Viewing Clinical Protocols |
CN101882255A (en) * | 2009-05-07 | 2010-11-10 | 中兴通讯股份有限公司 | Workflow device, system and configuration method based on service-oriented architecture |
CN102254246A (en) * | 2011-06-17 | 2011-11-23 | 中国建设银行股份有限公司 | Workflow managing method and system |
CN102831122A (en) * | 2011-06-15 | 2012-12-19 | 阿里巴巴集团控股有限公司 | Data storage method, inquiring method and inquiring device for workflow table |
CN104091222A (en) * | 2014-05-08 | 2014-10-08 | 武大吉奥信息技术有限公司 | Workflow engine supporting multimode driving |
-
2016
- 2016-12-27 CN CN201611223745.XA patent/CN108255467A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050209836A1 (en) * | 2004-03-17 | 2005-09-22 | Schlumberger Technology Corporation | Method and apparatus and program storage device including an integrated well planning workflow control system with process dependencies |
US20090132580A1 (en) * | 2007-11-21 | 2009-05-21 | General Electric Company | Systems and Methods for Creating and Viewing Clinical Protocols |
CN101882255A (en) * | 2009-05-07 | 2010-11-10 | 中兴通讯股份有限公司 | Workflow device, system and configuration method based on service-oriented architecture |
CN102831122A (en) * | 2011-06-15 | 2012-12-19 | 阿里巴巴集团控股有限公司 | Data storage method, inquiring method and inquiring device for workflow table |
CN102254246A (en) * | 2011-06-17 | 2011-11-23 | 中国建设银行股份有限公司 | Workflow managing method and system |
CN104091222A (en) * | 2014-05-08 | 2014-10-08 | 武大吉奥信息技术有限公司 | Workflow engine supporting multimode driving |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000386A (en) * | 2019-05-08 | 2020-11-27 | 北京奇虎科技有限公司 | Application implementation method and device |
CN110661792A (en) * | 2019-09-18 | 2020-01-07 | 泰康保险集团股份有限公司 | Service ordered calling method and device, electronic equipment and storage medium |
CN110661792B (en) * | 2019-09-18 | 2022-04-05 | 泰康保险集团股份有限公司 | Service ordered calling method and device, electronic equipment and storage medium |
WO2021139778A1 (en) * | 2020-01-10 | 2021-07-15 | 深圳壹账通智能科技有限公司 | System scheduling workflow generation method, system, apparatus, and computer readable storage medium |
CN113542796A (en) * | 2020-04-22 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Video evaluation method and device, computer equipment and storage medium |
CN113542796B (en) * | 2020-04-22 | 2023-08-08 | 腾讯科技(深圳)有限公司 | Video evaluation method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102542382B (en) | The method of operating of business rule and device | |
CN108255467A (en) | The method, apparatus and system of service are performed according to workflow sequence | |
CN104331366A (en) | Test case design efficiency promotion method and system | |
CN108052374A (en) | A kind of method and device of deployment container micro services | |
WO2012034440A1 (en) | Method and device for generating database upgrading script | |
US20140237554A1 (en) | Unified platform for big data processing | |
CN105939324A (en) | Message forwarding method and device | |
CN107395674A (en) | A kind of application system accesses the method and device of isomery block platform chain | |
CN110019312A (en) | Read and write data separating dispatching method, device, equipment and medium | |
CN108228149A (en) | It is a kind of can dynamical assemble service APP method for interface adaptation and device | |
CN106383701A (en) | Common multi-protocol data access interface technology-based data service system | |
CN110399107A (en) | Log Method of printing, device, storage medium and equipment | |
CN109116828B (en) | Method and device for configuring model codes in controller | |
CN104239508A (en) | Data query method and data query device | |
CN104410511B (en) | A kind of server management method and system | |
CN108415757A (en) | distributed transaction processing method and device | |
CN105718468A (en) | Method and device for building ODS layer of data warehouse | |
CN101136780A (en) | Method, system to obtain user command information, and user command registered device | |
CN101021916A (en) | Business process analysis method | |
CN109558146A (en) | Application issued method, apparatus and storage medium | |
CN107491700B (en) | Data access method and equipment | |
CN109298899A (en) | A kind of file automating application method of juvenile's game configuration and electronic equipment | |
CN107133243A (en) | A kind of data processing method and server | |
CN112860954A (en) | Real-time computing method and real-time computing system | |
CN104331289A (en) | Method and device for applying plug-in design application to flow processing |
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: 20180706 |
|
RJ01 | Rejection of invention patent application after publication |