如何确定哪个用户被分配到露天任务?
How detemine what user was assigned to the task in alfresco?
在露天执行的命令 desc task activiti
给出了以下内容:
id: activiti
name: sc:startProcesstask
title: Add information to request
description: Add information to request
state: IN_PROGRESS
path: activiti
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
任务的所有者 (cm:owner
) 属性 表示当前受让人。
https://community.alfresco.com/thread/186243-assignee-versus-owner
The owner of a task is the current assignee. The bpm:assignee property
is actually for a task input by which the current assignee can set the
assignee for the next task, i.e. when he has been assigned a task
where he must decide who will be the next in line to process the
workflow. As long as you don't include the bpm:assignee property or
its aspect in your task model, you will never see it in your task
properties at runtime.
您可以重新分配此任务,例如在 JavaScript:
var task = workflow.getTask("activiti");
var props = task.getProperties();
props["cm:owner"] = "admin";
//props.owner = "admin";
task.setProperties(props);
logger.info(task.properties);
在露天执行的命令 desc task activiti
给出了以下内容:
id: activiti
name: sc:startProcesstask
title: Add information to request
description: Add information to request
state: IN_PROGRESS
path: activiti
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
任务的所有者 (cm:owner
) 属性 表示当前受让人。
https://community.alfresco.com/thread/186243-assignee-versus-owner
The owner of a task is the current assignee. The bpm:assignee property is actually for a task input by which the current assignee can set the assignee for the next task, i.e. when he has been assigned a task where he must decide who will be the next in line to process the workflow. As long as you don't include the bpm:assignee property or its aspect in your task model, you will never see it in your task properties at runtime.
您可以重新分配此任务,例如在 JavaScript:
var task = workflow.getTask("activiti");
var props = task.getProperties();
props["cm:owner"] = "admin";
//props.owner = "admin";
task.setProperties(props);
logger.info(task.properties);