Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Common Pattern : If there is a high amount of withdrawal occurred for a ATM card which contains the less amount of withdrawal for a day, then it can be a possible fraud situation. To identify these types of scenario we need to use the "pattern" structure which provided by siddhi. 

 

Code Block
Query

from every a1 = withdrawalStream[amount < 1000]

-> b1 = withdrawalStream[amount > 50000 and a1.cardNO == a2.cardNO]

within 1day  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Here, we are checking whether there is a high amount withdrawal ( > 50000) happened in a day where there is a less amount ( < 1000) withdrawal occurred for the same ATM card.