meghnabit
BAN USER- 0of 0 votes
AnswersDesign a simple rule engine system to route internal transactions to different bank. The engine should be flexible to extend to accept more parameters to make the routing decision.
- meghnabit in India
- The definition maintain in csv file, variable input and single result as output.
- The application is able to load the rule definition into proper routing.
- The match could be exact match or wildcar match. Exact match is preferred.
- The match priority from left to right is high.
simple rule definition
inputa, inputb, inputc, result
prod1, usd, us, b1
prod1, usd, * , b2
prod1, *,us, b3
prod1,*, ca, b4
Expection against sample rule definition:
sample1: [prod1,usd,us] -> b1
sample2: [prod1,usd,pr] -> b2
sample3: [prod1,eur,us] -> b3
sample4: [prod1,eur,pr] -> null
sample5: [prod1,usd,ca] -> b2
1. Define the data structure to hold the rule definition.
2. Implement the algorithm to do the routing.| Report Duplicate | Flag | PURGE
Amazon SDE-2