Step 1 : Design Services
First of all, you have to design the main service flow and then will design the sub service flows. So, the main goal of our service is to send the confirmation email to employees and also generate the pdf file that retrieve data from the database.
Main Service
Get information from database and show them, generate a pdf file, and sent the email
Sub Service
- Retrieve data from database and show the information
- Generate pdf file from the selected data
- Send the email to all receivers
After you know that you have to create three sub services, design each sub service step by step. So, you can fully concentrate on designing how your service functions including. See more details at Step 1: Design Services
- Service description
- Interface structure
- Service flow and external systems integration
Design Sub Service
We will use the services already created:
- Create Service to Select Data from Database
- Create Service to Send Email
- Create Service to Generate PDF File
Design Main Service
Service Description
Service name : testconfirmationemail
Description : retrieve data from database
Project : testservices
Interface Structure
Field Name | Data Type | |
Input | number | Integer |
Field Name | Promote to Front-end | |
Output | list | Yes |
Map to Field | Column Name (DB) | |
Sub Field | Process | process |
number | number | |
type | type | |
teaname | teaname | |
location | location |
Service flow and external systems integration
Database : MySQL Database
Database : Name test_apig
Database : Table tea
Design Service Flow
This part will design the function of the service into the flow diagram.
Main service flow
** In this example, we do not need to do Step 2 because the function need not to create adapters.