title: Java - Complex Decision Table
body: <p>Currently have to create a Decision Table that is based on different objects that can each have different/multiple information.</p>
  
  <p>Example:</p>
  
  <pre><code>object A can be: OK / KO
  object B can be: OK / WARNING / KO
  object C can be: STARTING / RUNNING / ENDING
  </code></pre>
  
  <p>Depending on A, B and C's status we get a different output. I currently on did lots of IF statements and feel like it's very rookie-ish coding.</p>
  
  <p>Like-so:</p>
  
  <pre><code>if (C == STARTED) {
      if (A == OK) {
          if (B == OK)
              return "something";
          if (B == WARNING)
              return "something else";
          else
              return "something more";
      }
    ...
  }
  </code></pre>
  
  <p>Are there any known technics (using hasmaps or something already in Java 8) that handles this types of issues in a proper way?</p>
  
  <p>Thought of implementing a decision tree but my current if statements take about 30 lines and not sure if it'd be wise to create a (bunch of) whole new class(es) to solve this.</p>