StandAlone distribution

If I have understood the standalone distributions correctly, they are called from the application server instantiating a process (I suppose with a REST call), but the service task how do the callback to the application server?