CN106529761A - Workflow engine and realization method thereof - Google Patents

Workflow engine and realization method thereof Download PDF

Info

Publication number
CN106529761A
CN106529761A CN201610851660.XA CN201610851660A CN106529761A CN 106529761 A CN106529761 A CN 106529761A CN 201610851660 A CN201610851660 A CN 201610851660A CN 106529761 A CN106529761 A CN 106529761A
Authority
CN
China
Prior art keywords
flow model
work
workflow
target operation
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610851660.XA
Other languages
Chinese (zh)
Inventor
郝海港
邹建军
杨培强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Business System Co Ltd
Original Assignee
Shandong Inspur Business System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Business System Co Ltd filed Critical Shandong Inspur Business System Co Ltd
Priority to CN201610851660.XA priority Critical patent/CN106529761A/en
Publication of CN106529761A publication Critical patent/CN106529761A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The invention provides a workflow engine and a realization method thereof. The workflow engine comprises an organization management module, a workflow model management module and a workflow instance management module, wherein the organization management module is used for allocate at least one role for each user according to attribute information of the user; the workflow model management module is used for setting at least one workflow model, and each workflow model is corresponding to at least two roles; and the workflow instance management module is used for setting at least one workflow instance, when a starting instruction sent by a target user is received, according to a target workflow instance carried in the starting instruction, a target workflow model is determined, and according to the at least two target roles corresponding to the target workflow model and according to the service rule, workflow definition master information and process definition information included in the target workflow model, the target workflow instance is started and pushed. Thus, requirements of various kinds of service can be met.

Description

A kind of workflow engine and its implementation
Technical field
The present invention relates to field of computer technology, more particularly to a kind of workflow engine and its implementation.
Background technology
With the development of computer technology, workflow engine becomes important component part in Workflow Management System, it By modeling tool set up procedural model advance flow process execution, and according to the role of each user reasonably distribute appoint Business, improves the speed that procedural model is carried out.
At present, the design of conventional operation Workflow Management System, can not from multiple functional workflow service angle is provided Result in that system architecture is extremely huge with avoiding, the complexity of system is also with increase.Simultaneously traditional Workflow Management System The function of offer is to realize in an integrated fashion, often has a whole set of the unique body of oneself from data Cun Chudao running environment Architecture, thus often need a business function to be accomplished by arranging a set of engineering Workflow Management System.Therefore, prior art cannot expire The demand of sufficient multiple business.
The content of the invention
Embodiments provide a kind of workflow engine and its implementation, in order to be able to meet multiple business Demand.
In a first aspect, embodiments providing a kind of workflow engine, the engine includes:
Organization and administration module, Work flow model management module and workflow instance management module;
The organization and administration module, for the attribute information according to user, is at least one role of each user's distribution;
The Work flow model management module, for arranging at least one Work flow model, wherein, each workflow mould Type at least two roles of correspondence, each Work flow model include:The main information of business rule, workflow defining and flow definition letter Breath;
The workflow instance management module, for arranging at least one workflow instance, wherein, each workflow reality A kind of corresponding Work flow model of example correspondence, when the enabled instruction of targeted customer's transmission is received, according to the enabled instruction The target operation stream example of carrying, determines target operation flow model, according to the target operation flow model corresponding at least two Target roles, and include that the main information of business rule, workflow defining and flow definition information are opened according to target operation flow model Move and advance the target operation stream example.
Preferably,
The organization and administration module, including:Sub-module stored, first interface and role's distribution sub module;
The sub-module stored, for storing the attribute information of at least one user;
The first interface, for receiving the attribute information of active user, and the attribute information of the active user is sent out Deliver to role's distribution sub module;
Role's distribution sub module, for receiving the attribute information of the active user that the first interface sends, And search whether there is the attribute information consistent with the attribute information of the active user in the sub-module stored, if deposited Then by the attribute information of the active user and the attribute information present in the sub-module stored with the active user Consistent attribute information is contrasted, when comparing result includes different information, by present in the sub-module stored with institute The consistent attribute information of the attribute information of active user is stated, the attribute information of the active user is replaced with, and is described again At least one role of active user's distribution;If it does not, by the attribute information storage of the active user to storage In module, and distribute at least one role for the active user.
Preferably,
The workflow instance management module, the state for being further used for receiving targeted customer's transmission transfer instruction, The procedure information that instruction determines that the target operation stream example is advanced to is transferred according to the state, and by the procedure information It is sent to the targeted customer;
Preferably,
The workflow instance management module, is further used for for the target operation stream example being advanced to corresponding flow process When, to the role's sending out notice for being responsible for the corresponding flow process.
Preferably,
The Work flow model management module, including:Submodule, second interface are set and submodule is updated;
The setting submodule, for arranging at least one Work flow model;
The second interface, for receiving work at present flow model, and the work at present flow model is sent to described Update submodule;
The renewal submodule, for receiving the work at present flow model that the second interface sends, and described Search whether there is the Work flow model consistent with the work at present flow model during submodule is set, if it is present by institute State work at present flow model and Work flow model consistent with the work at present flow model present in submodule is set with described Contrasted, when comparing result includes different information, by it is described setting submodule present in the work at present stream mould The consistent Work flow model of type, replaces with the work at present flow model, and stores the Work flow model after replacing;If do not deposited The work at present flow model is being stored in the setting submodule.
Preferably, the workflow engine is further included:Intervene processing module;
The intervention processing module, for when the workflow instance management module, according to the target operation flow model Corresponding at least two target roles, and according to target operation flow model include the main information of business rule, workflow defining and When flow definition information starts and advances the target operation stream example, the hang-up intervention instruction outside reception, by the target Workflow instance enters into suspended state;And when receive outside startup intervention instruction when, the target operation stream example is entered Enter to running status;
Preferably, the workflow engine is further included:System-monitoring module;
The system-monitoring module, for monitoring the state of the target operation stream example, when monitoring the target work When work stream example is in abnormal operating condition, warning message is sent to the targeted customer.
Second aspect, embodiments provides a kind of implementation method of workflow engine, and the method includes:
At least one Work flow model is set, wherein, each Work flow model at least two roles of correspondence, each work Include as flow model:The main information of business rule, workflow defining and flow definition information;
At least one workflow instance is set, wherein, a kind of each corresponding Work flow model of workflow instance correspondence;
According to the attribute information of user, it is at least one role of each user's distribution;
The enabled instruction that targeted customer sends is received, according to the target operation stream example that the enabled instruction is carried, it is determined that Target operation flow model, according to corresponding at least two target roles of the target operation flow model, and according to target operation Flow model includes that the main information of business rule, workflow defining and flow definition information start and advance the target operation stream reality Example.
Preferably, the implementation method of the workflow engine, further includes:
Receive the attribute information of active user;
The attribute letter for having with the active user is searched whether in the attribute information of at least one user of the storage The consistent attribute information of breath, if it is present by the attribute information of the active user with least one user's of the storage The attribute information consistent with the attribute information of the active user present in attribute information is contrasted, and is included in comparing result During different information, by the attribute information one present in the attribute information of at least one user of the storage with the active user The attribute information of cause, replaces with the attribute information of the active user, and distributes at least one angle for the active user again Color;If it does not exist, then the attribute information of the storage active user, and distribute at least one role for the active user.
Preferably,
It is described according to corresponding at least two target roles of the target operation flow model, and according to target operation stream mould Type include the main information of business rule, workflow defining and flow definition information start and advance the target operation stream example it Afterwards, further include:
The state for receiving targeted customer's transmission transfers instruction, transfers instruction according to the state and determines the target work Make the procedure information that stream example is advanced to, and the procedure information is sent to into the targeted customer;
Preferably,
It is described according to corresponding at least two target roles of the target operation flow model, and according to target operation stream mould Type include the main information of business rule, workflow defining and flow definition information start and advance the target operation stream example it Afterwards, further include:
When the target operation stream example is advanced to corresponding flow process, to the role's sending out notice for being responsible for the corresponding flow process.
Preferably, the implementation method of the workflow engine, further includes:
Receive work at present flow model;
Search whether there is the work consistent with the work at present flow model at least one Work flow model Flow model, if it is present by the work at present flow model with present at least one Work flow model with it is described The consistent Work flow model of work at present flow model is contrasted, when comparing result includes different information, at least one by described in Work flow model consistent with the work at present flow model present in Work flow model is planted, the work at present stream is replaced with Model, and store the Work flow model after replacing;If it does not exist, then the storage work at present flow model.
Preferably,
It is described according to corresponding at least two target roles of the target operation flow model, and according to target operation stream mould Type include the main information of business rule, workflow defining and flow definition information start and advance the target operation stream example it Afterwards, further include:The target operation stream example is entered into suspended state by the hang-up intervention instruction outside receiving;And work as Receive outside startup intervention instruction when, the target operation stream example is entered into into running status;
Preferably,
It is described according to corresponding at least two target roles of the target operation flow model, and according to target operation stream mould Type include the main information of business rule, workflow defining and flow definition information start and advance the target operation stream example it Afterwards, further include:The state of the target operation stream example is monitored, when monitoring the target operation stream example in abnormal During running status, warning message is sent to the targeted customer.
It can be seen that, a kind of workflow engine is embodiments provided, the workflow engine is by the organization and administration mould Attribute information of the tuber according to user, is that each user distributes at least one role, and the Work flow model management module is arranged At least one Work flow model, each Work flow model at least two roles of correspondence, each Work flow model include:Business Rule, the main information of workflow defining and flow definition information, the workflow instance management module arrange at least one workflow Example, wherein, a kind of each corresponding Work flow model of workflow instance correspondence, in the startup for receiving targeted customer's transmission During instruction, according to the target operation stream example that the enabled instruction is carried, target operation flow model is determined, according to the target work Make corresponding at least two target roles of flow model, and business rule, workflow defining are included according to target operation flow model Main information and flow definition information start and advance the target operation stream example.The present invention is by pre-setting at least one tool There are the Work flow model and workflow instance of corresponding relation, when the enabled instruction of targeted customer's transmission is received, direct basis The workflow instance that enabled instruction is carried starts corresponding Work flow model, therefore, it is possible to meet the demand of multiple business.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of structural representation of workflow engine that one embodiment of the invention is provided;
Fig. 2 is a kind of structural representation of workflow engine that another embodiment of the present invention is provided;
Fig. 3 is a kind of structural representation of workflow engine that another embodiment of the invention is provided;
Fig. 4 is a kind of structural representation of workflow engine that another embodiment of the invention is provided;
Fig. 5-1 is a kind of structural representation of workflow engine that another embodiment of the invention is provided;
Fig. 5-2 is a kind of workflow engine place system structure diagram that one embodiment of the invention is provided;
Fig. 6 is a kind of flow chart of the implementation method of workflow engine that one embodiment of the invention is provided;
Fig. 7 is a kind of flow chart of the implementation method of workflow engine that another embodiment of the present invention is provided;
Fig. 8 is a kind of workflow defining model structure schematic diagram that one embodiment of the invention is provided;
Fig. 9 is a kind of workflow instance model structure schematic diagram that one embodiment of the invention is provided;
Figure 10 is a kind of workflow organization model structure schematic diagram that one embodiment of the invention is provided;
Figure 11 is a kind of workflow instance state schematic diagram that one embodiment of the invention is provided;
Figure 12 is a kind of work process flow example state schematic diagram that one embodiment of the invention is provided;
Figure 13 is a kind of workflow link example state schematic diagram that one embodiment of the invention is provided;
Figure 14 is a kind of Workflow work item example state schematic diagram that one embodiment of the invention is provided;
Figure 15 is customer attribute information renewal in a kind of workflow engine implementation method that one embodiment of the invention is provided Method flow diagram;
Figure 16 is Work flow model renewal side in a kind of workflow engine implementation method that one embodiment of the invention is provided Method flow chart.
Specific embodiment
For making purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention, rather than the embodiment of whole, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, embodiments providing a kind of workflow engine, the workflow engine can include:
Organization and administration module 101, Work flow model management module 102 and workflow instance management module 103;
The organization and administration module 101, for the attribute information according to user, is each at least one angle of user's distribution Color;
The Work flow model management module 102, for arranging at least one Work flow model, wherein, each work Flow model at least two roles of correspondence, each Work flow model include:The main information of business rule, workflow defining and flow process are fixed Adopted information;
The workflow instance management module 103, for arranging at least one workflow instance, wherein, each work A kind of corresponding Work flow model of stream example correspondence, when the enabled instruction of targeted customer's transmission is received, according to the startup The target operation stream example that instruction is carried, determines target operation flow model, corresponding at least according to the target operation flow model Two target roles, and the main information of business rule, workflow defining and flow definition letter are included according to target operation flow model Breath starts and advances the target operation stream example.
According to above-described embodiment, by the attribute information for organizing module according to user, it is each user point With at least one role, the Work flow model management module, at least one Work flow model, each Work flow model are set At least two roles of correspondence, each Work flow model include:The main information of business rule, workflow defining and flow definition letter Breath, the workflow instance management module arrange at least one workflow instance, wherein, each workflow instance correspondence phase A kind of Work flow model answered, when the enabled instruction of targeted customer's transmission is received, according to the mesh that the enabled instruction is carried Mark workflow instance, determines target operation flow model, according to corresponding at least two target roles of the target operation flow model, And include that the main information of business rule, workflow defining and flow definition information start and propulsion institute according to target operation flow model State target operation stream example.The present invention is by pre-setting at least one Work flow model with corresponding relation and workflow reality Example, when the enabled instruction of targeted customer's transmission is received, directly starts according to the workflow instance that enabled instruction is carried corresponding Work flow model, therefore, it is possible to meet the demand of multiple business.
In an embodiment of the invention, as shown in Fig. 2 for the corresponding role of attribute information and user for ensureing user Can upgrade in time, including:
The organization and administration module 101, including:Sub-module stored 201, first interface 202 and role's distribution sub module 203;
The sub-module stored 201, for storing the attribute information of at least one user;
The first interface 202, for receiving the attribute information of active user, and by the attribute information of the active user Send to role's distribution sub module;
Role's distribution sub module 203, for receiving the attribute of the active user of the transmission of the first interface 202 Information, and search whether there is the attribute letter consistent with the attribute information of the active user in the sub-module stored 201 Breath, if it is present by the attribute information of the active user with present in the sub-module stored 201 with the current use The attribute information that the attribute information at family is consistent is contrasted, when comparing result includes different information, by the sub-module stored The attribute information consistent with the attribute information of the active user present in 201, replaces with the attribute letter of the active user Breath, and distribute at least one role for the active user again;If it does not, the attribute information of the active user is deposited Store up in the sub-module stored 201, and distribute at least one role for the active user.
Wherein, the attribute information of user includes:Name, department, position.The role, including applicant, one-level examination & verification At least one in people, the ultimate person approving of two grades of person approving ....The first interface receives active user's attribute information to be included At least one in name, department and position.The attribute information for for example receiving active user 1 includes:Name 1, department 1 and duty Position 1, searches whether the attribute information for having with user 1 in sub-module stored:Name 1, department 1 attribute consistent with position 1 Information, if, through searching the attribute information that there is user 1 in sub-module stored, then by the attribute information of user 1:Name 1st, the attribute information of the user 1 existed in department 1 and position 1 and sub-module stored is contrasted, by contrast after, position is deposited In difference, it is position 2 in the attribute information of user 1 such as in sub-module stored, then position 2 is substituted for into position 1 just, is replaced Again distribute corresponding role for user 1 after changing.If, through searching the attribute that there is no user 1 in sub-module stored letter Breath, then by the attribute information of user 1:Name 1, department 1 and position 1 are stored in sub-module stored, and corresponding for the distribution of user 1 Role.
According to above-described embodiment, by attribute information of role's distribution sub module to active user, in sub-module stored Original customer attribute information is compared, and determines different information, and the information to having differences is updated, and upgrade in time work as The role of front user, it may therefore be assured that customer attribute information and the corresponding role of user are upgraded in time.
In an embodiment of the invention, the flow process letter that workflow instance is recommended to can be understood in real time in order to ensure user Breath, including:
The workflow instance management module 103, the state for being further used for receiving targeted customer's transmission transfer finger Order, transfers the procedure information that instruction determines that the target operation stream example is advanced to according to the state, and by the flow process Information is sent to the targeted customer.
The procedure information that target operation stream example is advanced to, including:Submit to, hang up, terminate, terminate, checked, do not looked into See, by, do not pass through, without operating, complete and any one in rollback.Adjust when the user for starting workflow instance sends state During instruction fetch, the procedure information that workflow instance is advanced to will be sent to user by workflow instance management module, such as when User 1 will check that its workflow instance of asking for leave for starting has been advanced to that flow process, then 1 transmission state of user transfers finger Order, transfers instruction according to state, and to user 1, if flow process is advanced to one-level, person approving has agreed to process of feedback information, One-level person approving is agreed to into that this information is sent to user 1 just so.
According to above-described embodiment, the state for receiving targeted customer's transmission by workflow instance management module transfers instruction, The procedure information that workflow instance is advanced to is sent to into targeted customer so that targeted customer can be transferred by transmission state Instruction can understand the procedure information entered by the workflow instance of startup in real time.
In an embodiment of the invention, in order to each role ensured in workflow instance can understand oneself in real time it is It is no to have workflow instance to need to carry out examination & approval process, including:
The workflow instance management module 103, is further used for being advanced to accordingly the target operation stream example During flow process, to the role's sending out notice for being responsible for the corresponding flow process.
Workflow instance management module, when targeted customer starts target operation stream example, determines target operation stream example In be related to all roles, and when being advanced to corresponding flow process according to target operation stream example, push away to the role for being responsible for corresponding flow process Send notice, the sending out notice, including:The type of service of workflow instance, applicant's information, application time, application adnexa letter Breath.The form of the sending out notice can be notification window, or circular mail.
According to above-described embodiment, by workflow instance management module, target operation stream example is advanced to into corresponding flow process When, to the role's sending out notice for being responsible for the corresponding flow process, it is ensured that each role in workflow instance can understand oneself in real time Whether there is workflow instance to need to carry out examination & approval process, improve the efficiency of workflow instance propulsion.
In an embodiment of the invention, as shown in figure 3, in order to ensure that Work flow model can upgrade in time, including:
The Work flow model management module 102, including:Submodule 301, second interface 302 are set and submodule is updated 303;
The setting submodule 301, for arranging at least one Work flow model;
The second interface 302, for receiving work at present flow model, and the work at present flow model is sent to institute State renewal submodule 303;
The renewal submodule 303, for receiving the work at present flow model of the transmission of the second interface 302, and Search whether there is the Work flow model consistent with the work at present flow model in the setting submodule 301, if deposited Then that the work at present flow model is consistent with the work at present flow model with present in the setting submodule 301 Work flow model contrasted, when comparing result includes different information, by it is described setting submodule 301 present in institute The consistent Work flow model of work at present flow model is stated, the work at present flow model is replaced with, and is stored the work after replacing Flow model;If it does not, the work at present flow model is stored in the setting submodule 301.
In at least one Work flow model, the framework of each Work flow model is different, including flow process and flow process correspondence Role it is also different, the content user that Work flow model is specifically included can be arranged according to the business need of oneself.Wherein, it is each Planting Work flow model includes:The main information of business rule, workflow defining and flow definition information.The business rule, for opening Move and advance the target operation stream example.Wherein, the business rule includes:Automatic type business rule and convergence service rule Then, any one or in convergence service rule and ballot convergence service rule.
Automatic type business rule, promotes the target operation stream example automatic running automatically.Do not need any user and examine Core personnel go examination & approval.The automatic type business rule, can using with notify workflow instance and circulation of official document workflow instance In.
With convergence service rule, the target operation stream example operation is artificially promoted, when in the target operation stream example A flow process do not carry out it is corresponding artificial process, whole target operation stream example will be in the state of shelving, it is impossible to continue into Row subsequent treatment.
Or convergence service rule, the target operation stream example operation is artificially promoted, when in the target operation stream example As long as the flow process being related to has a role to be processed, whole target operation stream example will be completed.
Ballot convergence service rule, artificially promotes the target operation stream example operation, and presets the condition of completing, unite Result of all roles being related in counting the target operation stream example to the target operation stream example, when the process As a result preset when completing condition described in meeting, the target operation stream example is completed.
The main information of workflow defining, including:Workflow parameter information, workflow nodes information, workflow nodes examination & approval layer Level information and workflow logs information.Flow definition information, process name, flow process description information and links executor's authority Information.
According to above-described embodiment, by updating submodule to original work in work at present flow model, with setting submodule Compare as stream, determine different information, the information to having differences is updated, it may therefore be assured that to Work flow model Upgraded in time.
In an embodiment of the invention, as shown in figure 4, in order to ensure that the corresponding role of target operation flow model can be with root Suspended state or running status are entered to the target operation flow model according to specific business need, the workflow engine enters one Step includes:Intervene processing module 401;
The intervention processing module 401, for when the workflow instance management module 103, according to the target operation Corresponding at least two target roles of flow model, and business rule, workflow defining master are included according to target operation flow model When information and flow definition information start and advance the target operation stream example, the hang-up intervention instruction outside reception, by institute State target operation stream example and enter into suspended state;And when receive outside startup intervention instruction when, by the target operation stream Example enters into running status.
Target operation flow model enters into different states according to business need according to the intervention instruction of outside input.Example Such as, active user 1 starts a loaning bill workflow instance of going on business, but line manager determines time retardation of going on business, at intervention Reason module, the hang-up intervention instruction outside reception, loaning bill workflow instance of going on business enter into suspended state;When arrival is gone on business Between be to intervene processing module, receive outside operation intervention instruction, loaning bill workflow instance of going on business enters into running status.
According to above-described embodiment, the different intervention instructions of outside input are received by intervening processing module, according to different Intervention instruction, makes target operation stream example enter into different conditions, it is ensured that target operation flow model can meet different industry Business demand.
In an embodiment of the invention, as shown in fig. 5-1, in order to protect the state for understanding target operation stream example in real time, The workflow engine is further included:System-monitoring module 501;
The system-monitoring module 501, for monitoring the state of the target operation stream example, when monitoring the target When workflow instance is in abnormal operating condition, warning message is sent to the targeted customer.
Abnormal operating condition, including suspended state, without any one in mode of operation and untreated state.When the mesh When mark workflow instance is in abnormal operating condition, warning message is sent to the targeted customer, the warning message can be The form of notification window, or mail he.
According to above-described embodiment, by system-monitoring module, the state of real-time monitoring target operation stream example, once occur Abnormal operating condition, sends warning message to targeted customer, it is ensured that targeted customer processes target work according to warning message in time Make problem present in the operation of stream example.
In addition, the workflow engine can also include the interworkng interface between a Workflow enactment service, for inciting somebody to action Interoperate between other workflow engines in the workflow engine and Workflow system.Journey can also be applied including an activation Sequence interface, for the workflow engine and the application program for directly invoking are attached, including foundation communication, activity management work( Energy and data processing function.A second development interface can also be included, facilitate developer be wanted according to specific business Asking carries out secondary development to the workflow engine.The workflow engine can be by application server, in calling data base in addition Data, and by the document produced in operation store in document file management system, as shown in Fig. 5-2.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
As shown in fig. 6, embodiments providing a kind of implementation method of workflow engine, the method can include:
Step 601:At least one Work flow model is set, wherein, each Work flow model at least two roles of correspondence, Each Work flow model includes:The main information of business rule, workflow defining and flow definition information;
Step 602:At least one workflow instance is set, wherein, a kind of each corresponding work of workflow instance correspondence Make flow model;
Step 603:According to the attribute information of user, it is at least one role of each user's distribution;
Step 604:The enabled instruction that targeted customer sends is received, according to the target operation stream reality that the enabled instruction is carried Example, determines target operation flow model, according to corresponding at least two target roles of the target operation flow model, and according to mesh Mark Work flow model includes that the main information of business rule, workflow defining and flow definition information start and advance the target operation Stream example.
According to above-described embodiment, by pre-setting at least one Work flow model with corresponding relation and workflow reality Example, when the enabled instruction of targeted customer's transmission is received, directly starts according to the workflow instance that enabled instruction is carried corresponding Work flow model, therefore, it is possible to meet the demand of multiple business.
In an embodiment of the invention, in order to ensure to carry out the attribute information of user real-time update, the work Make the implementation method of stream engine, further include:
Receive the attribute information of active user;
The attribute letter for having with the active user is searched whether in the attribute information of at least one user of the storage The consistent attribute information of breath, if it is present by the attribute information of the active user with least one user's of the storage The attribute information consistent with the attribute information of the active user present in attribute information is contrasted, and is included in comparing result During different information, by the attribute information one present in the attribute information of at least one user of the storage with the active user The attribute information of cause, replaces with the attribute information of the active user, and distributes at least one angle for the active user again Color;If it does not exist, then the attribute information of the storage active user, and distribute at least one role for the active user.
In an embodiment of the invention, it is described according to corresponding at least two target angle of the target operation flow model Color, and the main information of business rule, workflow defining and flow definition information startup are included according to target operation flow model and is pushed away After entering the target operation stream example, further include:
The state for receiving targeted customer's transmission transfers instruction, transfers instruction according to the state and determines the target work Make the procedure information that stream example is advanced to, and the procedure information is sent to into the targeted customer.
In an embodiment of the invention, it is described according to corresponding at least two target angle of the target operation flow model Color, and the main information of business rule, workflow defining and flow definition information startup are included according to target operation flow model and is pushed away After entering the target operation stream example, further include:
When the target operation stream example is advanced to corresponding flow process, to the role's sending out notice for being responsible for the corresponding flow process.
In an embodiment of the invention, in order to ensure to carry out Work flow model real-time update, the workflow The implementation method of engine, further includes:
Receive work at present flow model;
Search whether there is the work consistent with the work at present flow model at least one Work flow model Flow model, if it is present by the work at present flow model with present at least one Work flow model with it is described The consistent Work flow model of work at present flow model is contrasted, when comparing result includes different information, at least one by described in Work flow model consistent with the work at present flow model present in Work flow model is planted, the work at present stream is replaced with Model, and store the Work flow model after replacing;If it does not exist, then the storage work at present flow model.
In an embodiment of the invention, it is described according to corresponding at least two target angle of the target operation flow model Color, and the main information of business rule, workflow defining and flow definition information startup are included according to target operation flow model and is pushed away After entering the target operation stream example, further include:
The target operation stream example is entered into suspended state by the hang-up intervention instruction outside receiving;And it is outer when receiving During the startup intervention instruction in portion, the target operation stream example is entered into into running status.
In an embodiment of the invention, it is described according to corresponding at least two target angle of the target operation flow model Color, and the main information of business rule, workflow defining and flow definition information startup are included according to target operation flow model and is pushed away After entering the target operation stream example, further include:
Monitor the state of the target operation stream example, when monitor the target operation stream example be in misoperation shape During state, warning message is sent to the targeted customer.
Below so that user goes on business as an example, a kind of implementation method of workflow engine provided in an embodiment of the present invention is said It is bright, as shown in fig. 7, the implementation method of the workflow engine may include steps of:
Step 701:At least one Work flow model is set, wherein, each Work flow model at least two roles of correspondence, Each Work flow model includes:The main information of business rule, workflow defining and flow definition information.
Various Work flow models can be arranged according to specific business demand, for example, in the present embodiment, workflow is set Model 1, Work flow model 2 and Work flow model 3.Each Work flow model is corresponded to includes applicant, one-level person approving, two Level person approving, ultimate person approving.Wherein, each Work flow model includes:The main information of business rule, workflow defining and flow process Definition information, can also include link definition information and workflow accessory information, and the relation between them is as shown in Figure 8.
Business rule, for starting and advancing the target operation stream example.Wherein, the business rule includes:Automatically Type business rule and convergence service rule, or convergence service rule and ballot convergence service rule in any one.
Automatic type business rule, promotes the target operation stream example automatic running automatically.Do not need any user and examine Core personnel go examination & approval.The automatic type business rule, can using with notify workflow instance and circulation of official document workflow instance In.
With convergence service rule, the target operation stream example operation is artificially promoted, when in the target operation stream example A flow process do not carry out it is corresponding artificial process, whole target operation stream example will be in the state of shelving, it is impossible to continue into Row subsequent treatment.
Or convergence service rule, the target operation stream example operation is artificially promoted, when in the target operation stream example As long as the flow process being related to has a role to be processed, whole target operation stream example will be completed.
Ballot convergence service rule, artificially promotes the target operation stream example operation, and presets the condition of completing, unite Result of all roles being related in counting the target operation stream example to the target operation stream example, when the process As a result preset when completing condition described in meeting, the target operation stream example is completed.
The business rule of each Work flow model can be determined according to specific business need, and business rule can be selected With any one of above-mentioned business rule.Such as Work flow model 1 selects automatic type business rule, Work flow model 2 to select Automatic type business rule, Work flow model 3 is from regular with convergence service.
The main information of workflow defining, including:Workflow parameter information, workflow nodes information, workflow nodes examination & approval layer Level information and workflow logs information.Flow definition information, process name, flow process description information and links executor's authority Information.
Link definition information, can be the corresponding information of each key link in workflow, it is also possible to including each master In wanting link, the information of corresponding subring section, such as before the second approver carries out review operation, including under the second approver The examination & approval of category personnel, then the examination & approval of subordinate staff can just be defined as subring section.
Workflow accessory information, is workflow application data, for specifying Work flow model required industry in concrete application The form of business data, can be divided into two types:One kind is form types workflow accessory information, and what is preserved in table form is attached Part information, the accessory information of the type can be defined with positionality, and are maintained in peripheral data storehouse, such as, Shen of going on business Please table and loan application table.Another kind is Doctype, is the accessory information preserved in the form of document, can be word literary Shelves, or text, it be one by one with corresponding Business Name file, application documents of such as going on business.
Step 702:At least one workflow instance is set, wherein, a kind of each corresponding work of workflow instance correspondence Make flow model.
Various Work flow models can be arranged according to specific business demand, each of which workflow instance correspondence is corresponding A kind of Work flow model, it should be noted that a kind of Work flow model can correspond to multiple workflow instances.For example, at this In embodiment, the workflow instance of setting is workflow instance of going on business, and can also arrange workflow instance of asking for leave, loaning bill workflow Example and use official seal workflow instance.
Workflow instance describes information during Work flow model instantiation, by these information it is recognised that example During various state changes and final result, thus obtain the situation of an example concrete application.It includes flow process reality Example, link example, workflow instance information, work item information and switch condition, the relation between them are as shown in Figure 9.
Step 703:According to the attribute information of user, it is at least one role of each user's distribution.
The attribute information of user, including:Name, department, position.Distribute at least one role for a user, it is also possible to A working group is assigned the user to directly, or by least one role respectively to a working group.
User is basic unit, and department is made up of user, each user's one position of correspondence, is responsible for the position wanted The function asked, user give a kind of role with certain qualification, and working group is also made up of user, it is also possible to be made up of role.This The tissue model constituted by several basic objects and its relation, can meet workflow engine to organizing the needs of model, Relation between them is as shown in Figure 10.In the present embodiment, the role that the personnel that application is gone on business are allocated is applicant, is responsible for The role that is allocated of department manager of one-level examination & approval is one-level person approving, and part supervisor's application of one-level examination & approval is when going on business, its It is the role of applicant again, so a user can distribute at least one role according to business need.
Step 704:The enabled instruction that targeted customer sends is received, according to the target operation stream reality that the enabled instruction is carried Example, determines target operation flow model, according to corresponding at least two target roles of the target operation flow model, and according to mesh Mark Work flow model includes that the main information of business rule, workflow defining and flow definition information start and advance the target operation Stream example.
Enabled instruction can be the button arranged in workflow engine, can such as be go on business button, loaning bill button, can Set with according to specific service needed, for example in the present embodiment, apply for that the user for going on business just has the right gone on business, that Button of going on business can be just triggered, enabled instruction of going on business is sent, is gone on business according to the workflow instance of enabled instruction carrying of going on business, just Can determine that Work flow model of going on business, then the user that application is gone on business can just fill in form of going on business, and illustrate why thing is gone on business, Go on business where, application is gone on business the amount of money, when return etc. and go out the situation of difference correlation, then according to relating in Work flow model of going on business And to role and business rule starts and promotion workflow instance of going on business is carried out.The business rule selected in the present embodiment is With convergence service rule, process workflow instance person approving at different levels and the workflow instance is processed, first check this application All of data, including trip application form and other associated document, then examines to which, and the result of examination & approval is same So this time application of meaning can give again next stage person approving process;The result of examination & approval is disagreed, and the workflow instance application is beaten Return, the result for notifying applicant's application not pass through.Deng the leader of examination & approval in need all examine and pass through, just success is complete for this application Into the result for notifying applicant's application to pass through;Applicant obtains the result applied, prepares to go on business by if if examination & approval, if Examination & approval resubmit application not by then modifying to this application according to approval results;
In addition, when starting and advancing the target operation stream example, being according to workflow instance, flow instance, link reality Example and work item, so successively refine from top to bottom, not only can from the ruuning situation of global knowledge target operation stream example, But also the details that target operation stream example is promoted can be understood.Start and advance the target operation stream example When, state change situation and ruuning situation will be recorded in daily record.
Wherein, workflow instance sees target operation stream example pushing course from overall, and workflow instance works after being activated Stream example is in running status, and in running, it can constantly carry out the state of itself according to the state of flow instance and change Become, workflow instance state figure, as shown in figure 11, when user or manager will hang up it for some reason, it is at Suspended state, makes it in running status or terminates it and make its improper end until user or manager reactivate it; After it is normally processed finishes, with regard to normal termination.
Also from the overall running for seeing target operation stream example, flow instance is initialized flow instance in workflow instance When begin to its work.In running, it can change the state of oneself according to the performance level of links, work as institute There is link example all to normally complete it with regard to normal termination;Flow instance state diagram, as shown in figure 12, user or manager may Hanging up it makes it in suspended state, makes it in running status or terminates it and make its anon-normal until manager reactivates it Often terminate.
The running of link example target operation stream example from from the aspect of certain, link example is when flow instance runs Begin to its work state in processing.Link example state diagram, as shown in figure 13, the state of link example is by terms of two Determine, one is the result of work item, and one is the regulation of business rule.If business rule is automatic type business rule, no The result of pipe work item how, and after system assigns (to specific user) task items to be finished, the link example is just normal Complete in normal ending status;If business rule is and convergence service rule, after having assigned task items, as all participants After member's all respective work items of the complete link of normal process, the link is just normally completed in normal ending status;Processing Cheng Zhong, as long as there is a work item to be non-normal process, the link is just not normally completed in improper done state;At place During reason, there is work item also not processed and neither one work item is by improper process, then link example is still located The state in process;If business rule is or convergence service rule, after assigned tasks, as long as there is a work item to be normal place Reason, the link example is just normally completed in normal ending status;If all work items for belonging to the link example together all by It is not normally completed, then the link example is at improper done state;If business rule is ballot convergence service rule, After assigned tasks, the performance level of statistical work item, when the work item quantity for normally completing reaches certain amount, the link reality Example is just normally completed in normal ending status;When the work item quantity for normally completing is not up to the quantity for specifying, the link Just it is not normally completed in improper done state;When the work item that all working item is not also processed and normally completed also does not reach During to specified quantity, the link example is still within state in process.
Work item will see participation from target operation stream example running from the aspect of more details, the State Transferring of work item The regulation of disposition and business rule of the personnel to respective work item.Work item state diagram, as shown in figure 14, will be polymerized Business rule, or convergence service is regular and ballot regular these of convergence service want the rule of manual intervention to be referred to as people's drum rule Then.If business rule is automatic type, the state for belonging to the regular work item together just only has the normal termination shape after normal process State, certainly in state in process if not also being processed to the work item, but this does not produce impact to link example etc.;Such as Fruit business rule is people's drum, just has two kinds of situations of normal process and improper process, and the normal process work item then makes The work item is in normal ending status, and the improper process work item then makes the work item be in improper done state.
Step 705:The state of the target operation stream example is monitored, when monitoring the target operation stream example in just Often during running status, execution step 707;When monitoring that the target operation stream example is in abnormal operating condition, step is performed Rapid 706.
In the present embodiment, go on business workflow instance it is necessary to real-time monitoring after workflow instance of going on business starts and advances, When workflow instance of going on business is in normal operating condition, execution step 706;Once monitor to go on business workflow instance in different Often during running status, execution step 707.
Step 706:Warning message is sent to the targeted customer.
The warning message can be sent to user in the form of notification window or mail, wrap in the warning message Include abnormality such as, suspended state, rollback state, user can make corresponding process according to the content in warning message.
Step 707:Judge whether to receive the intervention instruction of outside input;If it is, execution step 708, otherwise, performs Step 709.
The input of intervention instruction is carried out according to specific business need, for example in the present embodiment, workflow instance of going on business Have been started up and advance, but applicant is according to project demand, need postponement to go on business the time, then can just be input into intervention and refer to Order, has been started up to workflow instance of going on business and propulsion carries out intervention operation.
Step 708:The target operation stream example is entered into suspended state by the hang-up intervention instruction outside receiving;And When receive outside startup intervention instruction when, the target operation stream example is entered into into running status.
Corresponding at least two target roles of the target operation flow model, and industry is included according to target operation flow model When business rule, the main information of workflow defining and flow definition information start and advance the target operation stream example, receive outside Hang-up intervention instruction, the target operation stream example is entered into into suspended state;And work as the startup intervention instruction outside receiving When, the target operation stream example is entered into into running status;Such as in the present embodiment, when postponing the time of going on business, send Intervention instruction is hung up, workflow instance of going on business enters into suspended state, after the predetermined time of going on business, retransmit operation dry Pre- to instruct, workflow instance of going on business enters into running status.
Step 709:When the target operation stream example is advanced to corresponding flow process, push away to the role for being responsible for the corresponding flow process Send notice.
For example, in the present embodiment, after the applicant that goes on business starts workflow instance of going on business, workflow instance of going on business will be carried Give one-level person approving, then when workflow of going on business recommends to one-level person approving, will be with notification window or circular mail Form, is one-level person approving's sending out notice, notifies which has a workflow instance to need examination & approval.
Step 710:Judge whether that the state for receiving targeted customer's transmission transfers instruction;If execution step 711, otherwise terminate current process.
Step 711:The state for receiving targeted customer's transmission transfers instruction, transfers instruction according to the state and determines institute The procedure information that target operation stream example is advanced to is stated, and the procedure information is sent to into the targeted customer.
For example, the applicant that goes on business in the present embodiment wants to understand the workflow instance of going on business for initiating self and advancing, then State will be sent and transfer instruction, and after workflow engine receives status command, instruction determination be transferred according to state just and is gone on business The procedure information that workflow instance is advanced to, the workflow instance one-level person approving that such as goes on business have been audited and have been passed through, and wait two Level person approving's examination & approval, such procedure information are sent to the applicant that goes on business.
As shown in figure 15, embodiments provide in a kind of workflow engine implementation method, can also be to user's Attribute information is updated, including:
Step 1501:Receive the attribute information of active user.
The attribute information of active user includes:Any one in name, department and position.
Step 1502:Search whether exist and the active user in the attribute information of at least one user of the storage The consistent attribute information of attribute information, if it does, execution step 1503, otherwise, execution step 1504.
For example, when the attribute information for receiving user 1, but through finding user in the attribute information of original user 1 attribute information is not present, then execution step 1504, when the category through finding user 1 in the attribute information of original user There is execution step 1503 in property information.
Step 1503:To deposit in attribute information of the attribute information of the active user with least one user of the storage The attribute information consistent with the attribute information of the active user contrasted, when comparing result includes different information, By attribute letter consistent with the attribute information of the active user present in the attribute information of at least one user of the storage Breath, replaces with the attribute information of the active user, and distributes at least one role for the active user again.
For example, in the present embodiment, in the attribute information of the user 1 for receiving, department is research and development department, then be accomplished by ratio To user 1, in the attribute information of original storage, department contrasts, and determines difference attribute information, such as through contrast, original In the attribute information of user 1, department is test department, then department is replaced with research and development department, and user 1 does not redistribute corresponding At least one role.
Step 1504:The attribute information of the active user is stored, and distributes at least one role for the active user.
For example, in the present embodiment, user 1 is the employee of a new registration, then just directly store the attribute letter of user 1 Cease, user 1 does not distribute at least one role.
As shown in figure 16, embodiments provide in a kind of workflow engine implementation method, can also be to workflow Model is updated, including:
Step 1601:Receive work at present flow model.
According to specific business need, various Work flow models can be set, workflow is such as set in the present embodiment Model 1, Work flow model 2 and Work flow model 3.Each Work flow model includes:The main letter of business rule, workflow defining Breath, flow definition information, link definition information and workflow accessory information.For example, the business rule in the Work flow model 1 of reception It is then automatic type business rule.
Step 1602:Search whether exist and the work at present flow model one at least one Work flow model The Work flow model of cause, if it does, execution step 1603;Otherwise, execution step 1604.
For example, when Work flow model 1 is received, but through finding Work flow model in original Work flow model 1 is not present, then execution step 1604, there is execution step when process finds Work flow model 1 in original Work flow model 1603。
Step 1603:The work at present flow model is worked as with described with present at least one Work flow model The consistent Work flow model of front Work flow model is contrasted, when comparing result includes different information, by least one The Work flow model consistent with the work at present flow model present in Work flow model, replaces with the work at present stream mould Type, and execution step 1604.
For example, in the present embodiment, in the Work flow model 1 for receiving, business rule is automatic type business rule, then It is accomplished by comparison work flow model 1 to be contrasted in original Work flow model, determines different information, it is such as through contrast, former In having Work flow model 1, business rule is and convergence service rule, then business rule is replaced with automatic type business rule.
Step 1604:Store the work at present flow model.
If the Work flow model for receiving is newly-increased Work flow model, Work flow model is directly stored.Or deposit Work flow model after storage replacement.
In sum, each embodiment of the invention can at least realize following beneficial effect:
1st, in embodiments of the present invention, by the attribute information for organizing module according to user, it is each use At least one role of family distribution, the Work flow model management module arrange at least one Work flow model, each workflow Model at least two roles of correspondence, each Work flow model include:The main information of business rule, workflow defining and flow definition Information, the workflow instance management module arrange at least one workflow instance, wherein, each workflow instance correspondence A kind of corresponding Work flow model, when the enabled instruction of targeted customer's transmission is received, carries according to the enabled instruction Target operation stream example, determines target operation flow model, according to corresponding at least two target angle of the target operation flow model Color, and the main information of business rule, workflow defining and flow definition information startup are included according to target operation flow model and is pushed away Enter the target operation stream example.The present invention is by pre-setting at least one Work flow model with corresponding relation and work Stream example, when the enabled instruction of targeted customer's transmission is received, directly starts according to the workflow instance that enabled instruction is carried Corresponding Work flow model, therefore, it is possible to meet the demand of multiple business.
2nd, in embodiments of the present invention, the attribute information by role's distribution sub module to active user, with storage submodule In block, original customer attribute information is compared, and determines different information, and the information to having differences is updated, and in time more The role of new active user, it may therefore be assured that customer attribute information and the corresponding role of user are upgraded in time.
3rd, in embodiments of the present invention, the state for receiving targeted customer's transmission by workflow instance management module transfers finger The procedure information that workflow instance is advanced to is sent to targeted customer so that targeted customer can pass through transmission state by order Transfer instruction and can understand the procedure information entered by the workflow instance of startup in real time.
4th, in embodiments of the present invention, by workflow instance management module, target operation stream example is advanced to accordingly During flow process, to the role's sending out notice for being responsible for the corresponding flow process, it is ensured that each role in workflow instance can understand in real time Oneself whether there is workflow instance to need to carry out examination & approval process, improve the efficiency of workflow instance propulsion.
5th, in embodiments of the present invention, it is by updating submodule to work at present flow model, original in submodule with arranging Workflow compare, determine different information, the information to having differences is updated, it may therefore be assured that to workflow Model is upgraded in time.
6th, in embodiments of the present invention, the different intervention instructions of outside input are received by intervening processing module, according to not Same intervention instruction, makes target operation stream example enter into different conditions, it is ensured that target operation flow model can meet difference Business demand.
7th, in embodiments of the present invention, by system-monitoring module, the state of real-time monitoring target operation stream example, once There is abnormal operating condition, warning message is sent to targeted customer, it is ensured that targeted customer processes mesh according to warning message in time Problem present in the operation of mark workflow instance.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation is made a distinction with another entity or operation, and not necessarily require or imply presence between these entities or operation Any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to non- Exclusiveness is included, so that a series of process, method, article or equipment including key elements not only includes those key elements, But also including other key elements being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element for being limited by sentence " including ", does not arrange Except also there is other same factor in including the process of the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of said method embodiment can pass through Completing, aforesaid program can be stored in the storage medium of embodied on computer readable the related hardware of programmed instruction, the program Upon execution, perform the step of including said method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate Art scheme, is not intended to limit protection scope of the present invention.All any modifications made within the spirit and principles in the present invention, Equivalent, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of workflow engine, it is characterised in that include:
Organization and administration module, Work flow model management module and workflow instance management module;
The organization and administration module, for the attribute information according to user, is at least one role of each user's distribution;
The Work flow model management module, for arranging at least one Work flow model, wherein, each Work flow model pair At least two roles are answered, each Work flow model includes:The main information of business rule, workflow defining and flow definition information;
The workflow instance management module, for arranging at least one workflow instance, wherein, each workflow instance pair A kind of corresponding Work flow model is answered, when the enabled instruction of targeted customer's transmission is received, is carried according to the enabled instruction Target operation stream example, determine target operation flow model, according to corresponding at least two target of the target operation flow model Role, and according to target operation flow model include the main information of business rule, workflow defining and flow definition information start and Advance the target operation stream example.
2. workflow engine according to claim 1, it is characterised in that the organization and administration module, including:Storage submodule Block, first interface and role's distribution sub module;
The sub-module stored, for storing the attribute information of at least one user;
The first interface, for receiving the attribute information of active user, and by the attribute information of the active user send to Role's distribution sub module;
Role's distribution sub module, for receiving the attribute information of the active user that the first interface sends, and Search whether there is the attribute information consistent with the attribute information of the active user in the sub-module stored, if it does, Then by the attribute information of the active user and the attribute information one present in the sub-module stored with the active user The attribute information of cause is contrasted, when comparing result includes different information, by present in the sub-module stored with it is described The consistent attribute information of the attribute information of active user, replaces with the attribute information of the active user, and works as described again Front user's distribution at least one role;If it does not, by the attribute information storage of the active user to the storage submodule In block, and distribute at least one role for the active user.
3. workflow engine according to claim 1, it is characterised in that
The workflow instance management module, the state for being further used for receiving targeted customer's transmission transfer instruction, according to The state transfers the procedure information that instruction determines that the target operation stream example is advanced to, and the procedure information is sent To the targeted customer;
And/or,
The workflow instance management module, is further used for when the target operation stream example is advanced to corresponding flow process, To the role's sending out notice for being responsible for the corresponding flow process.
4. workflow engine according to claim 1, it is characterised in that the Work flow model management module, including:If Put submodule, second interface and update submodule;
The setting submodule, for arranging at least one Work flow model;
The second interface, for receiving work at present flow model, and the work at present flow model is sent to the renewal Submodule;
The renewal submodule, for receiving the work at present flow model that the second interface sends, and in the setting Search whether there is the Work flow model consistent with the work at present flow model in submodule, if it is present working as described Front Work flow model is carried out with Work flow model consistent with the work at present flow model present in the setting submodule Contrast, when comparing result includes different information, by it is described setting submodule present in the work at present flow model one The Work flow model of cause, replaces with the work at present flow model, and stores the Work flow model after replacing;If it does not, The work at present flow model is stored in the setting submodule.
5. according to arbitrary described workflow engine in claim 1-4, it is characterised in that
The workflow engine is further included:Intervene processing module;
The intervention processing module, for when the workflow instance management module, according to target operation flow model correspondence At least two target roles, and the main information of business rule, workflow defining and flow process are included according to target operation flow model When definition information starts and advances the target operation stream example, the hang-up intervention instruction outside reception, by the target operation Stream example enters into suspended state;And when receive outside startup intervention instruction when, the target operation stream example is entered into Running status;
And/or,
The workflow engine is further included:System-monitoring module;
The system-monitoring module, for monitoring the state of the target operation stream example, when monitoring the target operation stream When example is in abnormal operating condition, warning message is sent to the targeted customer.
6. a kind of implementation method of workflow engine, it is characterised in that at least one Work flow model is set, wherein, each Work flow model at least two roles of correspondence, each Work flow model include:The main information of business rule, workflow defining and stream Journey definition information;At least one workflow instance is set, wherein, a kind of each corresponding workflow mould of workflow instance correspondence Type, methods described include:
According to the attribute information of user, it is at least one role of each user's distribution;
The enabled instruction that targeted customer sends is received, according to the target operation stream example that the enabled instruction is carried, target is determined Work flow model, according to corresponding at least two target roles of the target operation flow model, and according to target operation stream mould Type includes that the main information of business rule, workflow defining and flow definition information start and advance the target operation stream example.
7. the implementation method of workflow engine according to claim 6, it is characterised in that the realization side of the workflow engine Method, further includes:
Receive the attribute information of active user;
The attribute information one for having with the active user is searched whether in the attribute information of at least one user of the storage The attribute information of cause, if it is present by the attribute information of the active user and it is described storage at least one user attribute The attribute information consistent with the attribute information of the active user present in information is contrasted, and includes difference in comparing result During information, will be consistent with the attribute information of the active user present in the attribute information of at least one user of the storage Attribute information, replaces with the attribute information of the active user, and distributes at least one role for the active user again;Such as Fruit is not present, then store the attribute information of the active user, and distribute at least one role for the active user.
8. the implementation method of workflow engine according to claim 6, it is characterised in that described according to the target operation stream Corresponding at least two target roles of model, and the main letter of business rule, workflow defining is included according to target operation flow model After breath and flow definition information start and advance the target operation stream example, further include:
The state for receiving targeted customer's transmission transfers instruction, transfers instruction according to the state and determines the target operation stream The procedure information that example is advanced to, and the procedure information is sent to into the targeted customer;
And/or,
It is described according to corresponding at least two target roles of the target operation flow model, and according to target operation flow model bag After including the main information of business rule, workflow defining and flow definition information startup and advancing the target operation stream example, enter One step includes:
When the target operation stream example is advanced to corresponding flow process, to the role's sending out notice for being responsible for the corresponding flow process.
9. the implementation method of workflow engine according to claim 6, it is characterised in that the realization side of the workflow engine Method, further includes:
Receive work at present flow model;
Search whether there is the workflow mould consistent with the work at present flow model at least one Work flow model Type, if it is present current with described with present at least one Work flow model by the work at present flow model The consistent Work flow model of Work flow model is contrasted, when comparing result includes different information, by least one work Make Work flow model consistent with the work at present flow model present in flow model, replace with the work at present stream mould Type, and store the Work flow model after replacing;If it does not exist, then the storage work at present flow model.
10. according to claim 6-9 workflow engine implementation method, it is characterised in that it is described according to the target work Make corresponding at least two target roles of flow model, and business rule, workflow defining are included according to target operation flow model After main information and flow definition information start and advance the target operation stream example, further include:Extension outside receiving Intervention instruction is played, the target operation stream example is entered into into suspended state;And when outside startup intervention instruction is received, general The target operation stream example enters into running status;
And/or,
It is described according to corresponding at least two target roles of the target operation flow model, and according to target operation flow model bag After including the main information of business rule, workflow defining and flow definition information startup and advancing the target operation stream example, enter One step includes:Monitor the state of the target operation stream example, when monitor the target operation stream example be in misoperation During state, warning message is sent to the targeted customer.
CN201610851660.XA 2016-09-26 2016-09-26 Workflow engine and realization method thereof Pending CN106529761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610851660.XA CN106529761A (en) 2016-09-26 2016-09-26 Workflow engine and realization method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610851660.XA CN106529761A (en) 2016-09-26 2016-09-26 Workflow engine and realization method thereof

Publications (1)

Publication Number Publication Date
CN106529761A true CN106529761A (en) 2017-03-22

Family

ID=58344197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610851660.XA Pending CN106529761A (en) 2016-09-26 2016-09-26 Workflow engine and realization method thereof

Country Status (1)

Country Link
CN (1) CN106529761A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563728A (en) * 2017-08-29 2018-01-09 四川长虹电器股份有限公司 Lightweight workflow the design of enterprise management system method based on skills for occupation group
CN108717620A (en) * 2017-04-29 2018-10-30 成都牵牛草信息技术有限公司 Based role is to the one-to-one Work-flow control method and system of user
CN109636306A (en) * 2018-10-29 2019-04-16 平安医疗健康管理股份有限公司 Node-flow shifting method, device, terminal and storage medium
CN111353752A (en) * 2019-11-05 2020-06-30 泰康保险集团股份有限公司 Flow processing method and device, electronic equipment and storage medium
CN112085396A (en) * 2020-09-14 2020-12-15 洛阳众智软件科技股份有限公司 Algorithm model configuration method based on state-of-the-earth space planning current situation evaluation index
CN113454665A (en) * 2018-09-28 2021-09-28 印象笔记公司 Task-based action generation
US11750616B2 (en) 2017-08-10 2023-09-05 Chengdu Qianniucao Information Technology Co., Ltd. Method for authorizing approval processes and approval nodes thereof for user
CN111353752B (en) * 2019-11-05 2024-04-19 泰康保险集团股份有限公司 Flow processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000670A (en) * 2006-01-11 2007-07-18 株式会社理光 Workflow management system
CN101593294A (en) * 2008-05-29 2009-12-02 国际商业机器公司 The method and system of dynamic-configuration workflow
CN101819659A (en) * 2010-04-16 2010-09-01 浙江工商大学 Method for applying workflow technology to management process control
CN103745319A (en) * 2014-01-09 2014-04-23 北京大学 Data provenance traceability system and method based on multi-state scientific workflow

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000670A (en) * 2006-01-11 2007-07-18 株式会社理光 Workflow management system
CN101593294A (en) * 2008-05-29 2009-12-02 国际商业机器公司 The method and system of dynamic-configuration workflow
CN101819659A (en) * 2010-04-16 2010-09-01 浙江工商大学 Method for applying workflow technology to management process control
CN103745319A (en) * 2014-01-09 2014-04-23 北京大学 Data provenance traceability system and method based on multi-state scientific workflow

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108717620A (en) * 2017-04-29 2018-10-30 成都牵牛草信息技术有限公司 Based role is to the one-to-one Work-flow control method and system of user
US11363026B2 (en) 2017-04-29 2022-06-14 Chengdu Qianniucao Information Technology Co., Ltd. Workflow control method and system based on one-to-one correspondence between roles and users
US11750616B2 (en) 2017-08-10 2023-09-05 Chengdu Qianniucao Information Technology Co., Ltd. Method for authorizing approval processes and approval nodes thereof for user
CN107563728A (en) * 2017-08-29 2018-01-09 四川长虹电器股份有限公司 Lightweight workflow the design of enterprise management system method based on skills for occupation group
CN113454665A (en) * 2018-09-28 2021-09-28 印象笔记公司 Task-based action generation
CN113454665B (en) * 2018-09-28 2022-08-23 印象笔记公司 Task-based action generation
CN109636306A (en) * 2018-10-29 2019-04-16 平安医疗健康管理股份有限公司 Node-flow shifting method, device, terminal and storage medium
CN111353752A (en) * 2019-11-05 2020-06-30 泰康保险集团股份有限公司 Flow processing method and device, electronic equipment and storage medium
CN111353752B (en) * 2019-11-05 2024-04-19 泰康保险集团股份有限公司 Flow processing method and device, electronic equipment and storage medium
CN112085396A (en) * 2020-09-14 2020-12-15 洛阳众智软件科技股份有限公司 Algorithm model configuration method based on state-of-the-earth space planning current situation evaluation index

Similar Documents

Publication Publication Date Title
CN106529761A (en) Workflow engine and realization method thereof
CN105354762B (en) Power customer service work order identification and distribution system and method
Petit et al. Project portfolios in dynamic environments: Sources of uncertainty and sensing mechanisms
US20080046862A1 (en) Business task management
CN103279840B (en) Workflow engine implement method based on dynamic language and event processing mechanism
US6725445B1 (en) System for minimizing notifications in workflow management system
CN109669983A (en) Visualize multi-data source ETL tool
CN110705065B (en) Multi-quality characteristic integrated modeling simulation evaluation method for aviation equipment
JP2008186478A (en) Computer executable workflow control system
CN106209482A (en) A kind of data center monitoring method and system
WO2010004544A1 (en) Decision support system for project managers and associated method
Burghate et al. Work breakdown structure: simplifying project management
US20020146675A1 (en) Role managed collaborative learning support system and method
CN106910004A (en) A kind of overall process blower fan workmanship monitoring system based on workflow
CN109902919A (en) Server assets management method, device, equipment and readable storage medium storing program for executing
CN109977022A (en) Inspection method, device, system and the storage medium of game resource
US20110060440A1 (en) Method and a system for propagating a scaling mode in a production process
CN106127365A (en) Quantitative remote sensing On-line Product interactive mode autonomous production method
Iglesias et al. Product line engineering of monitoring functionality in industrial cyber-physical systems: a domain analysis
CN106971289A (en) A kind of collaborative design method and cooperative system based on data-driven
US20020055832A1 (en) Structured system for the planning, integration, analysis and management of new product development on a real-time, enterprise-wide basis
CN114443001A (en) Device supporting SaaS application flow customization and operation as required
CN107679404A (en) Method and apparatus for determining software systems potential risk
CN115719207A (en) Super-automation platform system
Wibisono et al. A dynamic and human-centric resource allocation for managing business process execution

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170322

RJ01 Rejection of invention patent application after publication