cancel
Showing results for 
Search instead for 
Did you mean: 

Rejection Reason Input TextBox for Simple Workflow

userfresco
Champ in-the-making
Champ in-the-making
Hi All,

After reading http://forums.alfresco.com/en/viewtopic.php?f=34&t=19656 I would like some help with providing the user with a textbox where the user can write a comment on the reason for rejecting a document. This reason is then added to the aspect/properties of the document and moved to the reject destination folder/site

Has anyone used a javascript prompt in eg. review_processdefinition.xml? Or is there other means to get the user (reviewer) input on workflow transitions?

Any help appriciated.

Thanks
1 REPLY 1

richard_im
Champ in-the-making
Champ in-the-making
Hello,

Have you taken a look at the ootb task model for review?  The model defines a 'comment' text field.  For rejection, you can extend the model and add 'Reason' or what have you.  Part of the transition would then read that field, and add the necessary aspect to the documents in the bpm package and set the rejection reason.

If you desire to make it upon 'Reject' button is depressed, you might have to fallback to some custom java and jsps to get your desired result, or modify some of the client side js.

Just some suggestions/areas to look at.