ArticleDirectory
- 2.3.1 reason
- 2.3.2 what happened
- 2.3.3 where
- 2.3.4 when
- 2.3.5 who
- 2.3.6 what method
Http://www.cnblogs.com/cydsoft/archive/2010/10/10/1847208.html
Directory:
1 Overview... 3
1.1 preface... 3
1.2 customer status quo... 3
1.3 responsible for work... 4
2. How to make a good interface... 4
2.1 What is an interface... 4
2.2 interface form... 4
2.3 interface 5w1h .. 5
2.3.1 why... 5
2.3.2 what happened... 5
2.3.3 where... 5
2.3.4 when... 6
2.3.5 who... 6
2.3.6 what method... 6
3 others... 7
3.1 experiences... 7
1 Overview 1.1 Preface
In software implementation of large companies, software interfaces account for a large proportion in implementation. Large enterprises have a relatively high degree of informatization, and many software systems are used. When multiple systems need to be coordinated, interfaces are the best way to communicate data and integrate information.
As interfaces become more complex and more application systems are involved, it is a learning to do a good job of interfaces. There are many things involved in the interface process, such as project management, business background, technical background, and coordination capabilities. Only by summing up the theory through continuous practice, and then conducting better practices with theoretical guidance, and repeatedly exploring interface implementation methods that are more in line with the enterprise software environment.
1.2 customer status quo
At present, the customer uses the Hyperion System for budgeting. In order to better control the budget and simplify the complicated reimbursement process, the customer chose our network reimbursement control system. Through data integration between the control system and the current system, we can combine the data available in the existing system with our system to maintain data consistency among multiple systems and make effective use of existing data, reduce manual data input.
The system in use and related to our system is as follows:
LSystem
Hyperion
Use for Enterprise budgeting, including most of the company's budget data. These budgets need to be imported into the control system and converted into the budget in our system.
LSystem
Hrplus
It is mainly used to distribute employees' salaries, including company staff data. The hrplus interface needs to properly process the personnel information as needed to enter the cost control system. The approval process of the control system should be determined based on the information of the direct supervisor of the hrplus system. The process steps should be set based on the employee level. The basic data in hrplus is the basis for the operation of the control system.
LSystem
Cams
It is used for project payment management. The system has a separate budget for construction in progress that does not overlap with those of the company, and contains the documents required for project payment. InterfaceProgramSome of the documents and corresponding budget data in the cams system must be imported into the cost control system. After the process is approved, return the payment information generated by the control system to the cams system.
1.3 Responsibility
The author is mainly responsible for cams system interfaces and hrplus interfaces, including the following:
L understand customer requirements and write relevant documents to confirm requirements.
Demand research:
L design the interface logic solution and technical solution, and determine the interface implementation method and implementation effect through communication with customers, Development Departments, and third-party suppliers.
Solution design:
L after the solution is determined, the Development Department needs to arrange the implementation time and version Update time of each function in the interface, and track the progress every day.
Progress tracking:
L it is mainly divided into basic data collection and input and configuration of corresponding relationship tables. For example, if the cams interface involves six corresponding relationship tables, you need to associate the data provided by the customer with the data in the control system through the corresponding tables.
Data Configuration:
L testing is to check whether the interface meets the customer's requirements and whether the interface is stable must be verified in the testing phase.
Interface Test:
L after the test is completed, update the system configuration file on the client server where the interface is deployed.
Deployment:
The above work is also a basic task involved in interface implementation. The implementers should make reasonable arrangements to ensure that all work is carried out in an orderly manner.
2. How to do interface 2.1? What is Interface
First, you must know what the interface is.Interfaces during implementationIt refers to a solution to achieve data interaction and data sharing between two or more systems through technical means.
2.2 Interface form
Three interfaces:
LFirst:The other party provides data to our system.
The use of the hrplus interface is the first case. We use the database users provided by the other party to directly read the data in the table.
LSecond:We provide data to the other party's system.
LThird:The combination of the first two types, including data acquisition and return.
The Cams interface is the third case. In the interface, we first need to obtain the document data in the cams system. After the payment process is completed in the control system, it is a two-way interface to write the financial approval data generated in the process back to the cams system.
2.3 interface 5w1h
The system interface process is the process of solving the problem. The 5w1h analysis method is used for interface analysis, and the problem is raised in six aspects: reason, what, where, when, WHO, and how, it helps the interface requirement personnel to learn more about the work that needs to be done in the interface process.
This analysis method can be used as a template in the interface survey and design process to solve the problem of 5 W1H, which is an interface guarantee.
2.3.1 reason
"Do the right thing, and then do the right thingWhen the customer proposes to do the interface, the first thing that comes to mind is whether the interface is necessary instead of how it is implemented.
Do not accept the customer's interface requirements immediately. Of course, you cannot reject them immediately. You must communicate with the customer in detail and make a decision based on the opinions of the Development Department.The customer should be guided to avoid unreasonable interface requirements.. For example, the requirement is basically irrelevant to the control system, or is not included in the original bidding documents or the contract.Solve the problem through communication and persuasion.
In addition, some interfaces can be replaced by existing functions of the system, rather than customized development. The implementers can recommend some easy implementation methods, such as the existing data import and export methods of the system, if the import and export operations do not meet your requirements, you can determine whether to import or export the data.
2.3.2 what happened
The "what is" is mainly used to obtain the number of objects, that is, the customer needs to obtain the data of the system to our system. At this time, we need to pay attention to the usage of the data in the control system, how to integrate with existing functions of the system.
Taking the cams interface as an example, the cams system does not include the approval process control function. Therefore, the customer wants to transfer the document data in cams to the Control System for approval. This requirement involves combining with the control document function module in the control system. For analysis, the format requirements and data requirements of the control system for documents should be taken into account. In addition, the customer needs the existing basic data, such as the format, field information, and approval process of the document, as the reference data for interface solution design.
2.3.3 where
"Where" refers not to the specific location, but to the server on which data is obtained and stored after data is retrieved.
For example, when the hrplus interface is used to retrieve the number,Store the data queried in the system to the temporary table of our system based on the database account provided by the hrplus supplier.And then perform the processing.
The Cams interface isData transmission through WebServiceWhere is the WebService address.
2.3.4 when
"When" refers to the time when data is transmitted, which can be divided into real-time and scheduled:
LReal-time interface:When a user executes an interface program to trigger a specific event for data transmission, such as the cams interface, when the user clicks the document return button, the interface program is triggered, upload the cams documents with payment approval information to the cams system.
LScheduled interface:It is usually used for regular data synchronization. For example, the hprlus interface synchronizes the latest hrplus data to the control system at every night. Determine the scheduled time according to the user's actual situation, usually in the early morning.
2.3.5 who
"Who" refers to which party gets the number, which can be divided into us and others. The following describes how to provide the data.
There are two ways to provide data: actively fetch data and push data from the other party:
Active fetch count: L Active Data Acquisition refers to the data source provided by the other party. I can obtain data by reading data from the data source, which can be divided into direct data acquisition and indirect data retrieval.
Direct fetch: In the hrplus interface, the hrplus system provides a database account with specific query permissions in its database. WeData is obtained using the data query statement provided by the other party, that is, the data is directly retrieved.
Indirect fetch: Since not all systems are willing to open their databases for access by other systems, some vendors only provideWebServiceWe can access Its WebService to obtain data through a data transmission intermediary, which is an indirect data acquisition.
Push by recipient: L The other party pushes us to provide a WebService method that can accept data for others' calls. The other party supplier can call this WebService to push data to our system. In the cams interface, we provide a WebService Method for receiving data. When the cams side generates relevant documents in the system, it calls this webserviec to pass the form data to us.
2.3.6 what method
The method mainly refers to the processing after data is obtained, which should be analyzed in detail based on the existing system functions.
On the basis of fully exploring customer needs, the implementers should communicate and feedback with the Development Department in a timely manner. As developers have a deeper understanding of system design knowledge, it is easier to discover problems during the design process.
Taking the cams interface as an example, the budget of the control system documents is determined by the dimension members included in the documents. When the documents in the cams are converted to the control system documents, the dimensions in the cams system must be, to the control system. Because the documents in the control system involve six dimensions, the cams system documents only contain two dimensions. Therefore, you need to set the corresponding relationship and default value, change the two-dimension documents in cams to the documents in the control system.
In addition, some fields in the cams document are not in the control system. When designing the form, use custom fields and in the background database, set the correspondence between the names of the columns passed by cams and those in the control system, and match the field information in cams with those in the control system.
In another example of hrplus, the customer needs to provide the field information to be transferred during interface research, such as the employee name, Login Name, rank, company, etc. After obtaining these fields, you need to analyze the role of these fields in the system. For example, the login name in the hrplus system should be converted into the login name in the control system. The hierarchical relationship between the company and the Department in the hrplus system is the layer-level relationship between the project and the Department in the control system. A corresponding table is also required to match the two. In addition, when the personnel in hrplus changes, the corresponding information of the personnel in the control system, such as the rank information, should also be changed. At this time, we should consider whether it has an impact on the system process, this requires timely communication with the Development Department.
This process is the most complex part of the interface. It is necessary to coordinate all personnel to communicate with each other. Therefore, this step should also be the most appropriate in terms of schedule. The details involved in the communication process should be confirmed by email with the customer and recorded in the relevant documents.
3 other 3.1 experiences
The interface is a very meticulous task, not only to consider the acquisition of data in the interface, but also to consider the combination with the system. As a part of the project implementation, the overall implementation progress and quality of the project, which are directly related to the implementation of interfaces, can only be summarized by multiple practices, in order to have a more in-depth understanding of interface implementation.
Directory