Wso2 如何基于事件的一个属性中的值动态创建流?

Wso2 如何基于事件的一个属性中的值动态创建流?,wso2,wso2sp,Wso2,Wso2sp,我正在尝试动态创建多个流。比如说 {'event_type': 'temperature', 'users' : ['john', 'gary'], 'data': {'type': 'temperature', 'DeviceID': 'bcd', 'temperature': '45', 'timestamp': '2019-03-22T12:32:02.208223Z' } } 类型的可能值为[“温度”、“地理位置”、“压力”]。 所需的输出是每个用户一个

我正在尝试动态创建多个流。比如说

{'event_type': 'temperature',
 'users' : ['john', 'gary'],
 'data': {'type': 'temperature', 
 'DeviceID': 'bcd', 'temperature': '45',
 'timestamp': '2019-03-22T12:32:02.208223Z'
         }
} 

类型的可能值为
[“温度”、“地理位置”、“压力”]
。 所需的输出是每个用户一个流和每个用户一个流的类型组合

The following queries are what we expect (Code that creates the following)

select x,y,z from stream
insert into john

select x,y,z from stream
insert into gary

select x,y,z from stream
insert into john_temperature

select x,y,z from stream
insert into gary_temperature

etc.
  • 在wso2中可以这样做吗
  • 我试过了
    用于复杂的json处理,但是@source语法没有明确提到。

    不,这在Siddhi中是不可能的。在Siddhi中,流是预定义的,不能基于事件属性创建

    不,这在Siddhi是不可能的。在Siddhi中,流是预定义的,不能基于事件属性创建