Rama Krishna Reddy
03/13/2025, 7:27 AM{
"patternId": "STRATEGY_READY",
"description": "Strategy deployment readiness check",
"version": "1.0",
"enabled": true,
"enforceEventOrder": false,
"timeWindow": "48h",
"allowEventReuse": true,
"events": [
{
"id": "a",
"type": "EventA"
},
{
"id": "b",
"type": "EventB"
},
{
"id": "c",
"type": "EventC"
}
],
"correlationRules": {
"strategy": [
"a",
"b",
"c"
],
"date": [
"a",
"b"
]
},
"outputEvent": {
"type": "StrategyReadyEvent",
"mapping": {
"date": "a.date",
"strategy": "a.strategy",
"exchange": "b.exchange",
"hash": "c.hash"
}
}
}
Questions
1. Does Flink CEP have tools to convert JSON pattern definitions into Flink pattern API calls?
2. If not, what's the recommended approach for building such a converter?
3. Any examples of similar pattern-to-CEP conversion implementations?
Thanks for your help!