CN109697569A - A kind of method and system defining workflow - Google Patents
A kind of method and system defining workflow Download PDFInfo
- Publication number
- CN109697569A CN109697569A CN201811614787.5A CN201811614787A CN109697569A CN 109697569 A CN109697569 A CN 109697569A CN 201811614787 A CN201811614787 A CN 201811614787A CN 109697569 A CN109697569 A CN 109697569A
- Authority
- CN
- China
- Prior art keywords
- workflow
- code
- unique features
- node
- defining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- 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
-
- 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
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 embodiment of the invention discloses a kind of method and system for defining workflow, simplify definition to the uniqueness of workflow for realizing by way of condition code, to reduce the repetitive rate of workflow defining, alleviate the caching pressure to workflow defining.The method comprise the steps that obtaining the node tasks of workflow;The unique features code of the workflow is generated according to the node tasks;Associated storage is executed to the workflow and corresponding unique features code, to realize that the uniqueness to the workflow stores.
Description
Technical field
The present invention relates to technical field of automatic control more particularly to a kind of method and system for defining workflow.
Background technique
Existing workflow is broadly divided into structured workflow and free workflow, and structured workflow is holding in process
It must be executed according to blueprint predetermined in capable process, the workflow of this structuring needs to carry out business procedure detailed
Thin analysis just getable complete procedure definition, and for business or unshaped business that enterprise increases newly, then it is difficult in advance
It is thorough to consider treatment process, and it is bigger to adjust cost.
Based on the problem, and free workflow is introduced, free workflow usually requires four problems of processing: setting when starting
It is realized in meter process, circulation and jumps, returns or endorse, wherein jumped and return as the change flowed to, be easy in structure chemical industry
It is realized in flowing, and needs of endorsing temporarily are inserted into new processing links during workflow, and for the process endorsed, it is existing
Technology is all by the way of activity clone or modification definition.
Activity clone is to clone new activity, then the execution between setting activity is suitable for template with some activity
Sequence, and the scheduling mode of reconstruction flow engine, so that the dispatching sequence specified in activity is prior to the node in flow definition
Sequentially, but this method endorsed, so that the newly added movable restriction of active receiving template, endorsing disposably to be executed,
When executing the workflow again next time, need to execute instruction of endorsing again again, to increase the degree of repeating endorsed.
Modification definition, is to generate new flow definition when needing to endorse, when free process processing service flow is widely used
Cheng Shi, almost each flow instance requires to generate a new definition, and existing modification definition mode is to duplicate process
It needs to repeat to define and cache, thus the pressure of bring flow definition analysis caching will be very big, to database purchase sky
Between occupancy it is very serious.
Summary of the invention
The embodiment of the invention provides a kind of method and system for defining workflow, for being realized by way of condition code
Definition is simplified to the uniqueness of workflow, to reduce the repetitive rate of workflow, alleviates the caching pressure of workflow.
The embodiment of the present application first aspect provides a kind of method for defining workflow, comprising:
Obtain the node tasks of workflow;
The unique features code of the workflow is generated according to the node tasks;
Associated storage is executed to the workflow and corresponding unique features code, to realize the uniqueness to the workflow
Storage.
Preferably, the node tasks include fixed setting amount and/or dynamic setting amount;
When the node tasks include dynamic setting amount, the dynamic setting amount is defined in the form of variable,
So that the dynamic setting amount is independently of the unique features code.
Preferably, the method also includes:
When to the workflow execution endorse event when, increase corresponding node in the workflow with match it is described plus
Label event, and create new workflow defining.
Preferably, before the node tasks for obtaining workflow, the method also includes:
Obtain default workflow, and by the corresponding fisrt feature code of the default workflow generation;
It inquires in stored unique features code with the presence or absence of the fisrt feature code;
If so, calling directly the corresponding workflow of the fisrt feature code.
Preferably, the method also includes:
When the fisrt feature code is not present in stored unique features code, then the node times for obtaining workflow is triggered
The step of business.
The embodiment of the present application also provides a kind of systems for defining workflow, comprising:
Acquiring unit, for obtaining the node tasks of workflow;
Generation unit, for generating the unique features code of the workflow according to the node tasks;
Storage unit, for executing associated storage to the workflow and corresponding unique features code, to realize to described
The uniqueness of workflow stores.
Preferably, the node tasks include fixed setting amount and/or dynamic setting amount;
The system also includes:
Variable-definition unit, for when the node tasks include dynamic setting amount, by the dynamic setting amount to become
The form of amount is defined, so that the dynamic setting amount is independently of the unique features code.
Preferably, the system also includes:
Endorse unit, for the workflow execution endorse event when, increase corresponding section in the workflow
Point creates new workflow defining to match the event of endorsing.
Preferably, the system also includes:
Fisrt feature code generation unit, for obtaining default workflow, and by the default workflow generation corresponding
One condition code;
Query unit, for inquiring in stored unique features code with the presence or absence of the fisrt feature code;
Call unit, for, there are when fisrt feature code, calling directly described first in stored unique features code
The corresponding workflow of condition code.
Preferably, the system also includes:
Trigger unit, when for the fisrt feature code to be not present in stored unique features code, triggering obtains work
The step of making the node tasks flowed.
Present invention also provides a kind of computer installation, including processor, which is stored on memory in execution
Computer program when, for realizing the application first aspect provide definition workflow method.
Present invention also provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, which is located
When managing device execution, for realizing the method for the definition workflow that the application first aspect provides.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present application, the node tasks of workflow are obtained, generate corresponding workflow only according to the node tasks
One condition code is associated storage to the node tasks and unique features code, so that storing to the workflow execution uniqueness.Its
In, the mode of workflow is replaced with condition code, on the one hand reduces the caching pressure to workflow defining, on the other hand, is passed through
The mode of associated storage, so that the matching of condition code is carried out when generating new workflow defining, to reduce generation workflow
The repetitive rate of definition, also correspondence reduces stores pressure as caused by repetitive rate.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram that the method for workflow is defined in the embodiment of the present application;
Fig. 2 is another embodiment schematic diagram that the method for workflow is defined in the embodiment of the present application;
Fig. 3 is another embodiment schematic diagram that the method for workflow is defined in the embodiment of the present application;
Fig. 4 is one embodiment schematic diagram that the system of workflow is defined in the embodiment of the present application.
Specific embodiment
The embodiment of the invention provides a kind of method and system for defining workflow, for being realized by way of condition code
Definition is simplified to the uniqueness of workflow, to reduce the repetitive rate of workflow defining, alleviates and workflow defining is delayed
Deposit pressure.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing
Sequence other than appearance is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that covering is non-exclusive
Include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly arrange
Those of out step or unit, but may include be not clearly listed or it is solid for these process, methods, product or equipment
The other step or units having.
For convenience of understanding, the method for defining workflow to one of the application below is described, referring to Fig. 1, this
One embodiment of the method for workflow is defined in application, comprising:
101, the node tasks of workflow are obtained;
In free workflow, when needing to start workflow, system needs first to obtain the workflow of submitter's setting,
Specific workflow includes node tasks, wherein node tasks include but is not limited to that each node specifically executes movement, movement
Executing subject and/or movement executive mode, but in real work, the particular content in node tasks can also be according to task
Demand is custom-configured, and can also such as be increased time, place that movement executes, can also be deleted the executive mode of movement,
I.e. with no restrictions herein for the particular content of node tasks.Following table 1 is a kind of schematic diagram of workflow.
Table 1
Examine link | Approver | Examination & approval mode |
Level-one examination & approval | Zhang San | Or label |
Second level examination & approval | Li Si, king five | Countersign |
Three-level examination & approval | Zhao six | Or label |
102, the unique features code of the workflow is generated according to the node tasks;
In real work stream, because the configuration of workflow is complex, it is likely to be breached so as to cause the data volume of workflow
Several hundred KB or bigger, and the workflow of this big data quantity will certainly occupy biggish memory space, to influence to generate work
The processing speed of streaming system.
In order to simplify workflow, to reduce the data volume of workflow, essence is carried out to each workflow in the embodiment of the present application
Simplify definition, that is, the unique features code of each workflow is calculated, the specific can be that calculating by MD5, SHA1 or SHA256
The cryptographic Hash of workflow feature description is as condition code, so that the workflow for being up to tens of thousands of bytes passes through the Kazakhstan of about 20 bytes
Uncommon value indicates, to simplify the data volume of workflow, also it is corresponding reduce workflow caching system bring cached press
Power.
In addition, because of the characteristic of hash algorithm itself, it is ensured that different bytes generate corresponding unique condition code, therefore keep away
A possibility that different working flow generates same condition code is exempted from.
Specifically, corresponding to the workflow in table 1, level-one examines (X), and second level examines (Y), and three-level examines (X), calculates work
Make stream feature and describe corresponding cryptographic Hash, obtained condition code is 79ad7ee7afe774369a9e9282ba45d61560299
069, it follows that the data volume of workflow can be significantly reduced by way of unique features code, decreases workflow and look into
Required workload is indexed again, to reduce the caching pressure of Workflow system.
Further, when node tasks include fixed setting amount and dynamic setting amount, such as the examination & approval link and examination & approval in table 1
Mode is fixed setting amount, and examines artificial dynamic setting amount, in order to reduce the change of workflow caused by dynamic setting amount,
The processing people that three process variables (V1, V2, V3) examine link respectively as three can be added in flow definition, save stream
Identical condition code can be used thus to define Booting sequence in Cheng Dingyi, and by calling api interface in the process
The actual treatment people of three links is assigned to (V1, V2, V3) by mode respectively, to further reduce the number of workflow defining
Amount, improves the degree of simplifying of workflow defining, further reduces the storage pressure of workflow defining.
103, associated storage is executed to the workflow and corresponding unique features code, so that carrying out only to the workflow
The storage of one property.
After obtaining the corresponding unique features code of workflow, in order to realize the uniqueness storage to the workflow, it can pass through
Condition code is identified the workflow, because of the uniqueness of unique features code (cryptographic Hash), therefore can by workflow with only
The associated storage of one condition code, to realize the uniqueness storage to the workflow.
In this way, on the one hand can reduce in such a way that the condition code simplified substitutes workflow defining to workflow defining
Caching pressure, on the other hand can also in fixed storage by way of associated storage, realize to workflow defining only
The storage of one property because in the workflow defining new to default workflow generation, first in stored unique features code into
Row match query calls directly if successful match, to reduce the workload for repeatedly generating workflow defining, also reduces
The repetitive rate of workflow defining and storage pressure in fixed storage.
In the embodiment of the present application, the node tasks of workflow are obtained, generate corresponding workflow only according to the node tasks
One condition code is associated storage to the node tasks and unique features code, so that storing to the workflow execution uniqueness.Its
In, the mode of workflow defining is replaced with condition code, on the one hand reduces the caching pressure of workflow defining, on the other hand, is led to
The mode of associated storage is crossed, so that the matching of condition code is carried out when generating new workflow defining, to reduce generation work
The repetitive rate of definition is flowed, also correspondence reduces stores pressure as caused by repetitive rate.
Based on Fig. 1 the embodiment described, when need to endorse to workflow execution event when, following steps can also be performed,
Referring specifically to Fig. 2, a kind of another embodiment for the method defining workflow in the embodiment of the present application, comprising:
201, when to the workflow execution endorse event when, increase corresponding node in the workflow to match
The event of endorsing is stated, and creates new workflow;
It can only be in original node because in the prior art, being executed by way of collapsible form when endorsing event
Subtask is created in task, and the subtask is only used as the appendage task of corresponding node task, there is no corresponding nodes, therefore
After endorsing to workflow execution, the node tasks endorsed can not be shown, and the node tasks are disposably, to execute when next time
When the workflow after endorsing, it is also necessary to endorse event to former workflow execution again, to increase corresponding workload.
And modification definition by way of execute endorse event when, although the defect of collapsible form can be overcome, in reality
In the work of border, when free process processing service flow journey is widely used, especially need to be determined process institute by process promoter
When the link needed, nearly all flow instance requires to generate a new definition, to increase the caching pressure of workflow.
In the present embodiment, when need to endorse to workflow execution event when, it is only necessary to increase corresponding section in workflow
It puts to match the event of endorsing, and the workflow defining new for the workflow creation after endorsing, in this way, can not only overcome movable mold
It endorses in plate the not visible disadvantage of node, and the defect that the event of endorsing can only be executed disposably, and is creating new workflow
After definition, equally to new workflow execution Fig. 1 the embodiment described step, it can also overcome in modification definition because dynamic is set
The problem of workflow defining repetitive rate caused by the amount of setting increases is endorsed the simplification and just of event process to improve creation
Victory.
Specifically, for workflow defining described in table 1, when need the workflow execution to table 1 endorse event when, i.e., in fact
When workflow defining described in existing table 2, new technological process definition, the content of modification process operation, adjustment and flow processing can be used
The relevant process variate-value of people, and the approver newly to endorse is assigned to V4.
Table 2
Examine link | Approver | Examination & approval mode |
Level-one examination & approval | Zhang San | Or label |
Second level examination & approval | Li Si, king five | Countersign |
Three-level examination & approval | Zhao six | Or label |
Level Four examination & approval | Money two | Or label |
Base Fig. 1 or Fig. 2 the embodiment described can also execute step below before the node tasks for obtaining workflow
Suddenly, to be further reduced the storage pressure of workflow defining, referring specifically to Fig. 3, a kind of definition work in the embodiment of the present application
Another embodiment of the method for stream, comprising:
301, default workflow is obtained, and by the corresponding fisrt feature code of the default workflow generation;
When generate workflow system receive submitter submission workflow after, using preset algorithm (such as MD5,
SHA1 or SHA256) calculate the fisrt feature code for presetting workflow.
Specifically, the generating mode of fisrt feature code includes but is not limited to above-mentioned algorithm herein, as long as obtaining workflow pair
The unique features code answered, is not particularly limited herein.
302, inquiring whether there is the fisrt feature code in stored unique features code;
After obtaining the default corresponding fisrt feature code of workflow, the unique features code prestored is inquired, and judge unique features
Code whether there is the fisrt feature code in library, and if it exists, thens follow the steps 303, if it does not exist, thens follow the steps 304.
303, the corresponding workflow of the fisrt feature code is called directly.
When there are when fisrt feature code, then calling directly the work with the fisrt feature code associated storage in unique features code library
It flows, and executes the workflow.
The mode of this query calls, hence it is evident that reduce the workload for generating identical workflow defining again, decrease
The repetitive rate of same workflow defining, to reduce the storage pressure to workflow defining.
304, triggering obtains the step of node tasks of workflow.
When in unique features code library be not present fisrt feature code when, then trigger obtain workflow node tasks the step of,
Fig. 1 the embodiment described is executed to trigger.
In the embodiment of the present application, when creating new workflow defining, first by way of inquiring unique features code library,
Judge in pre-stored workflow with the presence or absence of the workflow defining, and if it exists, then call execution, if it does not exist, then execute
Visioning procedure further reduces the storage to workflow defining to reduce the repetitive rate for generating same workflow defining
Pressure.
Described above is the methods that workflow is defined in the embodiment of the present application, are to workflow defined herein below
System is described, referring to Fig. 4, one embodiment of the system of workflow defined herein, comprising:
Acquiring unit 401, for obtaining the node tasks of workflow;
Generation unit 402, for generating the unique features code of the workflow according to the node tasks;
Storage unit 403, for executing associated storage to the workflow and corresponding unique features code, to realize to institute
State the uniqueness storage of workflow.
Preferably, the node tasks include fixed setting amount and/or dynamic setting amount;
The system also includes:
Variable-definition unit 404, for when the node tasks include dynamic setting amount, by the dynamic setting amount with
The form of variable is defined, so that the dynamic setting amount is independently of the unique features code.
Preferably, the system also includes:
Endorse unit 405, for the workflow execution endorse event when, increase in the workflow corresponding
Node creates new workflow to match the event of endorsing.
Preferably, the system also includes:
Fisrt feature code generation unit 406, for obtaining default workflow, and the default workflow generation is corresponding
Fisrt feature code;
Query unit 407, for inquiring in stored unique features code with the presence or absence of the fisrt feature code;
Call unit 408, for there are when fisrt feature code, call directly described in stored unique features code
The corresponding workflow of one condition code.
Preferably, the system also includes:
Trigger unit 409, when for the fisrt feature code to be not present in stored unique features code, triggering is obtained
Unit 401.
It should be noted that class described in embodiment described in the effect of each unit and Fig. 1 to Fig. 3 in the embodiment of the present application
Seemingly, details are not described herein again.
In the embodiment of the present application, the node tasks of workflow are obtained by acquiring unit 401, are generated according to the node tasks
The node tasks and unique features code are associated storage by storage unit 403 by the unique features code of corresponding workflow, with
It realizes and the uniqueness of the workflow is stored.Wherein, the mode of workflow defining is replaced with condition code, is on the one hand reduced to work
Make the caching pressure of stream definition, on the other hand, by way of associated storage, so that carrying out when generating new workflow defining
The matching of condition code, to reduce the repetitive rate for generating workflow defining, also correspondence reduces the storage as caused by repetitive rate
Pressure.
It is retouched above from system of the angle of modular functionality entity to the definition workflow in the embodiment of the present invention
It states, the computer installation in the embodiment of the present invention is described from the angle of hardware handles below:
Function of the computer installation for realizing the system for defining workflow, computer installation one in the embodiment of the present invention
A embodiment includes:
Processor and memory;
Memory can when processor is used to execute the computer program stored in memory for storing computer program
To realize following steps:
Obtain the node tasks of workflow;
The unique features code of the workflow is generated according to the node tasks;
Associated storage is executed to the workflow and corresponding unique features code, to realize the uniqueness to the workflow
Storage.
In some embodiments of the invention, processor can be also used for realizing following steps:
When the node tasks include dynamic setting amount, the dynamic setting amount is defined in the form of variable,
So that the dynamic setting amount is independently of the unique features code.
In some embodiments of the invention, processor can be also used for realizing following steps:
When to the workflow execution endorse event when, increase corresponding node in the workflow with match it is described plus
Label event, and create new workflow.
In some embodiments of the invention, processor can be also used for realizing following steps:
Obtain default workflow, and by the corresponding fisrt feature code of the default workflow generation;
It inquires in stored unique features code with the presence or absence of the fisrt feature code;
If so, calling directly the corresponding workflow of the fisrt feature code.
In some embodiments of the invention, processor can be also used for realizing following steps:
When the fisrt feature code is not present in stored unique features code, then the node times for obtaining workflow is triggered
The step of business.
It is understood that when the processor in above explained computer installation executes the computer program, it can also
To realize the function of each unit in above-mentioned corresponding each Installation practice, details are not described herein again.Illustratively, the computer journey
Sequence can be divided into one or more module/units, and one or more of module/units are stored in the memory
In, and executed by the processor, to complete the present invention.One or more of module/units can be can complete it is specific
The series of computation machine program instruction section of function, the instruction segment are used to describe the computer program in the definition workflow
Implementation procedure in system.For example, the computer program can be divided into each list in the system of above-mentioned definition workflow
The concrete function as described in the above-mentioned corresponding system for defining workflow may be implemented in member, each unit.
The computer installation can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The computer installation may include, but are not limited to processor, memory.It will be understood by those skilled in the art that processor,
Memory is only the example of computer installation, does not constitute the restriction to computer installation, may include more or fewer
Component perhaps combines certain components or different components, such as the computer installation can also be set including input and output
Standby, network access equipment, bus etc..
The processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable GateArray, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is the control centre of the computer installation, utilizes various interfaces and the entire computer installation of connection
Various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of computer installation.The memory can mainly include storing program area and storage data area, wherein storage program
It area can application program needed for storage program area, at least one function etc.;Storage data area can store the use according to terminal
The data etc. created.In addition, memory may include high-speed random access memory, it can also include non-volatile memories
Device, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatibility are solid
State memory device.
The present invention also provides a kind of computer readable storage mediums, and the computer readable storage medium is for realizing definition
The function of the system of workflow is stored thereon with computer program, and when computer program is executed by processor, processor can be with
For executing following steps:
Obtain the node tasks of workflow;
The unique features code of the workflow is generated according to the node tasks;
Associated storage is executed to the workflow and corresponding unique features code, to realize the uniqueness to the workflow
Storage.
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor
When, processor can be specifically used for executing following steps:
When the node tasks include dynamic setting amount, the dynamic setting amount is defined in the form of variable,
So that the dynamic setting amount is independently of the unique features code.
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor
When, processor can be specifically used for executing following steps:
When to the workflow execution endorse event when, increase corresponding node in the workflow with match it is described plus
Label event, and create new workflow.
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor
When, processor can be specifically used for executing following steps:
Obtain default workflow, and by the corresponding fisrt feature code of the default workflow generation;
It inquires in stored unique features code with the presence or absence of the fisrt feature code;
If so, calling directly the corresponding workflow of the fisrt feature code.
In some embodiments of the invention, processor can be also used for realizing following steps:
When the fisrt feature code is not present in stored unique features code, then the node times for obtaining workflow is triggered
The step of business.
It is understood that if the integrated unit is realized in the form of SFU software functional unit and as independent production
Product when selling or using, can store in a corresponding computer-readable storage medium.Based on this understanding, this hair
The bright all or part of the process realized in above-mentioned corresponding embodiment method, can also be instructed relevant by computer program
Hardware is completed, and the computer program can be stored in a computer readable storage medium, which is being located
It manages when device executes, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program generation
Code, the computer program code can be source code form, object identification code form, executable file or certain intermediate forms
Deng.The computer-readable medium may include: any entity or device, record that can carry the computer program code
It is medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-OnlyMemory), random
Access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs
It is noted that the content that the computer-readable medium includes can be according to making laws in jurisdiction and patent practice is wanted
It asks and carries out increase and decrease appropriate, such as in certain jurisdictions, do not include according to legislation and patent practice, computer-readable medium
Electric carrier signal and telecommunication signal.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method for defining workflow characterized by comprising
Obtain the node tasks of workflow;
The unique features code of the workflow is generated according to the node tasks;
Associated storage is executed to the workflow and corresponding unique features code, the uniqueness of the workflow is deposited with realizing
Storage.
2. the method according to claim 1, wherein the node tasks include fixed setting amount and/or dynamic
Set amount;
When the node tasks include dynamic setting amount, the dynamic setting amount is defined in the form of variable, so that
The dynamic setting amount is independently of the unique features code.
3. the method according to claim 1, wherein the method also includes:
When to the workflow execution endorse event when, increase corresponding node in the workflow to match the thing of endorsing
Part, and create new workflow defining.
4. according to the method in any one of claims 1 to 3, which is characterized in that appoint in the node for obtaining workflow
Before business, the method also includes:
Obtain default workflow, and by the corresponding fisrt feature code of the default workflow generation;
It inquires in stored unique features code with the presence or absence of the fisrt feature code;
If so, calling directly the corresponding workflow of the fisrt feature code.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
When the fisrt feature code is not present in stored unique features code, then the node tasks for obtaining workflow are triggered
Step.
6. a kind of system for defining workflow characterized by comprising
Acquiring unit, for obtaining the node tasks of workflow;
Generation unit, for generating the unique features code of the workflow according to the node tasks;
Storage unit, for executing associated storage to the workflow and corresponding unique features code, to realize to the work
The uniqueness of stream stores.
7. system according to claim 6, which is characterized in that the node tasks include fixed setting amount and/or dynamic
Set amount;
The system also includes:
Variable-definition unit, for when the node tasks include dynamic setting amount, by the dynamic setting amount with variable
Form is defined, so that the dynamic setting amount is independently of the unique features code.
8. system according to claim 6 or 7, which is characterized in that the system also includes:
Endorse unit, for the workflow execution endorse event when, increase in the workflow corresponding node with
It endorses described in matching event, and creates new workflow defining.
9. a kind of computer installation, including processor, which is characterized in that the processor is executing the computer journey on memory
When sequence, for realizing the method for the definition workflow as described in any one of claims 1 to 5.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed
When device executes, for realizing the method for the definition workflow as described in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811614787.5A CN109697569A (en) | 2018-12-27 | 2018-12-27 | A kind of method and system defining workflow |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811614787.5A CN109697569A (en) | 2018-12-27 | 2018-12-27 | A kind of method and system defining workflow |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109697569A true CN109697569A (en) | 2019-04-30 |
Family
ID=66232141
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811614787.5A Pending CN109697569A (en) | 2018-12-27 | 2018-12-27 | A kind of method and system defining workflow |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109697569A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110991983A (en) * | 2019-11-05 | 2020-04-10 | 泰康保险集团股份有限公司 | Task processing method, device, medium and equipment |
CN114331391A (en) * | 2022-03-09 | 2022-04-12 | 北京有生博大软件股份有限公司 | Workflow synchronous updating method and workflow synchronous updating system based on global state updating |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1983313A (en) * | 2006-04-07 | 2007-06-20 | 华为技术有限公司 | Workflow data processor and processing method |
US20100023368A1 (en) * | 2008-07-28 | 2010-01-28 | Verizon Data Services Llc | Dynamic request workflow management method and system |
CN105389674A (en) * | 2015-12-21 | 2016-03-09 | 用友网络科技股份有限公司 | Workflow cyclic approval system |
CN105447635A (en) * | 2015-11-19 | 2016-03-30 | 金蝶软件(中国)有限公司 | Examination and approval method and device in workflow |
CN106897810A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | Method for processing business and system, workflow engine and system, operation system |
CN108074072A (en) * | 2016-11-15 | 2018-05-25 | 北京合思信息技术有限公司 | A kind of financial transaction approval process management method |
-
2018
- 2018-12-27 CN CN201811614787.5A patent/CN109697569A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1983313A (en) * | 2006-04-07 | 2007-06-20 | 华为技术有限公司 | Workflow data processor and processing method |
US20100023368A1 (en) * | 2008-07-28 | 2010-01-28 | Verizon Data Services Llc | Dynamic request workflow management method and system |
CN105447635A (en) * | 2015-11-19 | 2016-03-30 | 金蝶软件(中国)有限公司 | Examination and approval method and device in workflow |
CN106897810A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | Method for processing business and system, workflow engine and system, operation system |
CN105389674A (en) * | 2015-12-21 | 2016-03-09 | 用友网络科技股份有限公司 | Workflow cyclic approval system |
CN108074072A (en) * | 2016-11-15 | 2018-05-25 | 北京合思信息技术有限公司 | A kind of financial transaction approval process management method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110991983A (en) * | 2019-11-05 | 2020-04-10 | 泰康保险集团股份有限公司 | Task processing method, device, medium and equipment |
CN110991983B (en) * | 2019-11-05 | 2023-10-13 | 泰康保险集团股份有限公司 | Task processing method, device, medium and equipment |
CN114331391A (en) * | 2022-03-09 | 2022-04-12 | 北京有生博大软件股份有限公司 | Workflow synchronous updating method and workflow synchronous updating system based on global state updating |
CN114331391B (en) * | 2022-03-09 | 2022-08-19 | 北京有生博大软件股份有限公司 | Workflow synchronous updating method and workflow synchronous updating system based on global state updating |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110134516B (en) | Financial data processing method, apparatus, device and computer readable storage medium | |
CN107622102B (en) | Entity card number generation method and terminal device | |
CN107819870A (en) | Incremental data pulling method and device, storage medium, terminal equipment and server | |
CN111563820B (en) | Intelligent contract parallel execution method and device | |
CN110188135A (en) | Document generating method and equipment | |
CN109697569A (en) | A kind of method and system defining workflow | |
CN108241539A (en) | Interactive big data querying method, device, storage medium and terminal device based on distributed system | |
CN110852559A (en) | Resource allocation method and device, storage medium and electronic device | |
CN110069278A (en) | A kind of automation distributed multi-task packaging method and system | |
CN114091029B (en) | Training system, method, device, medium and platform for malicious file detection model | |
CN109670726A (en) | A kind of workflow extended node tasks execute the method and flow engine of body | |
US11120513B2 (en) | Capital chain information traceability method, system, server and readable storage medium | |
CN110362583A (en) | A kind of data processing method and device for multi-data source | |
CN107424001A (en) | The control method and system of production marketing amount | |
CN109359799B (en) | Policy maintenance bill processing method and device, computer equipment and storage medium | |
CN109165325A (en) | Method, apparatus, equipment and computer readable storage medium for cutting diagram data | |
CN111080394B (en) | Matching method, device and storage medium | |
CN113377652A (en) | Test data generation method and device | |
CN109656709A (en) | A kind of method and apparatus of Codis cluster dilatation | |
CN113467760B (en) | Method for creating order model the device storage medium and computer device | |
CN115292341B (en) | Method, device and system for real-time sequencing of equipment list and storage medium | |
CN109495575A (en) | A kind of service configuration method, system and ERP server | |
CN114785847B (en) | Network control software development configuration method, terminal and storage medium | |
CN113342542B (en) | Service processing method, device, equipment and computer storage medium | |
CN116760647B (en) | Parameter self-adaption-based multiparty security computing method, system and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190430 |