CN109636306A - Node-flow shifting method, device, terminal and storage medium - Google Patents
Node-flow shifting method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN109636306A CN109636306A CN201811272653.XA CN201811272653A CN109636306A CN 109636306 A CN109636306 A CN 109636306A CN 201811272653 A CN201811272653 A CN 201811272653A CN 109636306 A CN109636306 A CN 109636306A
- Authority
- CN
- China
- Prior art keywords
- node
- circulation
- flow
- document
- target document
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 129
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 238000012546 transfer Methods 0.000 claims description 13
- 238000012544 monitoring process Methods 0.000 abstract description 3
- 238000012423 maintenance Methods 0.000 abstract description 2
- 238000001514 detection method Methods 0.000 abstract 1
- 230000000694 effects Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000005538 encapsulation Methods 0.000 description 5
- 239000007858 starting material Substances 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0633—Workflow analysis
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Tourism & Hospitality (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Data Mining & Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides a kind of node-flow shifting method, device, terminal and storage medium based on condition monitoring, this method comprises: obtaining the node circulation after detecting node circulation instruction and instructing corresponding target document;Obtain the circulation condition of the target document, and according to the target document obtain the target document locating for current process node;Circulation condition and current process node based on the target document, and predefined circulation interface is called, obtain the destination node for the target document that the predefined circulation interface returns;The target bill flow is gone into the destination node, and updates the current process Node field in the target document.Start node-flow shifting method of the invention after detection node circulation instruction by the monitoring to service node, a large amount of database space of workflow can be saved, reduce maintenance cost.
Description
Technical field
The present invention relates to workflow circulation technical field more particularly to a kind of node-flow shifting method, device, terminal and storages
Medium.
Background technique
As office automation is using higher and higher, the business operation process of procedure also becomes increasingly complex, and introduces
Workflow engine can efficiently solve the application scenarios that process is personalized, complicates, and workflow engine is widely used in respectively
In kind information system, business norms process will be customized to after business combing that will be originally at random, and then constrain the standardization of business
Processing and operating are deployed in workflow engine after customizing standard process, drive operation flow automatically by workflow engine
Progress.
Workflow engine realizes that workflow circulation relies on the database table on its backstage, requires inquiry number to each document
The information that circulation is obtained according to library table, such as Activiti engine, the workflow circulation realized rely on its backstage ACT_RU_*,
ACT_HI_* table.Its there are the problem of be mainly: after bills data rises to a certain range (such as ten thousand grades or more), engine itself
Table data volume can sharply expand, the consumption of O&M manpower, resource also sharply increases therewith.
Summary of the invention
The main purpose of the present invention is to provide a kind of node-flow shifting methods, it is intended to solve bills data amount it is big when, work
The technical issues of table data volume of stream engine sharply expands.
To achieve the above object, the present invention provides a kind of node-flow shifting method, which is characterized in that the node-flow shifting method
The following steps are included:
After detecting node circulation instruction, obtains the node circulation and instruct corresponding target document;
Obtain the circulation condition of the target document, and according to the target document obtain the target document locating for work as
Preceding flow nodes;
Circulation condition and current process node based on the target document, and predefined circulation interface is called, it obtains
The destination node for the target document that the predefined circulation interface returns;
The target bill flow is gone into the destination node, and updates the current process node word in the target document
Section.
Optionally, include: before the step of calling predefined circulation interface
The flow chart disposed in workflow engine is obtained, parses the flow chart to obtain flow definition information, it is described
Flow definition information includes at least node and circulation condition;
Predefined circulation interface is encapsulated according to the flow definition information.
Optionally, include: after described the step of encapsulating predefined circulation interface according to the flow definition information
If detecting node jump instruction, it is corresponding to circulated documents to obtain the node jump instruction;
The predefined circulation interface is called, the node listing that the predefined circulation interface returns is obtained;
The specified node that user is selected based on the node listing is received, described will be circulated to circulated documents to described specified
Node.
Optionally, the step of destination node for obtaining the target document that the predefined circulation interface returns
Include: later
Obtain the identical all target documents of destination node;
It is described that the target bill flow is gone into the destination node, and update the current process section in the target document
Point field the step of include:
All target document bulk streams are gone into the destination node, and update the current process section in all target documents
Point field.
Optionally, the node-flow shifting method further include:
After detecting back-off instruction, the corresponding document to be retracted of the back-off instruction is obtained;
Preset circulation log sheet is inquired according to the document to be retracted, based on the preset circulation log sheet of the inquiry
Query result obtains the history node that the bill flow to be retracted is passed through, and exports the history node column of the history node composition
Table;
The rollback node that user is selected based on the history node listing is received, and return back to the rollback node.
Optionally, it is described according to the target document obtain the target document locating for current process node the step of it
Before include:
The preset business form of workflow engine is obtained, increases current process Node field on the business form;
If detecting, flow instance starts, and obtains the corresponding current document of the flow instance;
The flow nodes that the current document is presently in are obtained, the flow nodes that the current document is presently in are added
Add to the current process Node field of the current document.
Optionally, include: after described the step of encapsulating predefined circulation interface according to the flow definition information
When detecting inquiry instruction, present node locating for current queries document is obtained;
The predefined circulation interface is called using the present node as input parameter;
Export the next node and circulation condition of the present node that the predefined circulation interface returns.
In addition, to achieve the above object, the present invention also provides a kind of node transfer device, the node transfer device packet
It includes:
Document obtains module, instructs corresponding mesh for after detecting node circulation instruction, obtaining the node circulation
Mark document;
Circulation obtains module, obtains institute for obtaining the circulation condition of the target document, and according to the target document
State current process node locating for target document;
Calling module for circulation condition and current process node based on the target document, and calls predefined
Circulate interface, obtains the destination node for the target document that the predefined circulation interface returns;
Circulate module, for the target bill flow to be gone to the destination node, and updates in the target document
Current process Node field.
In addition, to achieve the above object, the present invention also provides a kind of node circulation terminal, the node circulation terminal includes
It processor, memory and is stored on the memory and can be by the node-flow carryover sequence that the processor executes, wherein institute
When stating node-flow carryover sequence and being executed by the processor, realize such as the step of above-mentioned node-flow shifting method.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, being stored with node on the storage medium
Circulate program, wherein realizing when the node-flow carryover sequence is executed by processor such as the step of above-mentioned node-flow shifting method.
The embodiment of the present invention instructs corresponding target by after detecting node circulation instruction, obtaining the node circulation
Document;Obtain the circulation condition of the target document, and according to the target document obtain the target document locating for it is current
Flow nodes can obtain the current process node of target document, without rear directly from the business datum of target document
Platform is arranged special record sheet and is used to store document current process node, improves query performance, simplifies business realizing logic,
Business is apparent;By calling predefined circulation interface, using the circulation condition of target document and current process node as pre-
The input parameter of the circulation interface of definition, can get the output parameter that predefined circulation interface returns: target document will flow to
Destination node so that the circulation interface of workflow engine is not recalled when the practical circulation of document, after not depending on workflow engine
The database table of platform, user can be directly by predefined circulation interface polls to destination nodes, directly in business datum
Associated objects node can save a large amount of database space, reduce maintenance cost.
Detailed description of the invention
Fig. 1 is the node circulation terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of node-flow shifting method first embodiment of the present invention;
Fig. 3 is an example schematic in node-flow shifting method embodiment of the present invention;
Fig. 4 is the flow diagram of node-flow shifting method second embodiment of the present invention;
Fig. 5 is the functional block diagram of node transfer device first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Figure 1, Fig. 1 is the hardware structural diagram of node provided by the present invention circulation terminal.
The node circulation terminal can be PC, be also possible to smart phone, tablet computer, portable computer, desk-top meter
The device end having a display function such as calculation machine, optionally, the node circulation terminal can be server apparatus, and there are nodes
The rear end management system of circulation, user are managed node circulation terminal by the rear end management system.
The node circulation terminal may include: the components such as processor 101 and memory 201.It circulates in the node
In terminal, the processor 101 is connect with the memory 201, and node-flow carryover sequence is stored on the memory 201, place
Reason device 101 can call the node-flow carryover sequence stored in memory 201, and realize such as following each embodiments of node-flow shifting method
The step of.
The memory 201 can be used for storing software program and various data.Memory 201 can mainly include storage
Program area and storage data area, wherein storing program area can application program needed for storage program area, at least one function
(such as node-flow carryover sequence) etc.;Storage data area may include database, can be used for storing the document etc. in the present invention.In addition,
Memory 201 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk
Memory device, flush memory device or other volatile solid-state parts.
Processor 101 is the control centre of node circulation terminal, is circulated using various interfaces and the entire node of connection
The various pieces of terminal by running or execute the software program and/or module that are stored in memory 201, and are called and are deposited
Data of the storage in memory 201 execute the various functions and processing data of node circulation terminal, thus to node circulation terminal
Carry out integral monitoring.Processor 101 may include one or more processing units;Optionally, processor 101 can be integrated using processing
Device and modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation
Demodulation processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processing
In device 101.
It will be understood by those skilled in the art that the circulation terminal structure of node shown in Fig. 1 is not constituted and is circulated to node
The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
Based on above-mentioned hardware configuration, each embodiment of the method for the present invention is proposed.
Technical solution difference with the prior art for a better understanding of the invention is with Activiti workflow engine first
Example briefly introduces to the prior art.It should be noted that " document " in the embodiment of the present invention, refers in Workflow system for user
Business datum check and/or edit, flow instance.
Entire Workflow system includes business datum and flow data.Workflow engine generally pertains only to flow data, is
It realizes the circulation of workflow, can be the table structure of a set of workflow of Design of Workflow, carry out the realization of assisting workflows engine, such as
Node circulation history/guiding circulation track table is recorded, such as ACT_RU_*, ACT_HI_* table of Activiti workflow engine;Business
Data are different with the difference of business, have a series of traffic tables.
In the prior art, by calling the circulation interface of Activiti, inquiry ACT_RU_*, ACT_HI_* table obtains document
By the destination node of flow direction, then circulation is executed, and node circulation requires to operate multiple tables every time, process is complicated, in document amount
When more, poor in timeliness.
The present invention provides a kind of node-flow shifting method, by increasing current process Node field, mark in business datum
The flow nodes that document is presently in;And Activiti flow chart is parsed, it obtains flow chart and defines information, by flow definition information
It is packaged into predefined circulation interface;When detecting node circulation instruction, predefined circulation interface is called, document is current
Locating flow nodes, the circulation predefined circulation interface of line condition entry obtain the target of predefined circulation interface output
Node.Can be achieved: document is practical not to recall the circulation interface of ACT when circulating, and does not depend on the tables such as ACT_RU_*, ACT_HI_*,
User can pass through the predefined circulation interface polls of encapsulation to target directly according to the current process node in business datum
Node, and then without creating the table for being chiefly used in workflow, reduce the data volume of workflow engine.
It is the flow diagram of node-flow shifting method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the node-flow shifting method the following steps are included:
Step S10 obtains the node circulation and instructs corresponding target document after detecting node circulation instruction;
Node circulation instruction can click presentation of documents, triggering node circulation by user after having executed operation to document
Instruction;It can also the automatic trigger node circulation instruction after meeting preset circulation condition.The circulation instruction of target document, i.e. node
The document to be circulated being directed toward.
Step S20 obtains the circulation condition of the target document, and obtains the target document according to the target document
Locating current process node;
The circulation condition of target document refers to the state for determining which node whether target document circulate and flow to, by mesh
Mark document circulation condition be compared with the circulation condition being preset in workflow engine, judge target document whether circulate with
And which node flowed to.
In the present embodiment, the flow nodes that target document is presently in no longer are looked by the circulation interface of workflow engine
The database table for asking backstage obtains, but the process that target document is presently in is obtained directly from the business datum of target document
Node.Therefore, before obtaining the flow nodes that the target document is presently in target document, in the business number of document
According to middle increase current process Node field, the flow nodes being presently in for identifying document, if table 1 is to increase current process section
One example of point field.
Wherein, for convenient for subsequent descriptions, the flow nodes that target document is presently in are as current process node.
In one embodiment, it is described according to the target document obtain the target document locating for current process node
Include: before step
Step S21 obtains the preset business form of workflow engine, increases current process node on the business form
Field;
The preset partial service list of workflow engine or whole business forms are obtained, increases current stream on business form
Journey Node field, different business, which has, corresponds to different business forms, and in the present embodiment, business form is the template of document, single
According to being business form in conjunction with detailed process example.
Each flow instance can be associated with (the main business table that requirements of process is realized) with a specific business form, and refer to
The id field of bright traffic table.For example, process of asking for leave, asking for leave single is exactly the main table of business.Process is submitted an expense account, the main table of expense report, is exactly industry
It is engaged in main table, detail sublist is submitted an expense account, as long as being associated with the main table of expense report, without being associated with flow instance.Giving operation flow
When modeling, need to know the main business table of this operation flow operation, the id major key of traffic table.When flow instance starts
It waits, this information is generated in flow instance table.
Step S22, if detecting, flow instance starts, and obtains the corresponding current document of the flow instance;
When detecting the starting of arbitrary flow instance, current document is generated, because document is generated based on business form
, current document also has current process Node field.
Step S23 obtains the flow nodes that the current document is presently in, the stream that the current document is presently in
Cheng Jiedian is added to the current process Node field of the current document.
After current document generation, the flow nodes that current document is presently in are added to the current process of current document
Node field, for identifying the workflow state of current document.
By increasing current process Node field in the business datum of target document, by the node circulation feelings of target document
Condition is directly bound with business datum, so that directly mesh can be obtained from the business datum of target document in the circulation of target document
The current process node for marking document without special table is being arranged from the background for storing document current process node, and improves
Query performance, simplifies business realizing logic, business is apparent.
Step S30, circulation condition and current process node based on the target document, and predefined circulation is called to connect
Mouthful, obtain the destination node for the target document that the predefined circulation interface returns;
Predefined circulation interface, i.e., predefined circulation api interface.It should be noted that predefined circulation interface is not
It is the circulation interface that workflow engine itself provides, but the circulation API that node-flow shifting method encapsulates in advance according to the present invention connects
Mouthful.
After the current process node and the circulation condition that obtain target document, circulation api interface can be called, obtains target list
According to the flow nodes that will be flowed to, i.e. destination node in the present embodiment.
Call predefined circulation interface further includes the encapsulation step of predefined circulation interface before, i.e., described to call in advance
Include: before the step of circulation interface of definition
Step S31 obtains the flow chart disposed in workflow engine, parses the flow chart to obtain flow definition letter
Breath, the flow definition information include at least node and circulation condition;
In various embodiments of the present invention, retain the workflow management ability of workflow engine, user can still draw by workflow
Customized various process maps are held up, the deployment of flow chart is completed, it, can be by the whole of deployment success after by flow chart deployment success
Flow chart is opened to be stored among memory.When workflow engine is Activiti engine, flow chart is Activiti flow chart.
When encapsulating predefined circulation interface, calls the api interface of workflow engine itself to automatically parse flow chart, obtain
Flow chart is taken to define information (the present embodiment claims " flow definition information "), wherein flow definition information includes: node, gateway etc.
Line (relationship), circulation condition between element and each element.
Flow definition information for ease of understanding now provides example as shown in Figure 3:
The node of process of analysis figure, the flow chart of acquisition has: starting, beginning, company work overtime, come home from work, completing, eventually
Only.There is all circulation alignment tables in flow chart:
1, it circulates from starter node to start node, condition is sky;(null is null pointer, does not quote effective object, herein
Finger is bound to circulate from starter node to start node rather than other nodes, judges without any condition, and hereafter conditional is empty
Meaning it is identical)
2, subsidiary company overtime work node-flow goes to completion node, and condition is sky;
3, terminal node is gone to from completion node-flow, condition is sky;
4, it circulates from start node to XOR gateway, condition is sky;(XOR gateway is frequently used for determining the circulation side of process
To exclusive gateway channels can only have a branch to execute)
5, it circulates from XOR gateway to node of coming home from work, condition is next;
6, from node of coming home from work to terminal node, condition is sky;
7, it circulates from XOR gateway to company and works overtime node, condition is overtime work.
All nodes in flow chart and the line that circulates are encapsulated into circulation api interface, realize that all above-mentioned circulation API connect
The querying node function of mouth.Wherein, when process modeling, the value (condition in such as this example of business critical field is got
For working or come off duty), it does some relevant judgements or display uses.These just need by the business datum in document as
Variable transferring is into process context.
Step S32 encapsulates predefined circulation interface according to the flow definition information.
Based on the flow definition information that process of analysis figure obtains, predefined circulation interface is encapsulated.
Based on the flow definition information that process of analysis figure obtains, the achievable function of predefined circulation interface includes: (1)
Present node is inputted, circulate lines part, exports destination node title;(2) it directly inputs present node and inquires the present node
Next node and circulation condition;(3) all node listings are obtained.
Optionally, include: after described the step of encapsulating predefined circulation interface according to the flow definition information
Step S321 obtains present node locating for current queries document when detecting inquiry instruction;
At the interface of process management system, settable triggering inquiry instruction clicks control, is detecting user's click
When this can click control, triggering generates inquiry instruction.When current queries document refers to that inquiry instruction is triggered, process management system
The document of interface display inquired.
Step S322 calls the predefined circulation interface using the present node as input parameter, described in output
The next node and circulation condition for the present node that predefined circulation interface returns.
Predefined circulation interface is when receiving present node, by the flow definition information being based on when encapsulation, meter
The next node for obtaining present node is calculated, and from present node circulation to the circulation condition of next node.It can be bright convenient for user
The flow direction of true workflow line and related circulation condition, so that user operates according to demand.
The target bill flow is gone to the destination node, and updates the current stream in the target document by step S40
Journey Node field.
After determining destination node, target bill flow is gone into destination node, and in more fresh target document business datum when
Current process node updates are destination node by preceding flow nodes field, to supply predefined circulation interface when circulation next time
It calls.
The present embodiment in the business datum of target document by increasing current process Node field, by the section of target document
Point circulation situation is directly bound with business datum, so that in the circulation of target document, it can be directly from the business datum of target document
The middle current process node for obtaining target document, without special table is being arranged from the background for storing document current process section
Point, and query performance is improved, business realizing logic is simplified, business is apparent;
By calling predefined circulation interface, using the circulation condition of target document and current process node as predefined
Circulation interface input parameter, can get the output parameter that predefined circulation interface returns: target document is by the mesh of flow direction
Mark node.So that not recalling the circulation interface of workflow engine when the practical circulation of document, workflow engine backstage is not depended on
Database table, user can directly be associated in business datum directly by predefined circulation interface polls to destination node
Destination node, meanwhile, by the encapsulation process of predefined circulation interface: the flow chart disposed in parsing workflow engine obtains
Flow definition information is obtained, predefined circulation interface is encapsulated based on flow definition information, it is known that in embodiments of the present invention, user
Still the outstanding workflow management ability of workflow engine can be also remained with customized various process maps, i.e., the present invention is implemented
Example can retain the advantage of workflow engine, also solve the problem that a problem of workflow engine, realize preferably workflow management;Due to
The deployment diagram for having only used workflow engine has abandoned intermediate process record sheet, can save a large amount of database space, reduces dimension
Protect cost.
Further, include: after the step S32 in node-flow shifting method second embodiment of the present invention such as Fig. 4
It is corresponding to circulated documents to obtain the node jump instruction if detecting node jump instruction by step S33;
At the interface of process management system, what settable triggering node jumped clicks control, is detecting user's click
When this can click control, triggering generates node jump instruction.To circulated documents, list to be circulated can be obtained from node jump instruction
According to mark, obtained based on being identified to circulated documents to circulated documents.
Step S34 calls the predefined circulation interface, obtains the node column that the predefined circulation interface returns
Table;
It, can by the node of all nodes or part of nodes in flow chart in the encapsulated phase of predefined circulation interface
Location (or node ID) is encapsulated into predefined circulation interface, after detecting node jump instruction, calls the predefined stream
Converting interface obtains node listing.
Step S35 receives the specified node that user is selected based on the node listing, arrives described to circulated documents circulation
The specified node.
The node listing that predefined circulation interface returns, may be configured as the node listing that can be clicked, according to the point of user
It hits after operating the specified node that determining user selectes, will circulate the specified node selected to user to circulated documents.
If the present embodiment obtains the corresponding list to be circulated of the node jump instruction by detecting node jump instruction
According to;The predefined circulation interface is called, the node listing that the predefined circulation interface returns is obtained;Receive user's base
, will be described to circulated documents circulation to the specified node in the specified node that the node listing is selected, it can be by user's freedom
It specifies the next node of flow direction to circulated documents, realization freely circulates.
Further, in node-flow shifting method 3rd embodiment of the present invention, the acquisition predefined circulation is connect
Include: after the step of destination node for the target document that mouth returns
Step S50 obtains the identical all target documents of destination node;
It is described that the target bill flow is gone into the destination node, and update the current process section in the target document
Point field the step of include:
All target document bulk streams are gone into the destination node, and update the current process section in all target documents
Point field.
Because the business datum of target document is directly bound node circulation situation, can be directly from each target document
Corresponding flow nodes information is obtained in business datum, obtains current process node therein, and obtains the stream of each target document
Turn condition, circulation condition and current process node based on each target document obtain the destination node of each target document, obtain mesh
The identical all target documents of node are marked, the identical all target document bulk streams of destination node are gone into destination node, and more
Current process Node field in new all target documents.
All target document bulk streams are gone to institute by obtaining the identical all target documents of destination node by the present embodiment
Destination node is stated, automatic adaptation document quantity can be needed according to business scenario, to reach batch effect, greatly promotes circulation effect
Rate.
Further, in node-flow shifting method fourth embodiment of the present invention, the rollback process of existing document is complicated, needs
Rollback historical record is obtained by engine, then is called by complicated interface and completes rollback operation, for the rollback for simplifying document
Operation, the node-flow shifting method further include:
Step S60 after detecting back-off instruction, obtains the corresponding document to be retracted of the back-off instruction;
User is after assigning back-off instruction, the corresponding document to be retracted, that is, current operation document of the back-off instruction
Step S61 inquires preset circulation log sheet according to the document to be retracted, based on the preset circulation of the inquiry
The query result of log sheet obtains the history node that the bill flow to be retracted is passed through, and exports going through for the history node composition
History node listing;
To node circulation each time, a preset circulation log sheet is all formed, for recording stream in node circulation
The nodal information crossed.Preset circulation log sheet may include for identifying the business major key of a document, upper flow nodes, current
Flow nodes, circulation date, circulation people etc., such as table 2.
Optionally, settable two kinds of back-off instructions, for one kind to return back to a flow nodes, another kind is to return back to finger
The history node that user specifies, step S60 include: to inquire preset circulation log sheet after detecting the first back-off instruction, obtain
A upper flow nodes are obtained, a flow nodes are return back to;After detecting the second back-off instruction, preset circulation day is inquired
Will table obtains all history nodes that the bill flow of current operation is passed through, generates history node listing, and exports history node column
Table is for the specified node to retract of user.
It (if there is particular service limits, is then needed further, it is also possible to obtain preset node listing by user's calling interface
Shown after filtering out preset node listing in all nodes based on certain condition), it is specified back in preset node listing
Node is moved back, the rollback node is jumped directly to.
Step S62 receives the rollback node that user is selected based on the history node listing, and return back to the rollback section
Point.
After determining rollback node based on user's operation, and the section that user selects is return back to according to the node selection instruction
Point.
After the present embodiment is by detecting back-off instruction, preset circulation log sheet is inquired, obtains the history section that stream passes through
Point list, and export history node listing for selection by the user;The node selection instruction of user's triggering is received, and according to the section
Point selection instruction return back to the node of user's selection, can simplify the rollback operation of document.
In addition, the present invention also provides a kind of node transfer devices corresponding with above-mentioned each step of node-flow shifting method.
It is the functional block diagram of node transfer device first embodiment of the present invention referring to Fig. 5, Fig. 5.
In the present embodiment, node transfer device of the present invention includes:
Document obtains module 10, for it is corresponding to obtain the node circulation instruction after detecting node circulation instruction
Target document;
Circulation obtains module 20, obtains for obtaining the circulation condition of the target document, and according to the target document
Current process node locating for the target document;
Calling module 30 for circulation condition and current process node based on the target document, and calls predefined
Circulation interface, obtain it is described it is predefined circulation interface return the target document destination node;
Circulate module 40, for the target bill flow to be gone to the destination node, and updates in the target document
Current process Node field.
Further, node transfer device of the present invention further include:
Parsing module parses the flow chart for obtaining the flow chart disposed in workflow engine to obtain process
Information is defined, the flow definition information includes at least node and circulation condition;
Interface encapsulation module, for encapsulating predefined circulation interface according to the flow definition information.
Further, node transfer device of the present invention further include:
First obtain module, if for detecting node jump instruction, obtain the node jump instruction it is corresponding to
Circulated documents;
Calling module 30 is also used to call the predefined circulation interface, obtains the predefined circulation interface and returns
The node listing returned;
Circulate module 40, is also used to receive the specified node that user is selected based on the node listing, by described wait circulate
Bill flow goes to the specified node.
Further, the circulation module 40 is also used to obtain the identical all target documents of destination node;By all mesh
Mark document bulk stream goes to the destination node, and updates the current process Node field in all target documents.
Further, node transfer device of the present invention further include:
Rollback trigger module obtains the corresponding document to be retracted of the back-off instruction after detecting back-off instruction;
History querying node module, for inquiring preset circulation log sheet according to the document to be retracted, based on described
The query result for inquiring preset circulation log sheet obtains the history node that the bill flow to be retracted is passed through, and goes through described in output
The history node listing of history node composition;
Rollback module, the rollback node selected for receiving user based on the history node listing, and return back to described
Rollback node.
Further, node transfer device of the present invention further include:
Field modified module increases on the business form and works as obtaining the preset business form of workflow engine
Preceding flow nodes field;
Second obtains module, if obtaining the corresponding current list of the flow instance for detecting that flow instance starts
According to;
Field update module, the flow nodes being presently in for obtaining the current document, the current document is worked as
Preceding locating flow nodes are added to the current process Node field of the current document.
Further, node transfer device of the present invention further include:
Node obtains module, for obtaining present node locating for current queries document when detecting inquiry instruction;
Calling module 30 is also used to call the predefined circulation interface for the present node as input parameter;
Export the next node and circulation condition of the present node that the predefined circulation interface returns.
The present invention also proposes a kind of storage medium, is stored thereon with computer program.The storage medium can be Fig. 1's
Memory 201 in node circulation terminal, is also possible to such as ROM (Read-Only Memory, read-only memory)/RAM
At least one of (Random Access Memory, random access memory), magnetic disk, CD, the storage medium includes
Some instructions use so that one with processor terminal device (can be mobile phone, computer, server, the network equipment or
Node circulation terminal in the embodiment of the present invention etc.) execute method described in each embodiment of the present invention.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the server-side that include a series of elements not only include those elements,
It but also including other elements that are not explicitly listed, or further include for this process, method, article or server-side institute
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wrapping
Include in process, method, article or the server-side of the element that there is also other identical elements.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of node-flow shifting method, which is characterized in that the node-flow shifting method the following steps are included:
After detecting node circulation instruction, obtains the node circulation and instruct corresponding target document;
Obtain the circulation condition of the target document, and according to the target document obtain the target document locating for current stream
Cheng Jiedian;
Circulation condition and current process node based on the target document, and predefined circulation interface is called, described in acquisition
The destination node for the target document that predefined circulation interface returns;
The target bill flow is gone into the destination node, and updates the current process Node field in the target document.
2. node-flow shifting method as described in claim 1, which is characterized in that the step of the calling predefined circulation interface
Include: before
The flow chart disposed in workflow engine is obtained, parses the flow chart to obtain flow definition information, the process
It defines information and includes at least node and circulation condition;
Predefined circulation interface is encapsulated according to the flow definition information.
3. node-flow shifting method as claimed in claim 2, which is characterized in that described to be encapsulated in advance according to the flow definition information
Include: after the step of circulation interface of definition
If detecting node jump instruction, it is corresponding to circulated documents to obtain the node jump instruction;
The predefined circulation interface is called, the node listing that the predefined circulation interface returns is obtained;
The specified node that user is selected based on the node listing is received, it will be described to circulated documents circulation to the specified section
Point.
4. node-flow shifting method as claimed any one in claims 1 to 3, which is characterized in that described to obtain described predefine
Circulation interface return the target document destination node the step of after include:
Obtain the identical all target documents of destination node;
It is described that the target bill flow is gone into the destination node, and update the current process node word in the target document
Section the step of include:
All target document bulk streams are gone into the destination node, and update the current process node word in all target documents
Section.
5. node-flow shifting method as claimed any one in claims 1 to 3, which is characterized in that the node-flow shifting method is also
Include:
After detecting back-off instruction, the corresponding document to be retracted of the back-off instruction is obtained;
Preset circulation log sheet is inquired according to the document to be retracted, the inquiry based on the preset circulation log sheet of the inquiry
As a result the history node that the bill flow to be retracted is passed through is obtained, and exports the history node listing of the history node composition;
The rollback node that user is selected based on the history node listing is received, and return back to the rollback node.
6. node-flow shifting method as claimed any one in claims 1 to 3, which is characterized in that described according to the target list
Include: before according to the step of obtaining current process node locating for the target document
The preset business form of workflow engine is obtained, increases current process Node field on the business form;
If detecting, flow instance starts, and obtains the corresponding current document of the flow instance;
The flow nodes that the current document is presently in are obtained, the flow nodes that the current document is presently in are added to
The current process Node field of the current document.
7. node-flow shifting method as claimed in claim 2 or claim 3, which is characterized in that described to be sealed according to the flow definition information
Include: after the step of filling predefined circulation interface
If detecting inquiry instruction, present node locating for current queries document is obtained;
The predefined circulation interface is called using the present node as input parameter;
Export the next node and circulation condition of the present node that the predefined circulation interface returns.
8. a kind of node transfer device, which is characterized in that the node transfer device includes:
Document obtains module, instructs corresponding target list for after detecting node circulation instruction, obtaining the node circulation
According to;
Circulation obtains module, obtains the mesh for obtaining the circulation condition of the target document, and according to the target document
Mark current process node locating for document;
Calling module for circulation condition and current process node based on the target document, and calls predefined circulation
Interface obtains the destination node for the target document that the predefined circulation interface returns;
Circulate module, for the target bill flow to be gone to the destination node, and updates current in the target document
Flow nodes field.
The terminal 9. a kind of node circulates, which is characterized in that the node circulation terminal includes processor, memory and storage
And it can be by the node-flow carryover sequence that the processor executes, wherein the node-flow carryover sequence is by the place on the memory
When managing device and executing, the step of realizing node-flow shifting method as described in any one of claims 1 to 7.
10. a kind of storage medium, which is characterized in that node-flow carryover sequence is stored on the storage medium, wherein the node
The step of circulation program is when being executed by processor, and realizes the node-flow shifting method as described in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811272653.XA CN109636306A (en) | 2018-10-29 | 2018-10-29 | Node-flow shifting method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811272653.XA CN109636306A (en) | 2018-10-29 | 2018-10-29 | Node-flow shifting method, device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109636306A true CN109636306A (en) | 2019-04-16 |
Family
ID=66066845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811272653.XA Pending CN109636306A (en) | 2018-10-29 | 2018-10-29 | Node-flow shifting method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109636306A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111222845A (en) * | 2019-12-27 | 2020-06-02 | 北京健康之家科技有限公司 | Resource transfer method, device, equipment and readable storage medium |
CN111355802A (en) * | 2020-03-03 | 2020-06-30 | 中国邮政储蓄银行股份有限公司 | Information pushing method and device |
CN111491025A (en) * | 2020-04-13 | 2020-08-04 | 上海鸿翼软件技术股份有限公司 | Service return processing method, device, equipment and storage medium |
CN111652580A (en) * | 2020-05-29 | 2020-09-11 | 平安医疗健康管理股份有限公司 | Method and device for processing data of nodes |
CN112150116A (en) * | 2020-09-30 | 2020-12-29 | 中国银行股份有限公司 | Multi-node circulation method and device for electronic document |
CN112487163A (en) * | 2020-11-30 | 2021-03-12 | 广州品唯软件有限公司 | Execution method of automation process and acquisition method and device of interface data of automation process |
CN113760225A (en) * | 2020-10-10 | 2021-12-07 | 北京京东乾石科技有限公司 | Flow circulation method, device, equipment and storage medium |
CN116402474A (en) * | 2023-06-01 | 2023-07-07 | 快应数科(北京)科技有限公司 | Workflow engine circulation method and device supporting circulation in non-routing direction |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542367A (en) * | 2010-12-10 | 2012-07-04 | 金蝶软件(中国)有限公司 | Cloud computing network workflow processing method, device and system based on domain model |
CN103208046A (en) * | 2012-12-31 | 2013-07-17 | 广州奥凯信息咨询有限公司 | Workflow engine architecture method and system based on interactive dynamic flow diagram |
CN103279336A (en) * | 2013-01-06 | 2013-09-04 | 北京慧正通软科技有限公司 | Workflow engine multi-data source processing method |
CN105046408A (en) * | 2015-06-25 | 2015-11-11 | 国网山东省电力公司 | Configurable workflow realization method and system |
CN106529761A (en) * | 2016-09-26 | 2017-03-22 | 山东浪潮商用系统有限公司 | Workflow engine and realization method thereof |
CN106897809A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | Workflow creation method, workflow designer and workflow system |
CN106897808A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | A kind of workflow creation method and apparatus |
CN106897857A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | A kind of workflow processing method and system |
CN106897858A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | A kind of workflow processing method and system |
CN107633387A (en) * | 2017-09-28 | 2018-01-26 | 东莞嘉泰钟表有限公司 | A kind of workflow defining, making and the measures and procedures for the examination and approval of evidence to be signed a bill |
-
2018
- 2018-10-29 CN CN201811272653.XA patent/CN109636306A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542367A (en) * | 2010-12-10 | 2012-07-04 | 金蝶软件(中国)有限公司 | Cloud computing network workflow processing method, device and system based on domain model |
CN103208046A (en) * | 2012-12-31 | 2013-07-17 | 广州奥凯信息咨询有限公司 | Workflow engine architecture method and system based on interactive dynamic flow diagram |
CN103279336A (en) * | 2013-01-06 | 2013-09-04 | 北京慧正通软科技有限公司 | Workflow engine multi-data source processing method |
CN105046408A (en) * | 2015-06-25 | 2015-11-11 | 国网山东省电力公司 | Configurable workflow realization method and system |
CN106897809A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | Workflow creation method, workflow designer and workflow system |
CN106897808A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | A kind of workflow creation method and apparatus |
CN106897857A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | A kind of workflow processing method and system |
CN106897858A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | A kind of workflow processing method and system |
CN106529761A (en) * | 2016-09-26 | 2017-03-22 | 山东浪潮商用系统有限公司 | Workflow engine and realization method thereof |
CN107633387A (en) * | 2017-09-28 | 2018-01-26 | 东莞嘉泰钟表有限公司 | A kind of workflow defining, making and the measures and procedures for the examination and approval of evidence to be signed a bill |
Non-Patent Citations (1)
Title |
---|
陶忠良等: "《农业电子商务新探索》", 浙江工商大学出版社, pages: 137 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111222845A (en) * | 2019-12-27 | 2020-06-02 | 北京健康之家科技有限公司 | Resource transfer method, device, equipment and readable storage medium |
CN111355802A (en) * | 2020-03-03 | 2020-06-30 | 中国邮政储蓄银行股份有限公司 | Information pushing method and device |
CN111491025A (en) * | 2020-04-13 | 2020-08-04 | 上海鸿翼软件技术股份有限公司 | Service return processing method, device, equipment and storage medium |
CN111491025B (en) * | 2020-04-13 | 2023-12-19 | 上海鸿翼软件技术股份有限公司 | Service return processing method, device, equipment and storage medium |
CN111652580B (en) * | 2020-05-29 | 2023-02-14 | 深圳平安医疗健康科技服务有限公司 | Method and device for processing data of nodes |
CN111652580A (en) * | 2020-05-29 | 2020-09-11 | 平安医疗健康管理股份有限公司 | Method and device for processing data of nodes |
CN112150116B (en) * | 2020-09-30 | 2023-08-18 | 中国银行股份有限公司 | Multi-node circulation method and device for electronic bill |
CN112150116A (en) * | 2020-09-30 | 2020-12-29 | 中国银行股份有限公司 | Multi-node circulation method and device for electronic document |
CN113760225A (en) * | 2020-10-10 | 2021-12-07 | 北京京东乾石科技有限公司 | Flow circulation method, device, equipment and storage medium |
CN113760225B (en) * | 2020-10-10 | 2024-04-16 | 北京京东乾石科技有限公司 | Flow circulation method, device, equipment and storage medium |
CN112487163A (en) * | 2020-11-30 | 2021-03-12 | 广州品唯软件有限公司 | Execution method of automation process and acquisition method and device of interface data of automation process |
CN112487163B (en) * | 2020-11-30 | 2024-04-12 | 广州品唯软件有限公司 | Execution method of automatic flow and method and device for acquiring interface data of execution method |
CN116402474A (en) * | 2023-06-01 | 2023-07-07 | 快应数科(北京)科技有限公司 | Workflow engine circulation method and device supporting circulation in non-routing direction |
CN116402474B (en) * | 2023-06-01 | 2023-09-05 | 快应数科(北京)科技有限公司 | Workflow engine circulation method and device supporting circulation in non-routing direction |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109636306A (en) | Node-flow shifting method, device, terminal and storage medium | |
CN100478956C (en) | Method and corresponding system for creating and obtaining report forms | |
CN102955694B (en) | The client realization method of sing on web Kit browser and client | |
CN109951315B (en) | Method and system for mapping YANG model to internal model | |
US7761871B2 (en) | Data access architecture | |
CN103186391B (en) | Browser upgrade method and system and a kind of upgrade server | |
CN111104635B (en) | Method and device for generating form webpage | |
CN109634598A (en) | A kind of page display method, device, equipment and storage medium | |
CN101788906B (en) | Resource management method and system thereof | |
CN109582909A (en) | Webpage automatic generation method, device, electronic equipment and storage medium | |
CN101005681A (en) | Interface automatic forming method and interface automatic forming system | |
US7743077B2 (en) | Method and system for generating database records | |
CN101446971A (en) | Method for building content management system and device thereof | |
CN101946462A (en) | Targeted queries using an oma dm protocol | |
CN109299157A (en) | A kind of data export method and device of distributed big single table | |
CN108279882B (en) | Framework generation method, device, equipment and computer readable medium | |
CN103577420A (en) | Method and device for inquiring user information dynamically | |
CN107656729A (en) | Updating device, method and the computer-readable recording medium of List View | |
CN109241384A (en) | A kind of method for visualizing and device of scientific research information | |
CN104216902A (en) | Paging data loading method, device and system based on server paging | |
CN109669741A (en) | Language switching method, server and the storage medium of terminal applies dynamic official documents and correspondence | |
JP2003141173A (en) | Database management system and database | |
CN105740242A (en) | Information search device and method based on two-dimension code, and mobile terminal | |
CN104461893B (en) | Data processing method and data processing equipment | |
CN104516734B (en) | Operation flow configuration method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190416 |
|
RJ01 | Rejection of invention patent application after publication |