在alfresco中如何确定分配给任务的用户



desc task activiti$99在alfresco中执行的命令如下:

id: activiti$99
name: sc:startProcesstask
title: Add information to request
description: Add information to request
state: IN_PROGRESS
path: activiti$41
transitions: 1
 transition: Next , title: Задача выполнена , desc: Задача выполнена
properties: 28
 {http://www.alfresco.org/model/bpm/1.0}workflowDueDate = null
 {http://www.alfresco.org/model/content/1.0}created = Thu Oct 20 13:58:28 KRAT 2016
 {http://www.alfresco.org/model/bpm/1.0}workflowDescription = 
 {http://www.alfresco.org/model/bpm/1.0}percentComplete = 0
 {http://www.mycompany.com/model/request-workflow/1.0}comment = 
 {http://www.mycompany.com/model/request-workflow/1.0}requestId = 
 {http://www.mycompany.com/model/request-workflow/1.0}codeForArchive = 
 {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 = add_package_item_actions
 {http://www.alfresco.org/model/bpm/1.0}reassignable = true
 {http://www.alfresco.org/model/bpm/1.0}workflowPriority = 2
 {http://www.alfresco.org/model/content/1.0}owner = null
 {http://www.alfresco.org/model/bpm/1.0}taskId = 99
 {http://www.mycompany.com/model/request-workflow/1.0}name = 
 {http://www.mycompany.com/model/request-workflow/1.0}requestDate = null
 {http://www.alfresco.org/model/bpm/1.0}packageItemActionGroup = start_package_item_actions
 {http://www.mycompany.com/model/request-workflow/1.0}subjectMatter = 
 {http://www.alfresco.org/model/bpm/1.0}dueDate = null
 {http://www.alfresco.org/model/bpm/1.0}sendEMailNotifications = false
 {http://www.alfresco.org/model/bpm/1.0}completionDate = null
 {http://www.alfresco.org/model/bpm/1.0}description = Add information to request
 {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/2216f7ca-fabe-4337-a1c5-f9feea46ca08
 {http://www.alfresco.org/model/bpm/1.0}startDate = Thu Oct 20 13:58:28 KRAT 2016
 {http://www.alfresco.org/model/bpm/1.0}comment = 
 {http://www.alfresco.org/model/bpm/1.0}hiddenTransitions = 

文本state: IN_PROGRESS告诉任务尚未完成。所以它应该分配给某人,但我看不到任何assined关键字(除了reassignable = truereassignable = true)。

是否表示任务未分配?如何确定分配给任务的用户?

此任务未分配:

{http://www.alfresco.org/model/content/1.0}owner = null

任务的owner (cm:owner)属性表示当前受让人。

https://community.alfresco.com/thread/186243-assignee-versus-owner

任务的所有者是当前的受让人。受让人属性实际上是用于任务输入,当前受让人可以通过该任务输入设置下一个任务的受让人,即当他被分配任务时他必须决定谁将是下一个排队处理的人工作流。只要不包含bpm:assignee属性或在你的任务模型中,你永远不会在你的任务中看到它

你可以重新分配这个任务,例如在JavaScript中:

var task = workflow.getTask("activiti$99");
var props = task.getProperties();
props["cm:owner"] = "admin";
//props.owner = "admin";
task.setProperties(props);
logger.info(task.properties);

最新更新