Alfresco-是否可以使用JavaAPI从工作流任务获取bpm:comment属性?

Alfresco-是否可以使用JavaAPI从工作流任务获取bpm:comment属性?,alfresco,Alfresco,我尝试从WorkflowTask对象获取属性,但未获取注释属性。当前参考本API文档: 列出所有任务; allTasks=workflowService.queryTasks(taskQuery,true); 对于(int i=0;i您似乎正在尝试检索活动任务的注释,这些任务尚未完成。对于这些任务,用户需要编写注释并保存。 一旦它被保存,你将能够看到它 如果它不是您正在获取的活动任务,则注释不应为空。 下面是我尝试使用相同代码检索活动任务和打印属性时的输出 {http://www.alfresc

我尝试从WorkflowTask对象获取属性,但未获取注释属性。当前参考本API文档:

列出所有任务;
allTasks=workflowService.queryTasks(taskQuery,true);

对于(int i=0;i您似乎正在尝试检索活动任务的注释,这些任务尚未完成。对于这些任务,用户需要编写注释并保存。 一旦它被保存,你将能够看到它

如果它不是您正在获取的活动任务,则注释不应为空。 下面是我尝试使用相同代码检索活动任务和打印属性时的输出

{http://www.alfresco.org/model/content/1.0}created = Fri Mar 16 12:56:26 IST 2018
{http://www.alfresco.org/model/bpm/1.0}percentComplete = 0
{http://www.alfresco.org/model/bpm/1.0}pooledActors = []
{http://www.alfresco.org/model/content/1.0}name = Task
{http://www.alfresco.org/model/bpm/1.0}packageActionGroup = 
{http://www.alfresco.org/model/bpm/1.0}reassignable = true
{http://www.alfresco.org/model/bpm/1.0}outcomePropertyName = {http://www.alfresco.org/model/workflow/1.0}reviewOutcome
{http://www.alfresco.org/model/content/1.0}owner = test
{http://www.alfresco.org/model/workflow/1.0}reviewOutcome = Reject
{http://www.alfresco.org/model/bpm/1.0}taskId = 1889
{http://www.alfresco.org/model/bpm/1.0}packageItemActionGroup = edit_package_item_actions
{http://www.alfresco.org/model/bpm/1.0}dueDate = null
{http://www.alfresco.org/model/bpm/1.0}completionDate = null
{http://www.alfresco.org/model/bpm/1.0}description = asd
{http://www.alfresco.org/model/bpm/1.0}priority = 2
{http://www.alfresco.org/model/bpm/1.0}status = Not Yet Started
{http://www.alfresco.org/model/bpm/1.0}package = workspace://SpacesStore/ee203aff-9842-4d7b-b7e9-0f40b0b8a3b3
{http://www.alfresco.org/model/bpm/1.0}startDate = Fri Mar 16 12:56:26 IST 2018
{http://www.alfresco.org/model/bpm/1.0}comment = sdadasdasdasd
{http://www.alfresco.org/model/bpm/1.0}hiddenTransitions = 

您可以添加代码说明您如何尝试检索该属性吗?@KrutikJayswal我已经添加了代码检查此[@KrutikJayswal您是否有在生产中使用alfresco社区版的经验?如果有,您遇到了什么问题?完美答案。
{http://www.alfresco.org/model/content/1.0}created = Fri Mar 16 12:56:26 IST 2018
{http://www.alfresco.org/model/bpm/1.0}percentComplete = 0
{http://www.alfresco.org/model/bpm/1.0}pooledActors = []
{http://www.alfresco.org/model/content/1.0}name = Task
{http://www.alfresco.org/model/bpm/1.0}packageActionGroup = 
{http://www.alfresco.org/model/bpm/1.0}reassignable = true
{http://www.alfresco.org/model/bpm/1.0}outcomePropertyName = {http://www.alfresco.org/model/workflow/1.0}reviewOutcome
{http://www.alfresco.org/model/content/1.0}owner = test
{http://www.alfresco.org/model/workflow/1.0}reviewOutcome = Reject
{http://www.alfresco.org/model/bpm/1.0}taskId = 1889
{http://www.alfresco.org/model/bpm/1.0}packageItemActionGroup = edit_package_item_actions
{http://www.alfresco.org/model/bpm/1.0}dueDate = null
{http://www.alfresco.org/model/bpm/1.0}completionDate = null
{http://www.alfresco.org/model/bpm/1.0}description = asd
{http://www.alfresco.org/model/bpm/1.0}priority = 2
{http://www.alfresco.org/model/bpm/1.0}status = Not Yet Started
{http://www.alfresco.org/model/bpm/1.0}package = workspace://SpacesStore/ee203aff-9842-4d7b-b7e9-0f40b0b8a3b3
{http://www.alfresco.org/model/bpm/1.0}startDate = Fri Mar 16 12:56:26 IST 2018
{http://www.alfresco.org/model/bpm/1.0}comment = sdadasdasdasd
{http://www.alfresco.org/model/bpm/1.0}hiddenTransitions =