Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

JBoss Drools can be used in USSD

DZone's Guide to

JBoss Drools can be used in USSD

Using Drools as a USSD application with Drools, REST and SQL, the author used the USSD API to implement the REST API to pick up a Drools file in XML .

· Integration Zone
Free Resource

Share, secure, distribute, control, and monetize your APIs with the platform built with performance, time-to-value, and growth in mind. Free 90-day trial of 3Scale by Red Hat

I recently came across a project where I used Drools as a USSD application using Drools, REST and SQL.

Using a USSD API, I implemmented the REST API to pick up a Drools file in XML .

I connected to my backend services and Viola. Then it called each message on the fly as it needed to be applied to my USSD competition application. Easy does it.


package drools

import drools.Message;

rule "Hello World"
dialect "mvel"
when
m : Message( status == Message.HELLO, message : message )
then

modify ( m ) { message = "Goodbye cruel world",
status = Message.GOODBYE };
System.out.println( message );
end

rule "Good Bye"
dialect "java"
when
Message( status == Message.GOODBYE, message : message )
then
System.out.println( message );

end

Explore the core elements of owning an API strategy and best practices for effective API programs. Download the API Owner's Manual, brought to you by 3Scale by Red Hat

Topics:
drools ,ussd ,java ,integration

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}