Summary of the invention
In view of this, the purpose of the embodiment of the invention is to provide a kind of applied software development method and system based on Service Component, thereby realizes the business demand of application software system.
For realizing above-mentioned purpose, the embodiment of the invention provides following technical scheme:
A kind of Service Component comprises Service Component interface, business datum storage unit and service logic unit, wherein:
Said Service Component interface, being used to business datum storage unit and service logic unit provides deal with data and the Service Component data processed result externally is provided; Said deal with data is a business datum;
The business datum storage unit, the business datum that is used for storage service component property data and obtains from professional component interface;
The service logic unit is used for utilizing the function executing logical operation of the data based current business assembly that obtains from professional component interface and/or business datum storage unit, and the result is flowed to the Service Component interface.
Said Service Component also comprises:
At least two Service Component are formed the Service Component storehouse, are used for said Service Component is stored and managed.
A kind of applied software development method based on Service Component comprises:
Confirm operation and the treatment step that said function is required according to application software function to be achieved, form corresponding service flow process topology;
Treatment step according in the said operation flow topology is confirmed the Service Component that the current business flow process is required, confirms the annexation between each Service Component according to the logical relation between each treatment step;
Obtain the required Service Component of current business flow process, and assemble said Service Component to form and the corresponding application software of said function to be achieved according to said annexation.
The said required Service Component of current business flow process that obtains is specially:
From professional Component Gallery, obtain the required Service Component of current business flow process.
When not having the required Service Component of said operation flow in the said Service Component storehouse, newly-built required Service Component.
Said method also comprises:
Newly-built said Service Component is added in the said Service Component storehouse.
Assembling said Service Component according to said annexation comprises with the corresponding application software of said function to be achieved to form:
Each Service Component is carried out the configuration and the definition of technology essential factor according to said annexation;
After the configuration and definition completion of said technology essential factor, each Service Component is connected according to said annexation;
After said connection is accomplished, generating code.
Said generating code is specially:
According to preset configuration information, at the assigned address generating code.
A kind of applied software development system based on Service Component comprises:
The Service Component storage unit is used for the storage service assembly;
Operation flow is confirmed the unit, is used for confirming operation and the treatment step that said function is required according to the function of the application software of being obtained to be achieved, forms corresponding service flow process topology;
Service Component is confirmed the unit, is used for confirming Service Component that the current business flow process is required and confirming the annexation between each Service Component according to the logical relation between each treatment step according to the treatment step of said operation flow topology;
The Service Component acquiring unit is used for obtaining the required Service Component of current business flow process from said Service Component storage unit;
The Service Component module units is used for assembling said Service Component to form and the corresponding application software of said function to be achieved according to said annexation.
Said system also comprises:
The Service Component tectonic element is used for constructing the new business assembly that said Service Component storage unit does not have;
Said Service Component storage unit also is used for the new business assembly of said Service Component tectonic element structure is preserved.
Said Service Component module units comprises:
Set subelement, be used for each Service Component being carried out the configuration and the definition of technology essential factor according to said annexation;
The assembling subelement is used for after the configuration and definition completion of said technology essential factor, according to said annexation each Service Component being connected;
Code generates subelement, is used for after said connection is accomplished generating code.
Said code generates subelement and also comprises the address configuration module, is used to write down the address that said code generates;
Said code generates subelement, is used for after said connection is accomplished, code being generated to said code calculated address appointed positions.
Thus it is clear that, in embodiments of the present invention, confirm said function corresponding service flow process topology according to application software function to be achieved; Confirm Service Component that the current business flow process is required and the annexation between each Service Component according to said operation flow topology; After obtaining the required Service Component of current business flow process; Assemble said Service Component to form and the corresponding application software of said function to be achieved according to said annexation, the applied software development method that the embodiment of the invention provided is carried out based on Service Component.Service Component has professional implication, can directly express service concept, has satisfied the business demand of application software.
Embodiment
The embodiment of the invention discloses a kind of Service Component and reach applied software development method and system based on Service Component; For making the object of the invention, technical scheme and advantage clearer; Following with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is done further explain.
Referring to Fig. 1, the Service Component that the embodiment of the invention provided comprises Service Component interface 101, business datum storage unit 102 and service logic unit 103 compositions, wherein:
Service Component interface 101, being used to business datum storage unit 102 provides deal with data and the Service Component data processed result externally is provided with service logic unit 103.
The Service Component interface is the window that Service Component and other entities or user interface are carried out information interaction.
Said other entities comprise other Service Component or other information interaction channels.With the financial field is example, and said other information interaction channels can be ATM or Web bank.
Particularly, said Service Component interface comprises Service Component input interface and Service Component output interface, and said Service Component input interface is used to the business datum storage unit and the service logic unit provides deal with data; The Service Component output interface then is used to provide the Service Component data processed result.
Business datum storage unit 102, the business datum that is used for storage service component property data and obtains from professional component interface.
Service Component is expressed its business tine through particular traffic data.In the Service Component design process; Every business tine part that relates to all need be used the data in the business datum set, preferably; In the embodiment of the invention; Use the ground literal of Chinese as business datum, for example, customer information class business datum common in bank application software has customer ID, customer name, sex, native place, birthday etc.; The business datum of common client's account info class has number of the account, branch number of the account, remaining sum, interest product, the overdraw amount of money etc.
Service logic unit 103 is used for utilizing the expectation function actuating logic computing of the data based current business assembly that obtains from professional component interface 101 and/or business datum storage unit 102, and the result is flowed to the Service Component interface.
Said data comprise Service Component attribute data and the business datum of obtaining from professional component interface.
Service logic is used for expressing the processing logic of Service Component.Service logic can use the mode of computing machine pseudo-language to express, and also can use the natural language formal representation.No matter be the mode of pseudo-language or the form of natural language, strict grammar request is all arranged.
Said Service Component can also comprise business function description unit 104, is used to explain effect, function, constraint condition and the method for application etc. of Service Component.
Service Component is to forming through the abstract of the pairing business function of application software.Service Component possesses business factor through its service logic unit to the processing of data, has professional implication, can directly when making up application software, use according to the business characteristic of different business assembly.Service Component is realizing being greater than technology component on the granularity, and itself has inherent professional connotation, and technology component itself does not have professional connotation, and its connotation needs the Application developer dynamically to specify according to the different service linguistic context.
Below with the example that is made as of " newly-built shareholder/investor " Service Component, the manufacturing process of Service Component is described.
At first to confirm the Service Component function.In this example, the business function of " newly-built shareholder/investor " assembly adds this information for the shareholder that provides according to the outside or investor's information in goal systems.
Confirm interface, business datum and the processing logic of Service Component then according to the function of Service Component.In this example, the Service Component interface comprises input interface and output interface, and wherein input interface is used to receive shareholder to be added/investor's information, and output interface is used for display process result and information; Business datum in this example comprises client's related information, corporate client's essential information; Processing logic has indicated the current business assembly how according to Service Component interface and business data processing current business, thereby realizes the function of current business assembly.In this example, said processing logic comprises:
S1: according to customer type under this client of customer information judgement of Service Component interface input;
S2: according to type of credential that comprises in the customer information and passport NO., and said customer type, whether inquiry exists this customer information from professional data storage cell;
S3: if this customer information not then is added into this customer information in the goal systems;
S4: through Service Component interface feedback processing object information.
In another embodiment of the present invention, at least two Service Component are formed the Service Component storehouse.
After a Service Component is established, can be saved in the Service Component storehouse, through said Service Component storehouse the Service Component of having set up is concentrated and preserved and management.
Referring to Fig. 2, the embodiment of the invention also provides a kind of applied software development method based on Service Component, comprising:
Step 201: confirm said function corresponding service flow process topology according to application software function to be achieved.
Through functional analysis to be achieved being confirmed realize that operation and concrete treatment step that this function is required form said operation flow topology.
An operation flow topology comprises user interface layer and Business treatment two parts.Confirm input key element, demonstration key element and the interface operation key element that include at the interface of current business flow process topology institute corresponding function at user interface layer.Confirm to realize the concrete treatment step of current business flow process topology institute corresponding function in Business treatment.
Step 202: confirm Service Component that the current business flow process is required and the annexation between each Service Component according to said operation flow topology.
After an operation flow topology was confirmed, the implementation of a function had just been confirmed.What Fig. 3 showed is an operation flow topology that realizes newly-increased corporate client's credit relation function.Confirm by the operation flow topology; Realize that newly-increased corporate client need carry out six steps, comprise and file the corporate client judgements, the corporate client of this mechanism are judged, corporate client's important information is checked, increase customer profile newly, set up customer relationship and display process result.Wherein, the content according to the result that difference showed of result has difference.
After having confirmed to realize the operation flow topology of newly-increased corporate client's function, just need confirm the annexation between the topologically corresponding Service Component of this operation flow and each Service Component according to said operation flow topology.
Can know to the description of Service Component that through the front essence of Service Component is the functional module with business factor and professional implication, confirm that according to the operation flow topology annexation between Service Component and each Service Component comprises:
At first confirm the pairing Service Component of each step according to the step in the operation flow topology;
Confirm the annexation between each Service Component according to the logical relation between each step then.
Still be example with operation flow topology shown in Figure 3.At first confirm by the operation flow topology; Realize that newly-increased corporate client need carry out six steps; Comprise and file the corporate client judgement, the corporate client of this mechanism are judged, corporate client's important information is checked, newly-increased customer profile, set up customer relationship and display process result, check and set up two steps of customer relationship with corporate client's important information below the annexation of how setting up between the different business assembly is described.
Suppose that it is A1 that step corporate client important information is checked the corresponding service assembly; The input interface of A1 should receive company information to be checked so; The business datum of storing in the business datum storage unit of treating cross-check information and A1 that the service logic unit of A1 will be received is then checked; If finding company information to be checked is the corporate client; The result that so just will check exports to next step corresponding service assembly through the Service Component output interface of A1, promptly sets up customer relationship corresponding service assembly A2, and A2 is through the result of the Service Component input interface reception A1 of self.Accordingly, if the service logic unit of A1 finds that through checking company information to be checked is not the corporate client, so can be directly Service Component output interface through A1 the result is shown.
Required Service Component in the operation flow can be chosen from the Service Component storehouse of setting up in advance.
If the Service Component storehouse does not have ready-made Service Component, can directly set up the occasional service assembly, and the occasional service assembly carried out business function describe according to business need.Through the subsequent design development, accomplish after the assembly exploitation, change interim assembly into formal assembly, join in the Component Gallery, use during for the subsequent applications software design.
Step 203: according to said annexation business of assembling assembly to form and the corresponding application software of said function to be achieved.
As previously mentioned, confirmed Service Component that function to be achieved is required and the annexation between the assembly this moment, according to said annexation each assembly assembled promptly can generate and the corresponding application software of function to be achieved.
The business of assembling assembly be meant the pairing Service Component of operation flow topology confirm to finish and the Service Component storehouse in after the Service Component that do not have also completes; Annexation according between each definite Service Component of operation flow topology is carried out the configuration and the definition of technology essential factor to each Service Component; As: attribute modification, input and output value defined etc., do technical preparation for accomplishing the application program generation.
After accomplishing the Service Component assembling, carry out " generating code " operation, can generate programming language and destination OS corresponding programs code automatically from professional component code according to the rule and the key element of system code generation.
In an embodiment of the present invention, the code of generation can directly be generated under the physical pathway of specified server according to address configuration information.
Preferably, in another embodiment of the present invention, the code of generation can the direct compilation operation.
So far, generated and the corresponding application software of function to be achieved.
The applied software development method that the embodiment of the invention provided is based on that Service Component carries out.Service Component has professional implication, can directly express service concept.For some industries, the realization of many functions can be used common Service Component, so improved the reusability of Service Component.
When needs along with practical application; When the function of certain application software changes; Only need the operation flow topology of new function and the operation flow topology of former function be compared, the Service Component after adjustment changes gets final product, and can satisfy the diversified business demand of user.
To be example with a function to be achieved be illustrated based on the development approach of the application software of Service Component the embodiment of the invention provides the embodiment of the invention; But; When function to be achieved when being a plurality of; Can all can develop corresponding application software with reference to the method that the embodiment of the invention provided to each function through a plurality of functions are decomposed, the present invention repeats no more to this.
Embodiment is corresponding with method, and the embodiment of the invention also provides a kind of applied software development system based on Service Component, and referring to Fig. 4, this system comprises:
Service Component storage unit 401 is used for the storage service assembly;
In practical application, said Service Component storage unit can be realized by the Service Component storehouse.
Operation flow is confirmed unit 402, is used for confirming the operation flow topology according to the function of the application software of being obtained to be achieved;
Service Component is confirmed unit 403, is used for confirming Service Component that the current business flow process is required and the annexation between each Service Component according to said operation flow topology;
Service Component acquiring unit 404 is used for obtaining the required Service Component of current business flow process from said Service Component storage unit;
Service Component module units 405 is used for assembling said Service Component to form and the corresponding application software of said function to be achieved according to said annexation.
Particularly, comprise referring to the said Service Component module units 405 of Fig. 5:
Set subelement 501, be used for each Service Component being carried out the configuration and the definition of technology essential factor according to said annexation;
Assembling subelement 502 is used for after the configuration and definition completion of said technology essential factor, according to said annexation each Service Component being connected;
Code generates subelement 503, is used for after said connection is accomplished generating code.
Preferably, in another embodiment of the present invention, said code generates subelement can also comprise an address configuration module, is used to write down the address that said code generates;
Said code generates subelement 503, is used for after said connection is accomplished, code being generated to said code calculated address appointed positions.
When the Service Component that relates to when certain function is not included in the Service Component storage unit, just need to make up new Service Component, so in another embodiment of the present invention, system shown in Figure 4 also comprises:
Service Component tectonic element 406 is used for according to Service Component functional configuration Service Component to be achieved;
Said Service Component storage unit 401 also is used for the Service Component of said Service Component tectonic element structure is preserved.
The applied software development system that the embodiment of the invention provided is based on that Service Component carries out.Service Component has professional implication, can directly express service concept.For some industries, the realization of many functions can be used common Service Component, so improved the reusability of Service Component.
When needs along with practical application; When the function of certain application software changes; Only need the operation flow topology of new function and the operation flow topology of former function be compared, the Service Component after adjustment changes gets final product, and can satisfy the diversified business demand of user.
The system that the embodiment of the invention provided is the foundational development application software with the Service Component with professional implication, has overcome the shortcoming that construction cycle is long, software adaptability is poor, maintenance cost is high that technology component causes because do not possess skills implication in the applied software development process.
To be example with a function to be achieved be illustrated based on the development system of the application software of Service Component the embodiment of the invention provides the embodiment of the invention; But; When function to be achieved when being a plurality of; Can all can develop corresponding application software with reference to the system that the embodiment of the invention provided to each function through a plurality of functions are decomposed, the present invention repeats no more to this.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the present invention, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.