Search code examples
javadroolswebmethods

Drools project idea needed


I was asked to make some drools traning for my teammates. Just to show them how it can be used and how usefull it may be. To do this training I first have to learn Drools, and I figured that the best way to learn it will be small project centered around drools.

Any interesting ideas?

My idea for this project was to do some webMethods flow files validation (just some example validations). I'd do validation only - we have in-house parser of that file format.

But something that actually does some work would be nice.


Solution

  • Actually, we have a drools based project, you could try to mimic that. :-)

    Suppose you have incoming SMS messages arriving on an HTTP based protocol. An HTTP request contains the Anumber (telephone number of the sender) the Bnumber (telephone number of the recipient) and the text of the message.

    Your goal is to use drools to route the messages, based on their content, to the appropriate services. You should have a set of rules, each rule stating something like: if the Bnumber is 1792 and the message text contains the keyword "VIDEO" then the message should be directed to the video providing service.

    Actually, we use this exact setup, a drools based router which picks up messages from HTTP servlet threads and puts them to JMS queues based on their contents.

    Would it be interesting for you to work on this program? :-)