aspose file tools*
The moose likes Other Java Products and Servers and the fly likes is JESS rule engine fit  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "is JESS rule engine fit  ?" Watch "is JESS rule engine fit  ?" New topic
Author

is JESS rule engine fit ?

habib synergix
Greenhorn

Joined: Nov 09, 2006
Posts: 1
Hi ,
Kindly suggest, following requirement can be done using JESS ?

I have a java object with some details as follow. Imagine the java application is a OT application. The object has details as follow.

startDate
endDate
startTime
endTime
and etc.

Based on their total ot hours , i need to provide them some allowances.
Like OT allowances , Meal allowance , Transport allowance etc.

Our old approch , we had configured everything using database to decide which allowance to be given. But it is not scalable.

If the client come up with new allowance list , it required to change program , and entire SDLC is to be done again.

My requirement is just need to play with total ot hours.

i can give some example..

if total_ot_hours is 5 hours Following allowances need to be given,

$12 Meal,
$5 Transport
5 times * Hourly Rate

For public holiday,

if total_ot_hours is 12 hours Following allowances need to be given,

$14 Meal,
$8 Transport
1 Day salary for first 8 Hours,
we have remaining 4 Hours, for that pay as follow,
4 times * Hourly Rate,


Like that the allowance list is growing.

What i have given is meant for the employee under one designation.
Certainly , it will vary for differnent designation.

Can we implement such requirement using Rule Enginee ?

is there any rule engine available ?

We think it is tough to setup everyting in table, based on that deciding allowance. it is like hard corded approch. not scalable.

Can you pls suggest me any idea ?

Thanks !
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to Other Java Products and servers.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Hi,

Welcome to JavaRanch!

Yes, this kind of thing can be implemented nicely using a rule engine, and (in my unbiased opinion) Jess would be an excellent choice. As I think you suspect, using a rule engine would let you keep individual policies separate and individually understandable: for example, you could have one rule for transportation allowance for less than one day of overtime, another rule for transportation for more than one consecutive day, other rules for meal allowances, etc. Jess would let you easily integrate this into any Java application.

I'd be a little nervous about saying that rule changes wouldn't go through your normal SDLC process, however. Rules are software like any other, and rigorous testing is required just as for any other software.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is JESS rule engine fit ?