cancel
Showing results for 
Search instead for 
Did you mean: 

workflow approve permissions

chuck
Champ in-the-making
Champ in-the-making
Hi,

I have created a workflow with an approve flow. The problem is I need to allow all users to access the space but not neccessarily to be able to see this option under "More Actions". (Option - The name I have given the "Name for approve step").

I was wondering whether
(a) there is some way I can filter who can see this ?

(b) could applying an aspect help in this situation. ?

© Would I be better off doing this using the new Advanced Workflow ? (If so some tips on restriction this option would be cool).
5 REPLIES 5

xercs
Champ in-the-making
Champ in-the-making
Hi,
I was wondering if you have found a solution for this ? if so could you please share it ?

Thanks,
P

chuck
Champ in-the-making
Champ in-the-making
Sorry still awaiting an answer…I'll post if I get it working.

seraphon
Champ in-the-making
Champ in-the-making
Hi

If you only want the person that will approve your file to see the approve flow icon, indeed the advance workflow will work.
It will in fact make appear a message in the "to do list" of the person you chose in the advance workflow wizard and when this person approves it or not, you ll get a "message in your to do list". So no approve flow icon appears.
But there is a big flaw with the advance workflow in that you have to initiate it manually each time. You cant do a rule that launch an advanced workflow which can be problematic when you have dozens(or more!) of file in need of approval. Making an advanced worflow takes about 10 seconds.

As for I, seeing the icon doesnt bother me. What bothers me is that for a user to have the right to approve a content and thus move it, the user must:
have the ownership of the content and have at least the contibutor role in both the space where the content is, and where it ll go.
or have the coordinator rights in both those space I mentioned earlier.
What I would like is someone that can approve a file without the need of having the ownership of the file nor the possibilities of creating, deleting the file.
I d like to create a user that can only read and approve(or reject) files and I m still on it, but if anyone has the solution, please share it.


Regards

seraphon

seraphon
Champ in-the-making
Champ in-the-making
Hi
If it still interest you I found a way to hide the approve icon to some people.
But I dont guarantee the stability of my method so use it at your own risks.

Just create a new kind of permission in the
tomcat\webapps\alfresco\WEB-INF\classes\alfresco\model\permissionDefinition.xml
Called Workf for example and a new type of role called Tester

     <permissionGroup name="Workf" expose="false" allowFullControl="false" />
      <permission name="_Workf" expose="false" >
        <grantedToGroup permissionGroup="Workf" />

<permissionSet type="cm:cmobject" expose="selected">
      ……
<permissionGroup name="Tester" allowFullControl="false" expose="true" >
          <includePermissionGroup permissionGroup="Workf" type="sys:base" />
        <includePermissionGroup permissionGroup="Read" type="sys:base" />
      </permissionGroup>

   </permissionSet>
go to http://forums.alfresco.com/viewtopic.php?t=5057&highlight=
if you want to have more info on how to create a new role

then after that just add the simple lines
         <!– 'Approve' workflow step for document –>
         <action id="approve_doc">
         <permissions>
               <permission allow="true">Workf</permission>
            </permissions>

inside the file
tomcat\webapps\alfresco\WEB-INF\classes\alfresco\web-client-config-actions.xml

Hope that helps
Hope even more that I ll get an answer to my question :
"how do you give to a role the permission to delete but don t let the delete icon appear"

Regards seraphon

chuck
Champ in-the-making
Champ in-the-making
Thanks Seraphon, I will give this a try later today