title: How to define a function for use in an ODM decision table w/o changing the XOM?
body: <p>I'm using ODM 8.5 (the JRules successor).  In my Java domain, I have a three-character String <code>field</code> that represents a number, "000" to "999".  I'd like to have a decision table that represents logic like:</p>
  
  <pre><code>if field is between "000" and "012" then set the result to "tiny"
  if field is between "013" and "060" then set the result to "less tiny"
  ...
  </code></pre>
  
  <p>IBM's <a href="http://pic.dhe.ibm.com/infocenter/dmanager/v8r5/topic/com.ibm.wodm.dserver.rules.designer.dev/authoring_topics/tsk_dtable_columns_define.html?resultof=%22statement%22%20%22an%22%20%22incomplete%22%20%22incomplet%22%20%22BAL%22%20%22bal%22%20%22predicate%22%20%22predic%22%20%22expression%22%20%22express%22%20" rel="nofollow">documentation on defining columns</a> states - "A condition statement is an incomplete BAL predicate expression...".  Is there anything in the BAL that does the kind of String comparison I want to do?  If not, is it possible to call a function defined in the IRL from the BAL?  If so, how?  I'm also open to other suggestions on how to handle this simple problem in ODM (without changing the existing Java XOM).  Right now, it looks to me that I can't use an ODM decision table, although the underlying logic seems well-suited to a decision table.</p>