CN110517018A - A kind of any jump method of node based on activiti workflow and device - Google Patents

A kind of any jump method of node based on activiti workflow and device Download PDF

Info

Publication number
CN110517018A
CN110517018A CN201910789996.1A CN201910789996A CN110517018A CN 110517018 A CN110517018 A CN 110517018A CN 201910789996 A CN201910789996 A CN 201910789996A CN 110517018 A CN110517018 A CN 110517018A
Authority
CN
China
Prior art keywords
node
task
present node
flow direction
unit
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
CN201910789996.1A
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.)
Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanlianyi Information Technology Service 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 Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd
Priority to CN201910789996.1A priority Critical patent/CN110517018A/en
Publication of CN110517018A publication Critical patent/CN110517018A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of any jump method of node based on activiti workflow and devices, and wherein method includes: and obtains in activiti workflow to need to carry out the present node that task jumps;Empty all original task flow directions of present node;Create the new task flow direction of present node;The destination node of new task flow direction is set;It executes present node and jumps task to destination node.The present invention is not necessarily to formulate task flow branch line in advance for the case where low probability, it is only necessary to when an abnormal situation occurs, jump directly to corresponding destination node, process is succinct, and flexibility ratio is high.

Description

A kind of any jump method of node based on activiti workflow and device
Technical field
The present invention relates to activiti workflow, more specifically a kind of node based on activiti workflow is any Jump method and device.
Background technique
Activiti is the Java workflow Open-Source Tools for issuing first version in May, 2010 by TomBaeyens, main It is dedicated to the management to process, the task torsional flow with certain function that workflow is made of several active tasks, therefore its It is named as the plural Activities abbreviation of Activity and obtains.Applicable business specifically includes that the systems such as OA, CRM, ERP.
The normal flowing mode of existing activiti workflow is the root in the flow chart that prior demand analysis has customized It circulates according to branch line, but often there are some abnormal business scenarios to occur, abnormal business scenario is not in demand It can determine and when analysis, such as during business approval, occasional encounters following scene, operator Accidentally original main points pass through, and point is to refusal process, some approval processes are very long, and the node list examined before is very More, refusal falls to re-initiate the repeatability that process will increase the timeliness and operation examined again.In another example contract revocation process is such as Fruit audit passes through, and needs to terminate the process in examination & approval of making loans automatically.These require the turn function for using workflow nodes, from Present node jumps to specified node, to jumping for implementation process node, current way be to be this special circumstances Under process, draw corresponding branch line in flow charts, when demand analysis, which abnormal feelings determined also that Condition, but usually these abnormal conditions are all bad predictions.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of nodes based on activiti workflow to appoint Meaning jump method and device.
To achieve the above object, the invention adopts the following technical scheme:
On the one hand, any jump method of a kind of node based on activiti workflow, which comprises
It obtains in activiti workflow and needs to carry out the present node that task jumps;
Empty all original task flow directions of present node;
Create the new task flow direction of present node;
The destination node of new task flow direction is set;
It executes present node and jumps task to destination node.
Its further technical solution are as follows: the activiti workflow that obtains needs to carry out the present node step that task jumps It is further comprising the steps of after rapid:
Its all original task flow direction is obtained by present node and is temporarily stored all original task flow directions.
Its further technical solution are as follows: after the execution present node to destination node is the step of jumping task, packet Include following steps:
Delete the new task flow direction of present node;
Restore original task flow direction of present node.
Its further technical solution are as follows: the step of original task of the reduction present node flows to specifically includes following Step:
Inquire the interim storage address of original task flow direction;
Original task flow direction is obtained from interim storage address;
The original task flow direction that will acquire re-establishes task with present node and flows to relationship.
On the other hand, a kind of node based on activiti workflow arbitrarily jumps device, and described device includes obtaining list Member empties unit, creating unit, setting unit and execution unit;
The acquiring unit, for obtaining the present node for needing to carry out task in activiti workflow and jumping;
It is described to empty unit, for emptying all original task flow directions of present node;
The creating unit, the new task for creating present node flow to;
The setting unit, for the destination node of new task flow direction to be arranged;
The execution unit jumps task to destination node for executing present node.
Its further technical solution are as follows: described device further includes temporary storage cell;
The temporary storage cell flows to and for obtaining its all original task by present node by all original Business flow direction is temporarily stored.
Its further technical solution are as follows: described device further includes deleting unit and reduction unit;
The deletion unit, the new task for deleting present node flow to;
The reduction unit, original task for restoring present node flow to.
Its further technical solution are as follows: the reduction unit includes enquiry module, obtains module and establish module;
The enquiry module, for inquiring the interim storage address of original task flow direction;
The acquisition module, for obtaining original task flow direction from interim storage address;
Described to establish module, original task flow direction for will acquire re-establishes task with present node and flows to relationship.
Compared with the prior art, the invention has the advantages that: it is provided by the invention a kind of based on activiti workflow Any jump method of node and device when present node needs that task occurs to jump, empty all original tasks of present node Flow direction, creates the new task flow direction of present node, and the destination node of new task flow direction is arranged, then execute present node to target Node jumps task.Without formulating task flow branch line in advance for the case where low probability, it is only necessary to when an abnormal situation occurs, Corresponding destination node is jumped directly to, process is succinct, and flexibility ratio is high.
The above description is only an overview of the technical scheme of the present invention, can in order to better understand technical measure It is implemented in accordance with the contents of the specification, and in order to make above and other objects of the present invention, feature and advantage brighter Show understandable, special below to lift preferred embodiment, detailed description are as follows.
Detailed description of the invention
Fig. 1 is a kind of flow chart of any jump method specific embodiment of node based on activiti workflow of the invention One;
Fig. 2 is a kind of flow chart of any jump method specific embodiment of node based on activiti workflow of the invention Two;
Fig. 3 is the structural frames that a kind of node based on activiti workflow of the present invention arbitrarily jumps device specific embodiment Figure one;
Fig. 4 is the structural frames that a kind of node based on activiti workflow of the present invention arbitrarily jumps device specific embodiment Figure two.
Specific embodiment
In order to more fully understand technology contents of the invention, combined with specific embodiments below to technical solution of the present invention into One step introduction and explanation, but not limited to this.
It should be appreciated that herein, relational terms such as first and second and the like are used merely to an entity/behaviour Work/object is distinguished with another entity/operation/object, without necessarily requiring or implying these entity/operation/objects Between there are any actual relationship or orders.
It is also understood that the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, So that the process, method, article or the system that include a series of elements not only include those elements, but also including not having The other element being expressly recited, or further include for this process, method, article or the intrinsic element of system.Do not having In the case where having more limitations, the element that is limited by sentence "including a ...", it is not excluded that include the element process, There is also other identical elements in method, article or system.
Referring to Figure 1, a kind of any jump method of the node based on activiti workflow, the party are present embodiments provided Method the following steps are included:
Need to carry out the present node that task jumps in S10, acquisition activiti workflow;
S20, its all original task flow direction is obtained by present node and is temporarily deposited all original task flow directions Storage;
S30, all original task flow directions for emptying present node;
S40, the new task flow direction for creating present node;
The destination node that S50, setting new task flow to;
S60, execution present node jump task to destination node;
S70, the new task flow direction for deleting present node;
S80, the original task flow direction for restoring present node.
For step S10, Task entity is defined in method for servicing task to obtain current active by task ID, takes and works as Front nodal point ID returns again to current active node object.
For step S20 and S30, by current active node object, obtain all tasks flow directions of present node, and by its It is temporarily stored, then empties original task flow direction.
For step S40, new task is created using present node object reference creation new task flow direction method and is flowed to.
For step S50 and S60, the new task flow direction of setting is redirect to destination node, and execute present node to mesh Mark node jumps task.
For step S70, after jumping task execution completion, it is current to delete to call the delet method of next flow direction The new task of node flows to.
Further, refer to Fig. 2, step S80 specifically includes the following steps:
The interim storage address of S801, the original task flow direction of inquiry;
S802, original task flow direction is obtained from interim storage address;
S803, the original task that will acquire flow direction re-establish task with present node and flow to relationship.
It is flowed to specifically, finding original task by the interim storage address for inquiring original task flow direction, by original task Flow direction re-establishes task with present node and flows to relationship.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to a kind of above-mentioned any jump method of node based on activiti workflow, the present embodiment is additionally provided A kind of node based on activiti workflow arbitrarily jumps device.Fig. 3 is referred to, which includes acquiring unit 1, temporarily deposits Storage unit 2 empties unit 3, creating unit 4, setting unit 5, execution unit 6, deletes unit 7 and reduction unit 8.
Acquiring unit 1, for obtaining the present node for needing to carry out task in activiti workflow and jumping;
Temporary storage cell 2 flows to and for obtaining its all original task by present node by all original tasks Flow direction is temporarily stored;
Unit 3 is emptied, for emptying all original task flow directions of present node;
Creating unit 4, the new task for creating present node flow to;
Setting unit 5, for the destination node of new task flow direction to be arranged;
Execution unit 6 jumps task to destination node for executing present node.
Unit 7 is deleted, the new task for deleting present node flows to;
Reduction unit 8, original task for restoring present node flow to.
Further, Fig. 4 is referred to, reduction unit 8 includes enquiry module 81, obtains module 82 and establish module 83;
Enquiry module 81, for inquiring the interim storage address of original task flow direction;
Module 82 is obtained, for obtaining original task flow direction from interim storage address;
Module 83 is established, original task flow direction for will acquire re-establishes task with present node and flows to relationship.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the embodiment of the present invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with software product in other words Form embody, which is stored in a storage medium, including some instructions use so that one Computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute this hair The all or part of the steps of each embodiment the method in bright.And storage medium above-mentioned include: USB flash disk, it is mobile hard disk, read-only Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or The various media that can store program code such as person's CD.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above-mentioned apparatus The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module or unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another device, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or Communication connection 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.
It is above-mentioned that technology contents of the invention are only further illustrated with embodiment, in order to which reader is easier to understand, but not It represents embodiments of the present invention and is only limitted to this, any technology done according to the present invention extends or recreation, by of the invention Protection.Protection scope of the present invention is subject to claims.

Claims (8)

1. a kind of any jump method of node based on activiti workflow, which is characterized in that the described method includes:
It obtains in activiti workflow and needs to carry out the present node that task jumps;
Empty all original task flow directions of present node;
Create the new task flow direction of present node;
The destination node of new task flow direction is set;
It executes present node and jumps task to destination node.
2. any jump method of a kind of node based on activiti workflow according to claim 1, which is characterized in that It is further comprising the steps of after the step of acquisition activiti workflow needs to carry out the present node that task jumps:
Its all original task flow direction is obtained by present node and is temporarily stored all original task flow directions.
3. any jump method of a kind of node based on activiti workflow according to claim 2, which is characterized in that The execution present node to destination node the step of jumping task after, comprising the following steps:
Delete the new task flow direction of present node;
Restore original task flow direction of present node.
4. any jump method of a kind of node based on activiti workflow according to claim 3, which is characterized in that The step of original task of the reduction present node flows to, specifically includes the following steps:
Inquire the interim storage address of original task flow direction;
Original task flow direction is obtained from interim storage address;
The original task flow direction that will acquire re-establishes task with present node and flows to relationship.
5. a kind of node based on activiti workflow arbitrarily jumps device, which is characterized in that described device includes obtaining list Member empties unit, creating unit, setting unit and execution unit;
The acquiring unit, for obtaining the present node for needing to carry out task in activiti workflow and jumping;
It is described to empty unit, for emptying all original task flow directions of present node;
The creating unit, the new task for creating present node flow to;
The setting unit, for the destination node of new task flow direction to be arranged;
The execution unit jumps task to destination node for executing present node.
6. a kind of node based on activiti workflow according to claim 5 arbitrarily jumps device, which is characterized in that Described device further includes temporary storage cell;
The temporary storage cell flows to and for obtaining its all original task by present node by all original task flows To temporarily being stored.
7. a kind of node based on activiti workflow according to claim 6 arbitrarily jumps device, which is characterized in that Described device further includes deleting unit and reduction unit;
The deletion unit, the new task for deleting present node flow to;
The reduction unit, original task for restoring present node flow to.
8. a kind of node based on activiti workflow according to claim 7 arbitrarily jumps device, which is characterized in that The reduction unit includes enquiry module, obtains module and establish module;
The enquiry module, for inquiring the interim storage address of original task flow direction;
The acquisition module, for obtaining original task flow direction from interim storage address;
Described to establish module, original task flow direction for will acquire re-establishes task with present node and flows to relationship.
CN201910789996.1A 2019-08-26 2019-08-26 A kind of any jump method of node based on activiti workflow and device Pending CN110517018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910789996.1A CN110517018A (en) 2019-08-26 2019-08-26 A kind of any jump method of node based on activiti workflow and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910789996.1A CN110517018A (en) 2019-08-26 2019-08-26 A kind of any jump method of node based on activiti workflow and device

Publications (1)

Publication Number Publication Date
CN110517018A true CN110517018A (en) 2019-11-29

Family

ID=68627033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910789996.1A Pending CN110517018A (en) 2019-08-26 2019-08-26 A kind of any jump method of node based on activiti workflow and device

Country Status (1)

Country Link
CN (1) CN110517018A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540812A (en) * 2020-12-21 2021-03-23 珠海格力电器股份有限公司 Node skipping method and device, storage medium and electronic device
CN112766646A (en) * 2020-12-30 2021-05-07 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for generating and processing task flow
CN113535684A (en) * 2021-07-26 2021-10-22 北京计算机技术及应用研究所 Activiti-based autonomous command control method
CN113687882A (en) * 2021-08-24 2021-11-23 上海浦东发展银行股份有限公司 Process rollback method, device and storage medium based on activiti

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120047078A1 (en) * 2010-08-18 2012-02-23 Software Ag System and method for ad-hoc modification of a process during runtime
CN109684057A (en) * 2018-12-11 2019-04-26 咪咕文化科技有限公司 Task processing method, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120047078A1 (en) * 2010-08-18 2012-02-23 Software Ag System and method for ad-hoc modification of a process during runtime
CN109684057A (en) * 2018-12-11 2019-04-26 咪咕文化科技有限公司 Task processing method, device and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540812A (en) * 2020-12-21 2021-03-23 珠海格力电器股份有限公司 Node skipping method and device, storage medium and electronic device
CN112766646A (en) * 2020-12-30 2021-05-07 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for generating and processing task flow
CN113535684A (en) * 2021-07-26 2021-10-22 北京计算机技术及应用研究所 Activiti-based autonomous command control method
CN113535684B (en) * 2021-07-26 2024-02-27 北京计算机技术及应用研究所 Autonomous command control method based on Activiti
CN113687882A (en) * 2021-08-24 2021-11-23 上海浦东发展银行股份有限公司 Process rollback method, device and storage medium based on activiti
CN113687882B (en) * 2021-08-24 2024-04-19 上海浦东发展银行股份有限公司 Activiti-based flow rollback method, activiti-based flow rollback device and storage medium

Similar Documents

Publication Publication Date Title
CN110517018A (en) A kind of any jump method of node based on activiti workflow and device
CN110738389A (en) Workflow processing method and device, computer equipment and storage medium
CN109684057A (en) Task processing method, device and storage medium
CN103678446B (en) Improved mode map based on Data View and database table
CN105989163A (en) Data real-time processing method and system
CN113052696B (en) Financial business task processing method, device, computer equipment and storage medium
CN111127181A (en) Voucher bookkeeping method and device
CN106157030A (en) Payment processing method and device
US8484065B1 (en) Small enhancement process workflow manager
CN101495978B (en) Reduction of message flow between bus-connected consumers and producers
CN112990769A (en) Service processing method and device, electronic equipment and storage medium
CN115984022B (en) Unified account checking method and device for distributed payment system
US8042160B1 (en) Identity management for application access
US8744820B2 (en) Integration of workflows from various systems
CN112068812A (en) Micro-service generation method and device, computer equipment and storage medium
CN112671567B (en) 5G core network topology discovery method and device based on service interface
CN115563160A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
CN109245941A (en) A kind of service compensation method and device
CN111552847B (en) Method and device for changing number of objects
CN111030863B (en) Node topology information determination method, device, equipment and storage medium
CN114036250A (en) High-precision map task processing method and device, electronic equipment and medium
CN104735097A (en) Information collecting method and system
CN109901933A (en) The operating method and device of operation system, storage medium, electronic device
CN109214844A (en) Advertisement distribution method and device and electronic equipment
CN109871331A (en) Software function trial and error method of decision analysis and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191129

RJ01 Rejection of invention patent application after publication