I am trying to evaluate Kogito drools ruleunit. On receiving event from kafka, send graphql and hydrate event with received information and then run Drools rules.
e.g. A New order event is received with customerId and orderDetails. Send graphql to hydrate NewOrderEvent with customer profile, and then run Drools ruleUnit. Couldn't find example to do it though.
I was just thinking of creating customer datasource and order event data stream in ruleUnit but couldn't find way how to tie sending graphQL with kogito tasks.
Hello,
I am trying to evaluate Kogito drools ruleunit. On receiving event from kafka, send graphql and hydrate event with received information and then run Drools rules. e.g. A New order event is received with customerId and orderDetails. Send graphql to hydrate NewOrderEvent with customer profile, and then run Drools ruleUnit. Couldn't find example to do it though. I was just thinking of creating customer datasource and order event data stream in ruleUnit but couldn't find way how to tie sending graphQL with kogito tasks.
Thanks