eventuate-tram/eventuate-tram-sagas

Orchestrator saga: postpone participant's response

cer opened this issue · 0 comments

cer commented

From email thread:

Is it possible to postpone a participant's response in the orchestrator saga?
One of my saga's participants is connecting to an external service. When the participant receives the command it send a file to the external service. The service's response to the file could take hours or days, so I cannot send command reply (withSuccess/withFailure) immediately. The response is important because it effects the outcome of the saga.
Can I separate the command consumption and response generation somehow? I would like my saga to stop and wait for the participant's response (which waits for external system's response) before going to the next step.