<?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 Alfresco Processes - Manager role? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106621#M30086</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have group "Warehouse" and user who is a Warehouse Manager.&amp;nbsp; Is it possible for Manager to see all tasks currently assigned to Warehouse group?&lt;/P&gt;&lt;P&gt;It would be also nice if Manger could see those tasks and could change assigned user&lt;/P&gt;&lt;P&gt;Situation 1:&lt;/P&gt;&lt;P&gt;there is a user "xyz" who belongs to "Warehouse" group. All processes are assigned to him directly. He goes on vacation. Now manager has to assign his tasks to another user.&lt;/P&gt;&lt;P&gt;Situation 2:&lt;/P&gt;&lt;P&gt;There is a user "xyz", he belongs to "Warehouse" group and he is lazy so he has a lot of not done tasks. Is it possible for Manager to see that?&lt;/P&gt;&lt;P&gt;Is there any solution in Alfresco for those situations?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2019 12:20:00 GMT</pubDate>
    <dc:creator>upforsin</dc:creator>
    <dc:date>2019-10-28T12:20:00Z</dc:date>
    <item>
      <title>Alfresco Processes - Manager role?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106621#M30086</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have group "Warehouse" and user who is a Warehouse Manager.&amp;nbsp; Is it possible for Manager to see all tasks currently assigned to Warehouse group?&lt;/P&gt;&lt;P&gt;It would be also nice if Manger could see those tasks and could change assigned user&lt;/P&gt;&lt;P&gt;Situation 1:&lt;/P&gt;&lt;P&gt;there is a user "xyz" who belongs to "Warehouse" group. All processes are assigned to him directly. He goes on vacation. Now manager has to assign his tasks to another user.&lt;/P&gt;&lt;P&gt;Situation 2:&lt;/P&gt;&lt;P&gt;There is a user "xyz", he belongs to "Warehouse" group and he is lazy so he has a lot of not done tasks. Is it possible for Manager to see that?&lt;/P&gt;&lt;P&gt;Is there any solution in Alfresco for those situations?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 12:20:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106621#M30086</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-10-28T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Processes - Manager role?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106622#M30087</link>
      <description>&lt;P&gt;As far as I know such functionality is not provided out-of-the box. You'll have to customize Share and Repo parts to make it possible.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 12:29:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106622#M30087</guid>
      <dc:creator>Vic</dc:creator>
      <dc:date>2019-10-28T12:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Processes - Manager role?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106623#M30088</link>
      <description>&lt;P&gt;Well, that's kind of sad. A lot of clients need that functionality.&lt;/P&gt;&lt;P&gt;Has anyone implemented something to solve this problem?&lt;/P&gt;&lt;P&gt;Or do you have any idea how it can be done withtout rewriting half of the Alfresco Share's code?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 12:15:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106623#M30088</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-11-01T12:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Processes - Manager role?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106624#M30089</link>
      <description>&lt;P&gt;I've done something similar in my 5.1 Community. Actyally there is not so much code to be customized. In my project we have a requirement to make possible for admin to see all workflows and to delete them or cancel (no matter who has initiated it).&lt;/P&gt;&lt;P&gt;I've implemented this by adding custom filter for Share pages 'My Workflows' and 'My Tasks'. Those custom filters are available only to admin. Filter makes a request to Repo with a custom flag "show all".&lt;/P&gt;&lt;P&gt;On Repo side I customized few webscripts (like WorkflowInstancesGet and TaskInstancesGet) and WorkflowServiceImpl to implement logic of data retrieval.&lt;/P&gt;&lt;P&gt;Hope this helps you on your path of customization.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 12:06:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106624#M30089</guid>
      <dc:creator>Vic</dc:creator>
      <dc:date>2019-11-05T12:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Processes - Manager role?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106625#M30090</link>
      <description>&lt;P&gt;Thank you, that looks very promissing, I will try to implement something similar.&lt;/P&gt;&lt;P&gt;But how did you manage to create a template with custom filter only for an admin?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 11:06:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106625#M30090</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-11-22T11:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Processes - Manager role?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106626#M30091</link>
      <description>&lt;P&gt;Investigate the following folder in Share source code:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;site-webscripts\org\alfresco\components\workflow&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;There are few places of interest &lt;FONT face="courier new,courier"&gt;\filters&lt;/FONT&gt; subfolder, &lt;FONT face="courier new,courier"&gt;workflow-list.get.config.xml, task-list.get.config.xml&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;As you can see all filters are nothing but web-scripts that prepare model for UI. Therefore to include or exclude some filter in the model you'll have to modify corresponding JS controller. I.e. I add new filter in&amp;nbsp;&lt;FONT face="courier new,courier"&gt;all.get.config.xml&lt;/FONT&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;config&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;   &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;filters&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;      &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;filter &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="workflows" &lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;="active"    &lt;/SPAN&gt;&lt;SPAN&gt;label&lt;/SPAN&gt;&lt;SPAN&gt;="link.workflows.active"&lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;      &lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;filter &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="workflows" &lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;="completed" &lt;/SPAN&gt;&lt;SPAN&gt;label&lt;/SPAN&gt;&lt;SPAN&gt;="link.workflows.completed"&lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;      &amp;lt;filter id="workflows" data="all"       label="link.workflows.all"/&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;   &lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;filters&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;config&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Then modify JS controller&amp;nbsp;&lt;FONT face="courier new,courier"&gt;all.get.js&lt;/FONT&gt;:&lt;/P&gt;&lt;PRE&gt;&amp;lt;&lt;SPAN&gt;import &lt;/SPAN&gt;resource=&lt;SPAN&gt;"classpath:alfresco/site-webscripts/org/alfresco/components/workflow/filter/filter.lib.js"&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;model.filters = [];&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;filters &lt;/SPAN&gt;= getFilters();&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;each(&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;filter &lt;/SPAN&gt;&lt;SPAN&gt;in &lt;/SPAN&gt;&lt;SPAN&gt;filters&lt;/SPAN&gt;) {&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;filter&lt;/SPAN&gt;.data == &lt;SPAN&gt;"all"&lt;/SPAN&gt;) {&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;STRONG&gt;user.isAdmin&lt;/STRONG&gt;) {&lt;BR /&gt;            model.filters.push(&lt;SPAN&gt;filter&lt;/SPAN&gt;);&lt;BR /&gt;        }&lt;BR /&gt;    } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;        model.filters.push(&lt;SPAN&gt;filter&lt;/SPAN&gt;);&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thus, my new "all" filter will get into the model and appear on the UI only if currently logged in user is an admin.&lt;/P&gt;&lt;P&gt;Here "user" is one of the root JS objects in Surf.&lt;/P&gt;&lt;P&gt;As a last step modify&amp;nbsp;&lt;FONT face="courier new,courier"&gt;workflow-list.get.config.xml, task-list.get.config.xml.&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;Add&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;filter &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;="workflows"     &lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;="all"          &lt;/SPAN&gt;&lt;SPAN&gt;parameters&lt;/SPAN&gt;&lt;SPAN&gt;="all=true"&lt;/SPAN&gt;&lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;to both files to support conversion of new filter to request parameter.&lt;/P&gt;&lt;P&gt;Oh, and one more thing modify resource bundle&amp;nbsp;&lt;FONT face="courier new,courier"&gt;all.get.properties&lt;/FONT&gt; - add new property for new filter label:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;link.workflows.all&lt;/SPAN&gt;=&lt;SPAN&gt;Show all&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Thats how I implemented it in Share. Hope I didn't forget anything.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 12:29:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106626#M30091</guid>
      <dc:creator>Vic</dc:creator>
      <dc:date>2019-11-22T12:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Processes - Manager role?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106627#M30092</link>
      <description>&lt;P&gt;Wow, thank you very much for such a detailed instructions!!&amp;nbsp;&lt;img id="heart" class="emoticon emoticon-heart" src="https://connect.hyland.com/i/smilies/16x16_heart.png" alt="Heart" title="Heart" /&gt; You rock!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 06:48:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-processes-manager-role/m-p/106627#M30092</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2019-12-05T06:48:37Z</dc:date>
    </item>
  </channel>
</rss>

