apache / incubator-kie-kogito-examples

Kogito examples - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
254 stars 380 forks source link

Multiple datasource/datastream for ruleUnit #1122

Open outofsyncbe opened 2 years ago

outofsyncbe commented 2 years ago

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

ricardozanini commented 2 years ago

@evacchi can you take a look?