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

The Future of Enterprise Integration: Learn how organizations are re-architecting their integration strategy with data-driven app integration for true digital transformation.

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

Make your mark on the industry’s leading annual report. Fill out the State of API Integration 2019 Survey and receive $25 to the Cloud Elements store.

Topics:
drools ,ussd ,java ,integration

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}