CN115658270A - Workflow execution method, device, equipment and storage medium of visual system - Google Patents
Workflow execution method, device, equipment and storage medium of visual system Download PDFInfo
- Publication number
- CN115658270A CN115658270A CN202211362698.2A CN202211362698A CN115658270A CN 115658270 A CN115658270 A CN 115658270A CN 202211362698 A CN202211362698 A CN 202211362698A CN 115658270 A CN115658270 A CN 115658270A
- Authority
- CN
- China
- Prior art keywords
- node
- execution
- workflow
- function
- task
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000000007 visual effect Effects 0.000 title description 8
- 230000006870 function Effects 0.000 claims description 88
- 238000004590 computer program Methods 0.000 claims description 11
- 238000002347 injection Methods 0.000 claims description 11
- 239000007924 injection Substances 0.000 claims description 11
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 238000001514 detection method Methods 0.000 description 10
- 239000000463 material Substances 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000006378 damage Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000008439 repair process Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention relates to a workflow execution method of a vision system, which comprises the following steps: acquiring a workflow starting class, wherein the workflow starting class comprises node information of nodes required by a workflow and an execution sequence of the node class; creating a round container, creating a node execution task according to an execution sequence, and injecting the node execution task into the round container, wherein the node execution task is associated with a node corresponding to the node information; and sequentially instantiating the node classes corresponding to the node execution tasks in the turn container, and executing the instantiation codes.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for executing a workflow of a vision system, an electronic device, and a computer storage medium.
Background
The visual system is a system for detecting the quality of materials through computer vision, and the visual system acquires material images from various visual cameras through communication with various devices, extracts features according to the material images and calculates the features, and judges whether the materials are qualified or not according to the calculation result. However, in the detection workflow of the current vision system, due to the complex business logic, the workflow code is difficult to split and reuse, and meanwhile, due to the large code amount, when a problem occurs in the workflow, the code is difficult to locate and repair.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a workflow execution method of a vision system, which can efficiently generate workflows and is convenient to maintain.
The invention is realized by the following technical scheme: a method of workflow execution for a vision system, comprising the steps of:
acquiring a workflow starting class, wherein the workflow starting class comprises node information of nodes required by a workflow and an execution sequence of the node class;
creating a round container, creating a node execution task according to an execution sequence, and injecting the node execution task into the round container, wherein the node execution task is associated with a node corresponding to the node information;
and sequentially instantiating the node classes corresponding to the node execution tasks in the turn container, and executing the instantiation codes.
Compared with the prior art, the workflow execution method of the visual system provided by the invention has the advantages that each node of the workflow is split, the conditional sequence relation among each node and each node is described through the workflow execution starting class, the workflow can be restored and the workflow code can be generated according to the workflow execution starting class, the nodes are mutually independent, and when the workflow has a problem, the problem node can be only repaired, so that the workload of code repair is reduced. Meanwhile, the nodes of different detection rounds are created through the round container to execute tasks, the different rounds are isolated in domains, and the rounds are independent and do not interfere with each other, so that the vision system can perform detection of multiple rounds at the same time, and the detection efficiency is improved.
Further, the workflow initiation class includes a new round flag;
creating a round container, comprising the steps of: and creating a round container according to the new round mark.
Further, the workflow starting class contains the execution condition of the node class;
creating nodes according to the execution sequence to execute tasks and injecting the turn containers, comprising the following steps:
if the execution condition exists between the adjacent nodes in the execution sequence, executing a condition function corresponding to the execution condition, and when the condition function returns to pass, creating a node execution task of the next node and injecting the node execution task into the round container;
and if no execution condition exists between the adjacent nodes in the execution sequence, directly creating the node of the next node to execute the task, and injecting the round container.
Further, instantiating the node classes corresponding to the node execution tasks in the round container in sequence, and executing the instantiation code, including the steps of:
inquiring a cache space;
if a node function of a node class corresponding to the node execution task exists in the cache space, acquiring the node function and a parameter of the node function;
if the node function of the node class corresponding to the node execution task does not exist in the cache space, acquiring the node function with the latest version from a node dictionary, and caching the node function into the cache space, wherein the node dictionary comprises the node functions of all versions of the node and parameters required by the node functions;
instantiating the acquired node function and its parameters and executing the instantiation code.
Based on the same inventive concept, the present application further provides a workflow execution apparatus of a vision system, comprising:
the workflow acquiring module is used for acquiring a workflow starting class, and the workflow starting class comprises node information of nodes required by a workflow and an execution sequence of the node class;
the round creating module is used for creating a round container, creating a node execution task according to an execution sequence and injecting the node execution task into the round container, wherein the node execution task is associated with a node corresponding to the node information;
and the execution module is used for sequentially instantiating the node classes corresponding to the node execution tasks in the turn container and executing the instantiation codes.
Further, the workflow initiation class includes a new round flag;
the round creation module comprises a container creation module for creating a round container from the new round flag.
Further, the workflow starting class contains the execution condition of the node class;
the round creation module includes a first task injection module and a second task injection module,
the first task injection module is used for executing a condition function corresponding to the execution condition if the execution condition exists between the nodes adjacent to the execution sequence, creating a node execution task of the next node when the condition function returns to pass, and injecting the node execution task into the round container;
and the second task injection module is used for directly creating a node execution task of the next node and injecting the node execution task into the round container if no execution condition exists between the nodes adjacent to the execution sequence.
Further, the execution module includes:
the query module is used for querying the cache space;
a first function obtaining module, configured to obtain a node function and a parameter of the node function if a node function of a node class corresponding to a node execution task exists in the cache space;
a second function obtaining module, configured to, if a node function of a node class corresponding to a node execution task does not exist in the cache space, obtain a node function with a latest version from a node dictionary, and cache the node function in the cache space, where the node dictionary includes the node functions of the respective versions of the node and parameters required by the node functions;
and the instantiation module is used for instantiating the acquired node function and the parameter thereof and executing the instantiation code.
Based on the same inventive concept, the present application further provides an electronic device, comprising:
a processor;
a memory for storing a computer program for execution by the processor;
wherein the processor implements the steps of the above method when executing the computer program.
Based on the same inventive concept, the present application also provides a computer storage medium on which a computer program is stored, which when executed performs the steps of the above method.
For a better understanding and practice, the invention is described in detail below with reference to the accompanying drawings.
Drawings
FIG. 1 is a flow diagram illustrating a method for workflow execution of a vision system, in accordance with one embodiment;
FIG. 2 is a user graphical interface of a workflow initiation class editor of an embodiment;
FIG. 3 is an exemplary workflow operational monitoring user graphical interface;
fig. 4 is a schematic structural diagram of a workflow execution apparatus of the vision system according to an embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The vision system is used for detecting whether the material is qualified or not according to the material image in production. For different materials and different detection projects, the vision system needs to start different workflows to detect. The workflow is set according to the detection logic, and the workflow is composed of a plurality of nodes arranged according to the execution logic.
Please refer to fig. 1, which is a flowchart illustrating a workflow executing method of a vision system according to an embodiment. The method comprises the following steps:
s1: acquiring a workflow starting class;
s2: creating a round container, sequentially creating nodes to execute tasks according to the workflow starting class, and injecting the round container;
s3: and sequentially instantiating the node classes corresponding to the node execution tasks in the round container, and executing the instantiation codes.
In step S1, each workflow starting class corresponds to a workflow, and the workflow starting class describes node information included in the corresponding workflow, and an execution sequence and an execution condition of each node. The node may be a node step or a flow in the workflow, and specifically, a code of the node step or the flow may be encapsulated as a node function, and further, the node function, a node function parameter, and a node name may be encapsulated as a node class. When the method is implemented, node information, such as node names, is recorded in the workflow starting class, and the corresponding node class can be obtained through the node information. The execution order of the nodes is the step or flow order of the workflow. The node execution condition is usually a precondition for whether to execute a node, and a corresponding node can be executed only if the node execution condition is met. The node execution condition is not a precondition that the node must set, and when the node does not set the execution condition, the node can be directly executed.
Further, a method for generating workflow starting classes is introduced, which comprises the steps of:
s11: acquiring node names of node classes to be executed, and execution directions and execution conditions among the node classes;
s12: and generating a workflow starting class, wherein the workflow starting class comprises a starting node, a node name of a node class to be executed, an execution direction among the node classes and an execution condition.
The method comprises the steps of obtaining a COM library packaged by an object and member program set of Visual Studio kernel automation through an EnvDTE technology, and generating a workflow starting class through a Roslyn technology. Please refer to fig. 2, which is a user graphical interface of workflow startup class editing according to an embodiment, through which a user can select a node class to be executed, and set an execution sequence and an execution condition of the node class through an arrow connecting line.
In step S2, the round container is a self-defined logical domain, each detection of each material is a round, and each round is performed to create a round container for storing the task executed by the node implementing the workflow. The node execution task is created according to the node name in the workflow starting class, and therefore the node execution task can retrieve the corresponding node class through the node name.
When creating a round container, a round start message is pushed.
In an alternative embodiment, a new round flag may be set in the workflow startup class, the new round flag having an order relationship with the node classes in the workflow startup class, and when the new round flag appears, a round container is created. Alternatively, a round container may also be created according to whether the latest round container is complete: when the execution tasks of the nodes in the latest round container are all completed, the round container is created.
In another alternative embodiment, the method comprises the steps of: and when the nodes in the turn container completely complete the tasks, destroying the turn container and pushing a turn result message.
The node execution task is associated with the node class through the node name, and when the node execution task is executed, a node function in the associated node class is executed. The method comprises the following steps of sequentially creating nodes according to a workflow starting class to execute tasks and injecting a round container, and specifically comprises the following steps:
s21: if the execution condition exists between the adjacent nodes in the execution sequence, executing a condition function corresponding to the execution condition, creating a node execution task of the next node when the condition function returns to pass, and injecting the node execution task into a round container;
and the condition function is packaged with a program code for judging the execution condition to obtain a passing or failing result. The condition function can be searched from a condition dictionary, the condition dictionary is a set of condition information acquired from a dynamic support library of the system when the system is started, and the condition information comprises the condition function and parameters required by the node function.
S22: and if no execution condition exists between the adjacent nodes in the execution sequence, directly creating the node execution task of the next node, and injecting a round container.
In step S3, sequentially instantiating the node classes corresponding to the node execution tasks in the round container, and executing the instantiation code, further comprising the steps of:
s31: querying a cache space;
the cache space is a storage space for storing the node class information, and the storage space can be realized by a remote storage or a local storage.
S32: if a node function of a node class corresponding to the node execution task exists in the cache space, acquiring the node function and parameters of the node function;
the parameter types of the node functions comprise temporary parameters, preset parameters and DI parameters, wherein the temporary parameters are parameters generated by a previous node; the preset parameters are preset parameters of a workflow starting class; the DI parameter is a system-dependent injection parameter. The three parameters can be distinguished by setting a characteristic, for example, a temporary parameter does not set a characteristic; the preset parameter property is set to [ frompparameters ]; the DI parameter characteristic is set to FromDI. Searching the temporary parameters and the parameter names of the preset parameters through the attribute names in the source objects; the DI parameters are looked up by injection type.
S33: if the node function of the node class corresponding to the node execution task does not exist in the cache space, acquiring the node function with the latest version from the node dictionary, and caching the node function into the cache space;
the node dictionary is a set of node information acquired from a dynamic support library of the system when the system is started, and the node information comprises a node name, node functions of various versions and parameters required by the node functions. When the latest node function is obtained, automatic searching can be carried out through the version number, and the target version number is sequentially reduced by one for inquiry until the node function corresponding to the target version number is searched.
S34: instantiating the acquired node function and its parameters and executing the instantiated code
During instantiation, the objects created by instantiation can inherit the empty interface, and corresponding objects are injected into different scopes of the turn container according to the type of the empty interface. In an optional implementation, the types of the empty interfaces comprise an IScoped empty interface and an ISingleton empty interface, and the objects of the IScoped empty interface are inherited into the round unique objects, namely, the unique objects special for the round container are created for each round container, and the round unique objects are destroyed along with the destruction of the round container; an object that inherits the ISingleton empty interface is a globally unique object, i.e., only one unique object is created for all round containers, which is not destroyed with the round container.
During the workflow execution, the running information of each node can be pushed to the client, for example, when the creation of the turn container is completed, a turn start message is pushed; when the nodes in the turn container complete the execution of the tasks, pushing a turn ending message; when a node function is acquired and is ready to be executed, pushing a message before the node runs; when the execution of the node function is finished, pushing a message after the node operation; when the node execution result is wrong, pushing the node execution error message; when the execution condition between the nodes starts to execute, pushing a connection condition execution message; and when the execution result of the execution condition among the nodes is error, pushing a connection condition execution error message. Turning to FIG. 3, an exemplary workflow execution monitoring user graphical interface is illustrated. And the server side pushes the operation information of each node of the workflow to the client side, and the operation information is displayed through the user graphical interface.
Compared with the prior art, the workflow execution method provided by the invention has the advantages that each node of the workflow is split, the conditional sequence relation among each node and each node is described through the workflow execution starting class, the workflow can be restored and the workflow code can be generated according to the workflow execution starting class, the nodes are mutually independent, and when the workflow has a problem, the problem node can be repaired, so that the workload of code repair is reduced. Meanwhile, the nodes of different detection rounds are created through the round container to execute tasks, the different rounds are isolated in domains, and the rounds are independent and do not interfere with each other, so that the vision system can perform detection of multiple rounds at the same time, and the detection efficiency is improved.
Based on the same inventive concept, the application provides a workflow execution device of a vision system. Please refer to fig. 4, which is a schematic structural diagram of a workflow execution apparatus of a vision system according to an embodiment, the apparatus including: the workflow creating method comprises a workflow obtaining module 10, a round creating module 20 and an executing module 30, wherein the workflow obtaining module 10 is used for obtaining a workflow starting class, and the workflow starting class comprises node information of nodes required by a workflow and an executing sequence of the node class; the round creating module 20 is configured to create a round container, create a node execution task according to an execution order, and inject the node execution task into the round container, where the node execution task is associated with a node corresponding to the node information; the execution module 30 is configured to instantiate the node classes corresponding to the node execution tasks in the round container in sequence, and execute the instantiation codes.
In an optional embodiment, the round creation module 20 comprises a container creation module 21, the container creation module 21 being configured to create a round container according to the new round flag. And/or, the container creating module 21 is configured to create a round container according to whether the latest round container is completed: when the nodes in the latest round container execute tasks all complete, the round container is created.
In another optional embodiment, the workflow execution device further comprises a destruction module, and the destruction module is configured to destroy the turn container when all the tasks executed by the nodes in the turn container are completed, and meanwhile push a turn result message.
In an optional embodiment, the round creating module 20 includes a first task injecting module 22 and a second task injecting module 23, where the first task injecting module 22 is configured to, if the execution condition exists between nodes adjacent to the execution order, execute a condition function corresponding to the execution condition, create a node execution task of a next node when the condition function returns to pass, and inject into the round container; the second task injection module 23 is configured to directly create a node of a next node to execute a task and inject the node into the round container if there is no execution condition between nodes adjacent to the execution sequence.
In an optional embodiment, the execution module 30 includes a query module 31, a first function obtaining module 32, a second function obtaining module 33, and an instantiation module 34, where the query module 31 is configured to query the cache space; the first function obtaining module 32 is configured to, if a node function of a node class corresponding to a node execution task exists in the cache space, obtain the node function and a parameter of the node function; the second function obtaining module 33 is configured to, if there is no node function of a node class corresponding to a node execution task in the cache space, obtain a node function with a latest version from a node dictionary, and cache the node function in the cache space, where the node dictionary includes node functions of respective versions of nodes and parameters required by the node functions; the instantiation module 34 is used for instantiating the acquired node function and its parameters and executing the instantiation code.
In an optional embodiment, the workflow executing apparatus further includes a workflow generating module 40, where the workflow generating module 40 includes a data obtaining module 41 and a generating module 42, and the data obtaining module 41 is configured to obtain a node name of a node class to be executed, an execution direction between the node classes, and an execution condition; the generating module 42 is configured to generate a workflow starting class, where the workflow starting class includes a start node, a node name of a node class to be executed, an execution direction between the node classes, and an execution condition.
For the device embodiments, reference is made to the description of the method embodiments for relevant details, since they correspond essentially to the method embodiments.
Based on the same inventive concept, the application also provides a visual system, which comprises a camera, a light source, a PLC communication, a controller and a display, wherein the camera is equipment with camera shooting and transmission functions. The light source is a projection light beam and is equipment for detecting brightness of the materials during imaging. And the PLC communication is used for carrying out data transmission between the camera, the display and the like expansion equipment and the controller. The controller may be a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.), among other terminal devices. The controller includes one or more processors and memory, wherein the processors are configured to execute a workflow execution method or a workflow initiation class generation method of a vision system of a program-implemented method embodiment; the memory is for storing a computer program executable by the processor. The display is used for displaying data of the workflow operation process or editing the workflow starting generation process.
Based on the same inventive concept, the present application further provides a computer readable storage medium corresponding to the aforementioned embodiments of the workflow execution method of the vision system, wherein the computer readable storage medium has a computer program stored thereon, and when the program is executed by a processor, the computer program implements the steps of the workflow execution method or the workflow starting class generation method of the vision system described in any of the aforementioned embodiments.
This application may take the form of a computer program product embodied on one or more storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, to those skilled in the art, changes and modifications may be made without departing from the spirit of the present invention, and it is intended that the present invention encompass such changes and modifications.
Claims (10)
1. A method of workflow execution for a vision system, comprising the steps of:
acquiring a workflow starting class, wherein the workflow starting class comprises node information of nodes required by a workflow and an execution sequence of the node class;
creating a round container, creating a node execution task according to an execution sequence, and injecting the node execution task into the round container, wherein the node execution task is associated with a node corresponding to the node information;
and sequentially instantiating the node classes corresponding to the node execution tasks in the turn container, and executing the instantiation codes.
2. The method of claim 1, wherein the workflow initiation class includes a new round flag;
creating a round container, comprising the steps of: and creating a round container according to the new round mark.
3. The method of claim 1, wherein: the workflow starting class comprises an execution condition of a node class;
creating nodes according to the execution sequence to execute tasks and injecting the round containers, comprising the following steps:
if the execution condition exists between the adjacent nodes in the execution sequence, executing a condition function corresponding to the execution condition, and when the condition function returns to pass, creating a node execution task of the next node and injecting the node execution task into the round container;
and if no execution condition exists between the adjacent nodes in the execution sequence, directly creating the node of the next node to execute the task, and injecting the round container.
4. The method of claim 1, wherein sequentially instantiating node classes corresponding to node execution tasks in the turn container and executing instantiation code, comprises:
inquiring a cache space;
if a node function of a node class corresponding to the node execution task exists in the cache space, acquiring the node function and a parameter of the node function;
if the node function of the node class corresponding to the node execution task does not exist in the cache space, acquiring the node function with the latest version from a node dictionary, and caching the node function to the cache space, wherein the node dictionary comprises the node functions of all versions of the node and parameters required by the node functions;
instantiating the acquired node function and its parameters and executing the instantiation code.
5. A workflow execution apparatus of a vision system, comprising:
the workflow acquiring module is used for acquiring a workflow starting class, and the workflow starting class comprises node information of nodes required by the workflow and an execution sequence of the node class;
the round creating module is used for creating a round container, creating a node execution task according to an execution sequence and injecting the node execution task into the round container, wherein the node execution task is associated with a node corresponding to the node information;
and the execution module is used for sequentially instantiating the node classes corresponding to the node execution tasks in the round container and executing the instantiation codes.
6. The apparatus of claim 5, wherein: the workflow initiation class includes a new round flag;
the round creation module comprises a container creation module to create a round container according to the new round flag.
7. The apparatus of claim 5, wherein: the workflow starting class comprises an execution condition of a node class;
the round creation module includes a first task injection module and a second task injection module,
the first task injection module is used for executing a condition function corresponding to the execution condition if the execution condition exists between the nodes adjacent to the execution sequence, creating a node execution task of the next node when the condition function returns to pass, and injecting the node execution task into the round container;
the second task injection module is used for directly creating a node execution task of the next node and injecting the node execution task into the round container if no execution condition exists between the adjacent nodes in the execution sequence.
8. The apparatus of claim 5, wherein the means for performing comprises:
the query module is used for querying the cache space;
a first function obtaining module, configured to obtain a node function and a parameter of the node function if the node function of a node class corresponding to a node execution task exists in the cache space;
a second function obtaining module, configured to, if a node function of a node class corresponding to a node execution task does not exist in the cache space, obtain a node function with a latest version from a node dictionary, and cache the node function in the cache space, where the node dictionary includes the node functions of the respective versions of the node and parameters required by the node functions;
and the instantiation module is used for instantiating the acquired node function and the parameter thereof and executing the instantiation code.
9. An electronic device, comprising:
a processor;
a memory for storing a computer program for execution by the processor;
wherein the processor, when executing the computer program, implements the steps of the method of any one of claims 1-4.
10. A computer storage medium on which a computer program is stored, characterized in that the computer program, when executed, implements the steps of the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211362698.2A CN115658270B (en) | 2022-11-02 | 2022-11-02 | Workflow execution method, device and equipment of vision system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211362698.2A CN115658270B (en) | 2022-11-02 | 2022-11-02 | Workflow execution method, device and equipment of vision system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115658270A true CN115658270A (en) | 2023-01-31 |
CN115658270B CN115658270B (en) | 2023-08-25 |
Family
ID=84996224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211362698.2A Active CN115658270B (en) | 2022-11-02 | 2022-11-02 | Workflow execution method, device and equipment of vision system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115658270B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117634866A (en) * | 2024-01-25 | 2024-03-01 | 中国人民解放军国防科技大学 | Method, device, equipment and medium for processing data among nodes of workflow scheduling engine |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008265909A (en) * | 2007-04-18 | 2008-11-06 | Hitachi-Ge Nuclear Energy Ltd | Material storage position management system, and its method |
CN104809126A (en) * | 2014-01-26 | 2015-07-29 | 北京理工大学 | Business process engine system |
CN105243521A (en) * | 2015-11-20 | 2016-01-13 | 华润电力投资有限公司河南分公司 | Workflow management method and system |
CN106529917A (en) * | 2016-12-15 | 2017-03-22 | 平安科技(深圳)有限公司 | Workflow processing method and device |
CN110738389A (en) * | 2019-09-03 | 2020-01-31 | 深圳壹账通智能科技有限公司 | Workflow processing method and device, computer equipment and storage medium |
CN111382983A (en) * | 2018-12-27 | 2020-07-07 | 中国电信股份有限公司 | Workflow control method, workflow node and system |
CN114943751A (en) * | 2022-07-26 | 2022-08-26 | 北京科技大学 | Material tracking and positioning method and system based on direction vector in cloud PLC environment |
-
2022
- 2022-11-02 CN CN202211362698.2A patent/CN115658270B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008265909A (en) * | 2007-04-18 | 2008-11-06 | Hitachi-Ge Nuclear Energy Ltd | Material storage position management system, and its method |
CN104809126A (en) * | 2014-01-26 | 2015-07-29 | 北京理工大学 | Business process engine system |
CN105243521A (en) * | 2015-11-20 | 2016-01-13 | 华润电力投资有限公司河南分公司 | Workflow management method and system |
CN106529917A (en) * | 2016-12-15 | 2017-03-22 | 平安科技(深圳)有限公司 | Workflow processing method and device |
CN111382983A (en) * | 2018-12-27 | 2020-07-07 | 中国电信股份有限公司 | Workflow control method, workflow node and system |
CN110738389A (en) * | 2019-09-03 | 2020-01-31 | 深圳壹账通智能科技有限公司 | Workflow processing method and device, computer equipment and storage medium |
CN114943751A (en) * | 2022-07-26 | 2022-08-26 | 北京科技大学 | Material tracking and positioning method and system based on direction vector in cloud PLC environment |
Non-Patent Citations (1)
Title |
---|
程松涛: "基于Spring框架的分布式工作流引擎设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》, no. 02 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117634866A (en) * | 2024-01-25 | 2024-03-01 | 中国人民解放军国防科技大学 | Method, device, equipment and medium for processing data among nodes of workflow scheduling engine |
CN117634866B (en) * | 2024-01-25 | 2024-04-19 | 中国人民解放军国防科技大学 | Method, device, equipment and medium for processing data among nodes of workflow scheduling engine |
Also Published As
Publication number | Publication date |
---|---|
CN115658270B (en) | 2023-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105912628B (en) | The synchronous method and device of master-slave database | |
CN108345485B (en) | Identification method and device for interface view | |
CN108984652B (en) | Configurable data cleaning system and method | |
CN110554957B (en) | Method and device for testing user interface, electronic equipment and readable storage medium | |
US10019257B2 (en) | Parallel development of a software system | |
CN115658270B (en) | Workflow execution method, device and equipment of vision system and storage medium | |
US20160117376A1 (en) | Synchronizing object in local object storage node | |
CN111694612A (en) | Configuration checking method, device, computer system and storage medium | |
US20210064644A1 (en) | Yaml configuration modeling | |
CN112214221B (en) | Method and equipment for constructing Linux system | |
CN103679390A (en) | Background testing method and device of configuration system | |
CN112905441A (en) | Test case generation method, test method, device and equipment | |
CN112256318A (en) | Construction method and equipment for dependent product | |
CN109478148A (en) | Object based on workflow is destructed | |
CN111652658A (en) | Portrait fusion method, apparatus, electronic device and computer readable storage medium | |
CN112115063B (en) | Software localization test method, device, terminal and storage medium | |
CN112540808A (en) | Method for recording program behavior level calling relation and related equipment | |
US20170140009A1 (en) | Caching linked queries for optimized compliance management | |
CN112346961B (en) | Method and device for debugging client | |
CN107092671B (en) | Method and equipment for managing meta information | |
US9146977B2 (en) | Detecting data omissions for an intermittently-connected application | |
CN109062789B (en) | Continuous integration method, device and equipment and readable storage medium | |
CN111966460A (en) | Method, system, device and medium for optimizing display process information in container | |
CN117371413B (en) | Organization information viewing method and system | |
CN112612915B (en) | Picture labeling 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 | ||
CP03 | Change of name, title or address |
Address after: 510000 3, building 9, two South Road, Dashi street, Dashi street, Guangzhou, Guangdong, Panyu District, China. Patentee after: Guangzhou Yihong Intelligent Equipment Co.,Ltd. Address before: 511449 101-301, building 3, No. 9, Huijiang Shinan Second Road, Dashi street, Panyu District, Guangzhou, Guangdong Patentee before: GUANGZHOU EHOLLY INTELLIGENT EQUIPMENT Co.,Ltd. |
|
CP03 | Change of name, title or address |