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 new Gartner Critical Capabilities report explains how APIs and microservices enable digital leaders to deliver better B2B, open banking and mobile projects.

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

The new Gartner Critical Capabilities for Full Lifecycle API Management report shows how CA Technologies helps digital leaders with their B2B, open banking, and mobile initiatives. Get your copy from CA Technologies.

Topics:
drools ,ussd ,java ,integration

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}