• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

mapping between two string arrays

 
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?


 
Bartender
Posts: 15741
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 15741
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
reply
    Bookmark Topic Watch Topic
  • New Topic