I have a userStream having name,address,status
I want to store this details in UserDetailsTable
(In memory table)
Result of UserDetailsTable is below
"Jose", "address1","false"
"Rockey","address2","false"
"sibin", "address3","false"
I have another triggerStream
having name,triggerStatus
"Rockey","delete"
"Jose" ,"update"
Case 1)
When triggerStream
comes as "Rockey", I want to join this triggerStream with UserDetailsTable
according to (name and triggerStatus) and delete the row from UserDetailsTable.
Case 2) When triggerStream
comes as "Jose", I want to join this triggerStream
with UserDetailsTable
according to (name and triggerStatus) and update the status as "true" in UserDetailsTable.
Final state of UserDetailsTable is below.
"Jose", "address1","true"
"sibin", "address3","false"
how can able to do this with WSO2 CEP?