我{f_id:1001}
对 http 服务执行 http 请求 ()。服务在没有源 f_id 的情况下只返回真/假结果。
并希望使用源 F_ID 选择它的响应:
@sink(type='http-request', publisher.url='http://127.0.0.1:3020/',
method="POST", sink.id='download-sink', @map(type='json'))
define stream OutputToNodejs(f_id long);
@source(type='http-response' , sink.id='download-sink',
http.status.code='200',
@map(type='json', @attributes('result')))
define stream responseStream2xx(result bool);
@info(name = 'SimpleLogTrigger')
from responseStream2xx
select result as text, f_id_from_request /* HOW GET F_ID from source request HERE */
insert into OutputStream2;
我想在从源响应中选择使用源请求消息。但是我怎么能在这里得到源消息呢?如果我不能 - 也许我可以将它的一些 id 从请求转发到响应?