Wait on external input

This is my scenario: I have a task using the REST Connector to send data to an external service, which then processes the data and return some output. My issue is that the external service might take some times (up to 5 minutes) to produce such output.

What I would like to know is: is there a way to freeze the process in Bonita or to define a task that go on with the execution only when the external service returns the output? If so, what would be the best approach to define such a task? Can I somehow define a task waiting on some sort of external input?