• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is JESS rule engine fit ?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Other Java Products and servers.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic