Summary of the invention
To solve the above-mentioned problems.The present invention provides a kind of business flow processing method, apparatus, storage medium and equipment.
A kind of business flow processing method is provided according to the first aspect of the invention, this method comprises: in graphical userShowing interface is capable of the activity and decision of visual configuration, wherein activity includes micro services, and activity is realized predetermined by micro servicesBusiness function is determined for carrying out layout to activity;
The work determined to activity progress layout, with formation for finishing service process is utilized via graphic user interfaceIt flows, includes combination of at least one activity and decision in workflow;
Workflow is executed, with the processing of finishing service process.
Further, workflow further comprises parameter list, and parameter list is used to store the parameter for executing workflow, parameter packetThe decision parameter of movable movement parameter and decision is included, each activity and decision pass through parameter list shared parameter, wherein activity ginsengNumber includes movable input and output parameter.
Further, it is based on intended service function, activity obtains input parameter from parameter list, and activity provides input parameterTo micro services and micro services are run, and the data needed for obtaining intended service function in the operation result of micro services are as defeatedParameter out.
Further, determine include condition, branch, circulation and parallel.
Further, the workflow that one or more layouts are completed is still further comprised in workflow.
According to the second aspect of the invention, a kind of business flow processing device is provided, which includes: display module, is usedIn the activity and decision of being capable of visual configuration in graphic user interface displaying, wherein activity includes micro services, and activity passes through micro-Intended service function is realized in service, is determined for carrying out layout to activity;
Orchestration module, for carrying out layout to activity using decision via graphic user interface, to be formed for completing industryCombination that the workflow for process of being engaged in includes at least one activity in workflow and is determined;
Execution module, for executing workflow, with the processing of finishing service process.
Further, workflow further comprises parameter list, and parameter list is used to store the parameter for executing workflow, parameter packetThe decision parameter of movable movement parameter and decision is included, each activity and decision pass through parameter list shared parameter, wherein activity ginsengNumber includes movable input and output parameter.
Further, it is based on intended service function, activity obtains input parameter from parameter list, and activity provides input parameterTo micro services and micro services are run, and the data needed for obtaining intended service function in the operation result of micro services are as defeatedParameter out.
Further, determine include condition, branch, circulation and parallel.
Further, the workflow that one or more layouts are completed is still further comprised in workflow.
According to the third aspect of the invention we, a kind of non-volatile memory medium, the non-volatile memory medium are also providedWith the instruction being stored therein, when executed, so that processor executes business flow processing method, instruction packetInclude: graphic user interface shows the activity and decision for capableing of visual configuration, wherein activity includes micro services, and activity passes through micro-Intended service function is realized in service, is determined for carrying out layout to activity;
The work determined to activity progress layout, with formation for finishing service process is utilized via graphic user interfaceIt flows, includes combination of at least one activity and decision in workflow;
Workflow is executed, with the processing of finishing service process.
According to the fourth aspect of the invention, a kind of equipment, including memory are also provided, the executable finger of computer is stored withIt enables, processor, the processor is configured to executing described instruction to implement the process of business flow processing, the process packetInclude: graphic user interface shows the activity and decision for capableing of visual configuration, wherein activity includes micro services, and activity passes through micro-Intended service function is realized in service, is determined for carrying out layout to activity;
The work determined to activity progress layout, with formation for finishing service process is utilized via graphic user interfaceIt flows, includes combination of at least one activity and decision in workflow;
Workflow is executed, with the processing of finishing service process.
Compared with prior art, the main distinction and its effect are embodiment of the present invention:
The business flow processing method of the embodiment of the present invention by definition activity and is determined micro services layout into workStream, entire layout process user do not need to write and issue any code, it is only necessary to define workflow according to certain formatJourney, flow engine will define automatic execution whole flow process according to this;In addition, all micro services of entire workflow are called and are sharedOne parameter list has well solved parameter transmitting and shared problem between micro services;In addition, passing through visual layoutMode, so that the arranged mode of workflow is more in line with the conventional thought mode of people, and it is whole to cooperate visualization interface to showThe definition and implementation procedure of a workflow, it is more friendly to user;Further, it is determined by introducing, enables workflowDefinition and the process for executing complexity;And workflow can be used as a submodule and be added in another workflow, pass through thisKind mode can be with the multiplexing of simple realization micro services Orchestration.
Specific embodiment
To keep purpose and the technical solution of the embodiment of the present invention clearer, below in conjunction with the attached of the embodiment of the present inventionFigure, is clearly and completely described the technical solution of the embodiment of the present invention.Obviously, described embodiment is of the inventionA part of the embodiment, instead of all the embodiments.Based on described the embodiment of the present invention, those of ordinary skill in the artEvery other embodiment obtained, shall fall within the protection scope of the present invention under the premise of being not necessarily to creative work.
Embodiment there is provided a kind of embodiments of business flow processing method according to the present invention, it should be noted thatStep shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, andIt, in some cases, can be to be different from sequence execution institute herein and although logical order is shown in flow chartsThe step of showing or describing.
Method implementation provided by the application mode can be in mobile terminal, terminal or similar operationIt is executed in device (such as ECU (Electronic Control Unit, electronic control unit)).To run on computer terminalsFor, Fig. 1 is the hardware block diagram of the terminal of the business flow processing method of embodiment according to the present invention.Such as figureShown in 1, terminal 100 may include that (processor 101 can be with for one or more (one is only shown in figure) processors 101Including but not limited to central processor CPU, image processor GPU, digital signal processor DSP, Micro-processor MCV or programmableThe processing unit of logical device FPGA etc.), the input/output interface 102 for being interacted with user, storage for storing dataDevice 103 and transmitting device 104 for communication function.It will appreciated by the skilled person that structure shown in FIG. 1Only illustrate, the structure of above-mentioned electronic device is not caused to limit.For example, terminal 100 may also include than in Fig. 1Shown more perhaps less component or with the configuration different from shown in Fig. 1.
Input/output interface 102 can connect one or more displays, touch screen etc., pass for showing from terminal 100The data sent can also connect keyboard, stylus, Trackpad and/or mouse etc., for inputting such as, selection, creation, editorDeng user instruction.
Memory 103 can be used for storing the software program and module of application software, such as the industry in embodiment of the present inventionCorresponding program instruction/the module of business flow path processing method, the software journey that processor 101 is stored in memory 103 by operationSequence and module realize above-mentioned business flow processing method thereby executing various function application and data processing.StorageDevice 103 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device,Flash memory or other non-volatile solid state memories.In some instances, memory 103 can further comprise relative to processingThe remotely located memory of device 101, these remote memories can pass through network connection to terminal 100.Above-mentioned networkExample include but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 104 is used to that data to be received or sent via a network.Above-mentioned network specific example may includeThe internet that the communication providers of terminal 100 provide.Under above-mentioned running environment, the present invention provides such as Fig. 2 institutesThe business flow processing method shown.
Fig. 2 shows the flow charts of business flow processing method 200 according to an embodiment of the present invention.As shown in Fig. 2, the partyThe specific process flow of method is as described below.
In block 210, is shown in graphic user interface and be capable of the activity and decision of visual configuration.In the embodiment of the present inventionIn, activity is the encapsulation to micro services, and activity realizes intended service function by micro services.Specifically, activity will be used to holdThe various instructions of row micro services are encapsulated, and pre-define the movable movement parameter according to business function, each movableMovement parameter all has the data structure of unified definition, and movement parameter includes the movable input and output parameter, whereinEvery input parameter that parameter includes micro services itself definition is commonly entered, and movable output parameter can be according to intended serviceFunction, selected section data are as movable defeated from the data and/or implementing result data generated in micro services implementation procedureParameter out, that is to say, that movable output parameter can be the subset of the implementing result of micro services, can also be its intersection.
Movement parameter structure is as follows:
The encapsulation for micro services is described below, as an example, in activity when it is implemented, active process starts thingPart to be initialized to activity, activity later carry out input parameter prepare, activity according to input parameter key assignments (for example,Key1 corresponding parameter) is obtained from parameter list and is inserted in input parameter (for example, in filling value1), and then activity executes fortuneRow method, this method will be inputted parameter and be supplied to movable micro services and the micro services is called to execute by micro services interface appointsIt is engaged in, the callback events after the completion of the task of activity execution later execute production from micro services according to activity output parameter predeterminedCorresponding data are obtained in raw data as movable output parameter storage to parameter list, then activity end.By rightThe encapsulation of micro services, user do not need be concerned about how to execute micro services to complete intended service function, do not need to write andAny code is issued, user only needs to be arranged movable input parameter.
In an embodiment of the present invention, determine for carrying out layout to activity to determine including condition, is branch, circulation, parallelMerge (Split-Merge) etc. with separation, the type determined according to every kind, the decision parameter of every kind of decision may include input ginsengNumber, output parameter and/or formal parameter, for example, the input parameter of the decision may include movable output for conditional decisionParameter and conditional parameter determine to execute condition judgement according to input parameter;Circulation is determined, the formal parameter of the decision can be withThe number etc. of circulation is set.
In actual implementation technical solution of the present invention, each activity and decision are graphically shown visualOn graphic user interface, for example, workflow layout interface, while activity and decision can also carry out visualization in interface and matchIt sets, for example, selection, dragging, click, connection, input/output parameters setting etc..
Layout is carried out to activity using decision in block 220, via graphic user interface, is used for finishing service process to be formedWorkflow.When layout of the user in progress workflow, one or more activities can be chosen and determined, they are pulledInto layout interface, by these activities and determine to be arranged and connected according to operation flow.As illustrated in FIG. 3 is illustrativeIn workflow 30, including 3 activities (311,312,313) and 1 conditional decision 321, these activities and decision are according to industryThe needs of business process are connected into a complete workflow in an orderly manner.Later, the parameter list of workflow 30 is by in-time generatin, ginsengNumber table is used to store the parameter for executing workflow 30, movement parameter and decision including 3 activities 311-313 as described above321 decision parameter and the input and output parameter of workflow 30.In general, the input parameter of workflow can beThe movable input parameter of one execution, the output parameter of workflow can be the movable output parameter finally executed, for example,For workflow 30, input parameter can be the input parameter of activity 311, and output parameter is activity 312 or activity313 output parameter.It is, therefore, to be understood that the input and output parameter of workflow has number identical with movement parameterAccording to structure, such as:
In addition, the parameters in parameter list in each activity and can be determined by way of key assignments and pointer etc.It is transmitted and is shared between fixed, for example, for the parameter list of following workflow:
One input parameter of workflow, can be expressed as workflow.input.key1, the value of the input parameterWorkflow.input.key1.value1 can be directed toward activity1.input.key1 by pointer.Movable input parameterFor example it can fill in or be arranged by clicking movable image exhalation parameter setting page.
After the completion of workflow layout, the workflow can be saved and executed.The workflow being saved that layout is completedIt can be used as new activity to be added in other workflows, realize the shared and multiplexing of workflow.
In block 230, the workflow is executed, with the processing of finishing service process.Workflow is driven by workflow engineIt executes, and workflow engine support is monitored the real time data of work flow operation, allows users on visualization circleSee that the every of workflow executes data in face.As shown in figure 3, workflow 30 starts to execute, activity 311 is first carried out, from parameterThe input parameter of table acquisition activity 311, the micro services of calling activity 311 execute task and result exist after obtaining implementing resultThe corresponding position of parameter list saves.321 are determined according to result execution, judge that the next activity needed to be implemented is activity 312Or activity 313, after their one of execution, workflow 30 executes completion, and implementing result is stored in the corresponding position of parameter list.
In conclusion business flow processing method provided in this embodiment, by definition activity and determines to compile micro servicesWorkflow is lined up, entire layout process user does not need to write and issue any code, it is only necessary to define according to certain formatGood berth process, flow engine will define automatic execution whole flow process according to this;In addition, all micro services of entire workflowIt calls and shares a parameter list, well solved parameter transmitting and the shared problem between micro services;In addition, by visualThe arranged mode of change so that the arranged mode of workflow is more in line with the conventional thought mode of people, and cooperates visualization interfaceThe definition and implementation procedure of entire workflow are shown, it is more friendly to user;Further, it is determined by introducing, so that workComplicated process can be defined and execute by making stream;And workflow can be used as a submodule and be added to another workflowIn, it in this way can be with the multiplexing of simple realization micro services Orchestration.
Each method embodiment of the invention can be realized in a manner of software, magnetic part, firmware etc..Regardless of the present invention be withSoftware, magnetic part or firmware mode realize that instruction code may be stored in any kind of computer-accessible memoryIn (such as permanent perhaps revisable volatibility is perhaps non-volatile solid or non-solid, it is fixed orThe replaceable medium etc. of person).Equally, memory may, for example, be programmable logic array (Programmable ArrayLogic, referred to as " PAL "), random access memory (Random Access Memory, referred to as " RAM "), it may be programmed read-only depositReservoir (Programmable Read Only Memory, referred to as " PROM "), read-only memory (Read-Only Memory, letterClaim " ROM "), electrically erasable programmable read-only memory (Electrically Erasable Programmable ROM, referred to as" EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc, referred to as " DVD ") etc..
Fig. 4 is the schematic block diagram of business flow processing device 400 according to an embodiment of the present invention.The device is for executingAbove method process, comprising:
Display module 410, for showing the activity and decision of being capable of visual configuration in graphic user interface, wherein livingDynamic includes micro services, and activity realizes intended service function by micro services, is determined for carrying out layout to activity;
Orchestration module 420, for carrying out layout to activity using decision via graphic user interface, to be formed for completingCombination that the workflow of operation flow includes at least one activity in workflow and is determined;
Execution module 430, for executing workflow, with the processing of finishing service process.
Further, workflow further comprises parameter list, and parameter list is used to store the parameter for executing workflow, parameter packetThe decision parameter of movable movement parameter and decision is included, each activity and decision pass through parameter list shared parameter, wherein activity ginsengNumber includes movable input and output parameter.
Further, it is based on intended service function, activity obtains input parameter from parameter list, and activity provides input parameterTo micro services and micro services are run, and the data needed for obtaining intended service function in the operation result of micro services are as defeatedParameter out.
Further, determine include condition, branch, circulation and parallel.
Further, the workflow that one or more layouts are completed is still further comprised in workflow.
It is grasped accordingly it should be noted that business flow processing device 400 can be configured as executing in method 200Work, movement and process are omitted herein to these operations, movement and the description of process.
In conclusion business flow processing device provided in this embodiment, by definition activity and determines to compile micro servicesWorkflow is lined up, entire layout process user does not need to write and issue any code, it is only necessary to define according to certain formatGood berth process, flow engine will define automatic execution whole flow process according to this;In addition, all micro services of entire workflowIt calls and shares a parameter list, well solved parameter transmitting and the shared problem between micro services;In addition, by visualThe arranged mode of change so that the arranged mode of workflow is more in line with the conventional thought mode of people, and cooperates visualization interfaceThe definition and implementation procedure of entire workflow are shown, it is more friendly to user;Further, it is determined by introducing, so that workComplicated process can be defined and execute by making stream;And workflow can be used as a submodule and be added to another workflowIn, it in this way can be with the multiplexing of simple realization micro services Orchestration.
According to another embodiment of the present invention, a kind of non-volatile memory medium is also provided, the non-volatile memory mediumWith the instruction being stored therein, when the instruction is performed, so that processor executes business flow processing method, the instruction packetIt includes:
The activity and decision for capableing of visual configuration are shown in graphic user interface, wherein activity includes micro services, activityIntended service function is realized by micro services, is determined for carrying out layout to activity;
The work determined to activity progress layout, with formation for finishing service process is utilized via graphic user interfaceIt flows, includes combination of at least one activity and decision in workflow;
Workflow is executed, with the processing of finishing service process.
Further, workflow further comprises parameter list, and parameter list is used to store the parameter for executing workflow, parameter packetThe decision parameter of movable movement parameter and decision is included, each activity and decision pass through parameter list shared parameter, wherein activity ginsengNumber includes movable input and output parameter.
Further, it is based on intended service function, activity obtains input parameter from parameter list, and activity provides input parameterTo micro services and micro services are run, and the data needed for obtaining intended service function in the operation result of micro services are as defeatedParameter out.
Further, determine include condition, branch, circulation and parallel.
Further, the workflow that one or more layouts are completed is still further comprised in workflow.
Further, according to another embodiment of the present invention, a kind of equipment, including memory are also provided, calculating is stored withMachine executable instruction, processor, processor are configured as executing instruction to implement the process of business flow processing, the process packetIt includes:
The activity and decision for capableing of visual configuration are shown in graphic user interface, wherein activity includes micro services, activityIntended service function is realized by micro services, is determined for carrying out layout to activity;
The work determined to activity progress layout, with formation for finishing service process is utilized via graphic user interfaceIt flows, includes combination of at least one activity and decision in workflow;
Workflow is executed, with the processing of finishing service process.
Further, workflow further comprises parameter list, and parameter list is used to store the parameter for executing workflow, parameter packetThe decision parameter of movable movement parameter and decision is included, each activity and decision pass through parameter list shared parameter, wherein activity ginsengNumber includes movable input and output parameter.
Further, it is based on intended service function, activity obtains input parameter from parameter list, and activity provides input parameterTo micro services and micro services are run, and the data needed for obtaining intended service function in the operation result of micro services are as defeatedParameter out.
Further, determine include condition, branch, circulation and parallel.
Further, the workflow that one or more layouts are completed is still further comprised in workflow.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the inventionExample can be practiced without these specific details.In some instances, well known method, structure is not been shown in detailAnd technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects,Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimesIn example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protectShield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as rightAs claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows toolThus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itselfSeparate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodimentChange and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodimentMember or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement orSub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use anyCombination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosedAll process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint powerBenefit requires, abstract and attached drawing) disclosed in each feature can be by providing identical, equivalent, or similar purpose alternative features come generationIt replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodimentsIn included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the inventionWithin the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of anyCan in any combination mode come using.
Word "comprising" does not exclude the presence of element or step not listed in the claims.Word located in front of the element"a" or "an" does not exclude the presence of multiple such elements.The present invention can by means of include several different elements hardwareAnd it is realized by means of properly programmed terminal device.In the unit claim for listing several terminal devices, theseSeveral in terminal device, which can be, to be embodied by the same item of hardware.Word first, second, and thirdUsing not indicating any sequence.These words can be construed to title.