CN109741026A - Flow engine processing method and processing device based on activity pair - Google Patents

Flow engine processing method and processing device based on activity pair Download PDF

Info

Publication number
CN109741026A
CN109741026A CN201811605260.6A CN201811605260A CN109741026A CN 109741026 A CN109741026 A CN 109741026A CN 201811605260 A CN201811605260 A CN 201811605260A CN 109741026 A CN109741026 A CN 109741026A
Authority
CN
China
Prior art keywords
activity
transaction
process transaction
flow engine
node
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
CN201811605260.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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811605260.6A priority Critical patent/CN109741026A/en
Publication of CN109741026A publication Critical patent/CN109741026A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A kind of flow engine processing method, device and electronic equipment based on activity pair is provided in the embodiment of the present disclosure, belongs to technical field of data processing, this method comprises: obtaining the process transaction that flow engine receives;Establish that relevant to the execution of process transaction activity is right, the activity is to for stating state and information of the process transaction before and after active node executes;It is right based on the activity executed in the process transaction, form activity chain corresponding with the process transaction;Preset abnormality processing is executed to the activity chain based on the activity.The processing scheme of the disclosure improves the safety and stability of process transaction processing.

Description

Flow engine processing method and processing device based on activity pair
Technical field
This disclosure relates to technical field of data processing more particularly to it is a kind of based on activity pair flow engine processing method, Device and electronic equipment.
Background technique
Workflow (Workflow) is automation of a part or whole part of business procedure under computer application environment, Main purpose is to keep the process between multiple participants according to certain predefined rule transmitting document, information or task automatic It carries out, to realize some expected business objective, or promotes the realization of this target.Workflow Management System is a software System, it completes the definition and management of workload, and carries out workflow according to the workflow logic pre-defined in systems The execution of example.The operation system of Workflow Management System not instead of enterprise, the operation for the operation system of enterprise provide The back-up environment of one software.
The operation flow complexity variation of financial field is frequent, and to security requirement height: anti-concurrent processing, in-situ FTIR spectroelectrochemitry Deng developer needs largely to encode for each process under normal mode, and repeated workload is larger, and the online period is long. Common concurrently includes that user's access is concurrent, program processing is concurrent and data base read-write is concurrent.Concurrent, the Ke Yitong for access The synchronous mode of addition sync key word is crossed to handle, this mode will lead to the very big reduction of program treatment effeciency.Or also It can solve the problems, such as to access by way of adding server and doing load balancing concurrent, but this mode will lead to production cost Be greatly improved.
For this purpose, needing a kind of completely new flow engine solution.
Summary of the invention
In view of this, the embodiment of the present disclosure provides a kind of flow engine processing method, device and electronics based on activity pair Equipment, at least partly solution problems of the prior art.
In a first aspect, the embodiment of the present disclosure provides a kind of flow engine processing method based on activity pair, comprising:
Obtain the process transaction that flow engine receives;
It is right to establish activity relevant to the execution of the process transaction, the activity exists to for stating the process transaction Active node executes the state and information of front and back;
It is right based on the activity executed in the process transaction, form activity chain corresponding with the process transaction;
Preset abnormality processing is executed to the activity chain based on the activity.
According to a kind of specific implementation of the embodiment of the present disclosure, the process transaction for obtaining flow engine and receiving, Include:
Obtain the entire flow that flow engine receives;
Based on the entire flow, one or more process transactions for indicating concrete function are determined;
Unique identification is distributed for the process transaction.
According to a kind of specific implementation of the embodiment of the present disclosure, the foundation is relevant to the execution of the process transaction Activity is right, comprising:
Default initial active node is established for the flow engine;
It is right to generate the first activity for the execution of initial active based on the initial active node.
According to a kind of specific implementation of the embodiment of the present disclosure, the foundation is relevant to the execution of the process transaction Activity is right, further includes:
The process transaction is parsed, and parsing result is sent to transaction context node, above and below the affairs What literary nodes records had all key values of Current transaction, activity and a process outputs and inputs information;
When the transaction context node executes union operation, it is right to generate the second activity.
According to a kind of specific implementation of the embodiment of the present disclosure, the foundation is relevant to the execution of the process transaction Activity is right, further includes:
The transaction context node is executed into the result that union operation generates and is sent to process context node, the stream Journey context node record has the relevant information of the current state of process;
When the transaction context node and the process context node execute selection operation, third activity is generated It is right.
According to a kind of specific implementation of the embodiment of the present disclosure, the foundation is relevant to the execution of the process transaction Activity is right, further includes:
The selection operation of the transaction context node Yu the process context node is received in current active node As a result;
Using condition converter control flow affairs in current active node to the conversion in next active node;And
When the halt condition in next active node occurs, it is right to generate the 4th activity.
It is described based on the work executed in the process transaction according to a kind of specific implementation of the embodiment of the present disclosure Dynamic pair, form activity chain corresponding with the process transaction, comprising:
Being arranged indicates that process executes the activity tree of all activity possibilities, and the flow engine is according to the activity tree decision Activity chain corresponding with the process transaction out.
It is described to be executed based on the activity to the activity chain according to a kind of specific implementation of the embodiment of the present disclosure Preset abnormality processing, comprising:
For it is multiple it is identical request access to identical activity to state memory space, the operation of lock based on database is right Activity in the space only changes state primary.
It is described to be executed based on the activity to the activity chain according to a kind of specific implementation of the embodiment of the present disclosure Preset abnormality processing, further includes:
From the activity to the state for taking out the last one activity pair in state memory space, when movable chain length cannot be by 2 when dividing exactly, to the imperfect activity in the activity chain to correcting process is executed, when the memory space confirmation occupied by activity chain When entire activity chain is not carried out complete, the unfinished process transaction in activity chain is continued to execute.
Second aspect, the embodiment of the present disclosure provide a kind of flow engine processing unit based on activity pair, comprising:
Obtain module, the process transaction received for obtaining flow engine;
Establish module, it is right for establishing activity relevant to the execution of the process transaction, it is described activity to be used to state State and information of the process transaction before and after active node execution;
Module is formed, for right, formation and the process transaction phase based on the activity executed in the process transaction Corresponding activity chain;
Execution module, for executing preset abnormality processing to the activity chain based on the activity.
The third aspect, the embodiment of the present disclosure additionally provide a kind of electronic equipment, which includes:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and the instruction is by least one processor It executes, so that at least one processor is able to carry out the base in any implementation of aforementioned first aspect or first aspect In the flow engine processing method of activity pair.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of non-transient computer readable storage medium, the non-transient meter Calculation machine readable storage medium storing program for executing stores computer instruction, and the computer instruction is for making the computer execute aforementioned first aspect or the The flow engine processing method based on activity pair in any implementation of one side.
5th aspect, the embodiment of the present disclosure additionally provide a kind of computer program product, which includes The calculation procedure being stored in non-transient computer readable storage medium, the computer program include program instruction, when the program Instruction is when being computer-executed, make the computer execute in aforementioned first aspect or any implementation of first aspect based on The flow engine processing method of activity pair.
The flow engine processing scheme based on activity pair in the embodiment of the present disclosure is received including acquisition flow engine Process transaction;It is right to establish relevant to the execution of process transaction activity, it is described movable to for stating the process transaction State and information before and after active node execution;Based on executed in the process transaction activity it is right, formed with it is described The corresponding activity chain of process transaction;Preset abnormality processing is executed to the activity chain based on the activity.By this public affairs The scheme opened improves the safety and stability of process transaction processing.
Detailed description of the invention
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present disclosure Figure is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present disclosure, for this field For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow engine processing flow schematic diagram based on activity pair that the embodiment of the present disclosure provides;
Fig. 2 is one kind flow processing engine integrated stand composition corresponding with business operation that the embodiment of the present disclosure provides;
Fig. 3 is a kind of implementation procedure schematic diagram of the process transaction that provides of the embodiment of the present disclosure in flow engine;
Fig. 4 is the process schematic that a kind of flow engine that the embodiment of the present disclosure provides obtains process transaction;
Fig. 5 is the flow engine processing device structure diagram based on activity pair that the embodiment of the present disclosure provides;
Fig. 6 is the electronic equipment schematic diagram that the embodiment of the present disclosure provides.
Specific embodiment
The embodiment of the present disclosure is described in detail with reference to the accompanying drawing.
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways. For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields The skilled person will understand that the aspect can be practiced without these specific details.
The embodiment of the present disclosure provides a kind of flow engine processing method based on activity pair.It is provided in this embodiment to be based on living Dynamic pair of flow engine processing method can be executed by a computing device, which can be implemented as software, Huo Zheshi It is now the combination of software and hardware, which, which can integrate, is arranged in server, terminal device etc..
Referring to Fig. 1, a kind of flow engine processing method based on activity pair that the embodiment of the present disclosure provides, including walk as follows It is rapid:
S101 obtains the process transaction that flow engine receives.
Flow engine considers for receiving various processes (for example, process of paying in cash, transfer process, shopping process etc.) To real-time and safety, multiple modules can be set inside flow engine and cooperate jointly, the kernel of flow engine is for carrying out Process load, process execute synchronous with data.In order to improve the performance of flow engine, the performing environment of process can be allowed in memory Middle progress, and caching part is introduced in process structure, it designs special process loading module and adds configuration data into caching It carries, while also designing special data simultaneous module the flow instance that execute end in caching can be synchronized to persistent layer (data Library or file), the user of flow engine can only carry out in the buffer when execution by interface call flow, so can mention The performance of high flow engine.
Fig. 2 is one kind flow processing engine integrated stand composition corresponding with business operation that the embodiment of the present disclosure provides.Ginseng See Fig. 2, the source of process can be the various of client progress and the business operations such as supplement, transfers accounts with money, can will by business processing Various businesses operation is converted to one or more processes, and one or more processes are passed to stream by way of data normalization Journey engine, flow engine can receive entire flow relevant to business operation.
One entire flow usually requires to carry out multiple feature operations could to complete, for this purpose, for receiving entire flow, It can determine that one or more process transactions, a process transaction can pass through an activity according to the quantity of the function in process (activity) it indicates, is thus bound process and one or more activities.
It can be described in view of flow engine needs to identify process transaction during process flow affairs Process transaction distributes unique identification, such as transaction number, is used to one affairs of unique identification, the transaction number of affairs in the same process It is identical.
S102, it is right to establish relevant to the execution of process transaction activity, described movable to for stating the process State and information of the affairs before and after active node execution.
The case where in order to guarantee process being in the process of implementation not in program error, in the key node needle that process executes Right to the activity of crucial execution movement setting unique match, activity is movable in active section to being used to record each in flow engine Point executes the state of front and back.
Flow engine defaults initial active node, for the first time execution of the activity to initial active is resulted from, for this purpose, being based on institute The execution of the initial active of initial active node is stated, the first activity of generation is right, and the first activity is to the initial active for flow engine It is right.
Other than initial active pair, during process transaction executes, it is also necessary in critical activity node to affairs Execution setting activity it is right.Referring to Fig. 3, Fig. 3 illustratively provides a kind of execution flow chart of process transaction.Can be with by Fig. 3, After being received from the request of RPC (Remote Procedure Call Protocol --- remote procedure call protocol), Data in capable of requesting RPC are parsed into corresponding process and process transaction, parse to the process transaction, and will solution Analysis result is sent to transaction context node, and transaction context nodes records have all key values of Current transaction, activity, process Output and input the key messages such as information, due to having more information in transaction context node, need to above and below affairs Literary node merges operation, when the transaction context node executes union operation, generates second movable right, the second activity Tree has recorded status information of the process transaction when executing union operation.
Transaction context node structure after merging can continue to push ahead based on the driving of process (workflow), referring to Fig. 3, transaction context node execute the result that union operation generates and are sent to process context node, the process context section Point record has the relevant information of the current state of process.As another important operation node, in the transaction context section When point executes selection operation with the process context node, third activity pair is generated by third activity pair and is able to record stream Status information of the journey affairs when executing selection operation.
In addition to this, important node of the halt condition as process transaction in commission, it is also desirable to its mode of operation into Row record.Specifically, the transaction context node and the process context section can be received in active node referring to Fig. 3 The selection operation of point as a result, condition converter control flow affairs in current active node to the conversion in next active node, When the halt condition in next active node occurs, it is right to generate the 4th activity.It is right by the 4th activity, it is able to record active section Status information of the point when switching over.
" processing " module in Fig. 3 is the specific actor of active node, and movable (activity) must and be handled (process) binding could really complete execution task, and processing can be a RPC, be also possible to the logic meter an of local It calculates.It is called if it is RPC, does not then include local excessive logic calculation.The control of condition converter is next by being currently active to Movable conversion.It is realized by regular expression.Rule condition hit postcondition converter provides next activity ID (activity id).One group of condition converter can only at most hit an affairs.Halt condition is the termination condition of process, can be by rule list It is realized up to formula.After expression formula is shut down in hit, process stops, and the final state of process (workflow) is provided by halt condition.Condition Expression formula can be regular expression, be reduced to Boolean expression, and true indicates hit, and false indicates miss.In condition table During calculating up to formula, conditional parameter can be used, conditional parameter supports matching key value (map key-values) right.
It, can also be in transaction flow for example shown in Fig. 3 based on actual business needs in addition to above-mentioned movable to other than It is right that more activities are set in journey.
S103, it is right based on the activity executed in the process transaction, form work corresponding with the process transaction Dynamic chain.
The activity that activity chain indicates that process has executed is right, can completely check that the entirety of process transaction is held by activity chain Row process.In order to automatically generate activity chain, setting indicates that process executes the activity tree (activity of all activity possibilities Tree), activity tree illustrates a possibility that process executes all movable (activity).Activity tree, which needs to configure in advance, to be come, Flow engine can go out an activity chain of process according to activity tree decision.
S104 executes preset abnormality processing to the activity chain based on the activity.
It is right by the activity in the activity chain and activity chain of generation, it can be executed based on the activity to the activity chain Preset abnormality processing (for example, anti-concurrent processing or abnormal restoring).
Specifically, being directed to anti-concurrent processing, can be operated based on the lock of database, so that active state can only migrate one It is secondary, will not repeatedly be migrated due to there is repeatedly request, it is multiple it is identical request access to identical activity to state memory space, should Activity in space can only change primary state.
It, can be from the activity to the shape for taking out the last one activity pair in state memory space for abnormal restoring situation State, when movable chain length cannot be divided exactly by 2, to the imperfect activity in the activity chain to execution correcting process.The Corrections Division Reason includes that the incomplete activity of lookup execution is right, is re-executed to the activity to corresponding node process.Alternatively, can also be again There are the activity chains of imperfect activity pair for execution.When the memory space occupied by activity chain confirms that entire activity chain has been not carried out It is full-time, continue to execute the unfinished process transaction in activity chain.
Other than above-mentioned anti-concurrent processing or abnormal restoring, it can also be based on activity chain and activity according to the actual needs To the other abnormality processings of execution.
Referring to fig. 4, according to a kind of specific implementation of the embodiment of the present disclosure, step S101 obtains flow engine and receives Process transaction, may include steps of:
S401 obtains the entire flow that flow engine receives.
Flow engine considers for receiving various processes (for example, process of paying in cash, transfer process, shopping process etc.) To real-time and safety, multiple modules can be set inside flow engine and cooperate jointly, the kernel of flow engine is for carrying out Process load, process execute synchronous with data.The source of process can be the various of client progress and the business behaviour such as supplement, transfers accounts with money Make, by business processing, various businesses can be operated and be converted to one or more processes, it will by way of data normalization One or more processes pass to flow engine, and flow engine can receive entire flow relevant to business operation.
S402 is based on the entire flow, determines one or more process transactions for indicating concrete function.
One entire flow usually requires to carry out multiple feature operations could to complete, for this purpose, for receiving entire flow, It can determine that one or more process transactions, a process transaction can pass through an activity according to the quantity of the function in process (activity) it indicates, is thus bound process and one or more activities.
S403 distributes unique identification for the process transaction.
It can be described in view of flow engine needs to identify process transaction during process flow affairs Process transaction distributes unique identification, such as transaction number, is used to one affairs of unique identification, the transaction number of affairs in the same process It is identical.
It is corresponding with above method embodiment, referring to Fig. 5, the disclosure additionally provide it is a kind of based on activity pair process draw Hold up processing unit, comprising:
Obtain module 501, the process transaction received for obtaining flow engine.
Flow engine considers for receiving various processes (for example, process of paying in cash, transfer process, shopping process etc.) To real-time and safety, multiple modules can be set inside flow engine and cooperate jointly, the kernel of flow engine is for carrying out Process load, process execute synchronous with data.In order to improve the performance of flow engine, the performing environment of process can be allowed in memory Middle progress, and caching part is introduced in process structure, it designs special process loading module and adds configuration data into caching It carries, while also designing special data simultaneous module the flow instance that execute end in caching can be synchronized to persistent layer (data Library or file), the user of flow engine can only carry out in the buffer when execution by interface call flow, so can mention The performance of high flow engine.
Fig. 2 is one kind flow processing engine integrated stand composition corresponding with business operation that the embodiment of the present disclosure provides.Ginseng See Fig. 2, the source of process can be the various of client progress and the business operations such as supplement, transfers accounts with money, can will by business processing Various businesses operation is converted to one or more processes, and one or more processes are passed to stream by way of data normalization Journey engine, flow engine can receive entire flow relevant to business operation.
One entire flow usually requires to carry out multiple feature operations could to complete, for this purpose, for receiving entire flow, It can determine that one or more process transactions, a process transaction can pass through an activity according to the quantity of the function in process (activity) it indicates, is thus bound process and one or more activities.
It can be described in view of flow engine needs to identify process transaction during process flow affairs Process transaction distributes unique identification, such as transaction number, is used to one affairs of unique identification, the transaction number of affairs in the same process Be it is identical establish module 502, it is right for establishing activity relevant to the execution of the process transaction, it is described activity to be used to table State state and information of the process transaction before and after active node execution.
The case where in order to guarantee process being in the process of implementation not in program error, in the key node needle that process executes Right to the activity of crucial execution movement setting unique match, activity is movable in active section to being used to record each in flow engine Point executes the state of front and back.
Flow engine must default initial active node, for the first time execution of the activity to initial active is resulted from, for this purpose, base In the execution of the initial active of the initial active node, it is right to generate the first activity, and the first activity is to for the initial of flow engine Activity is right.
Other than initial active pair, during process transaction executes, it is also necessary in critical activity section to affairs It is right to execute setting activity.Referring to Fig. 3, Fig. 3 illustratively provides a kind of execution flow chart of process transaction.It can be to come by Fig. 3 From after the request of RPC (Remote Procedure Call Protocol --- remote procedure call protocol) is received, energy It is enough by RPC request in data be parsed into corresponding process and process transaction, the process transaction is parsed, and will parsing As a result it is sent to transaction context node, transaction context nodes records have all key values of Current transaction, activity, process The key messages such as information are output and input, due to having more information in transaction context node, are needed to transaction context Node merges operation, when the transaction context node executes union operation, generates second movable right, the second activity tree Have recorded status information of the process transaction when executing union operation.
Transaction context node structure after merging can continue to push ahead based on the driving of process, referring to Fig. 3, in affairs Context node executes the result that union operation generates and is sent to process context node, and the process context node record has stream The relevant information of the current state of journey.As another important operation node, in the transaction context node and the stream When journey context node executes selection operation, third activity pair is generated by third activity pair and is able to record that process transaction is being held Status information when row selection operation.
In addition to this, important node of the halt condition as process transaction in commission, it is also desirable to its mode of operation into Row record.Specifically, the transaction context node and the process context section can be received in active node referring to Fig. 3 The selection operation of point as a result, condition converter control flow affairs in current active node to the conversion in next active node, When the halt condition in next active node occurs, it is right to generate the 4th activity.It is right by the 4th activity, it is able to record active section Status information of the point when switching over.
It, can also be in transaction flow for example shown in Fig. 3 based on actual business needs in addition to above-mentioned movable to other than It is right that more activities are set in journey.
Module 503 is formed, for, formation and the process transaction right based on the activity executed in the process transaction Corresponding activity chain.
The activity that activity chain indicates that process has executed is right, can completely check that the entirety of process transaction is held by activity chain Row process.In order to automatically generate activity chain, setting indicates that process executes the activity tree (activity of all activity possibilities Tree), activity tree illustrates a possibility that process executes all movable (activity).Activity tree, which needs to configure in advance, to be come, Flow engine can go out an activity chain of process according to activity tree decision.
Execution module 504, for executing preset abnormality processing to the activity chain based on the activity.
It is right by the activity in the activity chain and activity chain of generation, it can be executed based on the activity to the activity chain Preset abnormality processing (for example, anti-concurrent processing or abnormal restoring).
Specifically, being directed to anti-concurrent processing, can be operated based on the lock of database, so that active state can only migrate one It is secondary, will not repeatedly be migrated due to there is repeatedly request, it is multiple it is identical request access to identical activity to state memory space, should Activity in space can only change primary state.
It, can be from the activity to the shape for taking out the last one activity pair in state memory space for abnormal restoring situation State, when movable chain length cannot be divided exactly by 2, to the imperfect activity in the activity chain to execution correcting process.When passing through work When the memory space that dynamic chain occupies confirms that entire activity chain is not carried out complete, the unfinished process thing in activity chain is continued to execute Business.
Other than above-mentioned anti-concurrent processing or abnormal restoring, it can also be based on activity chain and activity according to the actual needs To the other abnormality processings of execution.
Fig. 5 shown device can it is corresponding execute above method embodiment in content, what the present embodiment was not described in detail Part, referring to the content recorded in above method embodiment, details are not described herein.
Referring to Fig. 6, the embodiment of the present disclosure additionally provides a kind of electronic equipment 60, which includes:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and the instruction is by least one processor It executes, so that at least one processor is able to carry out the flow engine processing side based on activity pair in preceding method embodiment Method.
The embodiment of the present disclosure additionally provides a kind of non-transient computer readable storage medium, and the non-transient computer is readable to deposit Storage media stores computer instruction, and the computer instruction is for executing the computer in preceding method embodiment.
The embodiment of the present disclosure additionally provides a kind of computer program product, and the computer program product is non-temporary including being stored in Calculation procedure on state computer readable storage medium, the computer program include program instruction, when the program instruction is calculated When machine executes, the computer is made to execute the flow engine processing method based on activity pair in preceding method embodiment.
Below with reference to Fig. 6, it illustrates the structural schematic diagrams for the electronic equipment 60 for being suitable for being used to realize the embodiment of the present disclosure. Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, Digital Broadcasting Receiver Device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal are (such as vehicle-mounted Navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electronics shown in Fig. 6 Equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 60 may include processing unit (such as central processing unit, graphics processor etc.) 601, It can be loaded into random access storage according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in device (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with the behaviour of electronic equipment 60 Various programs and data needed for making.Processing unit 601, ROM 602 and RAM 603 are connected with each other by bus 604.It is defeated Enter/export (I/O) interface 605 and is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, figure As the input unit 606 of sensor, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaking The output device 607 of device, vibrator etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.It is logical T unit 609 can permit electronic equipment 60 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although showing in figure The electronic equipment 60 with various devices is gone out, it should be understood that being not required for implementing or having all devices shown. It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining at least two internet protocol addresses;Send to Node evaluation equipment includes institute State the Node evaluation request of at least two internet protocol addresses, wherein the Node evaluation equipment is internet from described at least two In protocol address, chooses internet protocol address and return;Receive the internet protocol address that the Node evaluation equipment returns;Its In, the fringe node in acquired internet protocol address instruction content distributing network.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs When being executed by the electronic equipment, so that the electronic equipment: receiving the Node evaluation including at least two internet protocol addresses and request; From at least two internet protocol address, internet protocol address is chosen;Return to the internet protocol address selected;Wherein, The fringe node in internet protocol address instruction content distributing network received.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
It should be appreciated that each section of the disclosure can be realized with hardware, software, firmware or their combination.
The above, the only specific embodiment of the disclosure, but the protection scope of the disclosure is not limited thereto, it is any Those familiar with the art is in the technical scope that the disclosure discloses, and any changes or substitutions that can be easily thought of, all answers Cover within the protection scope of the disclosure.Therefore, the protection scope of the disclosure should be subject to the protection scope in claims.

Claims (11)

1. a kind of flow engine processing method based on activity pair characterized by comprising
Obtain the process transaction that flow engine receives;
It is right to establish relevant to the execution of process transaction activity, it is described movable to for stating the process transaction in activity Node executes forward and backward state and information;
It is right based on the activity executed in the process transaction, form activity chain corresponding with the process transaction;
Preset abnormality processing is executed to the activity chain based on the activity.
2. the method according to claim 1, wherein the process transaction for obtaining flow engine and receiving, packet It includes:
Obtain the entire flow that flow engine receives;
Based on the entire flow, one or more process transactions for indicating concrete function are determined;
Unique identification is distributed for the process transaction.
3. the method according to claim 1, wherein described establish work relevant to the execution of the process transaction Dynamic pair, comprising:
Default initial active node is established for the flow engine;
It is right to generate the first activity for the execution of initial active based on the initial active node.
4. according to the method described in claim 3, it is characterized in that, described establish work relevant to the execution of the process transaction Dynamic pair, further includes:
The process transaction is parsed, and parsing result is sent to transaction context node, the transaction context section What point record had all key values of Current transaction, activity and a process outputs and inputs information;
When the transaction context node executes union operation, it is right to generate the second activity.
5. according to the method described in claim 4, it is characterized in that, described establish work relevant to the execution of the process transaction Dynamic pair, further includes:
The transaction context node is executed into the result that union operation generates and is sent to process context node, in the process Context node record has the relevant information of the current state of process;
When the transaction context node and the process context node execute selection operation, third activity pair is generated.
6. according to the method described in claim 5, it is characterized in that, described establish work relevant to the execution of the process transaction Dynamic pair, further includes:
The selection operation result of the transaction context node Yu the process context node is received in current active node;
Using condition converter control flow affairs in current active node to the conversion of next active node;And
When the halt condition in next active node occurs, it is right to generate the 4th activity.
7. the method according to claim 1, wherein described based on the activity executed in the process transaction It is right, form activity chain corresponding with the process transaction, comprising:
Being arranged indicates that process executes the activity trees of all activity possibilities, the flow engine according to the activity tree decision go out with The corresponding activity chain of the process transaction.
8. the method according to claim 1, wherein described pre- to being executed with the activity chain based on the activity If abnormality processing, comprising:
For it is multiple it is identical request access to identical activity to state memory space, lock based on database operation, to described Activity in space only changes state primary.
9. according to the method described in claim 8, it is characterized in that, described pre- to being executed with the activity chain based on the activity If abnormality processing, further includes:
From the activity to the state for taking out the last one activity pair in state memory space, when movable chain length cannot be whole by 2 Except when, in the activity chain it is imperfect activity to execute correcting process, when occupied by activity chain memory space confirmation it is whole When a activity chain is not carried out complete, the unfinished process transaction in activity chain is continued to execute.
10. a kind of flow engine processing unit based on activity pair characterized by comprising
Obtain module, the process transaction received for obtaining flow engine;
Module is established, right for establishing activity relevant to the execution of the process transaction, the activity is described to being used to state State and information of the process transaction before and after active node execution;
Module is formed, for right based on the activity executed in the process transaction, formation is corresponding with the process transaction Activity chain;
Execution module, for executing preset abnormality processing to the activity chain based on the activity.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out described in aforementioned any claim 1-9 based on activity pair Flow engine processing method.
CN201811605260.6A 2018-12-27 2018-12-27 Flow engine processing method and processing device based on activity pair Pending CN109741026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811605260.6A CN109741026A (en) 2018-12-27 2018-12-27 Flow engine processing method and processing device based on activity pair

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811605260.6A CN109741026A (en) 2018-12-27 2018-12-27 Flow engine processing method and processing device based on activity pair

Publications (1)

Publication Number Publication Date
CN109741026A true CN109741026A (en) 2019-05-10

Family

ID=66360058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811605260.6A Pending CN109741026A (en) 2018-12-27 2018-12-27 Flow engine processing method and processing device based on activity pair

Country Status (1)

Country Link
CN (1) CN109741026A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11182269B2 (en) 2019-10-01 2021-11-23 International Business Machines Corporation Proactive change verification

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050209993A1 (en) * 2004-03-18 2005-09-22 International Business Machines Corporation Method for generating an executable workflow code from an unstructured cyclic process model and a method for executing a workflow code of an arbitrary process model
CN1961329A (en) * 2003-09-19 2007-05-09 国际商业机器公司 Methods and apparatus for information hyperchain management for on-demand business collaboration
EP1859399A1 (en) * 2005-03-01 2007-11-28 International Business Machines Corporation Integration of data management operations into a workflow system
CN101354643A (en) * 2008-08-26 2009-01-28 中国科学院软件研究所 Method for monitoring BPEL process flow operation time based on state aspect
CN103353849A (en) * 2013-07-26 2013-10-16 浪潮电子信息产业股份有限公司 Service process management method based on events
CN104572445A (en) * 2014-12-17 2015-04-29 南京大学 Method for detecting BPEL (business process execution language) process data competition in Web service combination
CN108536718A (en) * 2017-09-26 2018-09-14 邓晖 A kind of method and system for the IT application in management realized based on input and output semantization
CN108665239A (en) * 2018-05-08 2018-10-16 平安普惠企业管理有限公司 Workflow processing method, device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1961329A (en) * 2003-09-19 2007-05-09 国际商业机器公司 Methods and apparatus for information hyperchain management for on-demand business collaboration
US20050209993A1 (en) * 2004-03-18 2005-09-22 International Business Machines Corporation Method for generating an executable workflow code from an unstructured cyclic process model and a method for executing a workflow code of an arbitrary process model
US20090031280A1 (en) * 2004-03-18 2009-01-29 International Business Machines Corporation Method for Generating an Executable Workflow Code from an Unstructured Cyclic Process Model and Method for Executing a Workflow Code of an Arbitrary Process Model
EP1859399A1 (en) * 2005-03-01 2007-11-28 International Business Machines Corporation Integration of data management operations into a workflow system
CN101354643A (en) * 2008-08-26 2009-01-28 中国科学院软件研究所 Method for monitoring BPEL process flow operation time based on state aspect
CN103353849A (en) * 2013-07-26 2013-10-16 浪潮电子信息产业股份有限公司 Service process management method based on events
CN104572445A (en) * 2014-12-17 2015-04-29 南京大学 Method for detecting BPEL (business process execution language) process data competition in Web service combination
CN108536718A (en) * 2017-09-26 2018-09-14 邓晖 A kind of method and system for the IT application in management realized based on input and output semantization
CN108665239A (en) * 2018-05-08 2018-10-16 平安普惠企业管理有限公司 Workflow processing method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李晶: ""Web事务的建模及其语义分析"", 《中国博士学位论文全文数据库信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11182269B2 (en) 2019-10-01 2021-11-23 International Business Machines Corporation Proactive change verification

Similar Documents

Publication Publication Date Title
US20170200137A1 (en) Combined security for electronic transfers
CN109523187A (en) Method for scheduling task, device and equipment
CN109299348A (en) A kind of data query method, apparatus, electronic equipment and storage medium
CN108920257B (en) Transaction processing method, device, equipment and storage medium
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN109819048A (en) Method of data synchronization, device, terminal and storage medium
CN109408214A (en) A kind of method for parallel processing of data, device, electronic equipment and readable medium
CN110389796A (en) Edit operation processing method, device and electronic equipment
CN111125106B (en) Batch running task execution method, device, server and storage medium
CN110020846A (en) A kind of transferred account service processing method and system
CN110275768A (en) Data processing method, device and electronic equipment
CN109743381A (en) Client and the long connection exchange method of server-side and device
CN110097397A (en) Information-pushing method, device and electronic equipment based on feedback
CN109471647A (en) A kind of update method of data, device, electronic equipment and readable medium
CN110059064A (en) Journal file processing method, device and computer readable storage medium
CN110059301A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110516463A (en) Method and apparatus for generating information
CN109741026A (en) Flow engine processing method and processing device based on activity pair
CN113010561A (en) Data acquisition method and device based on super account book and computer system
CN109614089A (en) Automatic generation method, device, equipment and the storage medium of data access code
CN110083657A (en) Data interchange method, apparatus, terminal and storage medium
US20230368083A1 (en) Method and apparatus for determining reservation information
US11646904B2 (en) Information processing apparatus and service cost calculation method
CN111681093A (en) Method and device for displaying resource page and electronic equipment
CN109669720A (en) Chain type Asynchronous Request processing method, device and electronic equipment based on Promise

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: 20190510