cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow with one user for approve

a2006
Champ in-the-making
Champ in-the-making
Hi everyone,

I create a workflow with an approve flow but this flow can be appreved by all users (with right permissions).
But I want a workflow that only can be approved by one, and only this user.
How can I do?

Thanks in advance, Jose Blanco
9 REPLIES 9

nivlacnz
Champ in-the-making
Champ in-the-making
But I want a workflow that only can be approved by one, and only this user.

This is something which we'd like to be able to do also…
Anyone else think it would be nice if there was a way to assign an "approval user" to a file and that person is the only one who can approve it.

Calvin

simon
Champ in-the-making
Champ in-the-making
Same here but I think you'll have to solve it with some workaround:

1. Create a space with write access for everyone (or a selected group)
2. Assign a move rule to this space to move all incoming documents to an "inbox" space
3. This inbox space has write access for the approver but isn't visible for the other users
4. The approval rule moves the document back to some other space

Not the best way to solve this problem but as a temporary solution it may do the trick. An approver role would be nice indeed…

davidc
Star Contributor
Star Contributor
I'm not aware of all the subtelties of the process you wish to support, but you can define custom roles by editing the permissionDefinitions.xml file.  See http://www.alfresco.org/mediawiki/index.php/Security_and_Authentication for some supporting info.

So, for example, you could have an Approver role with read, write and removeChildren which would give the Approver in the "Inbox" space the ability to edit a document and issue the next step in the process, but not create new docs, or delete docs.

a2006
Champ in-the-making
Champ in-the-making
Thanks to all,

This is the way I follow,

I assing a new customized aspect {Assigned to: Alfy} with rules to a space.
Later I create a workflow rule, applied to content which have aspect.

And finally 'Alfy' user can approve workflow, but no one else can do.

If I have two user with equal permissions: Frescy and Alfy, only assigned user will be able to approve, in this case Alfy.


I already create my customized Aspect but now I have to control who is on Assigned to input text and who tries to approve.


Thanks in advance, Jose Blanco

a2006
Champ in-the-making
Champ in-the-making
One more thing,

It is possible to associate a search or SelectList to an aspect like this
http://www.alfresco.org/mediawiki/images/5/5f/Editsop.jpg but with users??


I try search with:
               <target>
                  <class>cmSmiley Tongueerson</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>

but result isn't good:
<option value="de5a3969-843c-11da-97af-9154f7e5f001">/system/people/de5a3969-843c-11da-97af-9154f7e5f001</option>
cause I need Full name and user Id.

Thanks in advance, Jose Blanco

lnagra
Champ in-the-making
Champ in-the-making
Jose,

Could you list the steps you took to achieve this workflow?
I would like to implement something similar.

In particular:

1. Users upload documents into their own subspace
2. These documents are automatically sent to the Pending Approval space (simple rule)
3a. An approver can approve a document and it is moved to the publish space
3b. An approver can reject a document and it is returned to the original subspace it came from

I think 3b poses a problem as I don't want to create a new rule for each user and subspace, but rather would like to create a rule that can programatically return documents to the original subspace (to the contributor).

Thanks for any help in this regard,

a2006
Champ in-the-making
Champ in-the-making
Hi lnagra,

I use a customized aspect for approver (an input + select list) when user tries to approve/reject, I check if current user is approver.


I 'm searching a better way, but this runs OK.

1.- Generate simple workflow
2.- Create aspect ( I do approver aspect)
3.- Apply action or rule with this aspect to content.
4.- Move content to workflow space.
5.- Approve or reject - See: DocumentDetailsBean - approve(ActionEvent event) I modify this method, and reject, to compare and check if content has approver aspect.


Good luck

peterwhite
Champ in-the-making
Champ in-the-making
Like lnagra, I am looking for a way to implement an approval workflow which can reject items to a non-specific space - i.e. a single rule for all users (applied the "Users" space with "apply to subspaces" selected) which, on rejection moves the content back to the sub-space it came from.

lnagra also explains the issue here:
http://forums.alfresco.com/viewtopic.php?t=948&highlight=

I can try to explain the problem further if required. If there isn't way to implement this workflow currently, is it a feature being considered for a future release?

Regards
Pete

gavinc
Champ in-the-making
Champ in-the-making
Yes, we are planning on increasing the functionality available for workflows in the near future, but no fixed dates at the moment.