title: Business Rules Implementation: So I had set of inputs and based on that input set need an outcome
body: <p>Need suggestions like I had set of input parameters and on the basis of their combination need some business level outcome like do this.</p>
  
  <p>I had some thought for implementing same but It doesn't seems highly optimized in terms of performance.</p>
  
  <p>Problem Set:</p>
  
  <pre><code>Input Parameters: Activity, Client, Supplier, Flow, Product Type, Category
  
  Sample Rule: Key - QC:Client12:Flow1
               Value- [{
                      'instructions': ['QCACCINS001', 'QCACCINS002'],
                      'mandatory_fields': ['ATR001', 'ATR002'],
                      'expression': 'ATR0001&gt;15000'
                      'success': 'do some action',
                      'failure': 'do some action'}]
  </code></pre>
  
  <p>I am planning to put the structure in redis as key-value pair and get rule definition every time we required with set of input parameter.</p>
  
  <p>Problem in the above mentioned solution is combinations like One parameter Activity is fixed and rest of all it can be or not.</p>
  
  <p>Please suggest. </p>