<?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 Re: Can you recover the task&amp;apos;s workflow creator in the Notification template in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316522#M3523</link>
    <description>&lt;P&gt;Ah ok.&lt;/P&gt;
&lt;P&gt;You then probably can use a context variable that you set to the current user in the chain before using in your mail:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[…previous actions…]
Execution Context &amp;gt; Set Context Variable
    name:  theCurrentUser
    value: @{CurrentUser.name}

Notification  Send E-Mail
[…next actions…]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your eMail, you can then use the theCurrentUser variable filled with the login. So, you can get first/last name if you prefer:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[...]
A task [...] assigned to you by ${Fn.getPrincipal(theCurrentUser).firstName} ${Fn.getPrincipal(theCurrentUser).lastName}.
[...]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thibaud&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2013 16:36:12 GMT</pubDate>
    <dc:creator>ThibArg_</dc:creator>
    <dc:date>2013-03-22T16:36:12Z</dc:date>
    <item>
      <title>Can you recover the task&amp;apos;s workflow creator in the Notification template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316519#M3520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is there a way/variable to recover who is assigning you a task when creating a workflow, so as to write it in the notification email?&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;A task on the document ${htmlEscape(docTitle)} was assigned to you or to a group you belong to by &lt;STRONG&gt;${someVariableNameForTaskCreator.name}&lt;/STRONG&gt;.
You can consult the document following this link: : &amp;lt;a href="${docUrl}"&amp;gt;${htmlEscape(docTitle)}&amp;lt;/a&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 22:09:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316519#M3520</guid>
      <dc:creator>patrek</dc:creator>
      <dc:date>2013-03-20T22:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can you recover the task&amp;apos;s workflow creator in the Notification template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316520#M3521</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Looks like you could use nodeLastActor (cf. rhz help section when you are in the Studio and in a template):&lt;/P&gt;
&lt;P&gt;${nodeLastActor}
=&amp;gt; gives the login (for example "john")
${Fn.getPrincipal(workflowInitiator) .firstName} ${Fn.getPrincipal(workflowInitiator) .lastName}
=&amp;gt; Give first/last name (for example "John Doe")&lt;/P&gt;
&lt;P&gt;Thibaud&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 17:14:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316520#M3521</guid>
      <dc:creator>ThibArg_</dc:creator>
      <dc:date>2013-03-21T17:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can you recover the task&amp;apos;s workflow creator in the Notification template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316521#M3522</link>
      <description>&lt;P&gt;Not using studio and on Nuxeo 5.5.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:04:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316521#M3522</guid>
      <dc:creator>patrek</dc:creator>
      <dc:date>2013-03-22T14:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you recover the task&amp;apos;s workflow creator in the Notification template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316522#M3523</link>
      <description>&lt;P&gt;Ah ok.&lt;/P&gt;
&lt;P&gt;You then probably can use a context variable that you set to the current user in the chain before using in your mail:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[…previous actions…]
Execution Context &amp;gt; Set Context Variable
    name:  theCurrentUser
    value: @{CurrentUser.name}

Notification  Send E-Mail
[…next actions…]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your eMail, you can then use the theCurrentUser variable filled with the login. So, you can get first/last name if you prefer:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[...]
A task [...] assigned to you by ${Fn.getPrincipal(theCurrentUser).firstName} ${Fn.getPrincipal(theCurrentUser).lastName}.
[...]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thibaud&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 16:36:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316522#M3523</guid>
      <dc:creator>ThibArg_</dc:creator>
      <dc:date>2013-03-22T16:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can you recover the task&amp;apos;s workflow creator in the Notification template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316523#M3524</link>
      <description>&lt;P&gt;I'm not using a custom chain or anything beside modifying the template with extension "org.nuxeo.ecm.platform.ec.notification.service.NotificationService" point="templates" and extension "org.nuxeo.ecm.platform.ec.notification.service.NotificationService" point="notifications"&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 21:21:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316523#M3524</guid>
      <dc:creator>patrek</dc:creator>
      <dc:date>2013-03-22T21:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can you recover the task&amp;apos;s workflow creator in the Notification template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316524#M3525</link>
      <description>&lt;P&gt;Ah. Actually, There was no easy way - unless I missed something in the original question - to detect in the question that it was about version 5.5, without using a chain or the Studio.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 23:24:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/can-you-recover-the-task-apos-s-workflow-creator-in-the/m-p/316524#M3525</guid>
      <dc:creator>ThibArg_</dc:creator>
      <dc:date>2013-03-22T23:24:04Z</dc:date>
    </item>
  </channel>
</rss>

