本文介绍了Alfresco分享:在Activiti工作流程中访问bpm_comment的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Activiti工作流程中,如何为用户输入的每个注释访问变量 bpm_comment
?
In Activiti workflow, how can I access variable bpm_comment
for each comment that's input by user?
如果我在每个任务中使用 bpm_comment
,它显示的是相同的注释(第一个)。
If I'm using bpm_comment
in every task, it shows the same comment (the first one).
推荐答案
我已经解决了!
在每个userTask中,我使用以下代码来检索bpm:comment。
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"];
这篇关于Alfresco分享:在Activiti工作流程中访问bpm_comment的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!