Hi,<br><br>This is somewhere between a bug and an enhancement:<br><br>Currently the Template Editor does not support template keys for Metadata or Attributes; i.e. your requirement is an enhancement.<br><br>You can however provide literal values formatted as template keys (e.g. @{xx} as you have discovered); i.e. there is a bug.<br>
<br>The enhancement has already been reported here: <a href="https://issues.jboss.org/browse/GUVNOR-1907">https://issues.jboss.org/browse/GUVNOR-1907</a><br><br>Please note, with 5.4 you can use a web-guided Decision Table. <br>
<br>These support BRL fragments for columns (i.e. you can define a column that 
uses any feature in the BRL\Guided Rule Editor or Template Editor) and 
they already support interpolation of values for both Meta-data and 
Attributes.<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 13 August 2012 18:38, dunnlow <span dir="ltr">&lt;<a href="mailto:dunnlow@yahoo.com" target="_blank">dunnlow@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m using Guvnor 5.4<br>
<br>
I find myself sometimes wanting to use templates to map a string to a<br>
metadata value or timer.  For example, based upon a name, set a value for<br>
the timeout.  As far as I can tell however, the only way to create a<br>
template column in guvnor is to include the column identifier in the LHS.<br>
<br>
For example, I have a basic rule template that checks a name (there is only<br>
a &quot;name&quot; column in the template matrix).  Then, I click on options, add a<br>
timer and give it a value of &quot;@{timeout}&quot; I get an error - the timeout<br>
column does not exist in the template.  However, if I write a dummy<br>
expression on the LHS like &quot;foo&quot; not matches timeout, the timeout column is<br>
created and everything is great once I set the value.  If I delete the<br>
predicate that uses timeout, I get an error again for the timer attribute.<br>
<br>
This gets really ugly because I end up having (seemingly) useless<br>
predicates.  Is there a clean way to support this functionality?<br>
<br>
Thanks,<br>
-J<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Creating-template-column-in-guvnor-for-attribute-value-tp4019108.html" target="_blank">http://drools.46999.n3.nabble.com/Creating-template-column-in-guvnor-for-attribute-value-tp4019108.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>