title: selecting workstation delay time from one of three tables based on process type in Anylogic
body: <p>I have a production line with four work stations (ws1, ws2, ws3, ws4).  There are three different process approaches (Push, Pull3, Pull1).  Depending on the process approach the delay time for each workstation may differ during each period of operation (associated with the "ws1timeParameter" for example).  Right now I have three tables, (Push, Pull3, Pull1).  Each table has columns containing workstation ws1, ws2, ws3 and ws4 delay times. The following works fine when I'm fixed to one process approach (in this example, the push process)</p>
  
  <pre><code> selectFrom(push)
  .where(push.period.eq(ws1timeParameter))
  .uniqueResult(push.ws1, double.class)   
  </code></pre>
  
  <p>How can I insert a conditional in the Delay so that it applies the table associated with the process type selected.  (I have a combo box tied to a variable to hold the process type). </p>
  
  <p>Thanks for any insights.</p>