Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

mapping between two string arrays

 
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have input as array of strings. Based on some rule output string needs to be created.
For example- take the statuses of Order.{"Created","Confirmed","Shipped","Out for Delivery","Cancelled"} . Final status will be calculated based on combination of inputs. So there are rules given which defined this. For example (Created + Confirmed -> Confirmed) etc.Output Status is given by another team.
Is there any rule engine to do like this ?


 
Saloon Keeper
Posts: 12133
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What should the result of "Out for Delivery" + "Cancelled" be?
 
Arjun Shastry
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider it for the time being as 'Cancelled" . These rules will be given by other team. How should we include these in Java programs? Rules Engine?
 
Stephan van Hulst
Saloon Keeper
Posts: 12133
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Honestly, it completely depends on how complex the rules are gonna be. For now, it seems as you only need one rule:
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic