cancel
Showing results for 
Search instead for 
Did you mean: 

Share Workflow 3.4 - add comment

loftux
Star Contributor
Star Contributor
I just tested the nightly build have some input to the design of the workflow dialog and how comments are added. I understand that this is very much work in progress and may already be considered.
Anyway, the way comments are added is pretty much the same way as in Alfresco Explorer, and is very confusing.

Lets say I want to approve, and add a comment when doing so. The dialog (part of it) looks something like this

Comment:
__________
|         |
|_________|
[Approve]  [Reject]
————–
[Save and Close] [Cancel]
What I by default do is write my comment in the textbox, and then hit approve button that is placed below the text box. But then the comment is not saved. What you have to do is write the comment, hit Save and Close, reopen the task, hit approve.
Hmm, why not a button [Add Comment], or save any comments in the textbox when Approve or Reject button is clicked. Or disable Task execution buttons whenever any metadata is changed, until data is saved, add a button to save without closing.
A more clear separation of Task execution buttons, and Task metadata management would be good, as it is now they are mixed up and creates confusion.
4 REPLIES 4

loftux
Star Contributor
Star Contributor
Found these wireframes: http://www.slideshare.net/AlfrescoUE/project-swift-advanced-workflow-wireframes
So I guess there is much more design changes coming, looking forward to see the end result.

mikeh
Star Contributor
Star Contributor
Hi Peter

I'm pretty sure the end result will work the way you expect, but I'll make sure the guys working on this are aware. I think the design's evolved somewhat since those SlideShare wireframes (as these things do) so the end result will likely be quite different.

Thanks for the feedback!

Mike

erikwinlof
Confirmed Champ
Confirmed Champ
Hej Peter,

The comment is actually saved on the task, but since you press "Review" the workflow is transitioned to the next task in the workflow, which doesn't have any comments. It will be possible in 1 weeks or so to view the "workflow history" in which you will be able to see the task you just commented.
I hope this makes more sense.

Cheers,

:: Erik Winlöf

shazada
Star Contributor
Star Contributor
Hi if you check the TaskInstance java class you'll see a method called addComent.

In the script tag in the procesdefinition do the following:
taskInstance.addComment("your comment");

The best way is to capture the comment in a variable and re-use that one.