cmp.resp
check
(check res task state-key)Checks a response from outer space. Lookes at the status, parses the body and dispathes.
dispatch
(dispatch body task state-key)Dispatches responds from outer space. Expected responses are:
- Result … data will be stored in long term memory
- ToExchange … data goes to exchange interface
- ids … renew the active documents
- error … state will be set to error, processing stops
It’s maybe a good idea to save the respons body to a key associated to the state key (done).
TODO: detect missing values that should be measured again. Solution: Missing or wrong values are detected at postscripts which leads to :Retry true.