Alfresco Share: accessing bpm_comment in Activiti

2019-05-08 18:40发布

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).

1条回答
迷人小祖宗
2楼-- · 2019-05-08 19:04

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"];
查看更多
登录 后发表回答