<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cannot resolve identifier 'task' in service task expression in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cannot-resolve-identifier-task-in-service-task-expression/m-p/195600#M148730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a service task that uses an expression to call a spring method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine when I use&amp;nbsp;&amp;nbsp; #{activitiService.sendEmail(execution)}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but fails when I use&amp;nbsp;&amp;nbsp;&amp;nbsp; #{activitiService.sendEmail(task)}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to store an email template in a variable on the task definition, and fill in the template with process values in the sendMail() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does it work with execution, but not task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to write an Execution listener expression on the start event, but that fails with the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 08:00:12 GMT</pubDate>
    <dc:creator>andrew987654321</dc:creator>
    <dc:date>2014-06-20T08:00:12Z</dc:date>
    <item>
      <title>Cannot resolve identifier 'task' in service task expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-resolve-identifier-task-in-service-task-expression/m-p/195600#M148730</link>
      <description>I have a service task that uses an expression to call a spring method.It works fine when I use&amp;nbsp;&amp;nbsp; #{activitiService.sendEmail(execution)}but fails when I use&amp;nbsp;&amp;nbsp;&amp;nbsp; #{activitiService.sendEmail(task)}I want to store an email template in a variable on the task definition, and fill in the template with proc</description>
      <pubDate>Fri, 20 Jun 2014 08:00:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-resolve-identifier-task-in-service-task-expression/m-p/195600#M148730</guid>
      <dc:creator>andrew987654321</dc:creator>
      <dc:date>2014-06-20T08:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot resolve identifier 'task' in service task expression</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-resolve-identifier-task-in-service-task-expression/m-p/195601#M148731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andrew.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;task: The DelegateTask that holds additional information about the current Task. Note: Only works in expressions evaluated from task listeners.&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;task is not evaluated in the service task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to specify template in the process definition use extensionElements (similar as activiti is using). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to define template in the process instance variable just put it as a parameter into activitiService.sendmail method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 06:52:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-resolve-identifier-task-in-service-task-expression/m-p/195601#M148731</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-06-23T06:52:58Z</dc:date>
    </item>
  </channel>
</rss>

