Over a million developers have joined DZone.

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

How to Transform Your Business in the Digital Age: 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"
m : Message( status == Message.HELLO, message : message )

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

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


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.

drools ,ussd ,java ,integration

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}