CN109491643A - Process description, executes method and apparatus and data processing equipment and medium at parsing - Google Patents

Process description, executes method and apparatus and data processing equipment and medium at parsing Download PDF

Info

Publication number
CN109491643A
CN109491643A CN201811063024.6A CN201811063024A CN109491643A CN 109491643 A CN109491643 A CN 109491643A CN 201811063024 A CN201811063024 A CN 201811063024A CN 109491643 A CN109491643 A CN 109491643A
Authority
CN
China
Prior art keywords
component
service procedure
assembly unit
service
execution
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
CN201811063024.6A
Other languages
Chinese (zh)
Other versions
CN109491643B (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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Shenma Mobile Information 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 Guangzhou Shenma Mobile Information Technology Co Ltd filed Critical Guangzhou Shenma Mobile Information Technology Co Ltd
Priority to CN201811063024.6A priority Critical patent/CN109491643B/en
Publication of CN109491643A publication Critical patent/CN109491643A/en
Application granted granted Critical
Publication of CN109491643B publication Critical patent/CN109491643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention discloses process description, parsing, execute method and apparatus and data processing equipment and medium.A kind of service procedure describes method, it include: the description information for generating at least one assembly unit and at least one component for including in each assembly unit, wherein, the assembly unit is the smallest scheduling unit in service procedure, and the component is used to indicate the standalone feature node in a service processing process;And wherein, the execution relationship of assembly unit is asynchronous, and the execution relationship of component is synchronous.Thus very big convenience is provided for the service framework design or even programming of programmer, thus substantially reduces the phenomenon of doing over again in service framework design and programming procedure, significantly reduces the burden of application developer.

Description

Process description, executes method and apparatus and data processing equipment and medium at parsing
Technical field
The present invention relates to the design and implementation of service framework more particularly to process description, parsing, execute method and apparatus and Data processing equipment and medium.
Background technique
For programmer, in practical programs design work, the aspect most perplexed is often from program The top service frame of design deeply and before finding designed is improper and needs to readjust, further, top service The adjustment of frame results in the need for continuous adjustment programme code again, as a result, because top service Frame Design it is unreasonable caused by it is each Kind is done over again ties down programmer significantly, makes it difficult to that the necessary time is extracted out to carry out really effectively concern service function itself, The especially iteration and specific implementation of service function.
It is program therefore, it is necessary to provide a kind of simple and convenient efficient service framework design tool for programmer The service framework of designer designs or even programming provides convenience, to reduce service framework design and programming to the greatest extent Phenomenon of doing over again in journey, reduces the burden of application developer.
Summary of the invention
One of in order to solve problem above, the present invention provides process description, parsing, execute at method and apparatus and data Manage equipment and medium.
The present invention provides a kind of service procedures to describe method, for generating the document of description service procedure, comprising: generates The description information of at least one assembly unit and at least one component for including in each assembly unit, wherein institute Stating assembly unit is the smallest scheduling unit in service procedure, and the component is used to indicate the independence in a service processing process Functional node;And wherein, the execution relationship of assembly unit is asynchronous, and the execution relationship of component is synchronous.
Optionally, the document of each description service procedure includes the root component of a sole inlet as the service procedure Unit.
Optionally, assembly unit can be nested.
The present invention provides a kind of service procedure and describes device, for generating the document of description service procedure, comprising: for giving birth to At the component of the description information of at least one assembly unit and at least one component for including in each assembly unit, Wherein, the assembly unit is the smallest scheduling unit in service procedure, and the component is for indicating a service processing process In standalone feature node;And wherein, the execution relationship of assembly unit is asynchronous, and the execution relationship of component is synchronous.
Optionally, the document of each description service procedure includes the root component of a sole inlet as the service procedure Unit.
Optionally, assembly unit can be nested.
The present invention provides a kind of service procedure analytic method, describes document for analysis service process, comprising: based on described Service procedure describes document to generate a process topology, wherein the process topology is the data structure that process executes relationship It expresses, comprising assembly unit, component, process parameter and execution operation plan in process topology, the assembly unit is service flow The smallest scheduling unit in journey, the component are used to indicate the standalone feature node in a service processing process, assembly unit Execution relationship be it is asynchronous, the execution relationship of component is synchronous, parameter carrier of the process parameter as service procedure Carry out storing data, it is described to execute a series of execution steps that operation plan includes the service procedure.
The present invention provides a kind of service procedure resolver, describes document for analysis service process, comprising: for being based on The service procedure describes document to generate the component of a process topology, wherein the process topology is that process executes relationship Data structure expression, process topology in comprising assembly unit, component, process parameter and execute operation plan, the component list Member is the smallest scheduling unit in service procedure, and the component is used to indicate the standalone feature section in a service processing process Point, the execution relationship of assembly unit be it is asynchronous, the execution relationship of component be it is synchronous, the process parameter is as service procedure Parameter carrier carry out storing data, it is described to execute a series of execution steps that operation plan includes the service procedure.
The present invention provides a kind of service procedure executive device, comprising: process described above resolver, for parsing clothes Business process describes document to generate a process topology;Component register center, for receiving the registration of component instance, to be institute The operation for stating service procedure provides component instance;And flow engine, for resource needed for managing the service procedure and it is The actuator for executive module of component distribution.
The present invention provides a kind of service procedure execution method, comprising: receives service procedure and describes document;
It parses the service procedure and describes document to generate a process topology and based on to service procedure description The parsing of module information in document creates corresponding component instance, and corresponding component instance is registered in component register The heart;According to the process of generation topology, actuator is distributed for each of process topology part unit, to handle the clothes in real time The request for process of being engaged in, wherein the assembly unit is the smallest scheduling unit in service procedure, including at least one is used to indicate The component of standalone feature node;And wherein, the execution relationship of assembly unit is asynchronous, and the execution relationship of component is synchronous 's.
The present invention provides a kind of data processing equipment, comprising: processor;And memory, it is stored thereon with executable generation Code makes the processor execute methods described above when the executable code is executed by the processor.
The present invention provides a kind of non-transitory machinable medium, is stored thereon with executable code, when it is described can When executing processor execution of the code by electronic equipment, the processor is made to execute methods described above.
The above-mentioned service framework design tool provided through the invention, be programmer service framework design or even Programming provides very big convenience, thus substantially reduces doing over again now in service framework design and programming procedure As significantly reducing the burden of application developer.
Detailed description of the invention
Disclosure illustrative embodiments are described in more detail in conjunction with the accompanying drawings, the disclosure above-mentioned and its Its purpose, feature and advantage will be apparent, wherein in disclosure illustrative embodiments, identical appended drawing reference Typically represent same parts.
Fig. 1 gives the illustrative symbol of the service procedure topology used in the application by as an example.
Fig. 2 gives the simplest " string write with the service procedure description language of embodiment according to the present invention The example of row " process (Fig. 2 left part) process corresponding to what can be consequently formed topological (Fig. 2 right part).
Fig. 3 gives " parallel " process write with the service procedure description language of embodiment according to the present invention The example of (Fig. 3 left part) process corresponding to what can be consequently formed topological (Fig. 3 right part).
Fig. 4 gives " asynchronous " process write with the service procedure description language of embodiment according to the present invention The example of (Fig. 4 left part) process corresponding to what can be consequently formed topological (Fig. 4 right part).
Fig. 5 gives " serial parallel " process write with the service procedure description language of embodiment according to the present invention The example of (Fig. 5 left part) process corresponding to what can be consequently formed topological (Fig. 5 right part).
Fig. 6 gives " parallel series " process write with the service procedure description language of embodiment according to the present invention The example of (Fig. 6 left part) process corresponding to what can be consequently formed topological (Fig. 6 right part).
Fig. 7 gives one and is flowed with " serial-parallel-serial " that the service procedure description language of embodiment according to the present invention is write The example of journey (Fig. 7 left part) process corresponding to what can be consequently formed topological (Fig. 7 right part).
Fig. 8 gives one and is flowed with " and serial parallel " that the service procedure description language of embodiment according to the present invention is write The example of journey (Fig. 8 left part) process corresponding to what can be consequently formed topological (Fig. 8 right part).
Fig. 9 gives " serial parallel is nested " write with the service procedure description language of embodiment according to the present invention The example of process (Fig. 9 left part) process corresponding to what can be consequently formed topological (Fig. 9 right part).
Figure 10 gives the " control right transfer write with the service procedure description language of embodiment according to the present invention To third party " example of corresponding to what can be consequently formed the process of process (Figure 10 left part) topological (Figure 10 right part).
Figure 11 shows the structural design drawing of process executive device according to an embodiment of the present.
Figure 12 shows the process that process executive device according to an embodiment of the present executes service procedure.
Figure 13 shows a kind of structural schematic diagram of the data processing equipment of embodiment according to the present invention.
Specific embodiment
The preferred embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Preferred embodiment, however, it is to be appreciated that may be realized in various forms the disclosure without the embodiment party that should be illustrated here Formula is limited.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and can be by the disclosure Range is completely communicated to those skilled in the art.What needs to be explained here is that number, serial number and attached drawing in the application Mark it is merely for convenience description and occur, for step of the invention, sequence etc. be not limited in any way, unless The execution that step has been explicitly pointed out in specification has specific sequencing.
It is well known that design a set of application (service) program, it should first do process design (herein also referred to as " upper layer clothes Business Frame Design "), on the basis of process design, go specifically to design and development and application program.
As described in the background art, in practical programs design work, most the problem of puzzlement programmer is because upper Various phenomenons of doing over again caused by layer service framework design is unreasonable are reduced this to reduce the burden of application developer Phenomenon, the present inventor propose the Method and kit for of the top service Frame Design of a set of simple and effective.
In order to more clearly describe the present invention, some concepts being related in the present invention will be briefly described in first below, Some of them concept will be also specifically introduced in embodiment below.
A) enforcement engine: a service can have multiple processes, and a process can correspond to an enforcement engine example, it Manage the topological and all actuator of the process (" actuator " will be described later).
B) component: the smallest execution unit in enforcement engine, for indicating the independent function in a service processing process It can node.Here, the execution of component can be idempotent.
C) component property: required operating parameter when assembly operating.
D) relationship is executed: including synchronization, asynchronous, parallel, execution control right transfer etc..
E) assembly unit: the smallest scheduling unit in enforcement engine, is the set of one or more components, and component It can also include one or more components subelement in unit.That is, assembly unit can nested (such as the recurrence illustrated below be embedding Set), also, a process has a unique entrance of the root assembly unit as whole flow process.
F) process: for expressing the topological relation of service execution process, by multiple assembly units and component and they it Between execution relationship composition.
G) process topology: process executes the data structure expression of relationship, includes assembly unit, component, process ginseng in topology Number and execution operation plan, will hereinafter be provided the example of multiple process topologys.
H) process parameter: each process has a unique operating parameter, which is service parameter carrier, the parameter It is available in each component to arrive, that is, to be transmitted in whole flow process component.
I) actuator: the scheduling of assembly unit (including component subelement) and the execution of component are realized by actuator 's.Each assembly unit and component subelement can distribute an actuator, which can executive module unit and component Assembly set in unit, it can read execution operation plan, and the real execution of service logic is done according to execution step.
J) component register center: all components, component can be multiplexed in different processes in one service of management. That is, the example of all components needs to be registered to component register center, component instance is provided for process flow operation.In the present invention, group Part itself only has logic, and without data mode, data are stored in process parameter, and such component just can be multiplexed.
K) flow engine: resource needed for management process and actuator.
L) process resolver: also referred herein as " process resolver ", for of the invention for describing service procedure The description language of execution relationship (including execution sequence) can generate one based on the description language by process resolver A process topology.
M) it executes operation plan: after description language is by process resolver, can be generated from process resolver A series of execution steps of whole flow process, each execution step, which can clearly indicate, currently needs to dispatch how many a assembly units (including component subelement, i.e., each assembly unit and each component subelement being nested respectively calculate 1) and how many a components It needs to be performed.Note that be here only the example enumerated, it in addition can also each assembly unit or each component list The corresponding execution operation plan of member.
Top service frame design method and tool proposed by the present invention may include a kind of flexible service-oriented process The description language of execution relationship, can describe in service procedure serial, asynchronous, concurrency relation between functional unit and this It is mutually nested between a little relationships.
Further, top service frame design method and tool proposed by the present invention can also include a kind of efficient face To the enforcement engine of service procedure, the service-oriented process that can be provided according to application developer executes the description language of relationship The expressed service procedure of speech, generation executes topology, and is scheduled in service operation to assembly unit.
Specifically show for it easier comprehension, service procedure of the invention is explained below and executes a kind of of relationship description language Example.It should be noted that the symbol of the language element in following description language and its expression be intended merely to facilitate understanding and The example provided, it will be understood by those skilled in the art that description of the invention language is not taken office because of symbol and its expression What is limited.The present invention it is to be protected be top service Frame Design involved in the application thought.
The component that service procedure of the invention executes relationship description language can include but is not limited to following content.Separately Outside, it is noted that be not to execute relationship Shi Douhui in the service procedure for describing each service to use these following elements.
A) the 1st row of above-mentioned service procedure description language: may include the name of process.
B) []: can indicate assembly unit, and assembly unit will be performed and be executed engine asynchronously (it is noted that here " asynchronous " may include that can create an individual thread when encountering a new assembly unit during service execution for it, Original any thread is not used), can be with multilayer nest, here in assembly unit, what is be nested can be single as component Member.As assembly unit, component subelement is also asynchronous execution.
C) character string between []: the component in assembly unit can be indicated, the execution of component must be synchronous (needs Note that " synchronization of component " refers to and will not create a list when encountering a new component during service execution for it here Only thread executes it, but the thread of the directly assembly unit belonging to the component goes to execute), it can be between each component With newline ' n' segmentation.
D)@: can write on after component, and the content after@can indicate the operation attribute of component.
E): component property can be multiple, and each component property can be divided with ', ' at this time.
F)=: it can be used to indicate the combined separator of component property.
G) async: can be used to indicate the reserved property of component, and whether expression component can will execute control right transfer to the Tripartite, value can for character string ' true ' (being, i.e. " execute control right transfer ") and ' false ' (it is no, i.e., " execute control Power does not shift ").
It note that the expression example of the symbol given above for being foregoing description language, upper layer clothes actually of the invention Other any symbols can be used to indicate in business Frame Design tool.That is, should not be by top service frame of the invention Frame design tool is confined to these symbols, they are used only to express and realize one of the means of design tool of the invention.
Although the example for the symbol that service procedure description language of the invention can be used is presented above, in order to be easy to manage Solution, will more specifically be presented the example of service procedure description language in conjunction with service procedure topology below.
Fig. 1 gives the illustrative symbol of the service procedure topology used in the application by as an example.
As shown in Figure 1, generally including serial start-stop symbol in service procedure topology, serially executing relationship, asynchronous start-stop Symbol, asynchronous execution relationship, third party's control right transfer start-stop symbol and functional node etc..Wherein, third party's control right transfer rises The beginning and end for indicating third party's control right transfer thread is only accorded with, furthermore, it is desirable to note that when third occurs in service procedure When square control right transfer relationship, actuator can generate a pause signal, and provide signals to third party, be performed simultaneously device meeting Operation suspension, third party will send activation signal to activate actuator after having run inherent logic, i.e., actuator is receiving the After the activation signal that tripartite sends, remaining process can be re-executed.
For the sake of being readily appreciated that, by citing control is expressed with above-mentioned service procedure description language one by one process and The corresponding process topology that can be consequently formed.
Fig. 2 gives simplest " serial " process (left side Fig. 2 write with service procedure description language of the invention Portion) corresponding to what can be consequently formed process topological (Fig. 2 right part) example.
According to the symbol of foregoing description language and its expression, can learn in the process only include with next assembly unit
And the execution relationship of three components proc_a, proc_b, proc_c in the assembly unit are serially, according to this The sequencing that three components occur, available process topology as shown in Figure 2.
Fig. 3 gives " parallel " process (Fig. 3 left part) that one is write with service procedure description language of the invention and can With the example for the corresponding process topological (Fig. 3 right part) being consequently formed.
According to the symbol of foregoing description language and its expression, it can learn in the process to include a component two layers nested Unit
It and include following three sub- assembly units in this two layers nested assembly unit (they are asynchronous)
Also, the execution relationship of these three sub-component units is parallel, as shown in the process topology of Fig. 3 right part.
Fig. 4 gives " asynchronous " process (Fig. 4 left part) that one is write with service procedure description language of the invention and can With the example for the corresponding process topological (Fig. 4 right part) being consequently formed.
According to the symbol of foregoing description language and its expression, it can learn in the process to include a component two layers nested Unit
It and include with next sub- assembly unit in this two layers nested assembly unit
[
proc_b
]
And two components proc_a and proc_c, and the component proc_b in the sub-component unit is asynchronous, root The sequencing and execution relationship occurred according to these components, the available topology of the process as shown in Fig. 4 right part.
Fig. 5 give " serial parallel " process (Fig. 5 left part) that one is write with service procedure description language of the invention with The example for the corresponding process topological (Fig. 5 right part) that can be consequently formed.
According to the symbol of foregoing description language and its expression, it can learn in the process to include a component two layers nested Unit
It and include following two sub-component unit in this two layers nested assembly unit
And a component proc_a (synchronous serial), component proc_a occur at first, the two subsequent occurrences of subgroups The component proc_b and proc_c for respectively including two asynchronous parallels in part unit again, it is hereby achieved that shown in Fig. 5 right part Process topology.
Fig. 6 give " parallel series " process (Fig. 6 left part) that one is write with service procedure description language of the invention with The example for the corresponding process topological (Fig. 6 right part) that can be consequently formed.
According to the symbol of foregoing description language and its expression, it can learn in the process to include a component two layers nested Unit
It and include following two sub-component unit in this two layers nested assembly unit
And a component proc_c (synchronous serial), component proc_c finally occur, in the two sub-component units again Two parallel component proc_a and proc_b are respectively included, it is hereby achieved that process shown in Fig. 6 right part is topological.
Fig. 7 gives " serial-parallel-serial " process (Fig. 7 left part) write with service procedure description language of the invention The example of process corresponding to what can be consequently formed topological (Fig. 7 right part).
According to the symbol of foregoing description language and its expression, it can learn in the process to include a component two layers nested Unit
It and include following two sub-component unit in this two layers nested assembly unit
And two component proc_a and proc_d (being synchronous serial), wherein proc_a occurs at first, and proc_d is most After occur, centre is the two above-mentioned sub-component units, and respectively included in the two sub-component units two it is parallel Component proc_b and proc_c, it is hereby achieved that process shown in Fig. 7 right part is topological.
Fig. 8 gives " and serial parallel " process (Fig. 8 left part) write with service procedure description language of the invention The example of process corresponding to what can be consequently formed topological (Fig. 8 right part).
According to the symbol of foregoing description language and its expression, it can learn in the process to include a component two layers nested Unit
It and include following four sub-component unit in this two layers nested assembly unit
An and component proc_c, wherein proc_c appears in centre, distinguishes again in this above-mentioned four sub- assembly units Including parallel component proc_a, proc_b, proc_d and proc_e, it is hereby achieved that process shown in Fig. 8 right part is opened up It flutters.
Fig. 9 gives " serial parallel the is nested " process (left side Fig. 9 write with service procedure description language of the invention Portion) corresponding to what can be consequently formed process topological (Fig. 9 right part) example.
According to the symbol of foregoing description language and its expression, it can learn to include three layers of nested component in the process Unit
It and include nested sub-component unit (wherein, the group of two layers first occurred in three layers of nested assembly unit Part proc_a first occurs, and is individually positioned in component proc_b and proc_c that two are nested in subelement and then occurs, so Proc_a is serial, proc_b and proc_c is followed by and the two is parallel, as shown in Figure 9)
With an intermediate sub-component unit occurred
[
proc_d
]
And a component proc_e (synchronous) finally occurred, the sequencing occurred according to them and synchronous and asynchronous The topology of process shown in Fig. 9 right part can be obtained in execution relationship.
Figure 10 gives one and is flowed with " control right transfer to third party " that service procedure description language of the invention is write The example of journey (Figure 10 left part) process corresponding to what can be consequently formed topological (Figure 10 right part).
According to the symbol of foregoing description language and its expression, can learn in the process only include with next assembly unit
And the execution relationship of three components proc_a, proc_b, proc_c in the assembly unit be it is serial, still Unlike the serial process of Fig. 2 topology, the operation attribute of proc_b component in this process is (because of expression after@ The operation attribute of component) " third party's control right transfer " be "Yes" (async=true), so needing to execute in engine at this time Control right transfer is to third party component proc_c, and the serial executive module proc_d after third party's component proc_c, root According to the sequencing that each component in the process of Figure 10 occurs, the available topology of the process as shown in Figure 10 right part.
The above-mentioned service framework design tool (service procedure description language) provided through the invention is programmer Service framework design so that programming provide very big convenience, thus substantially reduce service framework design and program Phenomenon of doing over again in design process, significantly reduces the burden of application developer.
Process executive device (also referred to as " process execution engine ") of the invention explained below, Figure 11 shows the device Structural design drawing.The process executive device 200 include process resolver 201 (herein also referred to as " process resolver 201 "), Component register center 202, one or more components unit 203, one or more sub-component units 204, one or more components 205, one or more actuators 206, flow engine 207.
Wherein, the process resolver 201 that service-oriented process executes relationship executes pass towards service procedure for receiving The description language of system, and description language generates a process topology based on the received.Here, process topology is that process executes The data structure of relationship is expressed, and assembly unit, component, process parameter and execution operation plan etc. are included in topology.
Component register center 202 is used to receive the registration of the example of all components, to provide component reality for process flow operation Example.
Component 205 is the smallest execution unit in enforcement engine, for indicating the independence in a service processing process Functional node.Here, the execution of component can be idempotent.
Assembly unit 203 is the smallest scheduling unit in enforcement engine, is the set of one or more components.Component list Member can be with recursive nestings, also, a process has a unique entrance of the root assembly unit as whole flow process.Each component Unit 203 may include one or more components, can also be nested with one or more sub-component units 204.
Component subelement 204 be by the nested assembly unit of assembly unit 203 (here, it is only for facilitate differentiation and The assembly unit being nested is known as component subelement), also the smallest scheduling is single in enforcement engine for component subelement 204 Member can also use the set for being one or more components.
Wherein, the process parameter of the parameter carrier as service procedure for storing data passes in whole flow process component It passs.In the present invention, component itself only has logic, and without data mode, data are stored in process parameter, such component It can be multiplexed by different processes.
Actuator 206 can be assigned one in each assembly unit or component subelement, and actuator 206 is for executing Assembly set in assembly unit or component subelement, it can read the execution operation plan generated from process resolver 201, Then the real execution of service logic is done according to the execution step executed in operation plan.
Note that execution operation plan here can be after description language is by process resolver 201, from process The execution step for the whole flow process that resolver 201 generates, each execution step, which can clearly indicate, currently to need to dispatch How many a assembly units (including component subelement, i.e., each assembly unit and each component subelement being nested respectively calculate 1 It is a) and how many a components needs be performed.Note that be here only the example enumerated, can also each assembly unit or The corresponding execution operation plan of each component subelement.
Note that the present invention is for process resolver 201 according to the description language form generated for executing operation plan It is not intended to be limited in any with range.
Flow engine 207 is for resource and actuator needed for managing a process.
Described above is process executive device of the invention (also referred to as " process execution engines "), come hereinafter with reference to Figure 12 Engine-operated process (implementation procedure of process executive device) is described.
As shown in figure 12, the operational process of process execution engine is divided into two stages:
1) initial stage: executing before whole flow process operation, and the content of execution includes that the registration of component instance, process are retouched The generation etc. of the parsing stated and process topology.
Specifically, for example, describing device (also referred herein as " process describer ") 100 from process exports a process Description information, after process resolver 201 receives the description information of the process, parse the description information of the process, and The corresponding module information of the process is obtained, and is thus created that corresponding component instance, then corresponding component instance is infused Volume arrives component register center 202.Moreover, process resolver 201 is created that the stream based on the process relevant information parsed The process topology of journey.
2) operation phase: flow engine 207 distributes actuator according to the process topology generated from process resolver 201 206, with the request of real-time process flow.
Specifically, for example, for the service request received, what flow engine 207 was first generated from process resolver 201 Process topology finds unique root assembly unit 203, then distributes actuator 206, actuator 206 for the root assembly unit 203 The assembly set of root assembly unit 203 can be executed, and reads execution operation plan, then according to holding in execution operation plan Row step does the real execution of service logic.
In addition, the sub-component list in the implementation procedure of the actuator 206 of root assembly unit 206, in root assembly unit 203 The actuator 206 of first 204 (if there is) is also assigned, and then the actuator 206 of sub-component unit 204 can execute sub-component unit 204 assembly set, and execution operation plan is read, service is then done according to the execution step executed in operation plan and is patrolled The real execution collected.
Note that in root assembly unit 203 should have assembly set (at least one component), it is understood that there may be sub-component list Member 204, but not is bound to, and there are sub-component units 204.
It is further noted that above-mentioned execution operation plan can be obtained for example by assembly unit from flow engine, (process is drawn Holding up can obtain from the process topology that process resolver exports), it can also for example directly be parsed and be filled from process by actuator 206 Acquisition is set, the present invention is not intended to be limited in any the storage and acquisition pattern that execute operation plan.
The process executive device further provided for through the invention, so that application developer holds cumbersome service fine crushing The details of row frame is thrown to enforcement engine, it is possible thereby to take more time process is combed it is clear, function each in process It is more reasonable that energy design of node obtains.
The present invention provides a kind of service procedure and describes method, for generating the document of description service procedure, comprising: generates extremely The description information of a few assembly unit and at least one component for including in each assembly unit.
Wherein, the assembly unit is the smallest scheduling unit in service procedure, and the component is for indicating a service Standalone feature node in process flow.The execution relationship of assembly unit be it is asynchronous, the execution relationship of component is synchronous.
The document of each description service procedure includes the root assembly unit of a sole inlet as the service procedure.
Moreover, assembly unit can be nested, for example, recursive nestings.
The present invention provides a kind of service procedure and describes device (also referred to as " service procedure describer ") 100, retouches for generating State the document of service procedure, comprising: for generating at least one assembly unit and including in each assembly unit The component of the description information of at least one component.
The present invention provides a kind of service procedure analytic method, describes document for analysis service process, comprising: based on described Service procedure describes document to generate a process topology, wherein the process topology is the data structure that process executes relationship It expresses, comprising assembly unit, component, process parameter and execution operation plan in process topology, the assembly unit is service flow The smallest scheduling unit in journey, the component are used to indicate the standalone feature node in a service processing process, assembly unit Execution relationship be it is asynchronous, the execution relationship of component is synchronous, parameter carrier of the process parameter as service procedure Carry out storing data, it is described to execute a series of execution steps that operation plan includes the service procedure.
The present invention provides a kind of service procedure resolver (herein also referred to as " service procedure resolver ") 201, for solving Analysis service procedure describes document, comprising: the component of a process topology is generated for describing document based on the service procedure, Wherein, the process topology is the data structure expression that process executes relationship, includes assembly unit, component, stream in process topology Journey parameter and execution operation plan, the assembly unit are the smallest scheduling units in service procedure, and the component is for indicating Standalone feature node in one service processing process, the execution relationship of assembly unit be it is asynchronous, the execution relationship of component is Synchronous, the process parameter carrys out storing data as the parameter carrier of service procedure, and the execution operation plan includes described A series of execution steps of service procedure.
The present invention provides a kind of service procedure executive device (also referred to as " service procedure enforcement engine ") 207, comprising: above The process resolver 201 describes document for analysis service process to generate a process topology;Component register center 202, for receiving the registration of component instance, to provide component instance for the operation of the service procedure;And flow engine 207, it for resource needed for managing the service procedure and is the actuator for executive module of component distribution.
The present invention provides a kind of service procedure execution method, comprising: receives service procedure and describes document;
It parses the service procedure and describes document to generate a process topology and based on to service procedure description The parsing of module information in document creates corresponding component instance, and corresponding component instance is registered in component register The heart;According to the process of generation topology, actuator is distributed for each of process topology part unit, to handle the clothes in real time The request for process of being engaged in.
Wherein, the assembly unit is the smallest scheduling unit in service procedure, including at least one is used to indicate independent The component of functional node.The execution relationship of assembly unit be it is asynchronous, the execution relationship of component is synchronous.
Figure 13 shows a kind of structural schematic diagram of the data processing equipment of embodiment according to the present invention.
Referring to Figure 13, data processing equipment 1 includes memory 10 and processor 20.
Processor 20 can be the processor of a multicore, also may include multiple processors.In some embodiments, locate Reason device 20 may include a general primary processor and one or more special coprocessors, such as graphics processor (GPU), digital signal processor (DSP) etc..In some embodiments, the circuit realization of customization can be used in processor 20, Such as application-specific IC (ASIC, Application Specific Integrated Circuit) or scene can Programmed logic gate array (FPGA, Field Programmable Gate Arrays).
Memory 10 may include various types of storage units, such as Installed System Memory, read-only memory (ROM), and forever Long storage device.Wherein, ROM can store the static data of other modules needs of processor 20 or computer or refer to It enables.Permanent storage can be read-write storage device.Permanent storage can be after computer circuit breaking not The non-volatile memory device of the instruction and data of storage can be lost.In some embodiments, permanent storage device uses Mass storage device (such as magnetically or optically disk, flash memory) is used as permanent storage.In other embodiment, permanently deposit Storage device can be removable storage equipment (such as floppy disk, CD-ROM drive).Installed System Memory can be read-write storage equipment or The read-write storage equipment of volatibility, such as dynamic random access memory.Installed System Memory can store some or all processors The instruction and data needed at runtime.In addition, memory 10 may include the combination of any computer readable storage medium, packet Include various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), disk and/or light Disk can also use.In some embodiments, memory 1010 may include that removable storage that is readable and/or writing is set It is standby, for example, laser disc (CD), read-only digital versatile disc (such as DVD-ROM, DVD-dual layer-ROM), read-only Blu-ray Disc, Super disc density, flash card (such as SD card, min SD card, Micro-SD card etc.), magnetic floppy disc etc..It is computer-readable to deposit It stores up medium and does not include carrier wave and the momentary electron signal by wirelessly or non-wirelessly transmitting.
Code can be handled by being stored on memory 10, when that can handle code by the processing of processor 20, can make processor 20 execute the method addressed above.
In addition, being also implemented as a kind of computer program or computer program product, the meter according to the method for the present invention Calculation machine program or computer program product include the calculating for executing the above steps limited in the above method of the invention Machine program code instruction.
Alternatively, the present invention can also be embodied as a kind of (or the computer-readable storage of non-transitory machinable medium Medium or machine readable storage medium), it is stored thereon with executable code (or computer program or computer instruction code), When the executable code (or computer program or computer instruction code) by electronic equipment (or calculate equipment, server Deng) processor execute when, so that the processor is executed each step according to the above method of the present invention.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.
What flow chart and block diagram in attached drawing etc. showed the system and method for multiple embodiments according to the present invention can The architecture, function and operation being able to achieve.In this regard, each box in flowchart or block diagram can represent a mould A part of block, program segment or code, a part of the module, section or code include one or more for realizing rule The executable instruction of fixed logic function.It should also be noted that in some implementations as replacements, the function of being marked in box It can also be occurred with being different from the sequence marked in attached drawing.For example, two continuous boxes can actually be substantially in parallel It executes, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/ Or the combination of each box in flow chart and the box in block diagram and or flow chart, can with execute as defined in function or The dedicated hardware based system of operation is realized, or can be realized using a combination of dedicated hardware and computer instructions.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In the principle, practical application or improvement to the technology in market for best explaining each embodiment, or make the art Other those of ordinary skill can understand each embodiment disclosed herein.

Claims (12)

1. a kind of service procedure describes method, for generating the document of description service procedure characterized by comprising
The description information of at least one assembly unit and at least one component for including in each assembly unit is generated,
Wherein, the assembly unit is the smallest scheduling unit in service procedure, and the component is for indicating a service processing Standalone feature node in process;And
Wherein, the execution relationship of assembly unit is asynchronous, and the execution relationship of component is synchronous.
2. service procedure as described in claim 1 describes method, which is characterized in that it is each description service procedure document include The root assembly unit of one sole inlet as the service procedure.
3. service procedure as described in claim 1 describes method, which is characterized in that assembly unit can be nested.
4. a kind of service procedure describes device, for generating the document of description service procedure characterized by comprising
For generating the description of at least one assembly unit and at least one component for including in each assembly unit The component of information,
Wherein, the assembly unit is the smallest scheduling unit in service procedure, and the component is for indicating a service processing Standalone feature node in process;And
Wherein, the execution relationship of assembly unit is asynchronous, and the execution relationship of component is synchronous.
5. service procedure as claimed in claim 4 describes device, which is characterized in that it is each description service procedure document include The root assembly unit of one sole inlet as the service procedure.
6. service procedure as claimed in claim 4 describes device, which is characterized in that assembly unit can be nested.
7. a kind of service procedure analytic method describes document for analysis service process, comprising:
Document is described based on the service procedure to generate a process topology,
Wherein, the process topology is the data structure expression that process executes relationship, includes assembly unit, group in process topology Part, process parameter and execution operation plan,
The assembly unit is the smallest scheduling unit in service procedure, and the component is for indicating in a service processing process Standalone feature node, the execution relationship of assembly unit be it is asynchronous, the execution relationship of component be it is synchronous,
The process parameter carrys out storing data as the parameter carrier of service procedure,
It is described to execute a series of execution steps that operation plan includes the service procedure.
8. a kind of service procedure resolver describes document for analysis service process, comprising:
The component of a process topology is generated for describing document based on the service procedure,
Wherein, the process topology is the data structure expression that process executes relationship, includes assembly unit, group in process topology Part, process parameter and execution operation plan,
The assembly unit is the smallest scheduling unit in service procedure, and the component is for indicating in a service processing process Standalone feature node, the execution relationship of assembly unit be it is asynchronous, the execution relationship of component be it is synchronous,
The process parameter carrys out storing data as the parameter carrier of service procedure,
It is described to execute a series of execution steps that operation plan includes the service procedure.
9. a kind of service procedure executive device characterized by comprising
Service procedure resolver as claimed in claim 8, describes document for analysis service process to generate a process Topology;
Component register center, for receiving the registration of component instance, to provide component instance for the operation of the service procedure; And
Flow engine for resource needed for managing the service procedure and is the execution for executive module of component distribution Device.
10. a kind of service procedure executes method characterized by comprising
It receives service procedure and describes document;
It parses the service procedure and describes document to generate a process topology and be based on describing document to the service procedure In module information parsing, create corresponding component instance, and corresponding component instance is registered to component register center;
According to the process of generation topology, actuator is distributed for each of process topology part unit, it is described to handle in real time The request of service procedure,
Wherein, the assembly unit is the smallest scheduling unit in service procedure, including at least one is used to indicate standalone feature The component of node;And
Wherein, the execution relationship of assembly unit is asynchronous, and the execution relationship of component is synchronous.
11. a kind of data processing equipment, comprising:
Processor;And
Memory is stored thereon with executable code, when the executable code is executed by the processor, makes the processing Device executes the method as described in any one of claims 1 to 3 and claim 7 and 10.
12. a kind of non-transitory machinable medium, is stored thereon with executable code, when the executable code is electric When the processor of sub- equipment executes, execute the processor as any one in claims 1 to 3 and claim 7 and 10 Method described in.
CN201811063024.6A 2018-09-12 2018-09-12 Flow description, analysis and execution method and device, data processing equipment and medium Active CN109491643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811063024.6A CN109491643B (en) 2018-09-12 2018-09-12 Flow description, analysis and execution method and device, data processing equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811063024.6A CN109491643B (en) 2018-09-12 2018-09-12 Flow description, analysis and execution method and device, data processing equipment and medium

Publications (2)

Publication Number Publication Date
CN109491643A true CN109491643A (en) 2019-03-19
CN109491643B CN109491643B (en) 2023-02-24

Family

ID=65690012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811063024.6A Active CN109491643B (en) 2018-09-12 2018-09-12 Flow description, analysis and execution method and device, data processing equipment and medium

Country Status (1)

Country Link
CN (1) CN109491643B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633106A (en) * 2019-11-19 2019-12-31 北京中科寒武纪科技有限公司 Algorithm adaptive device and algorithm adaptive method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509197A (en) * 2011-12-01 2012-06-20 中国移动通信集团广东有限公司 Workflow management system and workflow management method
US20140123126A1 (en) * 2012-10-31 2014-05-01 Wal-Mart Stores, Inc. Automatic topology extraction and plotting with correlation to real time analytic data
CN105278960A (en) * 2015-10-27 2016-01-27 航天恒星科技有限公司 Process automation method and system in remote sensing application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509197A (en) * 2011-12-01 2012-06-20 中国移动通信集团广东有限公司 Workflow management system and workflow management method
US20140123126A1 (en) * 2012-10-31 2014-05-01 Wal-Mart Stores, Inc. Automatic topology extraction and plotting with correlation to real time analytic data
CN105278960A (en) * 2015-10-27 2016-01-27 航天恒星科技有限公司 Process automation method and system in remote sensing application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孔继利: "基于流程挖掘的流程建模方法研究", 《中国管理信息化》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633106A (en) * 2019-11-19 2019-12-31 北京中科寒武纪科技有限公司 Algorithm adaptive device and algorithm adaptive method

Also Published As

Publication number Publication date
CN109491643B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
CN110471666A (en) Code automatic switching method and device, code converter and medium
Utke et al. Toward adjoinable MPI
CN101799760A (en) Generate the system and method for the parallel simd code of arbitrary target architecture
CN110750946B (en) Simulation acceleration method and system for integrated circuit netlist
CN103870327A (en) Real-time multitask scheduling method and device
CN102567312A (en) Machine translation method based on distributive parallel computation framework
CN105183698A (en) Control processing system and method based on multi-kernel DSP
Dragomir et al. Model checking kernel P systems
CN110704438B (en) Method and device for generating bloom filter in blockchain
CN110083625A (en) Realtime stream processing method, equipment, data processing equipment and medium
CN101901161A (en) Energy consumption related software/hardware partition-oriented hierarchical control and data flow graph modeling method
CN103309676B (en) Web service method for packing and system for marine numerical simulation ROMS
Chwif et al. Discrete event simulation model reduction: A causal approach
CN110175900A (en) A kind of buffering benefit account method and device
CN113535399A (en) NFV resource scheduling method, device and system
CN109491643A (en) Process description, executes method and apparatus and data processing equipment and medium at parsing
CN105335135B (en) Data processing method and central node
CN109783239A (en) Multithreading optimization method, system and the medium of SystemC emulation dispatch core
Schmidt et al. Hybrid analysis of SystemC models for fast and accurate parallel simulation
CN109784484A (en) Neural network accelerated method, device, neural network accelerate chip and storage medium
CN103853559B (en) Semantic Web service composite automatic validation method and system
CN117009038A (en) Graph computing platform based on cloud native technology
Sang et al. A fast implementation of parallel discrete-event simulation on GPGPU
CN110321998A (en) Convolutional neural networks implementation method, device, acceleration equipment, storage medium
Berger et al. ARTUS-A Framework for Event-based Data Analysis in High Energy Physics

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200810

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 12 layer self unit 01

Applicant before: GUANGZHOU SHENMA MOBILE INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant