0

I need to process an input stream an publish the processed stream which has same schema as input stream to the logger.

In other words I need to have the same schema for import and export definitions. How do I solve this issue?

Is this possible to do in wso2 cep using siddhi QL?

Community
  • 1
  • 1
DesirePRG
  • 6,122
  • 15
  • 69
  • 114

1 Answers1

0

Even If both the input and output streams have the same schema still you are required to have two streams with the same schema.

If you use the same stream as input and output stream it will make the CEP engine to stuck in an infinite loop because output of the query becomes an input subsequently if you use the same stream for both input and output.

Sajith Eshan
  • 696
  • 4
  • 17
  • having two streams with same schema is possible? how does an input event decide which schema it belongs to? – DesirePRG Nov 29 '15 at 04:38
  • It's possible to have two stream with the same schema. When you publish data into a stream you have to specify to which stream you are publishing to. Are you using WSO2 CEP server for this? – Sajith Eshan Nov 29 '15 at 05:37
  • yes I am using wso2 cep server. I will try it out as you have mentioned – DesirePRG Nov 29 '15 at 11:51