<?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: Get $INITIATOR name in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232384#M185514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure I'm following - the Activiti 6 UI does not use the 'old' tables, all should be in USERS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i do understand the confusion - this is something we'll want to fix soon and make sure the identity service works irregardless.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2016 08:06:39 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-06-03T08:06:39Z</dc:date>
    <item>
      <title>Get $INITIATOR name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232381#M185511</link>
      <description>Hi, in version 5.19+, ${initiator}&amp;nbsp; was refering to initiator's name, but with version 6.Beta2, it only returns initiator's id. What's the best way to get his name. I need it for sending emails for instance.Thanks in advance, Best regards</description>
      <pubDate>Tue, 24 May 2016 08:59:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232381#M185511</guid>
      <dc:creator>stb</dc:creator>
      <dc:date>2016-05-24T08:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get $INITIATOR name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232382#M185512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's indeed the id, you will need to use the userservice to actually find the user + its email. (you can inject the UserService in your custom service task bean for example).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 10:08:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232382#M185512</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-31T10:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get $INITIATOR name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232383#M185513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much for the answer. I still couldn't find &amp;lt;em&amp;gt;initiator&amp;lt;/em&amp;gt; lastName work until I discovered that the users were created in 'ACT_ID_USER' table but not in "USERS" table as the admin, and my initiator being admin (in USERS), no way to get his infos! A related issue is User creation which cannot be automated neither with the API, nor the REST API which uses the same table. Will these tables be merged in version 6.0 as the API so far seems uncomplete and not fully usable (if I understand well!). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;It's indeed the id, you will need to use the &amp;lt;em&amp;gt;userservice&amp;lt;/em&amp;gt; to actually find the user + its email. (you can inject the UserService in your custom service task bean for example).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used this Groovy snippet in a Script Task, creating a new user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def user = identityService.newUser("100");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;user.setFirstName("John");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;user.setLastName("Bar");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identityService.saveUser(user);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;def query = identityService.createUserQuery().userId("100");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def res =query?.singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;println "id = ${res?.getId()}, firstName = ${res?.getFirstName()}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By &amp;lt;em&amp;gt;UserService&amp;lt;/em&amp;gt;, were you refering to &amp;lt;em&amp;gt;IdentityService&amp;lt;/em&amp;gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand the sentence "you can inject the UserService in your custom service task bean for example". I've searched in User Guide, but don't have a clue about where to start, sorry. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:46:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232383#M185513</guid>
      <dc:creator>stb</dc:creator>
      <dc:date>2016-06-02T12:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get $INITIATOR name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232384#M185514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure I'm following - the Activiti 6 UI does not use the 'old' tables, all should be in USERS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i do understand the confusion - this is something we'll want to fix soon and make sure the identity service works irregardless.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 08:06:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232384#M185514</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-03T08:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get $INITIATOR name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232385#M185515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;I'm not sure I'm following - the Activiti 6 UI does not use the 'old' tables, all should be in USERS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But, I created a simple Script Task&amp;nbsp; in Activiti 6beta2 (and a clone of beta3) Modeler, and pasted the above code there… and Users are always created in ACT_ID_USER !&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I missed something in configuration ?!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; But i do understand the confusion - this is something we'll want to fix soon and make sure the identity service works irregardless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This will be welcomed indeed!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 08:21:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232385#M185515</guid>
      <dc:creator>stb</dc:creator>
      <dc:date>2016-06-03T08:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get $INITIATOR name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232386#M185516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt;and Users are always created in ACT_ID_USER ! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. The engine goes to ACT_ID_USER for default user creation. The UI goes to USERS. That's exactly the confusion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:04:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-initiator-name/m-p/232386#M185516</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-20T11:04:20Z</dc:date>
    </item>
  </channel>
</rss>

