The LRA business method is where we will define the business logic.
We will organize the invocation into other microservices, implementing the following steps:
- Create the offer for the desired football player, and set its status to "SEND".
- Retrieve the football player data.
- Set the status of the football player to "Reserved"; in this phase, the player is in negotiation, and therefore, cannot be sought after by other football managers.
- Persist the "Reserved" intermediate status, and mark the record with the LRA ID to be associated with this LRA context.
- Simulate the outcome of the negotiation with a check of the value of the offer made; if it is less than 80% of the value of the football player, the offer will be ...