CN108536541A - flow engine object processing method and device - Google Patents

flow engine object processing method and device Download PDF

Info

Publication number
CN108536541A
CN108536541A CN201710118583.1A CN201710118583A CN108536541A CN 108536541 A CN108536541 A CN 108536541A CN 201710118583 A CN201710118583 A CN 201710118583A CN 108536541 A CN108536541 A CN 108536541A
Authority
CN
China
Prior art keywords
node
task
list
tasks information
information
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.)
Granted
Application number
CN201710118583.1A
Other languages
Chinese (zh)
Other versions
CN108536541B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710118583.1A priority Critical patent/CN108536541B/en
Publication of CN108536541A publication Critical patent/CN108536541A/en
Application granted granted Critical
Publication of CN108536541B publication Critical patent/CN108536541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

A kind of flow engine object processing method of present invention offer and device, the flow engine object processing method include:At least one node tasks information that flow engine is sent is received, each node tasks information includes:Title, Obj State list and the object property list of the present node task of the node tasks information;Obj State list includes the state of each node tasks of each object;Respectively in the Obj State list of each node tasks information, lookup and state corresponding with the title of present node task of the node tasks information is pending object;Respectively from the object property list of each node tasks information, obtain the attribute of each object found, according to the attribute of each object found, predetermined registration operation corresponding with the present node task of the node tasks information is executed to each object according to the attribute of the object found.This method can carry out batch processing to the object found.

Description

Flow engine object processing method and device
Technical field
The present invention relates to computer realms, more particularly to a kind of flow engine object processing method and device.
Background technology
Flow engine is used as in flow exploitation, is the nucleus module of state circulation.Relevant group is controlled by flow engine The co-ordination of part so that the information in operation flow circulates according to certain rule, realizes the automation of operation flow.
Traditional flow engine realizes the batch processing multitask to affairs by more examples, for example, providing countersign and list Label.Countersign refers to, if playing pending event to more human hairs in a node, needing proprietary handled in flow of transactions Cheng Hou just carries out next node.Single label refer in flow of transactions, if playing pending event to more human hairs in a node, As long as being disposed there are one people, next node can be all carried out.
Traditional flow engine is controlled based on single affairs, in an application scenarios, is drawn when needing process for using When holding up to 10 network equipment LANs, 10 network equipments are the object of flow engine, if using traditional process engine More examples, due to multiple process objects, allowing 10 objects to be performed simultaneously task in some node, as long as any one net The task of network equipment terminates, this node tasks will terminate, and other 9 network equipments lose node in flow engine Task can not carry out subsequent node task operating.Therefore, traditional flow engine cannot be realized in a node tasks to multiple The batch processing of object.
Invention content
Based on this, it is necessary to provide a kind of flow engine object processing method and device, can realize to multiple objects Batch processing.
In order to achieve the above objectives, the embodiment of the present invention uses following technical scheme:
A kind of flow engine object processing method, including:
At least one node tasks information that flow engine is sent is received, each node tasks information includes:The node Title, Obj State list and the object property list of the present node task of mission bit stream;The Obj State list includes The state of each node tasks of each object;
Respectively in the Obj State list of each node tasks information, lookup works as prosthomere with the node tasks information The title of point task is corresponding and state is pending object;
Respectively from the object property list of each node tasks information, the attribute of each object found, root are obtained It is investigated that the attribute of each object found, executes each object found corresponding with the present node task of the node tasks information Predetermined registration operation.
A kind of flow engine object handles device, including:Receiving module, searching module and execution module;
The receiving module, at least one node tasks information for receiving flow engine transmission, each node are appointed Business information include:Title, Obj State list and the object property list of the present node task of the node tasks information;It is described Obj State list includes the state of each node tasks of each object;
The searching module, in the Obj State list of each node tasks information, searching and the section respectively The title of the present node task of point mission bit stream is corresponding and state is pending object;
The execution module, for from the object property list of each node tasks information, acquisition to be found respectively The attribute of each object each object found is executed and the node tasks information according to the attribute of each object found The corresponding predetermined registration operation of present node task.
Above-mentioned flow engine object processing method, when at least one node tasks information for receiving flow engine transmission When, in the Obj State list of each node tasks information, search the title with the present node task of the node tasks information Corresponding and state is pending object, then obtains the attribute of each object found respectively, according to the category of the object found Property corresponding with the present node task of node tasks information predetermined registration operation is executed to each object.Since a present node is appointed The objective for implementation of the predetermined registration operation of business be found from the Obj State list of corresponding node tasks information with work as prosthomere The title of point task is corresponding and state is pending all objects, can be carried out to the object that present node task is found Batch processing.Also, it for the corresponding node tasks information of each node tasks that flow engine is sent, carries out at lookup respectively Reason, and according to the attribute of the object found, predetermined registration operation corresponding with the present node task of the node tasks information is executed, So as to realize, concomitantly the object to multiple node tasks carries out batch processing.
Description of the drawings
Fig. 1 is the application environment schematic diagram of one embodiment of the invention flow engine object processing method;
Fig. 2 is the internal structure schematic diagram of the server of one embodiment;
Fig. 3 is the flow chart of the flow engine object processing method of one embodiment;
Fig. 4 is the flow chart of the flow engine object processing method of another embodiment;
Fig. 5 is that the LAN to the network equipment that flow engine generates in a specific embodiment switches over processing Flow chart;
Fig. 6 is the interaction schematic diagram of flow engine corresponding with Fig. 5 flow charts and flow engine object handles device;
Fig. 7 is the structure diagram of the flow engine object handles device of one embodiment;
Fig. 8 is the structure diagram of the flow engine object handles device of another embodiment.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, with reference to the accompanying drawings and embodiments, to this Invention is described in further detail.It should be appreciated that the specific embodiments described herein are only used to explain the present invention, Do not limit protection scope of the present invention.
Fig. 1 is the application environment schematic diagram of flow engine object processing method in one embodiment.As shown in Figure 1, service Flow engine 101 and flow engine object handles device 102 are provided in device, flow engine object handles device 102 passes through tune It is connect with flow engine 101 with the interface of flow engine.In other embodiments, flow engine 101 and flow engine pair Image processor 102 can also be arranged in different servers, and the two is connected by network communication.Flow engine 101 will save Point mission bit stream is sent to flow engine object handles device 102, and node tasks information includes the current of the node tasks information Title, Obj State list and the object property list of node tasks, flow engine object handles device 102 correspond to each node Task is provided with predetermined registration operation, needs the whole objects executed by finding out present node task from Obj State list, from The attribute of the object found is obtained in object property list, executes predetermined registration operation corresponding with present node task, to real The now carry out batch processing to the whole objects found.
Fig. 2 is the internal structure schematic diagram of server in one embodiment.As shown in Fig. 2, server includes passing through system Processor, storage medium, memory and the network interface of bus connection.Wherein, the storage medium of server be stored with operating system, Flow engine and computer executable instructions, the calculating executable instruction is for realizing flow engine object processing method.At this Device is managed for providing calculating and control ability, supports the operation of entire server.It is saved as in storage medium in server The operation of the information processing platform provides environment, and network interface carries out network communication with by process object.Those skilled in the art can To understand, structure shown in Figure 2 is not constituted only with the block diagram of the relevant part-structure of application scheme to this Shen Please the restriction of terminal that is applied thereon of scheme, specific server may include than more or fewer portions as shown in the figure Part either combines certain components or is arranged with different components.
Fig. 3 is the flow chart of flow engine object processing method in one embodiment, and the method for the embodiment includes following Step:
S302:At least one node tasks information that flow engine is sent is received, each node tasks information includes:The node Title, Obj State list and the object property list of the present node task of mission bit stream;Obj State list includes each right The state of each node tasks of elephant.
Present node task is to need executing for task in the node tasks information sent according to the flow engine received. The beginning and end of node tasks and the beginning and end of next node task are recorded in flow engine, pass through flow variable With the trend of flowline control flow.Flow engine provides flow chart, and flow chart is visual figure, is generated after editting The configuration file of the form of xml.Flow chart includes multiple nodes, and the execution content of node tasks, that is, each node passes through stream Journey line definitim flow moves towards and is arranged by the configuration of node tasks the event of triggering.Flowline is between hinged node task Line is moved towards for control flow.Flow variable is the variable of flow engine storage, for business calculating or flowline control flow Trend.
Object in the present embodiment refers to the processing entities object of flow engine, for example, when needing process for using engine pair When 100 network equipments configuration LANs, 100 network equipments are the process object of flow engine.It is wrapped in one flow chart Include multiple node tasks, the Obj State list records state of each node tasks of each object.The state of node tasks includes: It is pending, be completed, execute neutralization execute failure.Object property list includes the attribute of each object.It is right by taking the network equipment as an example As attribute list includes each network equipment title, IP address etc..It should be understood that the attribute of object is according to object and processing thing , it is preset by user.
S304:Respectively in the Obj State list of each node tasks information, search current with the node tasks information The title of node tasks is corresponding and state is pending object.
Each node tasks information corresponds to a node tasks.Obj State list records each node tasks of each object State, and state corresponding with the title of present node task of the node tasks information be pending object be correspond to Present node task object to be treated.It is understood that the corresponding object to be treated of a node tasks can It is multiple to have.In the present embodiment, flow engine can send multiple node tasks information simultaneously, receive multiple node tasks letters After breath, lookup processing is carried out respectively to each node tasks information.
S306:Respectively from the object property list of each node tasks information, the attribute of each object found, root are obtained It is investigated that the attribute of each object found, executes each object found corresponding with the present node task of the node tasks information Predetermined registration operation.
Predetermined registration operation is that user is preset according to each node tasks, it should be appreciated that each node is appointed Corresponding predetermined registration operation of being engaged in is different, and the mesh of completion node tasks is reached by executing the corresponding predetermined registration operation of each node tasks 's.
Specifically, Obj State list and object property list include the object identity of each object.
Step S304 is specially:Respectively in the Obj State list of each node tasks information, search and the node tasks The title of the present node task of information is corresponding and state is pending object, and obtains the object mark of the object found Know.
Step S306 is specially:According to object identity respectively from the object property list of each node tasks information, obtain The attribute of each object found executes each object found and appoints with the node according to the attribute of each object found The corresponding predetermined registration operation of present node task for information of being engaged in.
In the present embodiment, Obj State list and object property list all include the object identity of each object, are finding After satisfactory object, the attribute for finding object can be rapidly obtained according to object identity.
After finding each node tasks object to be treated, respectively to the corresponding object of each node tasks Corresponding predetermined registration operation is executed, predetermined registration operation is carried out according to the attribute for each object found.It should be understood that one is worked as prosthomere Point task predetermined registration operation objective for implementation be found from the Obj State list of corresponding node tasks information with work as The title of front nodal point task is corresponding and state is pending all objects, i.e., by executing predetermined registration operation to pair that finds As carrying out batch processing.
Also, it for the corresponding node tasks information of each node tasks that flow engine is sent, carries out at lookup respectively Reason, and according to the attribute of the object found, predetermined registration operation corresponding with the present node task of the node tasks information is executed, So as to realize, concomitantly the object to multiple node tasks carries out batch processing.
In a specific embodiment, the present node task of a node tasks information is the N platform network equipments Configuration network, from the object property list of node tasks information, obtains then after finding node tasks object to be treated The attribute of each object found, attribute include the LAN Information of network equipment title, network appliance address and the network equipment Deng.Predetermined registration operation is that the LAN Information of preset configuration is updated on the corresponding network equipment.
In another particular embodiment of the invention, the present node task of a node tasks is N platform hosts refitting system System, then after finding node tasks object to be treated, from the object property list of node tasks information, acquisition is found Each object attribute, attribute includes the configuration information of Hostname, host address and host.Predetermined registration operation is for calling and currently The corresponding third equation of node tasks is that corresponding host resets system.
Above-mentioned flow engine object processing method, when at least one node tasks information for receiving flow engine transmission When, in the Obj State list of each node tasks information, search the title with the present node task of the node tasks information Corresponding and state is pending object, then obtains the attribute of each object found respectively, according to the category of the object found Property corresponding with the present node task of node tasks information predetermined registration operation is executed to each object.Since a present node is appointed The objective for implementation of the predetermined registration operation of business be found from the Obj State list of corresponding node tasks information with work as prosthomere The title of point task is corresponding and state is pending all objects, can be carried out to the object that present node task is found Batch processing.Also, it for the corresponding node tasks information of each node tasks that flow engine is sent, carries out at lookup respectively Reason, and according to the attribute of the object found, predetermined registration operation corresponding with the present node task of the node tasks information is executed, So as to realize, concomitantly the object to multiple node tasks carries out batch processing.
In another embodiment, as shown in figure 4, after step S304, further include:
S305:Respectively by the Obj State list in each node tasks information, the present node of each object that finds The status modifier of task is in executing, to obtain modified each Obj State list, and by modified each Obj State list Flow engine is fed back to, by flow engine according to pair in the modified each Obj State list update flow engine received As status list.
Flow engine object handles device by by the Obj State list in node tasks information, find it is each right The status modifier of the present node task of elephant is to obtain modified each Obj State list, and will be modified each in executing Obj State list feeds back to flow engine, to lock each object found in present node task.Also, flow engine According to the Obj State list in the modified each Obj State list update flow engine received, make in flow engine Obj State list is in last state in real time.
After step S306, further include:
S308:After the completion of the predetermined registration operation of each object to finding executes, each node is changed according to operating result and is appointed Be engaged in information Obj State list in, perform predetermined registration operation each object present node task state;It is modified to hold Gone predetermined registration operation each object present node task state include be completed.
After having executed predetermined registration operation to the whole objects found in a node tasks, according to operating result in each section In the Obj State list of point mission bit stream, modification performs the task status of the present node of each object of predetermined registration operation.It repaiies The state of the present node task of each object of execution predetermined registration operation after changing include be completed with or execute failure.
S310:It is sent to flow engine and terminates order;Terminate order and carries the modified right of each node tasks information As status list.In a particular embodiment, after having executed predetermined registration operation, if the object properties hair of each node tasks information Changing then needs upgating object attribute list, and it further includes newer object property list to terminate order.For example, in LAN In the node tasks of switching, after having executed predetermined registration operation, the lan address of object changes, then needs upgating object attribute List.
S312:When receiving flow engine according to the node acquisition instruction for terminating order transmission, each node tasks are determined The corresponding next node task of information;Node acquisition instruction carries newer Obj State list;Newer Obj State row Table is updated to obtain according to each modified Obj State list by flow engine to the Obj State list in flow engine.
After flow engine receives end order, the corresponding present node task of end node mission bit stream, and according to stream Journey figure judges that present node task whether there is next node task.When there is no next node tasks, terminate flow.When depositing In next node task, sending node acquisition instruction.Node acquisition instruction carries flow engine according to each modified right As the newer Obj State list of status list, i.e., newest Obj State list.
After flow engine receives end order, updated storage in flow engine also according to newer object property list Object property list so that object property list in flow engine and the object properties in flow engine object handles device List is consistent..
When receiving node acquisition instruction, the corresponding next node task of each node tasks information is determined.
Specifically, node acquisition instruction includes the service name of each node tasks information.Step S312 is specifically included:Respectively Class corresponding with each service name of node tasks information or function are called, determines that the next node of each present node task is appointed Business.Flow engine has recorded the beginning and end of each node tasks and the beginning and end of next node task, passes through The trend of flow variable and flowline control flow.The interface and stream that flow engine object handles device passes through call flow engine Journey engine connects.The interface of flow engine is the class being packaged or function.Node acquisition instruction includes the clothes of node tasks information Be engaged in title, service name include the corresponding interface of present node task and according to the flowline of flow chart guide from working as prosthomere The path that point task is set out, so that it is determined that from the next node task of present node task.
S314:The state of predetermined registration operation and present node task will be performed respectively in newer Obj State list State for the next node task of completed object is set as pending, obtain each present node mission bit stream it is corresponding under The Obj State list of one node tasks, and the corresponding next node task of each node tasks information and each next node are appointed The Obj State list of business is sent to flow engine.
Flow engine is obtained most in the Obj State list for receiving next node task and next node task with update New Obj State list.When receiving the object of next node task and next node task, corresponding section is retransmited Point mission bit stream is searched to flow engine object handles device by flow engine object handles device according to node tasks information Corresponding and state is pending object with the present node task names of the node tasks information, and from node tasks information Object property list in, obtain the attribute of the object found, the object that finds executed according to attribute and is appointed with the node The corresponding predetermined registration operation of present node task for information of being engaged in, to the automatic business processing of implementation process.
The realization process that flow engine object processing method is described with reference to a specific application scenarios, such as Fig. 5 institutes Show, the flow chart of processing switched over for the LAN to the network equipment that flow engine in a specific embodiment generates, The flow chart realizes LAN configuration for realizing to 100 network equipments.The flow chart includes three node tasks, respectively For:Node tasks 1:It is network device initiating;Node tasks 2:The network equipment powers on;Node tasks 3:The network equipment switches local Net.The state of each node tasks includes:It is pending, be completed, execute neutralization execute failure.In node tasks 1, it is divided into two points Branch executes node tasks 3, if not opening electricity, executing node tasks 2 makes network if having opened electricity after making at the beginning of the network equipment Device power then executes node tasks 3 on network devices after electricity.
It is assumed that after having executed node tasks 1, there are 20 network equipments to have already powered on, remaining 80 network equipments not on Electricity, then 20 network equipments powered on node tasks 3 are first carried out, then each node of this 20 network equipments powered on appoint The state of business is:It is network device initiating:It is completed;The network equipment powers on:It is completed;The network equipment switches LAN:It waits holding Row.Other 80 network equipments not powered on execute node tasks 2, then the state of each node tasks of this 80 network equipments For:It is network device initiating:It is completed;The network equipment powers on:It is pending;The network equipment switches LAN:It is pending.
It is illustrated so that present node task is node tasks 2 as an example in this implementation.As shown in fig. 6, flow engine will save Point mission bit stream is sent to flow engine object handles device, and node tasks information includes the title of present node task, object Status list and object property list.Present node task is entitled:The network equipment powers on.Obj State list includes all The network equipment each node tasks state, object property list includes the attribute of whole network equipments.Attribute is specially The LAN Information of network equipment title, the IP address of the network equipment and the network equipment.
Flow engine object handles device searches node tasks after receiving nodal information from Obj State list Entitled " network equipment powers on " and state are pending object, that is, find 80 network equipments not powered on.Flow is drawn Object handles device is held up after finding this 80 network equipments not powered on, by the node of this 80 network equipments not powered on Task is that the status modifier of " network equipment powers on " be and modified Obj State list to be fed back to flow in execution and is drawn It holds up, this 80 network settings is locked in " network equipment powers on " node tasks.
Flow engine object handles device obtains this 80 and does not power on after finding the network equipment that 80 do not power on The number (i.e. object identity) of the network equipment obtains this 80 network equipments not powered on according to number in object property list Attribute, power on operation are executed to this 80 equipment.Specifically, the attribute of the network equipment includes the IP address of the network equipment, this By calling third party to control program in embodiment, this 80 device powers are controlled, third party controls IP of the program according to equipment Address executes power on operation to this 80 equipment.
After having executed power on operation, if 80 network equipments all power on success, by this 80 networks not powered on The node tasks of equipment are that the status modifier of " network equipment powers on " is to be completed.Flow engine object handles device draws to flow It holds up transmission and terminates order, terminate order and carry modified Obj State list.Flow engine is according to modified object shape State list update is stored in local Obj State list.Flow engine determines whether that there is also next nodes to appoint according to flow chart Business, if in the presence of a node tasks, to flow engine object handles device sending node acquisition instruction, node acquisition instruction packet Include service name.
Flow engine object handles device calls class corresponding with service name respectively, determines under each present node task One node tasks.Specifically, flow engine has recorded the beginning and end and next node task of each node tasks Beginning and end passes through the trend of flow variable and flowline control flow.Flow engine object handles device is flowed by calling The interface of journey engine is connect with flow engine.The interface of flow engine is the class being packaged or function.Node acquisition instruction includes The service name of node tasks information, service name include the corresponding interface of present node task and the flow according to flow chart The path for the slave present node task that line guides, so that it is determined that from the next node task of present node task.Network is set The standby next node task for powering on this node tasks is that the network equipment switches LAN, while will perform on the network equipment The state that electricity and the network equipment power on this node tasks is that the network equipment of this completed 80 equipment switches LAN The status modifier of node tasks is pending, obtains the Obj State list of next node task, and by next node task and The Obj State list of next node task is sent to flow engine, so that the Obj State list in flow engine is newest shape State.Flow engine appoints corresponding node after receiving the Obj State list of next node task and next node task Business information is sent to flow engine object handles device, and net is executed to this 80 network equipments by flow engine object handles device Network equipment switches the node tasks of LAN.That is, in a node tasks, after whole objects are finished, Next node task is just executed, batch processing is carried out to multiple objects in a node tasks to realize.
It should be understood that executing the network equipment in 80 network equipments not powered on of flow engine object handles device pair While the node tasks powered on/before/after, flow engine can also set the network of the network equipment powered on to 20 The node tasks of standby switching LAN are sent to flow engine object handles device, are held respectively by flow engine object handles device The network equipment that is powered on to 20 of row switches over local net operation, to realize to multiple node tasks carry out batch processing and Process automation improves treatment effeciency.
In one embodiment, a kind of flow engine object handles device is provided, as shown in fig. 7, comprises:Receiving module 701, searching module 702 and execution module 703.
Receiving module 701, at least one node tasks information for receiving flow engine transmission, each node tasks information Including:Title, Obj State list and the object property list of the present node task of the node tasks information;Obj State arranges Table includes the state of each node tasks of each object.
Searching module 702, in the Obj State list of each node tasks information, searching and the node tasks respectively The title of the present node task of information is corresponding and state is pending object.
Execution module 703, for respectively from the object property list of each node tasks information, obtain find it is each right The attribute of elephant executes each object found current with the node tasks information according to the attribute of each object found The corresponding predetermined registration operation of node tasks.
Above-mentioned flow engine object handles device, when at least one node tasks information for receiving flow engine transmission When, in the Obj State list of each node tasks information, search the title with the present node task of the node tasks information Corresponding and state is pending object, then obtains the attribute of each object found respectively, according to the category of the object found Property corresponding with the present node task of node tasks information predetermined registration operation is executed to each object.Since a present node is appointed The objective for implementation of the predetermined registration operation of business be found from the Obj State list of corresponding node tasks information with work as prosthomere The title of point task is corresponding and state is pending all objects, can be carried out to the object that present node task is found Batch processing.Also, it for the corresponding node tasks information of each node tasks that flow engine is sent, carries out at lookup respectively Reason, and according to the attribute of the object found, predetermined registration operation corresponding with the present node task of the node tasks information is executed, So as to realize, concomitantly the object to multiple node tasks carries out batch processing.
In another embodiment, as shown in figure 8, further including:Modified module 704, sending module 705 and node obtain mould Block 706.
Modified module 704 is repaiied after the completion of being executed when the predetermined registration operation of each object to finding according to operating result Change in the Obj State list of each node tasks information, perform the state of the present node task of each object of predetermined registration operation; The state of the present node task of the modified each object for performing predetermined registration operation includes being completed.
Sending module 705 terminates order for being sent to flow engine;Terminate order and carries each node tasks information Modified Obj State list.
Node acquisition module 706, for when receive flow engine according to terminate order send node acquisition instruction when, Determine the corresponding next node task of each node tasks information;Node acquisition instruction carries newer Obj State list, more New Obj State list arranges the Obj State in flow engine according to each modified Obj State list by flow engine Table is updated to obtain.
Modified module 704 is additionally operable to that predetermined registration operation will be performed respectively in newer Obj State list and works as prosthomere The state of point task is that the state of the next node task of completed object is set as pending, obtains each present node task The Obj State list of the corresponding next node task of information.
Sending module 705 is additionally operable to appoint the corresponding next node task of each node tasks information and each next node The Obj State list of business is sent to flow engine.
In another embodiment, node acquisition instruction includes the service name of each node tasks information.
Node acquisition module 706, for calling class corresponding with each service name of node tasks information or function respectively, Determine the next node task of each present node task.
In a further embodiment, further include:Status modifier module, for respectively by the object in each node tasks information In status list, the status modifier of the present node task of each object that finds be in executing, to obtain modified each object Status list, and modified each Obj State list is fed back into flow engine, by flow engine according to the modification received The Obj State list in each Obj State list update flow engine afterwards.
In yet another embodiment, Obj State list and object property list include the object identity of each object.It searches Module 702, in the Obj State list of each node tasks information, lookup to work as prosthomere with the node tasks information respectively The title of point task is corresponding and state is pending object, and obtains the object identity of the object found.
Execution module 703, for respectively from the object property list of each node tasks information, being obtained according to object identity The attribute of each object found executes each object found and appoints with the node according to the attribute of each object found The corresponding predetermined registration operation of present node task for information of being engaged in.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, it is non-volatile computer-readable that the program can be stored in one It takes in storage medium, in the embodiment of the present invention, which can be stored in the storage medium of computer system, and by the calculating At least one of machine system processor executes, and includes the flow such as the embodiment of above-mentioned each method with realization.Wherein, described Storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of flow engine object processing method, which is characterized in that including:
At least one node tasks information that flow engine is sent is received, each node tasks information includes:The node tasks Title, Obj State list and the object property list of the present node task of information;The Obj State list includes each right The state of each node tasks of elephant;
Respectively in the Obj State list of each node tasks information, searches and appoint with the present node of the node tasks information The title of business is corresponding and state is pending object;
Respectively from the object property list of each node tasks information, the attribute of each object found is obtained, according to looking into The attribute of each object found executes each object found corresponding with the present node task of the node tasks information pre- If operation.
2. according to the method described in claim 1, it is characterized in that, respectively from the object properties of each node tasks information In list, the attribute of each object found is obtained, according to the attribute of each object found, each object found is executed After the step of predetermined registration operation corresponding with the present node task of the node tasks information, further include:
After the completion of the predetermined registration operation of each object to finding executes, each node tasks information is changed according to operating result Obj State list in, perform predetermined registration operation each object present node task state;It is modified perform it is pre- If the state of the present node task of each object of operation includes being completed;
It is sent to the flow engine and terminates order;The modified object for terminating order and carrying each node tasks information Status list;
When receiving the flow engine according to the node acquisition instruction for terminating order transmission, each node tasks letter is determined Cease corresponding next node task;The node acquisition instruction carries newer Obj State list, the newer object Status list is by the flow engine according to each modified Obj State list to the object shape in the flow engine State list is updated to obtain;
In newer Obj State list respectively by perform predetermined registration operation and present node task state be it is completed The state of the next node task of object is set as pending, obtains the corresponding next node task of each present node mission bit stream Obj State list, and by the object shape of the corresponding next node task of each node tasks information and each next node task State list is sent to the flow engine.
3. according to the method described in claim 2, it is characterized in that, the node acquisition instruction includes each node tasks information Service name;
The step of each node tasks information of determination corresponding next node task includes:It calls and believes with each node tasks respectively The corresponding class of the service name or function of breath, determine the next node task of each present node task.
4. according to the method described in claim 1, it is characterized in that, respectively in the Obj State of each node tasks information In list, the step that and state corresponding with the title of present node task of the node tasks information is pending object is searched After rapid, further include:
Respectively by the Obj State list in each node tasks information, the present node task of each object that finds Status modifier is in executing, to obtain modified each Obj State list, and modified each Obj State list is anti- It is fed to the flow engine, by the flow engine according to the modified each Obj State list update received Obj State list in the flow engine.
5. according to the method described in claim 1, it is characterized in that, the Obj State list and the object property list packet Include the object identity of each object;
Respectively in the Obj State list of each node tasks information, searches and appoint with the present node of the node tasks information The title of business is corresponding and state includes for the step of pending object:
Respectively in the Obj State list of each node tasks information, searches and appoint with the present node of the node tasks information The title of business is corresponding and state is pending object, and obtains the object identity of the object found;
It is described respectively from the object property list of each node tasks information, obtain the attribute of each object found, root It is investigated that the attribute of each object found, executes each object found corresponding with the present node task of the node tasks information Predetermined registration operation the step of include:
According to the object identity respectively from the object property list of each node tasks information, obtain find it is each right The attribute of elephant executes each object found current with the node tasks information according to the attribute of each object found The corresponding predetermined registration operation of node tasks.
6. a kind of flow engine object handles device, which is characterized in that including:Receiving module, searching module and execution module;
The receiving module, at least one node tasks information for receiving flow engine transmission, each node tasks letter Breath includes:Title, Obj State list and the object property list of the present node task of the node tasks information;The object Status list includes the state of each node tasks of each object;
The searching module, in the Obj State list of each node tasks information, searching and appointing with the node respectively The title of the present node task for information of being engaged in is corresponding and state is pending object;
The execution module, for respectively from the object property list of each node tasks information, obtain find it is each The attribute of object executes each object for finding and works as with the node tasks information according to the attribute of each object found The corresponding predetermined registration operation of front nodal point task.
7. device according to claim 6, which is characterized in that further include:Modified module, sending module and node obtain mould Block;
The modified module is changed after the completion of being executed when the predetermined registration operation of each object to finding according to operating result In the Obj State list of each node tasks information, perform predetermined registration operation each object present node task shape State;The state of the present node task of the modified each object for performing predetermined registration operation includes being completed;
The sending module terminates order for being sent to the flow engine;The end order carries each node tasks The modified Obj State list of information;
The node acquisition module refers to for working as to receive the flow engine and obtained according to the node for terminating order transmission When enabling, the corresponding next node task of each node tasks information is determined;The node acquisition instruction carries newer object shape State list, the newer Obj State list is by the flow engine according to each modified Obj State list to the stream The Obj State list in journey engine is updated to obtain;
The modified module is additionally operable to that in newer Obj State list predetermined registration operation and present node will be performed respectively The state of task is that the state of the next node task of completed object is set as pending, obtains each present node task letter Cease the Obj State list of corresponding next node task;
The sending module is additionally operable to the corresponding next node task of each node tasks information and each next node task Obj State list is sent to the flow engine.
8. device according to claim 7, which is characterized in that the node acquisition instruction includes each node tasks information Service name;
The node acquisition module, for calling class corresponding with each service name of node tasks information or letter respectively Number, determines the next node task of each present node task.
9. device according to claim 6, which is characterized in that further include:Status modifier module, being used for respectively will be each described In Obj State list in node tasks information, the status modifier of the present node task of each object that finds be to execute In, modified each Obj State list is obtained, and modified each Obj State list is fed back into the flow and is drawn It holds up, by the flow engine according in flow engine described in the modified each Obj State list update received Obj State list.
10. device according to claim 6, which is characterized in that the Obj State list and the object property list Include the object identity of each object;
The searching module, in the Obj State list of each node tasks information, searching and appointing with the node respectively The title of the present node task for information of being engaged in is corresponding and state is pending object, and obtains the object of the object found Mark;
The execution module is used for according to the object identity respectively from the object property list of each node tasks information In, the attribute of each object found is obtained, according to the attribute of each object found, each object found is executed and is somebody's turn to do The corresponding predetermined registration operation of present node task of node tasks information.
CN201710118583.1A 2017-03-01 2017-03-01 Process engine object processing method and device Active CN108536541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710118583.1A CN108536541B (en) 2017-03-01 2017-03-01 Process engine object processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710118583.1A CN108536541B (en) 2017-03-01 2017-03-01 Process engine object processing method and device

Publications (2)

Publication Number Publication Date
CN108536541A true CN108536541A (en) 2018-09-14
CN108536541B CN108536541B (en) 2022-07-08

Family

ID=63489044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710118583.1A Active CN108536541B (en) 2017-03-01 2017-03-01 Process engine object processing method and device

Country Status (1)

Country Link
CN (1) CN108536541B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377993A (en) * 2019-07-09 2019-10-25 长江勘测规划设计研究有限责任公司 The quick configuration method that the more combinatorial regulations of super standard flood calculate
CN110990643A (en) * 2019-12-06 2020-04-10 厦门市美亚柏科信息股份有限公司 GoJS-based complex task visualization method, terminal device and storage medium
CN111027196A (en) * 2019-12-03 2020-04-17 南方电网科学研究院有限责任公司 Simulation analysis task processing method and device for power equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100037222A1 (en) * 2008-08-06 2010-02-11 Michiaki Tatsubori Detecting the starting and ending of a task when thread pooling is employed
CN103984818A (en) * 2014-05-16 2014-08-13 大连理工大学 AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology
CN104572306A (en) * 2015-01-28 2015-04-29 中国石油集团川庆钻探工程有限公司地球物理勘探公司 Method for managing resources of computer cluster and resource manager
CN105912384A (en) * 2016-04-01 2016-08-31 广东凯通软件开发有限公司 Transaction processing method and device for workflow engine
CN106155718A (en) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 Flow engine implementation method and flow engine system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100037222A1 (en) * 2008-08-06 2010-02-11 Michiaki Tatsubori Detecting the starting and ending of a task when thread pooling is employed
CN103984818A (en) * 2014-05-16 2014-08-13 大连理工大学 AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology
CN104572306A (en) * 2015-01-28 2015-04-29 中国石油集团川庆钻探工程有限公司地球物理勘探公司 Method for managing resources of computer cluster and resource manager
CN106155718A (en) * 2015-04-02 2016-11-23 阿里巴巴集团控股有限公司 Flow engine implementation method and flow engine system
CN105912384A (en) * 2016-04-01 2016-08-31 广东凯通软件开发有限公司 Transaction processing method and device for workflow engine

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377993A (en) * 2019-07-09 2019-10-25 长江勘测规划设计研究有限责任公司 The quick configuration method that the more combinatorial regulations of super standard flood calculate
CN110377993B (en) * 2019-07-09 2020-06-12 长江勘测规划设计研究有限责任公司 Agile configuration method for multi-combination regulation and control calculation of over-standard flood
CN111027196A (en) * 2019-12-03 2020-04-17 南方电网科学研究院有限责任公司 Simulation analysis task processing method and device for power equipment and storage medium
CN111027196B (en) * 2019-12-03 2023-04-28 南方电网科学研究院有限责任公司 Simulation analysis task processing method and device for power equipment and storage medium
CN110990643A (en) * 2019-12-06 2020-04-10 厦门市美亚柏科信息股份有限公司 GoJS-based complex task visualization method, terminal device and storage medium
CN110990643B (en) * 2019-12-06 2022-07-15 厦门市美亚柏科信息股份有限公司 GoJS-based complex task visualization method, terminal device and storage medium

Also Published As

Publication number Publication date
CN108536541B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN106953795B (en) Method and device for configuring multiple network cards
CN111600913B (en) Self-adaptive access method and system for real equipment in attack and defense scene of network shooting range
CN103339887B (en) For the method for optimized network prefix list search
US20200220774A1 (en) Method and device for detecting network failure
CN109952746A (en) Physics and virtual network function are integrated in business chain network environment
CN109600768A (en) Management method, equipment and the system of network slice
CN103795644B (en) Policy Table's list item collocation method, apparatus and system
CN108536541A (en) flow engine object processing method and device
WO2009033248A1 (en) A method for efficient thread usage for hierarchically structured tasks
US11115346B2 (en) Systems and methods for generating network flow information
CN114024886B (en) Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium
CN109391969A (en) Network management and system
CN110336730B (en) Network system and data transmission method
CN108829868A (en) data display method and device, storage medium and electronic device
US11765033B2 (en) Multi-fabric deployment and management platform
CN108228444A (en) A kind of test method and device
KR101754618B1 (en) A method and apparatus for generating dinamic virtual network based on software defined networks
CN109088957B (en) NAT rule management method, device and equipment
JP2001524272A (en) Method and apparatus for generating a network topology
CN110519107B (en) Metropolitan area network circuit capacity expansion method and device
CN109889421A (en) Management method, device, terminal, system and the storage medium of router
CN113852658B (en) OpenStack IPv6 deployment method and system
Kang et al. Demonstration of network service header based service function chain application with function allocation model
CN111769992B (en) Network data management method, cloud platform and storage medium
CN106028303A (en) Smart device discovering method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant