<?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: Current autheinticaed user  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200257#M153387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for response,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;like described above i wnat to get current user in activiti-explorer (so like this i can know if this user is a manager or not).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please guide if i miss something (because when i fixe user&amp;nbsp; like this :&amp;nbsp; String initiator ="U03" for example i get my&amp;nbsp; result but if i use : String initiator="Authentication.getAuthenticatedUserId();"&amp;nbsp;&amp;nbsp;&amp;nbsp; i get error in explorer :" unknown expression property&amp;nbsp; ${verifManager.getManager()}&amp;nbsp; ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You find my&amp;nbsp; xml and code below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 12:27:07 GMT</pubDate>
    <dc:creator>bargan</dc:creator>
    <dc:date>2014-07-31T12:27:07Z</dc:date>
    <item>
      <title>Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200253#M153383</link>
      <description>Hi, In my process i have to specify if the current user is a manager or not, so when a user log in activiti-explorer, i have to retry the id of this user.So&amp;nbsp; in my&amp;nbsp; java&amp;nbsp; class i used:&amp;nbsp; " String initiator = Authentication.getAuthenticatedUserId(); " to compar this value with a sql query (to know if</description>
      <pubDate>Tue, 22 Jul 2014 14:37:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200253#M153383</guid>
      <dc:creator>bargan</dc:creator>
      <dc:date>2014-07-22T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200254#M153384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) um. These are NOT activiti tables?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 07:48:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200254#M153384</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-07-25T07:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200255#M153385</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;SPAN&gt;Yes you are right, these are not&amp;nbsp; activiti tables. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually i create two additional tables in activiti database, named "service" and "relationship" , the first contains id, names of services and managers id. In the other hand table "relationship" contains id_service and id_user (foreign key of table service and table "act_id_user"), because in the table act_id_user i added somme users ( and each one is a member of a service&amp;nbsp; and he can be a sample user or a manager) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example i have i user named "u03" in act_id_user who is a manger of service named " HR" . so i create a foreign key in table relationship for tables "service" and&amp;nbsp; "act_id_user"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am i right to add additinnal tables ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 11:58:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200255#M153385</guid>
      <dc:creator>bargan</dc:creator>
      <dc:date>2014-07-25T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200256#M153386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any additional relationships you have between users is indeed best mapped in separate tables, leaving the ACT_* tables unaffected for future upgrade purposes. You can use any ORM-framework you want, just make sure transactions are shared across the activiti services and your domain services…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 07:46:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200256#M153386</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-07-29T07:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200257#M153387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for response,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;like described above i wnat to get current user in activiti-explorer (so like this i can know if this user is a manager or not).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please guide if i miss something (because when i fixe user&amp;nbsp; like this :&amp;nbsp; String initiator ="U03" for example i get my&amp;nbsp; result but if i use : String initiator="Authentication.getAuthenticatedUserId();"&amp;nbsp;&amp;nbsp;&amp;nbsp; i get error in explorer :" unknown expression property&amp;nbsp; ${verifManager.getManager()}&amp;nbsp; ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You find my&amp;nbsp; xml and code below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:27:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200257#M153387</guid>
      <dc:creator>bargan</dc:creator>
      <dc:date>2014-07-31T12:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200258#M153388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First of all, how do you get an instance of "VerifManager" on the process-scope? Do you set it as a variable, or is it registered as a "bean" in the process engine configuration (see user guide, section "beans". If none of the above, it just won't work. The expression-manager won't be able to know what class/instance you mean by just using "VerifManager". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I see that your VerifManager reads the AuthenticationUtil.getAuthenticatedUser() as an initialiser of a private field… This will only be called once (on creation) and seems error-prone. Better to call this in the method that is guaranteed to be called by the engine/expression-manager…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 07:58:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200258#M153388</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-08-06T07:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200259#M153389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your response,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Yes i registered it&amp;nbsp; in activiti.cfg.xml like this :&amp;nbsp; &amp;lt;bean id="VerifManager" class="org.conge.VerifManager" &amp;gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 09:26:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200259#M153389</guid>
      <dc:creator>bargan</dc:creator>
      <dc:date>2014-08-06T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200260#M153390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I resolved it &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:13:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200260#M153390</guid>
      <dc:creator>bargan</dc:creator>
      <dc:date>2014-08-06T13:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current autheinticaed user</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200261#M153391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how can you resolved it ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 09:56:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/current-autheinticaed-user/m-p/200261#M153391</guid>
      <dc:creator>heba</dc:creator>
      <dc:date>2015-11-24T09:56:53Z</dc:date>
    </item>
  </channel>
</rss>

