post
@RequestMapping(method=POST)
public org.springframework.http.ResponseEntity<BusIncomingMessage> post(@RequestBody
BusIncomingMessage message)
this method manages the incoming notifications. When an OrganizationalGoal is created, message contains the instance of it.
According to Confluence Sequence Diagram about MeasurementGoal Creation, the new notification triggers the creation of a empty MeasurementGoal in state of "Created"
and sets organizationalGoalId field to correct pointerBus.
Due to bus implementation, the response must be not empty, so we returns the incoming message.
- Parameters:
message
- incoming notification
- Returns:
- the same message received