I have the following scenario:
- In service impl, i receive a request
- I perform some validation using the state
- If validation succeeds, i need to make an external call (not in lagom microservice)
( this will be made in impl afaik, as asynchronous web service calls from persistent entity are not allowed…)
- if that external call is successful, i need to change the state.
I am not able to figure out how the command handler will wait for the external call to complete successfully and emit the event to change state.
Am i missing something?