Table of content



The Task entity within the microservice architecture

Entity-Relationship-Model of <EmployeeService>

Entity Name: Task

Data Schema: AirportLogistics

Master Service: EmployeeService


Dataflow of entity of Task

Microservices

3.1 AirplaneService3.2 AirportService3.3 CargoService3.4 CountryService3.5 EmployeeService3.6 LuggageService
3.7 PassengerBookingService

Entity Properties

Property NameDatatypeData EntityReference Entity
DescriptionSTRINGTask
PrimaryKeyLONGTask
ServerReplicationVersionLONGTask
TaskNameSTRINGTask

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/taskGETfindAllTask()EmployeeServiceTask
/task/{id}DELETEdeleteTaskById(id)EmployeeServiceTask
/taskPOSTinsertTask(task)EmployeeServiceTask
/task/{id}GETfindTaskById(id)EmployeeServiceTask
/employeetask/task/{id}GETfindAllEmployeeTaskOfTask(id)EmployeeServiceTask EmployeeTask
/task/{id}PUTupdateTaskById(task)EmployeeServiceTask

Distributed transaction of <Task>

Pseudo code snippet

final Task task = (Task) this.callMicroservice(ServiceNames.EMPLOYEE_SERVICE + "/task/" + id, Task.class);
if (task != null) {
}
return task;


Table of content