<?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: Using roles and users of wepapp in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32066#M16630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is myLogic one of my implemented logics? Is there any example available for this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#apiExpressions" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#apiExpressions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;if found a thread that helped me to create my own implementation. The users are no problem. But as we do not use groups but roles which result in a list of users only when they are in the context of an order this is a problem. The IdentitySession-Interface has some group related methods. As I don't know anything about the order when those methods are executed I am not sure how to implement this.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Just throw an UnsupportedOperationException in those methods, you will see quickly which ones are used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I could do is to persist for each order the id of the ProcessInstance when the order is created (the process is also started at this time). If I could get the id of the process in the IdentitySession's methods I could also get my order. But this seems to be problem. Or could I solve this via "Context.getExecutionContext().getProcessInstance()"?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't get this, what exactly do you need? When you start the Process Instance, you can easily get the id back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 11:11:23 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2011-03-16T11:11:23Z</dc:date>
    <item>
      <title>Using roles and users of wepapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32063#M16627</link>
      <description>Dear all,I am currently evaluating Activiti as to embed it as workflow engine in our existing application. Currently we have a hard coded workflow but with the number of companies which use it growing the need of customizable workflow(s) is also growing.While reading the user guide and the example c</description>
      <pubDate>Tue, 15 Feb 2011 17:10:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32063#M16627</guid>
      <dc:creator>rnauruhn</dc:creator>
      <dc:date>2011-02-15T17:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using roles and users of wepapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32064#M16628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When using candidateGroups, you can use an expression which delegates the logic to some custom java code, eg. candidateGroups="${myLogic.resolveOrderParticipants}". Would that approach work ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding linking the identity management: you should replace the IdentitySession with your own implementation. There are a few threads on the forum that described how to do this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 09:29:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32064#M16628</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-02-17T09:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using roles and users of wepapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32065#M16629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When using candidateGroups, you can use an expression which delegates the logic to some custom java code, eg. candidateGroups="${myLogic.resolveOrderParticipants}". Would that approach work ?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Is myLogic one of my implemented logics? Is there any example available for this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Regarding linking the identity management: you should replace the IdentitySession with your own implementation. There are a few threads on the forum that described how to do this.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;If found a thread that helped me to create my own implementation. The users are no problem. But as we do not use groups but roles which result in a list of users only when they are in the context of an order this is a problem. The IdentitySession-Interface has some group related methods. As I don't know anything about the order when those methods are executed I am not sure how to implement this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I could do is to persist for each order the id of the ProcessInstance when the order is created (the process is also started at this time). If I could get the id of the process in the IdentitySession's methods I could also get my order. But this seems to be problem. Or could I solve this via "Context.getExecutionContext().getProcessInstance()"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 20:35:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32065#M16629</guid>
      <dc:creator>rnauruhn</dc:creator>
      <dc:date>2011-03-15T20:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using roles and users of wepapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32066#M16630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is myLogic one of my implemented logics? Is there any example available for this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#apiExpressions" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#apiExpressions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;if found a thread that helped me to create my own implementation. The users are no problem. But as we do not use groups but roles which result in a list of users only when they are in the context of an order this is a problem. The IdentitySession-Interface has some group related methods. As I don't know anything about the order when those methods are executed I am not sure how to implement this.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Just throw an UnsupportedOperationException in those methods, you will see quickly which ones are used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I could do is to persist for each order the id of the ProcessInstance when the order is created (the process is also started at this time). If I could get the id of the process in the IdentitySession's methods I could also get my order. But this seems to be problem. Or could I solve this via "Context.getExecutionContext().getProcessInstance()"?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't get this, what exactly do you need? When you start the Process Instance, you can easily get the id back.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 11:11:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32066#M16630</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-16T11:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using roles and users of wepapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32067#M16631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just throw an UnsupportedOperationException in those methods, you will see quickly which ones are used.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;To find the methods that are used is not the problem but to make to correct implementation is one. Let us take a look at "IdentitySession.findUsersByGroupId". This has to return the list of users for a specified group. As I mentioned above we don't have groups but roles. A role results in users only if it the context (the order) is available. That means that a lot of users have e.g. the role "client" but only when creating a new order (and so starting a new process for this order) alle participants of this order with the role "client" are the correct users for the requested role.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I have a misunderstanding and "IdentitySession.findUsersByGroupId" must not be seen in a context of a running process and is correct to return ALL user with the role "client" assigned. Maybe I have to implement my own logic to resolve roles in the order's context. My thinking was about a scenario where a task has a candidate group (which would be a candidate role for me) and the engine has to perform an action for all members by itself (e.g. sending an email). How shall the engine get the correct list of users as my implemtation of "IdentitySession.findUsersByGroupId" returns alls users with the role assigned (which is wrong).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't get this, what exactly do you need? When you start the Process Instance, you can easily get the id back.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;This was my attempt to solve the problem above (to get the context which is an order) in the implementing methods of IdentitySession which are related to groups.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 11:47:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32067#M16631</guid>
      <dc:creator>rnauruhn</dc:creator>
      <dc:date>2011-03-16T11:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using roles and users of wepapp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32068#M16632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Maybe I have to implement my own logic to resolve roles in the order's context.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the case and in the &lt;/SPAN&gt;&lt;CODE&gt;candidateGroups="${myLogic.resolveOrderParticipants}"&lt;/CODE&gt;&lt;SPAN&gt; you can also pass parameters like process variables or whatever so you are kind of in the 'context' then.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 16:35:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-roles-and-users-of-wepapp/m-p/32068#M16632</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-16T16:35:55Z</dc:date>
    </item>
  </channel>
</rss>

