【发布时间】:2019-09-20 06:06:06
【问题描述】:
我尝试在 WSO2 容器中导出变量。但是当我试图在 siddhi 文件中检索它时,它返回 null。我能够获取预定义环境变量 HOME、PATH 等的数据
@sink(type='log')
define stream KeyStream (key string);
@sink(type='log', prefix='Sweet Totals:')
define stream OutputStream(FunctionOutput string);
@info(name='SweetTotalQuery')
from KeyStream select env:getSystemProperty(key) as FunctionOutput
insert into OutputStream;
【问题讨论】:
-
您使用的是 siddhi-runner 还是 wso2 sp?是什么版本的
-
我正在使用 wso2 流处理器 4.4.0 和 siddhi-execution-env 1.1.0 jar,我在 wso2sp 编辑器中运行了上面的代码。
标签: wso2 siddhi stream-processing wso2sp