cancel
Showing results for 
Search instead for 
Did you mean: 

Role without workflow action on documents

fcoexposito
Champ in-the-making
Champ in-the-making
Hello,

Is there any way to hide the start workflow option in documents for a determined role?

Thanks in advance.
3 REPLIES 3

patil
Champ on-the-rise
Champ on-the-rise
Yes you can do it.
your action evaluator should check this role and based on that you can decide whether to dispay or not the Start advanced workflow option.


Thanks,
Patil
Cignex Technologies
Bangalore

fcoexposito
Champ in-the-making
Champ in-the-making
How can I do that?  Are the next steps ok?

1. Create a custom class implementing ActionEvaluator interface
2. Add the evaluator in the action tag in the document "web-client-config-actions.xml". But what is the correct action tag? I've read all and the unique I think is the correct one is run_action, but I am not sure.
3. Compile and add the .class in C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes
4. Restart and try….

fcoexposito
Champ in-the-making
Champ in-the-making
Could you tell me where is the Start advanced workflow options? Which xml file?

I've created a simple ActionEvaluator which always returns false in order to try, but I don't know where to configure it. I've checket it with <action id="edit_doc_offline"> and it works propery, but I don't find Start workflow.


public class TestActionEvaluator implements ActionEvaluator
{
   @Override
   public boolean evaluate(Node node)
   {
      return false;
   }
   @Override
   public boolean evaluate(Object arg0) {
      // TODO Auto-generated method stub
      return false;
   }
}

Thanks.