CN109918151A - Workflow implementing method, device, equipment and storage medium - Google Patents
Workflow implementing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109918151A CN109918151A CN201910194784.9A CN201910194784A CN109918151A CN 109918151 A CN109918151 A CN 109918151A CN 201910194784 A CN201910194784 A CN 201910194784A CN 109918151 A CN109918151 A CN 109918151A
- Authority
- CN
- China
- Prior art keywords
- workflow
- configuration file
- information
- service function
- face
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a kind of workflow implementing method, device, equipment and storage mediums, comprising: operational objective micro services program;It is detected using JAVA reflection mechanism when needing to load workflow configuration file, obtain the workflow configuration file, the workflow configuration file includes the operation information of at least one service function in target micro services, and the operation information includes: the realization logic and realization sequence of the service function;The workflow configuration file is loaded, so that the target micro services realize the service function.The above method can solve the technical issues of traffic service program speed of service slows down when algorithm layout updates.
Description
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of workflow implementing method, device, equipment and
Storage medium.
Background technique
Algorithm layout is to solve many and diverse changeable operation flow in reality, a kind of technology come into being.Existing industry
It is engaged in service routine, in order to meet the needs of users, needs that actual conditions is combined to change algorithm layout in time.Traditional common calculation
Method layout tends to rely on the components such as database, message queue and ES, meanwhile, the process of algorithm layout and the journey of business service
Sequence engine is coupled.At this point, the traffic service program of user side, which needs first to stop using, goes forward side by side when algorithm layout updates
Row updates, and reuses after update.Make the traffic service program speed of service slow down in this way, causes inconvenience to the user.
Summary of the invention
The present invention provides a kind of workflow implementing method, device, equipment and storage mediums, to solve annual reporting law layout update
When traffic service program speed of service the technical issues of slowing down.
In a first aspect, the embodiment of the invention provides a kind of workflow implementing methods, comprising:
Operational objective micro services program;
It is detected using JAVA reflection mechanism when needing to load workflow configuration file, obtains the workflow configuration text
Part, the workflow configuration file include the operation information of at least one service function in target micro services, the operation information
It include: the realization logic and realization sequence of the service function;
The workflow configuration file is loaded, so that the target micro services realize the service function.
Further, before the operational objective micro services program, further includes:
Receive configuration file edit instruction, the configuration file edit instruction include: increase service function operation information,
It deletes the operation information of service function and modifies at least one of the operation information of service function;
Workflow configuration file is obtained according to the configuration file edit instruction.
Further, the target micro services include: video flowing analysis service;
The service function includes: in face analysis service, motor vehicle analysis service and non-motor vehicle analysis service
It is at least one.
Further, the service function includes face analysis service,
The load workflow configuration file includes:
Identify the first face characteristic of facial image in video flowing;
Search corresponding with first face characteristic the first identity information in fisrt feature information bank, and by described the
First parsing result of one identity information as the facial image.
Further, the service function includes motor vehicle analysis service,
The load workflow configuration file includes:
Identify the vehicle characteristics of motor vehicle image in video flowing;
Search corresponding with the vehicle characteristics the second identity information in second feature information bank, and by second body
Second parsing result of part information as the motor vehicle image.
Further, the service function includes motor vehicle analysis service,
The load workflow configuration file includes:
It determines and whether there is face information in video flowing in motor vehicle image;
Face information if it exists then determines corresponding second face characteristic based on face information;
Search corresponding with second face characteristic tiers e'tat information in third feature information bank, and by described the
Third parsing result of three identity informations as the motor vehicle image.
Further, the face information if it exists then determines that corresponding second face characteristic includes: based on face information
Face information if it exists, it is determined that the face quality of the face information;
If face quality is higher than standard faces quality, corresponding second face characteristic is determined based on the face information.
Second aspect, the embodiment of the invention also provides a kind of workflow realization devices, comprising:
Program runs module, is used for operational objective micro services program;
Detection module is reflected, when needing to load workflow configuration file for detecting using JAVA reflection mechanism, is obtained
The workflow configuration file, the workflow configuration file include the operation letter of at least one service function in target micro services
Breath, the operation information include: the realization logic and realization sequence of the service function;
File load module, for loading the workflow configuration file, so that the target micro services realize the clothes
Business function.
The third aspect, the embodiment of the invention also provides a kind of workflows to realize equipment, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes workflow implementing method as described in relation to the first aspect.
Fourth aspect, a kind of storage medium comprising computer executable instructions, the computer executable instructions by
For executing workflow implementing method as described in relation to the first aspect when computer processor executes.
Above-mentioned workflow implementing method, device, equipment and storage medium by operational objective micro services program, and are being transported
During row, using JAVA reflection mechanism dynamically load workflow configuration file, the workflow configuration file include target in incognito
The operation information of at least one service function in business passes through load workflow configuration file and operational objective micro services program
Mode makes target micro services realize the technological means of service function, can realize mesh in the operational process of target micro services
Mark micro services program bag is separated with the specific algorithm of service function, when program bag and/or algorithm flow need to change, without weight
Other contents are opened, realizes and is thermally isolated, ensure that the speed of service of target micro services, improve the usage experience of user.And
And by way of workflow configuration file editing service function algorithm layout scheme, convenient for the management of service function.
Detailed description of the invention
Fig. 1 is a kind of flow chart of workflow implementing method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another workflow implementing method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another workflow implementing method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of workflow realization device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram that a kind of workflow provided in an embodiment of the present invention realizes equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used to explain the present invention, rather than limitation of the invention.It also should be noted that for the ease of retouching
It states, only the parts related to the present invention are shown in attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of workflow implementing method provided in an embodiment of the present invention.Work provided in this embodiment
Stream implementation method can be executed by workflow realization device, and the workflow realization device is real by way of software and/or hardware
It is existing, and be integrated in workflow and realize in equipment.Wherein, workflow realizes that equipment can be the intelligence such as computer, mobile phone, tablet computer
It can equipment.Specifically, workflow, which is realized in equipment, is equipped with the corresponding application software of all kinds of micro services, it is corresponding by running its
The corresponding function of micro services may be implemented in program.
Specifically, workflow implementing method provided in this embodiment specifically includes with reference to Fig. 1:
Step 110, operational objective micro services program.
Specifically, micro services refer to a service that is small-sized, having business function, each micro services have oneself processing and
Light weight communication mechanism can be deployed in single or multiple equipment.In the present embodiment, the micro services of operation are denoted as target in incognito
Business.Illustratively, target micro services are mounted on workflow and realize in equipment.Target micro services can be with independent application software
Form be mounted on workflow and realize in equipment, be also possible to some function that workflow realizes that some application software is embedded in equipment
Energy.Further, the specific service function of target micro services may be set according to actual conditions.For example, face identification functions, vehicle
At least one of board identification function, vehicle identification function etc..
Typically, target micro services program is to realize the program in machine code of target micro services, it is understood that in incognito for target
The program bag of business.In order to realize target micro services, operational objective micro services program is needed.Optionally, target is being received in incognito
It is engaged in after program operating instruction, operational objective micro services program.Wherein, the generating mode embodiment of operating instruction is not construed as limiting.Example
Such as, when detecting that user starts target micro services, operating instruction is generated.
Step 120 is detected using JAVA reflection mechanism when needing to load workflow configuration file, and workflow configuration is obtained
File, workflow configuration file include the operation information of at least one service function in target micro services.
Wherein, operation information includes: the realization logic and realization sequence of service function.
Specifically, JAVA reflection mechanism refers in program operation process, for any one class, class can be specified
Attribute and method;For any one object, any means and attribute of the object can be called, and the category of the object can be changed
Property.In embodiment, the object of target micro services routine call is set as workflow configuration file.Workflow configuration file includes mesh
The operation information of at least one service function in micro services is marked, i.e., the algorithm that workflow configuration file embodies each service function is compiled
Row's scheme.Specifically, service function is the concrete function realized in target micro services operational process, each service function corresponding one
Cover algorithm.Further, operation information refers to the specific strategy mechanism of corresponding with service function, sets in embodiment operation information extremely
It less include: the realization logic and realization sequence of service function.Wherein, realize that logic refers to the specific algorithm of service function, such as
Operation logic deletes logic and load logic etc., and realization sequence refers to that service function has in target micro services operational process
The realization sequence of body.
Optionally, workflow configuration file was in target micro services operation previous existence at separating with target micro services program.Work
Making each service function and its operation information in stream configuration file can dynamically increase according to the actual situation, deletes and modify.One
As for, when workflow configuration file amendment content, target micro services program it is not necessary to modify.When the operation of target micro services, lead to
It crosses JAVA reflection mechanism and determines the call method and its attribute of workflow configuration file, and need to load workflow in confirmation and match
When setting file, dynamic call workflow configuration file.
It should be noted that since workflow configuration file and target micro services program are isolated, then when target micro services
When upgrading, workflow realizes that equipment only needs to update corresponding workflow configuration file or target micro services program.
Step 130, load workflow configuration file, so that target micro services realize service function.
Specifically, load workflow configuration file, to realize the algorithm in workflow configuration file, and then according to service function
The operation information of energy realizes corresponding service function.Meanwhile target micro services program is still up, and realizes that target is micro- with this
Service.
It is above-mentioned, by operational objective micro services program, and in the process of running, utilize JAVA reflection mechanism dynamically load work
Make stream configuration file, which includes the operation information of at least one service function in target micro services, is passed through
The mode of load workflow configuration file and operational objective micro services program makes the skill of target micro services realization service function
Art means can realize the specific algorithm of target micro services program bag and service function in the operational process of target micro services
Separation, without restarting other contents, realizes and is thermally isolated, ensure that mesh when program bag and/or algorithm flow need to change
The speed of service for marking micro services, improves the usage experience of user.And the editing service by way of workflow configuration file
The algorithm layout scheme of function, convenient for the management of service function.
Fig. 2 is the flow chart of another workflow implementing method provided in an embodiment of the present invention.The workflow implementing method
It is to be embodied on the basis of above-mentioned workflow implementing method.Specifically, also being wrapped before operational objective micro services program
It includes: receiving configuration file edit instruction, the configuration file edit instruction includes: the operation information for increasing service function, deletes
The operation information of service function and at least one of the operation information for modifying service function;According to the configuration file editor
Instruction obtains workflow configuration file.
Specifically, workflow implementing method specifically includes with reference to Fig. 2:
Step 210 receives configuration file edit instruction.
Illustratively, configuration file edit instruction includes: the operation information for increasing service function, the fortune for deleting service function
Row information and at least one of the operation information for modifying service function.
Realize equipment as equipment belonging to the background work personnel of target micro services specifically, setting workflow.After at this point,
Platform staff can realize equipment editing stream configuration file by workflow.It is understood that in practical application, work
Make stream and realizes that equipment can also be equipment belonging to the user of target micro services.At this point, workflow realizes that equipment only need to be from rear
Platform server obtains updated workflow configuration file or target micro services program.
Further, configuration file edit instruction is the instruction for editing stream configuration file, by background work
Personnel issue.Optionally, configuration file edit instruction includes: the operation information for increasing service function, the fortune for deleting service function
Row information and at least one of the operation information for modifying service function.Wherein, increase service function refer to target in incognito
It is engaged on the basis of existing service function, increases new service function.At this point, including adding new clothes in configuration file edit instruction
The instruction of the operation information for function of being engaged in, to show the corresponding operation information of addition in workflow configuration document.Delete service function
It can refer to the existing service function of delete target micro services.At this point, including deleting to have service function in configuration file edit instruction
The instruction of the operation information of energy deletes corresponding operation information to show in workflow configuration document.Modifying service function is
Refer to existing service function in modification target micro services.At this point, including modifying existing service function in configuration file edit instruction
Operation information instruction, to show the corresponding operation information of modification in workflow configuration document.It is understood that above-mentioned
The editing stream configuration file referred to refers to the specific algorithm in editing stream configuration file.
Optionally, the operation information of service function all in workflow configuration file passes through the side of Restful style
Formula calls http protocol to realize.Wherein, Restful is a kind of software architecture, design style, provides design principle and constraint
Condition.Further, the operation information for being directed toward each service function in workflow configuration file by flowid is set.For example, opening
When dynamic A service function, A can be directed toward by way of GET/VIAS/Camel/Start/Flowid in workflow configuration file
The operation information of service function, when loading workflow configuration file, to realize starting A service function.For another example, new B is added
B clothes can be directed toward when service function, in workflow configuration file by way of POST/VIAS/Camel/Reload/Flowid
The operation information for function of being engaged in, when loading workflow configuration file, to realize addition B service function.For another example, existing C is deleted
C service function can be directed toward when service function, in workflow configuration file by way of DELETE/VIAS/Camel/Flowid
The operation information of energy, to realize and delete C service function when loading workflow configuration file.
Step 220 obtains workflow configuration file according to the configuration file edit instruction.
Specifically, modified workflow configuration file can be obtained after receiving configuration file edit instruction.
Step 230, operational objective micro services program.
Step 240 is detected using JAVA reflection mechanism when needing to load workflow configuration file, and the workflow is obtained
Configuration file.
The workflow configuration file includes the operation information of at least one service function in target micro services, the operation
Information includes: the realization logic and realization sequence of the service function.
Step 250, the load workflow configuration file, so that the target micro services realize the service function.
It is above-mentioned, the algorithm layout of each service function in target micro services is realized by workflow configuration file, may be implemented
Dynamically increase, delete and modify the operation information of each service function, and in operational objective micro services, it is anti-using JAVA
Mechanism load workflow configuration file is penetrated, can realize the program bag and work of target micro services when realizing target micro services
The isolation of stream configuration file, and then realize heat deployment.
Fig. 3 is the flow chart of another workflow implementing method provided in an embodiment of the present invention.The workflow implementing method
It is to be embodied on the basis of above-mentioned workflow implementing method.
Specifically, target micro services include: video flowing analysis service;Service function includes: face analysis service, motor vehicle
At least one of analysis service and non-motor vehicle analysis service.
Wherein, video flowing analysis service refers to that workflow realizes equipment acquires itself or other video capture devices
The video flowing of (such as camera) acquisition is parsed, with the service of the result needed.The particular content embodiment of video flowing
Be not construed as limiting, in embodiment set video flowing in include pedestrian's picture, motor vehicle picture and non-motor vehicle picture at least
It is a kind of.Further, set video flowing analysis service service function include: face analysis service, motor vehicle analysis service with
And at least one of non-motor vehicle analysis service.Wherein, face analysis service, which refers to, carries out image to the pedestrian in video flowing
Processing, the service identified.Motor vehicle analysis service refers to the service that image procossing, identification are carried out to the picture comprising motor vehicle.
Non-motor vehicle picture refers to the service that image procossing, identification are carried out to the picture comprising non-motor vehicle.
Typically, with reference to Fig. 3, which is specifically included:
Step 310, the program for running video flowing analysis service.
Step 320 is detected using JAVA reflection mechanism when needing to load workflow configuration file, and the workflow is obtained
Configuration file.
Specifically, workflow configuration file includes the operation information of at least one service function in target micro services, it is described
Operation information includes: the realization logic and realization sequence of the service function.
Step 330, the load workflow configuration file, so that the video flowing analysis service realizes the service function
Energy.
Optionally, it when service function includes face analysis service, loads the workflow configuration file and specifically includes:
First face characteristic of facial image in step 331, identification video flowing.
Specifically, target micro services obtain video flowing, and carry out target structural when operational objective micro services program.Its
In, the purpose of target structural is to confirm the target complete occurred in video flowing.Target micro services can be according to structuring knot
Fruit obtains the image comprising setting target.At this point, setting target as pedestrian.It should be noted that the specific side of target structural
Method embodiment is not construed as limiting.
Further, after target structural, workflow configuration file is loaded using JAVA reflection mechanism, and be based on workflow
The operation information of face analysis service realizes the function in configuration file.When realizing the function, firstly, face in identification video flowing
First face characteristic of image.Specifically, after target structural, the available image comprising pedestrian.Further, to comprising
The image of pedestrian carries out recognition of face, to determine the facial image for wherein including face, later, to the face in facial image into
Row feature extraction, to obtain the first face characteristic.Wherein, the first face characteristic may include the face of face, face contour etc.
Content.Recognition of face and the embodiment of the method for extracting the use of the first face characteristic are not construed as limiting, for example, using recognition of face skill
Art.
Step 332 searches the first identity information corresponding with first face characteristic in fisrt feature information bank, and
Using first identity information as the first parsing result of the facial image.
Specifically, fisrt feature information bank is preset database, storage inside has pedestrian's gathered in advance
Face characteristic and associated pedestrian's identity information.Wherein, face characteristic can be obtained using face recognition technology, identity information
It can voluntarily be inputted by pedestrian or be obtained by other means.The particular content of identity information may be set according to actual conditions,
For example, name, home address, telephone number, vehicle that identity information includes: pedestrian possess situation etc..
Further, each by being stored in the first face characteristic and fisrt feature information bank after obtaining the first face characteristic
Face characteristic is matched, wherein specific matching means embodiment is not construed as limiting.Further, it obtains special with the first face
Most matched face characteristic is levied as matching result.Later, the corresponding pedestrian's identity information of face characteristic is obtained, and is denoted as first
Identity information.At this point, the first identity information is first parsing result of the target micro services to facial image.Optionally, if
It is not matched to corresponding face characteristic in one characteristic information library, then the first identity information has not been obtained in confirmation, at this point, the first parsing knot
Fruit is the identity information without facial image, and is prompted accordingly, so that workflow realizes that the user of equipment is confirmed whether
Subsequent operation is taken, accesses network big data such as to obtain the first identity information, alternatively, intercepting pedestrian carries out identity information record
Enter, for another example, no entry.
Optionally, it when service function includes motor vehicle analysis service, loads the workflow configuration file and specifically includes:
The vehicle characteristics of motor vehicle image in step 333, identification video flowing.
Specifically, equally carrying out target structural, concrete mode and step 331 to video flowing before identification vehicle characteristics
Described in target structural mode it is similar, therefore not to repeat here.It is available motor-driven comprising motor vehicle after target structural
Vehicle image.Later, workflow configuration file is loaded using JAVA reflection mechanism, and based on motor vehicle solution in workflow configuration file
The operation information of analysis service realizes the function.When realizing the function, the motor vehicle image for being primarily based on structuring determines vehicle
Feature.Wherein, vehicle characteristics may include license board information, body color, vehicle brand information and vehicle model information etc..Vehicle
Feature can be obtained by modes such as Vehicle License Plate Recognition System, machine learning.
Step 334 searches corresponding with the vehicle characteristics the second identity information in second feature information bank, and by institute
State second parsing result of second identity information as the motor vehicle image.
Wherein, the treatment process of the step is similar to step 332, and therefore not to repeat here.At this point, the second identity information can be with
It include: owner information, the license board information of record, body color, parking position, vehicle brand information and vehicle model information
Deng.
The identity information of motor vehicle can be not only determined by the second parsing result, meanwhile, it can identify that set license plate etc. is non-
Judicial act.
It should be noted that step 333 and step 334 are equally applicable to non-motor vehicle analysis service.That is target structural
Afterwards, the non-motor vehicle feature in non-motor vehicle image is obtained.At this point, the content of non-motor vehicle feature can be set according to the actual situation
It is fixed, such as license board information, vehicle brand information, body color.Later, believe in record non-motor vehicle feature and non-motor vehicle identity
Parsing result of the corresponding result as non-motor vehicle image is searched in the information bank of breath.
Optionally, it is contemplated that in real life, driver can be seated in motor vehicle, at this point, needing to obtain for safety
The identity information of driver.Therefore, service function is set in embodiment includes motor vehicle analysis service, the load work
Stream configuration file includes:
Step 335 determines that motor vehicle image is interior with the presence or absence of face information in video flowing.If it exists, it thens follow the steps
336, otherwise, execute step 338.
Specifically, determine whether can detecte face information inside motor vehicle image after target structural, i.e., whether
Facial image is detected in image-region where motor vehicle.At this point it is possible to using face recognition technology.If detecting, face is believed
Breath, it is determined that interior of motor vehicles someone, otherwise, it determines interior of motor vehicles nobody.
Step 336 determines corresponding second face characteristic based on face information.Execute step 337.
Specifically, determining corresponding second face characteristic when interior of motor vehicles someone.Wherein, the second face characteristic is really
It is identical as the method for determination of the first face characteristic to determine mode.Optionally, it is contemplated that interior of motor vehicles may take more people, at this point,
The second face characteristic and seat information that everyone can be obtained one by one, the second face that can also only obtain driver's seat are special
Sign.Wherein it is determined that can use the mode of machine learning, or determine driver's seat based on steering wheel when driver's seat.
Optionally, since face information is in the inside of motor vehicle, can there is a situation where that face information is fuzzy.Therefore, in base
It when face information determines corresponding second face characteristic, specifically includes: determining the face quality of the face information;If face
Quality is higher than standard faces quality, then determines corresponding second face characteristic based on the face information.
Specifically, face quality can embody the readability of face information in motor vehicle image.Wherein, face quality
Method of determination can be set according to the actual situation.For example, it is determined whether the face that face information includes can be identified
Or setting organ, if can be with, it is determined that face quality is higher than standard faces quality, otherwise, it determines face quality is not higher than mark
Quasi- face quality.Above-mentioned standard face quality need to be set in conjunction with actual conditions.Further, when face quality is higher than standard faces
When quality, the second face characteristic is determined.Otherwise, it abandons obtaining the second face characteristic.
Step 337 searches tiers e'tat information corresponding with second face characteristic in third feature information bank, and
Using the tiers e'tat information as the third parsing result of the motor vehicle image.Execute step 338.
Wherein, tiers e'tat information is identical as the first identity information, and the acquisition modes of tiers e'tat information and the first body
The acquisition modes of part information are identical, and therefore not to repeat here.
The vehicle characteristics of motor vehicle image in step 338, identification video flowing.
Step 339 searches corresponding with the vehicle characteristics the second identity information in second feature information bank, and by institute
State second parsing result of second identity information as the motor vehicle image.
At this point, third parsing result and the second parsing result are the parsing result of motor vehicle image, i.e., parsed to second
As a result summarized with third parsing result, to obtain parsing result.
It is understood that step 335 to step 339 is equally applicable to non-motor vehicle analysis service, at this time, it is only necessary to will be upper
State the treatment process become for the treatment process of motor vehicle for non-motor vehicle.
Meanwhile when existing simultaneously multiple service functions, after obtaining corresponding parsing result, need to parsing result into
Row summarizes, to obtain final result.It should be noted that illustrating to load work above by the realization description to each service function
Make the workflow of target micro services when stream configuration file, in above process, synchronizes the program for needing operational objective micro services
Packet.
It is above-mentioned, in video flowing analysis service, corresponding face analysis service, motor-driven is realized by workflow configuration file
Vehicle analysis service and non-motor vehicle analysis service, it is ensured that in the upgrading of corresponding service function algorithm, delete or add certain
When a service function, workflow configuration file is only changed, the program bag for video flowing analysis service that no replacement is required guarantees video
Flow the speed of service of analysis service.
Fig. 4 is a kind of structural schematic diagram of workflow realization device provided in an embodiment of the present invention.With reference to Fig. 4, the work
Stream realization device includes: program operation module 401, reflection detection module 402 and file load module 403.
Wherein, program runs module 401, is used for operational objective micro services program;Detection module 402 is reflected, for utilizing
JAVA reflection mechanism detects when needing to load workflow configuration file, obtains the workflow configuration file, the workflow
Configuration file includes the operation information of at least one service function in target micro services, and the operation information includes: the service
The realization logic of function and realization sequence;File load module 403, for loading the workflow configuration file, so that institute
It states target micro services and realizes the service function.
It is above-mentioned, by operational objective micro services program, and in the process of running, utilize JAVA reflection mechanism dynamically load work
Make stream configuration file, which includes the operation information of at least one service function in target micro services, is passed through
The mode of load workflow configuration file and operational objective micro services program makes the skill of target micro services realization service function
Art means can realize the specific algorithm of target micro services program bag and service function in the operational process of target micro services
Separation, without restarting other contents, realizes and is thermally isolated, ensure that mesh when program bag and/or algorithm flow need to change
The speed of service for marking micro services, improves the usage experience of user.And the editing service by way of workflow configuration file
The algorithm layout scheme of function, convenient for the management of service function.
Further, further includes: command reception module, for receiving configuration file before operational objective micro services program
Edit instruction, the configuration file edit instruction include: the operation information for increasing service function, the operation letter for deleting service function
At least one of the operation information of breath and modification service function;File configuration module, for being compiled according to the configuration file
It collects instruction and obtains workflow configuration file.
Further, the target micro services include: video flowing analysis service;The service function includes: face parsing
At least one of service, motor vehicle analysis service and non-motor vehicle analysis service.
Further, the service function includes face analysis service, and the file load module 403 includes: the first spy
Levy recognition unit, for identification in video flowing facial image the first face characteristic;First searching unit, in fisrt feature
The first identity information corresponding with first face characteristic is searched in information bank, and using first identity information as described in
First parsing result of facial image.
Further, the service function includes motor vehicle analysis service, and the file load module 403 includes: second
Feature identification unit, for identification in video flowing motor vehicle image vehicle characteristics;Second searching unit, in second feature
The second identity information corresponding with the vehicle characteristics is searched in information bank, and using second identity information as described motor-driven
Second parsing result of vehicle image.
Further, the service function includes motor vehicle analysis service, and the file load module 403 includes: face
Information confirmation unit whether there is face information for determining in motor vehicle image in video flowing;Third feature recognition unit is used
In face information if it exists, then corresponding second face characteristic is determined based on face information;Third searching unit, in third
Search corresponding with second face characteristic tiers e'tat information in characteristic information library, and using the tiers e'tat information as
The third parsing result of the motor vehicle image.
Further, the third feature recognition unit includes: that quality determines subelement, is used for face information if it exists,
Then determine the face quality of the face information;Feature obtains subelement, if being higher than standard faces quality for face quality,
Corresponding second face characteristic is determined based on the face information.
Workflow realization device provided in an embodiment of the present invention can be used for executing above-mentioned any workflow implementing method, have
Corresponding function and beneficial effect.
Fig. 5 is the structural schematic diagram that a kind of workflow provided in an embodiment of the present invention realizes equipment.As shown in figure 5, the work
Make stream and realizes that equipment includes processor 50, memory 51, input unit 52 and output device 53;Workflow is realized to be handled in equipment
The quantity of device 50 can be one or more, in Fig. 5 by taking a processor 50 as an example;Workflow realizes the processor in equipment
50, memory 51, input unit 52 and output device 53 can be connected by bus or other modes, to pass through bus in Fig. 5
For connection.
Memory 51 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of the workflow implementing method in the embodiment of the present invention is (for example, workflow is real
Program operation module 401, reflection detection module 402 and file load module 403 in existing device).Processor 50 passes through operation
Software program, instruction and the module being stored in memory 51 realize the various function application of equipment thereby executing workflow
And data processing, that is, realize above-mentioned workflow implementing method.
Memory 51 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, realizes that using for equipment is created according to workflow
Data etc..In addition, memory 51 may include high-speed random access memory, it can also include nonvolatile memory, example
Such as at least one disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, it stores
Device 51 can further comprise the memory remotely located relative to processor 50, these remote memories can pass through network connection
Equipment is realized to workflow.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile communication
Net and combinations thereof.
Input unit 52 can be used for receiving the number or character information of input, and generate the use that equipment is realized with workflow
Family setting and the related key signals input of function control.Output device 53 may include that display screen etc. shows equipment.
Above-mentioned workflow realizes that equipment includes workflow realization device, can be used for executing any workflow implementing method,
Have corresponding function and beneficial effect.
The embodiment of the present invention also provides a kind of storage medium comprising computer executable instructions, and the computer is executable
Instruction is used to execute a kind of workflow implementing method when being executed by computer processor, this method comprises:
Operational objective micro services program;
It is detected using JAVA reflection mechanism when needing to load workflow configuration file, obtains the workflow configuration text
Part, the workflow configuration file include the operation information of at least one service function in target micro services, the operation information
It include: the realization logic and realization sequence of the service function;
The workflow configuration file is loaded, so that the target micro services realize the service function.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, it is real to can also be performed workflow provided by any embodiment of the invention
Relevant operation in existing method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of above-mentioned workflow realization device, included each unit and module are
It is divided according to the functional logic, but is not limited to the above division, as long as corresponding functions can be realized;Separately
Outside, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of workflow implementing method characterized by comprising
Operational objective micro services program;
It is detected using JAVA reflection mechanism when needing to load workflow configuration file, obtains the workflow configuration file, institute
The operation information that workflow configuration file includes at least one service function in target micro services is stated, the operation information includes:
The realization logic of the service function and realization sequence;
The workflow configuration file is loaded, so that the target micro services realize the service function.
2. workflow implementing method according to claim 1, which is characterized in that the operational objective micro services program it
Before, further includes:
Configuration file edit instruction is received, the configuration file edit instruction includes: the operation information for increasing service function, deletes
The operation information of service function and at least one of the operation information for modifying service function;
Workflow configuration file is obtained according to the configuration file edit instruction.
3. workflow implementing method according to claim 1, which is characterized in that the target micro services include: video flowing
Analysis service;
The service function include: in face analysis service, motor vehicle analysis service and non-motor vehicle analysis service at least
It is a kind of.
4. workflow implementing method according to claim 3, which is characterized in that the service function includes face parsing clothes
Business,
The load workflow configuration file includes:
Identify the first face characteristic of facial image in video flowing;
Search corresponding with first face characteristic the first identity information in fisrt feature information bank, and by first body
First parsing result of part information as the facial image.
5. workflow implementing method according to claim 3, which is characterized in that the service function includes motor vehicle parsing
Service,
The load workflow configuration file includes:
Identify the vehicle characteristics of motor vehicle image in video flowing;
The second identity information corresponding with the vehicle characteristics is searched in second feature information bank, and second identity is believed
Cease the second parsing result as the motor vehicle image.
6. workflow implementing method according to claim 3, which is characterized in that the service function includes motor vehicle parsing
Service,
The load workflow configuration file includes:
It determines and whether there is face information in video flowing in motor vehicle image;
Face information if it exists then determines corresponding second face characteristic based on face information;
Search corresponding with second face characteristic tiers e'tat information in third feature information bank, and by the third body
Third parsing result of part information as the motor vehicle image.
7. workflow implementing method according to claim 6, which is characterized in that the face information if it exists is then based on
Face information determines that corresponding second face characteristic includes:
Face information if it exists, it is determined that the face quality of the face information;
If face quality is higher than standard faces quality, corresponding second face characteristic is determined based on the face information.
8. a kind of workflow realization device characterized by comprising
Program runs module, is used for operational objective micro services program;
Detection module is reflected, when needing to load workflow configuration file for detecting using JAVA reflection mechanism, described in acquisition
Workflow configuration file, the workflow configuration file include the operation information of at least one service function in target micro services,
The operation information includes: the realization logic and realization sequence of the service function;
File load module, for loading the workflow configuration file, so that the target micro services realize the service function
Energy.
9. a kind of workflow realizes equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now workflow implementing method as described in any in claim 1-7.
10. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by
For executing the workflow implementing method as described in any in claim 1-7 when computer processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910194784.9A CN109918151A (en) | 2019-03-14 | 2019-03-14 | Workflow implementing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910194784.9A CN109918151A (en) | 2019-03-14 | 2019-03-14 | Workflow implementing method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109918151A true CN109918151A (en) | 2019-06-21 |
Family
ID=66964872
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910194784.9A Pending CN109918151A (en) | 2019-03-14 | 2019-03-14 | Workflow implementing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109918151A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078315A (en) * | 2019-12-12 | 2020-04-28 | 拉扎斯网络科技(上海)有限公司 | Microservice arranging and executing method and system, architecture, equipment and storage medium |
CN112783497A (en) * | 2019-11-04 | 2021-05-11 | ***通信集团陕西有限公司 | New service generation method and device and computing equipment |
WO2021253819A1 (en) * | 2020-06-18 | 2021-12-23 | 南京龙猫商业智能科技股份有限公司 | Paas-based microservice choreography engine management method |
Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1913442A (en) * | 2005-08-09 | 2007-02-14 | 华为技术有限公司 | Method and system for providing service to user |
CN1921480A (en) * | 2005-08-22 | 2007-02-28 | 华为技术有限公司 | Method and system for realizing application business |
CN101639781A (en) * | 2009-08-25 | 2010-02-03 | 厦门敏讯信息技术股份有限公司 | Program installation method and programmable electronic equipment |
CN102360370A (en) * | 2011-09-29 | 2012-02-22 | 迈普通信技术股份有限公司 | Centralized data management system and method |
CN102368216A (en) * | 2011-10-20 | 2012-03-07 | 北京金和软件股份有限公司 | Process implementation method based on automatic project building |
CN103283209A (en) * | 2011-04-18 | 2013-09-04 | 北京新媒传信科技有限公司 | Application service platform system and implementation method thereof |
CN103645919A (en) * | 2013-12-18 | 2014-03-19 | 用友软件股份有限公司 | Method for extending functions of management information system through plugins |
CN104216749A (en) * | 2014-09-10 | 2014-12-17 | 广州金山网络科技有限公司 | Updating method and updating device for applications |
CN106254423A (en) * | 2016-07-20 | 2016-12-21 | 普元信息技术股份有限公司 | The method realizing Restful service release quickly based on micro services framework |
WO2017067230A1 (en) * | 2015-10-21 | 2017-04-27 | 中兴通讯股份有限公司 | Software function expansion method and apparatus based on micro service architecture |
CN107168729A (en) * | 2017-04-11 | 2017-09-15 | 深圳市艾数信息技术有限公司 | The call method and system of a kind of service |
CN107452104A (en) * | 2017-07-26 | 2017-12-08 | 北京声迅电子股份有限公司 | A kind of control method for vehicle and system of the vehicle bayonet socket based on intelligent monitoring |
CN107544886A (en) * | 2016-06-27 | 2018-01-05 | 上海中兴软件有限责任公司 | A kind of block process dispatching method and device |
CN107786779A (en) * | 2016-08-26 | 2018-03-09 | 精工爱普生株式会社 | Configuration file generating means, configuration file generation method |
US20180121221A1 (en) * | 2016-10-28 | 2018-05-03 | ShieldX Networks, Inc. | Systems and methods for deploying microservices in a networked microservices system |
CN108009011A (en) * | 2017-12-04 | 2018-05-08 | 科大国创软件股份有限公司 | A kind of workflow platform multiplex roles affairs chain processing method based on java principles of reflection |
CN108021906A (en) * | 2017-12-23 | 2018-05-11 | 宁波亿拍客网络科技有限公司 | A kind of binary channels and single-channel safety video image information analysis process system |
CN108156022A (en) * | 2017-12-04 | 2018-06-12 | 北京奇艺世纪科技有限公司 | A kind of service calling method, device and electronic equipment |
CN108280091A (en) * | 2017-01-06 | 2018-07-13 | 阿里巴巴集团控股有限公司 | A kind of task requests execution method and apparatus |
CN108536429A (en) * | 2018-03-28 | 2018-09-14 | 海尔优家智能科技(北京)有限公司 | A kind of method, apparatus, storage medium and the electronic equipment of exploitation software |
CN108833137A (en) * | 2018-05-18 | 2018-11-16 | 南京南瑞信息通信科技有限公司 | A kind of flexibility micro services Monitoring framework framework |
CN108845810A (en) * | 2018-05-23 | 2018-11-20 | 北京五八信息技术有限公司 | A kind of method, apparatus, electronic equipment and storage medium that application dynamic updates |
-
2019
- 2019-03-14 CN CN201910194784.9A patent/CN109918151A/en active Pending
Patent Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1913442A (en) * | 2005-08-09 | 2007-02-14 | 华为技术有限公司 | Method and system for providing service to user |
CN1921480A (en) * | 2005-08-22 | 2007-02-28 | 华为技术有限公司 | Method and system for realizing application business |
CN101639781A (en) * | 2009-08-25 | 2010-02-03 | 厦门敏讯信息技术股份有限公司 | Program installation method and programmable electronic equipment |
CN103283209A (en) * | 2011-04-18 | 2013-09-04 | 北京新媒传信科技有限公司 | Application service platform system and implementation method thereof |
CN102360370A (en) * | 2011-09-29 | 2012-02-22 | 迈普通信技术股份有限公司 | Centralized data management system and method |
CN102368216A (en) * | 2011-10-20 | 2012-03-07 | 北京金和软件股份有限公司 | Process implementation method based on automatic project building |
CN103645919A (en) * | 2013-12-18 | 2014-03-19 | 用友软件股份有限公司 | Method for extending functions of management information system through plugins |
CN104216749A (en) * | 2014-09-10 | 2014-12-17 | 广州金山网络科技有限公司 | Updating method and updating device for applications |
WO2017067230A1 (en) * | 2015-10-21 | 2017-04-27 | 中兴通讯股份有限公司 | Software function expansion method and apparatus based on micro service architecture |
CN107544886A (en) * | 2016-06-27 | 2018-01-05 | 上海中兴软件有限责任公司 | A kind of block process dispatching method and device |
CN106254423A (en) * | 2016-07-20 | 2016-12-21 | 普元信息技术股份有限公司 | The method realizing Restful service release quickly based on micro services framework |
CN107786779A (en) * | 2016-08-26 | 2018-03-09 | 精工爱普生株式会社 | Configuration file generating means, configuration file generation method |
US20180121221A1 (en) * | 2016-10-28 | 2018-05-03 | ShieldX Networks, Inc. | Systems and methods for deploying microservices in a networked microservices system |
CN108280091A (en) * | 2017-01-06 | 2018-07-13 | 阿里巴巴集团控股有限公司 | A kind of task requests execution method and apparatus |
CN107168729A (en) * | 2017-04-11 | 2017-09-15 | 深圳市艾数信息技术有限公司 | The call method and system of a kind of service |
CN107452104A (en) * | 2017-07-26 | 2017-12-08 | 北京声迅电子股份有限公司 | A kind of control method for vehicle and system of the vehicle bayonet socket based on intelligent monitoring |
CN108009011A (en) * | 2017-12-04 | 2018-05-08 | 科大国创软件股份有限公司 | A kind of workflow platform multiplex roles affairs chain processing method based on java principles of reflection |
CN108156022A (en) * | 2017-12-04 | 2018-06-12 | 北京奇艺世纪科技有限公司 | A kind of service calling method, device and electronic equipment |
CN108021906A (en) * | 2017-12-23 | 2018-05-11 | 宁波亿拍客网络科技有限公司 | A kind of binary channels and single-channel safety video image information analysis process system |
CN108536429A (en) * | 2018-03-28 | 2018-09-14 | 海尔优家智能科技(北京)有限公司 | A kind of method, apparatus, storage medium and the electronic equipment of exploitation software |
CN108833137A (en) * | 2018-05-18 | 2018-11-16 | 南京南瑞信息通信科技有限公司 | A kind of flexibility micro services Monitoring framework framework |
CN108845810A (en) * | 2018-05-23 | 2018-11-20 | 北京五八信息技术有限公司 | A kind of method, apparatus, electronic equipment and storage medium that application dynamic updates |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112783497A (en) * | 2019-11-04 | 2021-05-11 | ***通信集团陕西有限公司 | New service generation method and device and computing equipment |
CN112783497B (en) * | 2019-11-04 | 2024-05-28 | ***通信集团陕西有限公司 | New service generation method and device and computing equipment |
CN111078315A (en) * | 2019-12-12 | 2020-04-28 | 拉扎斯网络科技(上海)有限公司 | Microservice arranging and executing method and system, architecture, equipment and storage medium |
CN111078315B (en) * | 2019-12-12 | 2020-12-08 | 拉扎斯网络科技(上海)有限公司 | Microservice arranging and executing method and system, architecture, equipment and storage medium |
WO2021253819A1 (en) * | 2020-06-18 | 2021-12-23 | 南京龙猫商业智能科技股份有限公司 | Paas-based microservice choreography engine management method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10755713B2 (en) | Generic virtual personal assistant platform | |
CN105630876B (en) | Information acquisition method and device across application | |
CN109918151A (en) | Workflow implementing method, device, equipment and storage medium | |
Wilensky | Understanding goal-based stories. | |
CN110099246A (en) | Monitoring and scheduling method, apparatus, computer equipment and storage medium | |
US20170092273A1 (en) | Intelligent contextually aware digital assistants | |
US20180150444A1 (en) | Constructing a Narrative Based on a Collection of Images | |
CN1866214B (en) | Installation method and apparatus | |
CN113805747A (en) | Information reminding method, electronic equipment and computer readable storage medium | |
US20090158238A1 (en) | Method and apparatus for providing api service and making api mash-up, and computer readable recording medium thereof | |
CN110149806A (en) | The digital assistants of stack data structures are handled | |
CN109240670A (en) | Modular software development methodology, system, equipment and medium | |
CN109144493A (en) | Generation method, electronic device and the readable storage medium storing program for executing of business rule | |
CN109074802A (en) | The modulation of packetizing audio signal | |
CN101202792B (en) | Method and apparatus for processing messages based on relationship between sender and recipient | |
JP2020106910A (en) | Animation generation system and animation generation method | |
CN107195301A (en) | The method and device of intelligent robot semantic processes | |
CN106650408A (en) | Method and system used for judging existence of root authority in Android system | |
CN106372231A (en) | Search method and device | |
US20210043209A1 (en) | Method for recognizing voice and electronic device supporting the same | |
CN102193789A (en) | Method and equipment for realizing configurable skip link | |
CN116226850A (en) | Method, device, equipment, medium and program product for detecting virus of application program | |
CN114077714B (en) | Universal content auditing and configuring method and system | |
WO2019207421A1 (en) | Navigation and cognitive dialog assistance | |
CN115033318B (en) | Character recognition method for image, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190621 |
|
RJ01 | Rejection of invention patent application after publication |