CN104809610A - Business flow processing method and device - Google Patents

Business flow processing method and device Download PDF

Info

Publication number
CN104809610A
CN104809610A CN201510239315.6A CN201510239315A CN104809610A CN 104809610 A CN104809610 A CN 104809610A CN 201510239315 A CN201510239315 A CN 201510239315A CN 104809610 A CN104809610 A CN 104809610A
Authority
CN
China
Prior art keywords
transition
action
operation flow
initial state
state
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
CN201510239315.6A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510239315.6A priority Critical patent/CN104809610A/en
Publication of CN104809610A publication Critical patent/CN104809610A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a business flow processing method and device. The method comprises the following steps: after the transition action of the current intermediate state of business flow is finished, receiving a rollback command triggered from outside; reading a pre-configured transition token table according to the rollback command, wherein operation states which are arranged according to a time operation sequence are recorded in the transition token table; reading a last transition and a last state from the transition token table according to the current intermediate state ; revoking the transition action of the current intermediate state , and activating the last action and the last state. By adopting the business flow processing method and device, the business flow processing flexibility is enhanced, and different scene demands are met; moreover, the trend and actions of the business flow can be configured or customized flexibly.

Description

Business flow processing method and device
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of business flow processing method in the Internet communication service and device.
Background technology
The workflow part of general reference in the middle of business or the robotization of entirety under the Internet communication service field are abstract to business rule between workflow and various operation steps.At present, in the Internet communication service field, there is special WFMC (WfMC), this tissue creates and the perfect relevant criterion of workflow, be proposed Wf-XML and XML Process Definition Language (Xpdl), by using this bilingual to store and exchange process model.But, in the business procedure of reality, do not need so loaded down with trivial details standard and language, usually adopt workflow engine to realize corresponding operation flow.The problem that workflow engine mainly solves is to realize certain business objective, utilizes the protocol rule transmission tasks of computing machine, information or service.
At present, workflow engine Main Basis judges that current duty generates corresponding action, customizable and not easily revise, and the workflow of reality trend is all the order circulation by specifying.But in practical business process, need the rollback carrying out business, conventional mode can only generate corresponding action and do redirect according to current state.Thus, existing business flow processing method cannot meet different scene demand.
Summary of the invention
Fundamental purpose of the present invention is to propose a kind of strong business flow processing method of dirigibility and device, with satisfied different scene demand.
For achieving the above object, a kind of business flow processing method provided by the invention, described operation flow comprises initial state, intermediateness and done state, and described method comprises:
After the transition release of the current intermediate condition of operation flow, receive the back-off instruction of external trigger;
According to described back-off instruction, read pre-configured transition token table, described transition token table record has according to the tactic mode of operation of time operation;
From described transition token table, last transition action and laststate is read according to current intermediate condition;
Cancel the transition action of current intermediate condition, and activate last transition action and laststate.
Preferably, after the transition release of the described current intermediate condition in operation flow, also comprise before receiving the step of the back-off instruction of external trigger:
Obtain the initial state of operation flow;
Read the transition action to done state after initial state of pre-configured operation flow;
According to the execution sequence of described transition action, perform each transition action described operation flow successively from described initial state.
Preferably, also comprise before the step of the initial state of described acquisition operation flow:
To the transition action of done state after configuring described initial state, be kept at local data base or generating configuration file, for calling corresponding transition action from described local data base or configuration file.
Preferably, described method also comprises:
In the process performing each transition action in described operation flow from described initial state successively, trigger execution by external activation instruction and change action accordingly; The triggering mode of described activation instruction at least comprises: external message triggering, manual activation and clocked flip.
Preferably, the trend of the transition action of described operation flow is parallel or serial;
Preferably, described operation flow is based on Petri network model generation workflow engine.
The embodiment of the present invention also proposes a kind of business flow processing device, and described operation flow comprises initial state, intermediateness and done state, and described device comprises:
Receiver module, after the transition release of the current intermediate condition in operation flow, receives the back-off instruction of external trigger;
Read module, for according to described back-off instruction, read pre-configured transition token table, described transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition;
Processing module, for cancelling the transition action of current intermediate condition, and activates last transition action and laststate.
Preferably, described device also comprises:
Start module, for obtaining the initial state of operation flow; Read the transition action to done state after initial state of pre-configured operation flow; According to the execution sequence of described transition action, perform each transition action described operation flow successively from described initial state.
Preferably, this device also comprises:
Configuration module, for the transition action to done state after configuring described initial state, is kept at local data base or generating configuration file, for calling corresponding transition action from described local data base or configuration file.
Preferably, described startup module, in the process performing each transition action in described operation flow from described initial state successively, triggers execution by external activation instruction and changes action accordingly; The triggering mode of described activation instruction at least comprises: external message triggering, manual activation and clocked flip.
A kind of business flow processing method that the present invention proposes and device, after the transition release of the current intermediate condition of operation flow, receive the back-off instruction of external trigger; According to back-off instruction, read pre-configured transition token table, transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition; Cancel the transition action of current intermediate condition, and activate last transition action and laststate, achieve the rollback operation of operation flow thus according to business actual scene, improve business flow processing dirigibility, meet different scene demand; In addition, the trend of operation flow, action can flexible configuration or customizations, and generate corresponding data and allow to store with database or document form, by relying on different scene demand, different flow process active modes can be provided, meet different scene demand further.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the server that the embodiment of the present invention relates to;
Fig. 2 is the schematic flow sheet of business flow processing method first embodiment of the present invention;
Fig. 3 is the schematic flow sheet of business flow processing method second embodiment of the present invention;
Fig. 4 is the schematic flow sheet of business flow processing method the 3rd embodiment of the present invention;
Fig. 5 is the order operation flow schematic diagram applied in the embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of business flow processing device first embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of business flow processing device second embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of business flow processing device the 3rd embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The main thought of embodiment of the present invention scheme is: based on the workflow engine of Petri network model generation operation flow, business flow processing is realized based on this workflow engine, the rollback operation of operation flow is realized according to business actual scene, to improve business flow processing dirigibility, meet different scene demand.In addition, the trend of operation flow, action can flexible configuration or customizations, and generate corresponding data and allow to store with database or document form, by relying on different scene demand, can provide different flow process active modes.
Embodiment of the present invention scheme running environment can be under the Internet communication service field, realizing the PC terminals such as the server of operation flow, can certainly be the mobile terminals such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider.The present embodiment is illustrated with server.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
It will be appreciated by persons skilled in the art that the hardware configuration of above-mentioned server can be as shown in Figure 1.
With reference to Fig. 1, this server can comprise: processor 1001, such as CPU, network interface 1004, user interface 1003, storer 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication in this server between each building block.User interface 1003 can comprise the display screen (Display) with touch controllable function, and the assembly such as keyboard (Keyboard), mouse, for receiving the information of user's input, and the information of reception is sent to processor 1005 processes.Display screen can be LCD display, LED display, can also being touch screen etc., for realizing the Presentation Function of server, showing corresponding data.Alternatively, user interface 1003 can also comprise wireline interface, the wave point of standard.Network interface 1004 optionally can comprise wireline interface, the wave point (as WI-FI interface) of standard.Storer 1005 can be high-speed RAM storer, also can be stable storer (non-volatilememory), such as magnetic disk memory.Storer 1005 can also be optionally the memory storage independent of aforementioned processor 1001.As shown in Figure 1, operating system, network communication module, Subscriber Interface Module SIM and business flow processing application program can be comprised as in a kind of storer 1005 of computer-readable storage medium.
In server shown in Fig. 1, network interface 1004 is mainly used in service server or other network platforms, carries out data communication with service server or other network platforms; User interface 1003 is mainly used in connecting client, carries out data communication with client, receives information and the instructions such as the service request of client input; And processor 1001 may be used for calling the business flow processing application program stored in storer 1005, and perform following operation:
After the transition release of the current intermediate condition of operation flow, receive the back-off instruction of external trigger; According to described back-off instruction, read pre-configured transition token table, described transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition; Cancel the transition action of current intermediate condition, and activate last transition action and laststate.
Further, in one embodiment, processor 1001 calls the business flow processing application program stored in storer 1005, can also perform following operation:
Obtain the initial state of operation flow;
Read the transition action to done state after initial state of pre-configured operation flow;
According to the execution sequence of described transition action, perform each transition action described operation flow successively from described initial state.
Further, in one embodiment, processor 1001 calls the business flow processing application program stored in storer 1005, can also perform following operation:
Before the step of initial state obtaining operation flow, to the transition action of done state after configuring described initial state, be kept at local data base or generating configuration file, for calling corresponding transition action from described local data base or configuration file.
Further, in one embodiment, processor 1001 calls the business flow processing application program stored in storer 1005, can also perform following operation:
In the process performing each transition action in described operation flow from described initial state successively, trigger execution by external activation instruction and change action accordingly; The triggering mode of described activation instruction at least comprises: external message triggering, manual activation and clocked flip.
The present embodiment, by such scheme, after the transition release of the current intermediate condition of operation flow, receives the back-off instruction of external trigger; According to back-off instruction, read pre-configured transition token table, transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition; Cancel the transition action of current intermediate condition, and activate last transition action and laststate, achieve the rollback operation of operation flow thus according to business actual scene, improve business flow processing dirigibility, meet different scene demand; In addition, the trend of operation flow, action can flexible configuration or customizations, and generate corresponding data and allow to store with database or document form, by relying on different scene demand, different flow process active modes can be provided, meet different scene demand further.
Based on above-mentioned server hardware structure, each embodiment of the inventive method is proposed.
Due in prior art, Business Works engine Main Basis judges that current duty generates corresponding action, customizable and not easily revise, and the workflow of reality trend is all the order circulation by specifying.But in practical business process, need the rollback carrying out business, conventional mode can only generate corresponding action and do redirect according to current state.Thus, existing business flow processing method cannot meet different scene demand.
For this reason, the present invention proposes a kind of workflow engine based on Petri network model, can realize the rollback operation of operation flow according to business actual scene, improves business flow processing dirigibility, meets different scene demand; In addition, the trend of operation flow, action can flexible configuration or customizations, and generate corresponding data and allow to store with database or document form, by relying on different scene demand, different flow process active modes can be provided, meet different scene demand further.
Particularly, as shown in Figure 2, first embodiment of the invention proposes a kind of business flow processing method, and described method comprises:
Step S101, after the transition release of the current intermediate condition of operation flow, receives the back-off instruction of external trigger;
In the present embodiment, based on the workflow engine of Petri network model generation operation flow, realize business flow processing based on this workflow engine, realize the rollback operation of operation flow according to business actual scene, to improve business flow processing dirigibility, meet different scene demand.
Petri network model a kind ofly describes mathematical modeling instrument that is discrete, distributed system.It describes state and transition by formalization means, is similar to finite-state machine model.Its grammar rule is conducive to computer program to be safeguarded.
As previously mentioned, the workflow part of general reference in the middle of business or the robotization of entirety under the Internet communication service field are abstract to business rule between workflow and various operation steps.
The problem that workflow engine mainly solves is to realize certain business objective, utilizes the protocol rule transmission tasks of computing machine, information or service.
The present embodiment adopts and realizes workflow engine based on Petri network model, and the order circulation of flow process, branch, convergence, redirect scheduling algorithm have definition/theorem to be foundation.
Wherein, Petri network model comprises four fundamental elements:
Storehouse institute: for describing the state of finite-state machine;
Transition: the action performed for state transition;
Directed arc: for describing the direction of status change;
Token: the transition process describing state.
The present embodiment is not considered: existing workflow engine Main Basis judges that current duty generates corresponding action, customizable and not easily revise.And the workflow of reality trend is all the order circulation by specifying, in practical business process, need the rollback carrying out business, conventional mode can only generate corresponding action and do redirect according to current state, but according to the transition process of the state of description, the present embodiment can that is to say that walking of token always directly carries out rollback based on the workflow engine implementation method of Petri network model.
Usually, operation flow comprises initial state, intermediateness and done state, and the end of an operation flow is with till done state.
When carrying out business flow processing, according to workflow engine, using initial state as starting point, performing corresponding transition (action) by initial state and jumping to corresponding state, until done state.
In business flow processing process, the situation needing to carry out business rollback may be there is, such as, when user buys commodity by electric business's platform, in order business procession, user is actual appropriate for throwing, but because courier's maloperation is non-correct-distribute, the non-correct-distribute state that now needs to recall an order is Last status, that is to say shipped state, more again upgrades order status for sign for.
Therefore, in the present embodiment, in order to realize the rollback operation of operation flow, under the current a certain intermediateness of operation flow, after transition release, obtain rollback operation instruction, the instruction of this rollback operation can be triggered by user, also can be triggered according to user feedback by system.
Step S102, according to described back-off instruction, read pre-configured transition token table, described transition token table record has according to the tactic mode of operation of time operation;
Step S103, reads last transition action and laststate according to current intermediate condition from described transition token table;
Step S104, cancels the transition action of current intermediate condition, and activates last transition action and laststate.
Afterwards, according to the back-off instruction that user triggers, corresponding rollback operation is performed.
Particularly, first, according to back-off instruction, read pre-configured transition token table, this transition token table record has according to the tactic mode of operation of time operation.
Afterwards, from described transition token table, last transition action and laststate is read according to current intermediate condition.
Finally, cancel the transition action of current intermediate condition, and activate last transition action and laststate.
Such as, in order business procession, user is actual appropriate for throwing, but due to courier's maloperation be non-correct-distribute, the non-correct-distribute state that now needs to recall an order is Last status, that is to say shipped state, more again renewal order status for sign for.
The present embodiment, by such scheme, after the transition release of the current intermediate condition of operation flow, receives the back-off instruction of external trigger; According to back-off instruction, read pre-configured transition token table, transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition; Cancel the transition action of current intermediate condition, and activate last transition action and laststate, achieve the rollback operation of operation flow thus according to business actual scene, improve business flow processing dirigibility, meet different scene demand.
As shown in Figure 3, second embodiment of the invention proposes a kind of business flow processing method, based on the embodiment shown in above-mentioned Fig. 3, at above-mentioned steps S101: after the transition release of the current intermediate condition of operation flow, also comprise before receiving the back-off instruction of external trigger:
Step S80, obtains the initial state of operation flow;
Step S90, reads the transition action to done state after initial state of pre-configured operation flow;
Step S100, according to the execution sequence of described transition action, performs each transition action described operation flow successively from described initial state.
Compare above-described embodiment, the present embodiment also comprises the scheme starting and also sequentially perform each transition action in operation flow.
Particularly, in the present embodiment, pre-configured operation flow is to each transition action of done state after initial state, and this configuration data can be kept at local data base, also can store with configuration file.
When performing each transition action of operation flow, from the initial state of operation flow, from local data base or configuration file, read the transition action to done state after initial state of pre-configured operation flow, then, according to the execution sequence of transition action, perform each transition action operation flow successively from initial state.
Thus pass through workflow configuration mode comparatively easily, and generate corresponding data as persistence, allow the storage mode with database or file, achieve the orderly process of operation flow; In addition, the rollback operation of operation flow can also be realized according to business actual scene, improve business flow processing dirigibility, meet different scene demand.
Preferably, above-mentionedly perform in the process of each transition action operation flow successively from initial state, execution can be triggered by external activation instruction and change action accordingly, wherein: the triggering mode of activation instruction can be: external message triggering, manual activation and clocked flip etc.
As shown in Figure 4, third embodiment of the invention proposes a kind of business flow processing method, based on the embodiment shown in above-mentioned Fig. 4, at above-mentioned steps S80: also comprise before obtaining the initial state of operation flow:
Step S70, to the transition action of done state after configuring described initial state, is kept at local data base or generating configuration file, for calling corresponding transition action from described local data base or configuration file.
Compare above-described embodiment, the present embodiment also comprise configuration initial state after to the scheme of the transition action of done state.
In the present embodiment, all configurable or customization of the trend of operation flow, action, the mode of employing can be descriptive language also can be graphical tools.
When concrete configuration, based on Petri network model generation workflow engine, using initial state as starting point, configure follow-up multiple transition actions of this initial state, perform corresponding transition action by initial state and can jump to corresponding state, allow action return results as basis for estimation, simultaneously allow multiple-limb trend.
The rule such as transition action, flow process trend of configuration, can be kept at local data base or generating configuration file, calls corresponding transition action and perform for system from local data base or configuration file.
In the present embodiment, the trend of the transition action of operation flow can be parallel or serial.
If perform after corresponding transition jump to corresponding state, need due to business the rollback carrying out state, can activate and return the rollback that state is carried out in action.
Adopt method described in the embodiment of the present invention, user can use descriptive language or adopt graphical tools customization process flow diagram, workflow configuration mode comparatively is easily provided, and generate corresponding data as persistence, allow the storage mode with database or file, corresponding active mode is set by relying on different scene demand, and does rollback operation according to actual scene, meet different scene demand.
The embodiment of the present invention is applicable to the order product process of electric business and the subsequent operation trend of order based on the workflow engine implementation of Petri network model.But it should be noted that, this application scenarios is applicable to but is not limited to the order flow process of electric business.
Based on above content, in order to more clearly describe the above-mentioned workflow engine implementation method based on Petri network model, will place an order for foreground user on electric business's platform below until the flow process that completes of order, the embodiment of the present invention is described in detail.
Along with electric business's platform is more and more universal, shopping online has become a kind of general Shopping Behaviors and mode, for promoting the experience of user, user need understand the order trend after purchase commodity, comprise order stock, delivery and logistics trend, therefore becoming particularly important in upgrading in time or changing of electric business's platform rear end order status, this respect comprises manual examination and verification confirmation, automatic capturing logistics information etc.
Shown in 5, usually completed the business procedure of order by following step, specific as follows:
Step 1, user foreground places an order generation order, and start different order workflows according to the modes of payments, now, order is untreated state;
Step 2, paying the bill in user foreground, then changes to order received payment state from order original state, if not payment within 24 hours, changes to order and cancel state;
Step 3, after backstage customer service examination & verification order is errorless, deliver to logistics company by clicking process propelling movement order message information, now order becomes state of getting ready the goods, if logistics company pushes Shipping Information to this order, then the order status that upgrades in time is shipped;
Step 4, receives as user and signs for, and now push and sign for information updating order status for sign for, if user rejects, then push reject message, upgrading order status is non-correct-distribute;
Step 5, if user is actual appropriate for throwing, but due to courier's maloperation be non-correct-distribute, the non-correct-distribute state that now needs to recall an order is Last status, that is to say shipped state, more again renewal order status for sign for.
In conjunction with the above order business procedure, utilize the specific implementation flow process of the workflow engine based on Petri network model of the embodiment of the present invention as follows:
Step 10, use the workflow engine implementation method based on Petri network model, generate initial state by descriptive language or graphical work, and customize follow-up transition action, the flow process being applied to order that is to say that order generates state, specifically sees above-mentioned steps 1;
Step 20, corresponding action is activated by different application scenarioss, allow to be that external message activates, also allow to be artificial activation, or timed activation, perform corresponding transition action, and receive execution result as foundation, jump to corresponding state, the flow process being applied to order can be that order arrearage becomes received payment state (external message activation) by outside payment result, or order has cancelled state (timed activation) because time back money becomes order, specifically sees above-mentioned steps 2;
Step 30, the transition action that intermediateness can read customization or configures, repeat corresponding transition action, until the end of operation flow, that is to say and jump to done state, being applied to order flow embodiment is then delivery due to commodity, and order received payment state becomes the shipped state of order, or signing for of commodity becomes order from the shipped state of order and signs for state, specifically sees above-mentioned steps 3, step 4.
Rollback flow process based on the workflow engine implementation method of Petri network model is as follows:
Step 40, intermediateness allows to return back to Last status, be applied to order flow embodiment can be commodity sign for become commodity reject, need commodity to sign for state and return to the shipped state of order, then perform reject operation, specifically see above-mentioned steps 5;
Step 50, fallback action can read the transition process table of description state, here represent with token table, token table record be the mode of operation carrying out ascending order arrangement according to time operation, according to current state and last transition action, read Last status value, cancel the transition action of current state, activate transition action and the Last status of Last status;
Step 60, returning results by fallback action, if success, return back to Last status, failed then point out error message.
The embodiment of the present invention, by such scheme, after the transition release of the current intermediate condition of operation flow, receives the back-off instruction of external trigger; According to back-off instruction, read pre-configured transition token table, transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition; Cancel the transition action of current intermediate condition, and activate last transition action and laststate, achieve the rollback operation of operation flow thus according to business actual scene, improve business flow processing dirigibility, meet different scene demand; In addition, the trend of operation flow, action can flexible configuration or customizations, and generate corresponding data and allow to store with database or document form, by relying on different scene demand, different flow process active modes can be provided, meet different scene demand further.
Accordingly, embodiment of the present invention business flow processing device is proposed.
As shown in Figure 6, first embodiment of the invention proposes a kind of business flow processing device, and described operation flow comprises initial state, intermediateness and done state, and described device comprises: receiver module 201, read module 202 and processing module 203, wherein:
Receiver module 201, after the transition release of the current intermediate condition in operation flow, receives the back-off instruction of external trigger;
Read module 202, for according to described back-off instruction, read pre-configured transition token table, described transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition;
Processing module 203, for cancelling the transition action of current intermediate condition, and activates last transition action and laststate.
In the present embodiment, based on the workflow engine of Petri network model generation operation flow, realize business flow processing based on this workflow engine, realize the rollback operation of operation flow according to business actual scene, to improve business flow processing dirigibility, meet different scene demand.
Petri network model a kind ofly describes mathematical modeling instrument that is discrete, distributed system.It describes state and transition by formalization means, is similar to finite-state machine model.Its grammar rule is conducive to computer program to be safeguarded.
As previously mentioned, the workflow part of general reference in the middle of business or the robotization of entirety under the Internet communication service field are abstract to business rule between workflow and various operation steps.
The problem that workflow engine mainly solves is to realize certain business objective, utilizes the protocol rule transmission tasks of computing machine, information or service.
The present embodiment adopts and realizes workflow engine based on Petri network model, and the order circulation of flow process, branch, convergence, redirect scheduling algorithm have definition/theorem to be foundation.
Wherein, Petri network model comprises four fundamental elements:
Storehouse institute: for describing the state of finite-state machine;
Transition: the action performed for state transition;
Directed arc: for describing the direction of status change;
Token: the transition process describing state.
The present embodiment is not considered: existing workflow engine Main Basis judges that current duty generates corresponding action, customizable and not easily revise.And the workflow of reality trend is all the order circulation by specifying, in practical business process, need the rollback carrying out business, conventional mode can only generate corresponding action and do redirect according to current state, but according to the transition process of the state of description, the present embodiment can that is to say that walking of token always directly carries out rollback based on the workflow engine implementation method of Petri network model.
Usually, operation flow comprises initial state, intermediateness and done state, and the end of an operation flow is with till done state.
When carrying out business flow processing, according to workflow engine, using initial state as starting point, performing corresponding transition (action) by initial state and jumping to corresponding state, until done state.
In business flow processing process, the situation needing to carry out business rollback may be there is, such as, when user buys commodity by electric business's platform, in order business procession, user is actual appropriate for throwing, but because courier's maloperation is non-correct-distribute, the non-correct-distribute state that now needs to recall an order is Last status, that is to say shipped state, more again upgrades order status for sign for.
Therefore, in the present embodiment, in order to realize the rollback operation of operation flow, under the current a certain intermediateness of operation flow, after transition release, obtain rollback operation instruction, the instruction of this rollback operation can be triggered by user, also can be triggered according to user feedback by system.
Afterwards, according to the back-off instruction that user triggers, corresponding rollback operation is performed.
Particularly, first, according to back-off instruction, read pre-configured transition token table, this transition token table record has according to the tactic mode of operation of time operation.
Afterwards, from described transition token table, last transition action and laststate is read according to current intermediate condition.
Finally, cancel the transition action of current intermediate condition, and activate last transition action and laststate.
Such as, in order business procession, user is actual appropriate for throwing, but due to courier's maloperation be non-correct-distribute, the non-correct-distribute state that now needs to recall an order is Last status, that is to say shipped state, more again renewal order status for sign for.
The present embodiment, by such scheme, after the transition release of the current intermediate condition of operation flow, receives the back-off instruction of external trigger; According to back-off instruction, read pre-configured transition token table, transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition; Cancel the transition action of current intermediate condition, and activate last transition action and laststate, achieve the rollback operation of operation flow thus according to business actual scene, improve business flow processing dirigibility, meet different scene demand.
As shown in Figure 7, second embodiment of the invention proposes a kind of business flow processing device, and based on the embodiment shown in above-mentioned Fig. 6, described device also comprises:
Start module 200, for obtaining the initial state of operation flow; Read the transition action to done state after initial state of pre-configured operation flow; According to the execution sequence of described transition action, perform each transition action described operation flow successively from described initial state.
Compare above-described embodiment, the present embodiment also comprises the scheme starting and also sequentially perform each transition action in operation flow.
Particularly, in the present embodiment, pre-configured operation flow is to each transition action of done state after initial state, and this configuration data can be kept at local data base, also can store with configuration file.
When performing each transition action of operation flow, from the initial state of operation flow, from local data base or configuration file, read the transition action to done state after initial state of pre-configured operation flow, then, according to the execution sequence of transition action, perform each transition action operation flow successively from initial state.
Thus pass through workflow configuration mode comparatively easily, and generate corresponding data as persistence, allow the storage mode with database or file, achieve the orderly process of operation flow; In addition, the rollback operation of operation flow can also be realized according to business actual scene, improve business flow processing dirigibility, meet different scene demand.
Preferably, above-mentionedly perform in the process of each transition action operation flow successively from initial state, execution can be triggered by external activation instruction and change action accordingly, wherein: the triggering mode of activation instruction can be: external message triggering, manual activation and clocked flip etc.
As shown in Figure 8, third embodiment of the invention proposes a kind of business flow processing device, and based on the embodiment shown in above-mentioned Fig. 7, this device also comprises:
Configuration module 204, for the transition action to done state after configuring described initial state, is kept at local data base or generating configuration file, for calling corresponding transition action from described local data base or configuration file.
Compare above-described embodiment, the present embodiment also comprise configuration initial state after to the scheme of the transition action of done state.
In the present embodiment, all configurable or customization of the trend of operation flow, action, the mode of employing can be descriptive language also can be graphical tools.
When concrete configuration, based on Petri network model generation workflow engine, using initial state as starting point, configure follow-up multiple transition actions of this initial state, perform corresponding transition action by initial state and can jump to corresponding state, allow action return results as basis for estimation, simultaneously allow multiple-limb trend.
The rule such as transition action, flow process trend of configuration, can be kept at local data base or generating configuration file, calls corresponding transition action and perform for system from local data base or configuration file.
In the present embodiment, the trend of the transition action of operation flow can be parallel or serial.
If perform after corresponding transition jump to corresponding state, need due to business the rollback carrying out state, can activate and return the rollback that state is carried out in action.
Adopt method described in the embodiment of the present invention, user can use descriptive language or adopt graphical tools customization process flow diagram, workflow configuration mode comparatively is easily provided, and generate corresponding data as persistence, allow the storage mode with database or file, corresponding active mode is set by relying on different scene demand, and does rollback operation according to actual scene, meet different scene demand.
The embodiment of the present invention is applicable to the order product process of electric business and the subsequent operation trend of order based on the workflow engine implementation of Petri network model.But it should be noted that, this application scenarios is applicable to but is not limited to the order flow process of electric business.
In conjunction with order business procedure, utilize the specific implementation flow process of the workflow engine based on Petri network model of the embodiment of the present invention to please refer to said method embodiment, do not repeat them here.
Compared to existing technology, the embodiment of the present invention is in the workflow implementing method based on Petri network model, and this workflow engine has four characteristics: one, the trend of flow process can walk abreast, serializable; Two, the active mode of flow process can be timing or activate in limited time, also can be extraneous message activation, also allow artificial activation; Three, flow process allows to carry out rollback in order implementation, that is to say and returns to a flow process; Four, all configurable or customization of the trend of flow process, action, the mode of employing can be descriptive language also can be graphical tools.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a business flow processing method, is characterized in that, described operation flow comprises initial state, intermediateness and done state, and described method comprises:
After the transition release of the current intermediate condition of operation flow, receive the back-off instruction of external trigger;
According to described back-off instruction, read pre-configured transition token table, described transition token table record has according to the tactic mode of operation of time operation;
From described transition token table, last transition action and laststate is read according to current intermediate condition;
Cancel the transition action of current intermediate condition, and activate last transition action and laststate.
2. method according to claim 1, is characterized in that, after the transition release of the described current intermediate condition in operation flow, also comprises before receiving the step of the back-off instruction of external trigger:
Obtain the initial state of operation flow;
Read the transition action to done state after initial state of pre-configured operation flow;
According to the execution sequence of described transition action, perform each transition action described operation flow successively from described initial state.
3. method according to claim 2, is characterized in that, also comprises before the step of the initial state of described acquisition operation flow:
To the transition action of done state after configuring described initial state, be kept at local data base or generating configuration file, for calling corresponding transition action from described local data base or configuration file.
4. the method according to any one of claim 1-3, is characterized in that, described method also comprises:
In the process performing each transition action in described operation flow from described initial state successively, trigger execution by external activation instruction and change action accordingly; The triggering mode of described activation instruction at least comprises: external message triggering, manual activation and clocked flip.
5. method according to claim 4, is characterized in that, the trend of the transition action of described operation flow is parallel or serial.
6. method according to claim 4, is characterized in that, described operation flow is based on Petri network model generation workflow engine.
7. a business flow processing device, is characterized in that, described operation flow comprises initial state, intermediateness and done state, and described device comprises:
Receiver module, after the transition release of the current intermediate condition in operation flow, receives the back-off instruction of external trigger;
Read module, for according to described back-off instruction, read pre-configured transition token table, described transition token table record has according to the tactic mode of operation of time operation; From described transition token table, last transition action and laststate is read according to current intermediate condition;
Processing module, for cancelling the transition action of current intermediate condition, and activates last transition action and laststate.
8. device according to claim 7, is characterized in that, described device also comprises:
Start module, for obtaining the initial state of operation flow; Read the transition action to done state after initial state of pre-configured operation flow; According to the execution sequence of described transition action, perform each transition action described operation flow successively from described initial state.
9. device according to claim 8, is characterized in that, also comprises:
Configuration module, for the transition action to done state after configuring described initial state, is kept at local data base or generating configuration file, for calling corresponding transition action from described local data base or configuration file.
10. device according to claim 8, is characterized in that,
Described startup module, in the process performing each transition action in described operation flow from described initial state successively, triggers execution by external activation instruction and changes action accordingly; The triggering mode of described activation instruction at least comprises: external message triggering, manual activation and clocked flip.
CN201510239315.6A 2015-05-12 2015-05-12 Business flow processing method and device Pending CN104809610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510239315.6A CN104809610A (en) 2015-05-12 2015-05-12 Business flow processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510239315.6A CN104809610A (en) 2015-05-12 2015-05-12 Business flow processing method and device

Publications (1)

Publication Number Publication Date
CN104809610A true CN104809610A (en) 2015-07-29

Family

ID=53694417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510239315.6A Pending CN104809610A (en) 2015-05-12 2015-05-12 Business flow processing method and device

Country Status (1)

Country Link
CN (1) CN104809610A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184958A (en) * 2015-08-26 2015-12-23 浪潮软件集团有限公司 Single-banknote currency box transaction processing method in B/S system
CN105678459A (en) * 2016-01-07 2016-06-15 武汉大学 Metadatabase-based business flow customization model
CN106549788A (en) * 2015-09-21 2017-03-29 中兴通讯股份有限公司 Service protection changes method and device
CN106651085A (en) * 2016-08-30 2017-05-10 东软集团股份有限公司 Compensation method based on process rollback and compensation device thereof
CN111124636A (en) * 2019-12-07 2020-05-08 杭州安恒信息技术股份有限公司 Process arrangement engine and control method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950390A (en) * 2010-09-21 2011-01-19 山东中创软件工程股份有限公司 Method and system for playing service flow back
CN102752497A (en) * 2011-12-27 2012-10-24 新奥特(北京)视频技术有限公司 Comprehensive programming managing platform based on programming

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950390A (en) * 2010-09-21 2011-01-19 山东中创软件工程股份有限公司 Method and system for playing service flow back
CN102752497A (en) * 2011-12-27 2012-10-24 新奥特(北京)视频技术有限公司 Comprehensive programming managing platform based on programming

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宫庆涛: "基于工作流的办公自动化系统", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184958A (en) * 2015-08-26 2015-12-23 浪潮软件集团有限公司 Single-banknote currency box transaction processing method in B/S system
CN106549788A (en) * 2015-09-21 2017-03-29 中兴通讯股份有限公司 Service protection changes method and device
CN105678459A (en) * 2016-01-07 2016-06-15 武汉大学 Metadatabase-based business flow customization model
CN106651085A (en) * 2016-08-30 2017-05-10 东软集团股份有限公司 Compensation method based on process rollback and compensation device thereof
CN111124636A (en) * 2019-12-07 2020-05-08 杭州安恒信息技术股份有限公司 Process arrangement engine and control method thereof

Similar Documents

Publication Publication Date Title
CN104809610A (en) Business flow processing method and device
CN110244977A (en) Customized software generation method, system, electronic equipment and storage medium
CN108446974A (en) Data processing equipment, method and computer readable storage medium
CN110619555A (en) Unified management method and device for order information, terminal equipment and medium
CN104616138A (en) Resource transferring method, system and device
CN105893085A (en) Method and device for loading kernel module
CN104067276A (en) Client-side minimal download and simulated page navigation features
CN103577165A (en) Form generation method and form generator
CN104679532A (en) Method and device for loading kernel module
CN109800083A (en) A kind of method, apparatus, system and storage medium that micro services collaboration is called
CN102842095A (en) Application program purchasing method and device
CN110990048A (en) Method and system for monitoring resource loss of Unity project
CN111208992A (en) System scheduling workflow generation method and system
CN104283898A (en) Information processing method and device
CN107861765B (en) Product configuration method, apparatus, and computer-readable storage medium
KR101373550B1 (en) System for platform system based on network
CN106651349B (en) Payment processing method and payment processing equipment
CN102591710A (en) Sharing object representations
CN110825807B (en) Data interactive conversion method, device, equipment and medium based on artificial intelligence
CN109815423A (en) Two-dimensional code identification method, system, equipment and storage medium based on terminal classification
US20110219096A1 (en) Method and system for operations management in a telecommunications terminal with a state machine
CN115496481A (en) Automatic picking bill generation method, computer equipment and computer storage medium
CN115169838A (en) Electronic transformer design, production and delivery internet sharing service system and method
US20120005324A1 (en) Method and System for Operations Management in a Telecommunications Terminal
US20210194710A1 (en) Information processing apparatus and service cost calculation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150729

RJ01 Rejection of invention patent application after publication