title: How to hide custom workflows for a particular role?
body: <p>I am working with  roles and permission's.i have to create an permission that hides the created custom workflow's for perticular role.when i am adding this bean file and the wizard in xml i am not able to start the workflow at all .please let me know if any other way is there.
  <br/><br/><br/>
  <b><h3>this is the bean file i have created </h3></b></p>
  
  <p>public List getResources()
     {
        this.resources = new ArrayList(4);</p>
  
  <pre><code>  UserTransaction tx = null;
    try
    {
       FacesContext context = FacesContext.getCurrentInstance();
       tx = Repository.getUserTransaction(context, true);
       tx.begin();
  
       for (String newItem : this.packageItemsToAdd)
       {
          NodeRef nodeRef = new NodeRef(newItem);
          if (this.getNodeService().exists(nodeRef))
          {
             // create our Node representation
             MapNode node = new MapNode(nodeRef, this.getNodeService(), true);
             this.browseBean.setupCommonBindingProperties(node);
  
             // add property resolvers to show path information
             node.addPropertyResolver("path", this.browseBean.resolverPath);
             node.addPropertyResolver("displayPath", this.browseBean.resolverDisplayPath);
  
             this.resources.add(node);
          }
          else
          {
             if (logger.isDebugEnabled())
                logger.debug("Ignoring " + nodeRef + " as it has been removed from the repository");
          }
       }
  
       // commit the transaction
       tx.commit();
    }
    catch (Throwable err)
    {
       Utils.addErrorMessage(MessageFormat.format(Application.getMessage(
             FacesContext.getCurrentInstance(), Repository.ERROR_GENERIC), err.getMessage()), err);
       this.resources = Collections.&lt;Node&gt;emptyList();
       try { if (tx != null) {tx.rollback();} } catch (Exception tex) {}
    }
  
    return this.resources;
  </code></pre>
  
  <p>} <br/><br/>
  <b>here is bean implimentatin</b>
  protected void resetRichList()
     {
        if (this.packageItemsRichList != null)
        {
           this.packageItemsRichList.setValue(null);
           this.packageItemsRichList = null;
        }
     }</p>
  
  <p><b>this is the xml file </b>
  
              
                  
                      Collaborator
                  
                  
                      
                  
                  
                      
                  
                  
                      
                  
              
          </p>