<?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: How to query group members from Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122540#M86298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a lot of questions… &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Activiti in Alfresco DOESN'T have full access to the full spring-context due to security reasons.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Instead, there is an ActivitiBeanRegistry that contains what beans are exposed in expressions. If you use the "baseJavaDelegate" or "baseExecutionListener" as spring-parent bean when defining the bean in your custom context.xml file, the beans will get registered automatically.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The beans will be registered under the getClass().getSimpleName(), unless the "getName()" method on the BaseJavaDelegate-superclass you created, overrides this method. So the name you should use in activiti:delegateExpression is that name.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You CAN still use the activiti:class="org.mycompany.MyDelegate" off course, but then you'll have to figure out a different way to access the alfresco-servies, since the delegate-class will be created using Activiti, independent and unaware of spring-context.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You can use both variables and registered-beans in your expressions. The beans itself are NOT stored as variables…&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 08:52:56 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-01-30T08:52:56Z</dc:date>
    <item>
      <title>How to query group members from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122535#M86293</link>
      <description>I would like to know how to query for group members in a service task.&amp;nbsp; We are managing the users through Alfresco (4.2.d).&amp;nbsp; I have seen information on how to use an LDAP server, but not how to retrieve members of a group from Alfresco.&amp;nbsp; In the IdentityService I see how to query for the group, but I</description>
      <pubDate>Sat, 26 Jan 2013 19:10:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122535#M86293</guid>
      <dc:creator>srobinson</dc:creator>
      <dc:date>2013-01-26T19:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to query group members from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122536#M86294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're using alfresco, use the Alfresco services for fetching groups (I guess yo should use the AuthorityService or PersonService), not the activiti indentity-service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2013 15:58:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122536#M86294</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-27T15:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to query group members from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122537#M86295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How exactly do you access the authorityService bean from within your service class or listener?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Shannon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 22:57:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122537#M86295</guid>
      <dc:creator>srobinson</dc:creator>
      <dc:date>2013-01-28T22:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to query group members from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122538#M86296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can define your listeners in spring and extend the "baseJavaDelegate" spring-bean, which has the service-registry injected by default. It also registers itself as a "safe" bean to use in activiti-alfresco:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; &amp;lt;bean id="baseJavaDelegate" class="org.alfresco.repo.workflow.activiti.BaseJavaDelegate"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abstract="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="serviceRegistry" ref="ServiceRegistry" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="beanRegistry" ref="activitiBeanRegistry" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Afterwards, you can use delegate by referencing it's "name" (defaults to getClass().getSimpleName()) in an activiti:delegateExpression=${MyCustomDelegate}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 09:20:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122538#M86296</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-29T09:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to query group members from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122539#M86297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a few follow up questions … Would I use only the bean name in the delegate expression or do I call a method on the bean to execute my logic or will the framework handle calling the appropriate method?&amp;nbsp; Is there any need to fetch the bean or is the bean registration in the -context.xml file all that is needed for Activiti to pick up its registration in any delegation?&amp;nbsp; Is the bean stored as a process variable or is Activiti Spring bean aware?&amp;nbsp; Also, would this logic have to be implemented as a listener or could it be defined as the activiti:class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for all the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Shannon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 16:06:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122539#M86297</guid>
      <dc:creator>srobinson</dc:creator>
      <dc:date>2013-01-29T16:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to query group members from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122540#M86298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a lot of questions… &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Activiti in Alfresco DOESN'T have full access to the full spring-context due to security reasons.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Instead, there is an ActivitiBeanRegistry that contains what beans are exposed in expressions. If you use the "baseJavaDelegate" or "baseExecutionListener" as spring-parent bean when defining the bean in your custom context.xml file, the beans will get registered automatically.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The beans will be registered under the getClass().getSimpleName(), unless the "getName()" method on the BaseJavaDelegate-superclass you created, overrides this method. So the name you should use in activiti:delegateExpression is that name.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You CAN still use the activiti:class="org.mycompany.MyDelegate" off course, but then you'll have to figure out a different way to access the alfresco-servies, since the delegate-class will be created using Activiti, independent and unaware of spring-context.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You can use both variables and registered-beans in your expressions. The beans itself are NOT stored as variables…&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 08:52:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-query-group-members-from-alfresco/m-p/122540#M86298</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-30T08:52:56Z</dc:date>
    </item>
  </channel>
</rss>

