AnsweredAssumed Answered

Field injection on email task not working

Question asked by ericsnyder on May 16, 2013
Latest reply on May 17, 2013 by ericsnyder
I have the following email task that is trying to use the value of the field "description" in the subject line and text.
    <serviceTask id="mailtask1" name="Mail Task" activiti:type="mail">
      <extensionElements>
        <activiti:field name="to">
          <activiti:expression>#{emailAddresses.convert(emailTo)}</activiti:expression>
        </activiti:field>
        <activiti:field name="from">
          <activiti:string>no-reply@sharpline.com</activiti:string>
        </activiti:field>
        <activiti:field name="subject">
          <activiti:string>${description}</activiti:string>
        </activiti:field>
        <activiti:field name="text">
          <activiti:string>${description} is approved.</activiti:string>
        </activiti:field>
        <activiti:field name="cc">
          <activiti:expression>#{emailAddresses.convert(emailCC)}</activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>

I get the literal text "${description} rather than the value for the variable "description".

Bug? How do I get this resolved? I really need to get this running so I can move on to something else.

BY the way, this is working:
<activiti:expression>#{emailAddresses.convert(emailTo)}</activiti:expression>

Outcomes