January 2019
Beginner to intermediate
352 pages
8h
English
In the complete phase, the LRA coordinator invokes the method annotated with @Complete and performs the business operations needed to make the business operation consistent, in terms of data status.
In our scenario, the method will set the status of the offer to "ACCEPTED" and the status of the football player to "Purchased".
The following code is required to do so:
/** * LRA complete method: it sets the final status of the football player offer * and football player based on a successful response of the send offer * method. * * @param lraId The Long Running Action identifier needed to retrieve * the record on which perform the operation. */ @PUT @Path("/complete") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) ...Read now
Unlock full access