supta
supta

Reputation: 143

Alfresco Share: accessing bpm_comment in Activiti workflow

In Activiti workflow, how can I access variable bpm_comment for each comment that's input by user?

If I'm using bpm_comment in every task, it shows the same comment (the first one).

Upvotes: 3

Views: 1487

Answers (1)

supta
supta

Reputation: 143

I've solved it!

In each userTask I used the following code to retrieve bpm:comment.

var taskId = "activiti$" + task.getId();
var taskComment = workflow.getTask(taskId).getProperties()["bpm:comment"];

Upvotes: 4

Related Questions