Hey Team, I have Flink job with CEP with pattern t...
# troubleshooting
k
Hey Team, I have Flink job with CEP with pattern that implement below pattern rule A followedBy B followedBy C followedBy D. Now I have dynamic rule implemented in Job, If another rule want to match pattern like A followedBy B followedBy C followedBy D followedBy E followedBy F As far as I have understand if I am working with Datastream for CEP, i need to hardcode all the followedBy method i.e. I will need one method with 4 followedBy for 1st rule and another method with 5 followedBy for 2nd rule. Can anybody help How can I implement dynamic number of followedBy clause of condition? One thing I saw is using CEP with Table API (SQL)
βœ… 1
Hey Any help will be very helpful to me
βœ… 1
Solved issue by writing my custom method while rule update using creating new pattern object
d
Hi @Keyur Makwana do you have any more info on how you achieved this?
k
Consider your CEP rule condition coming as a JSON object and first define normal pattern object now, if you have dynamic rule with broadcast you need custom logic with to create new pattern object while every new rule,