【问题标题】:How detemine what user was assigned to the task in alfresco?如何确定在露天任务中分配了哪些用户?
【发布时间】:2016-10-20 08:04:04
【问题描述】:

在露天执行的命令desc task activiti$99 给出以下信息:

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除外)。

这是否意味着该任务未分配?如何确定分配给任务的用户?

【问题讨论】:

  • 不,这并不意味着任务未分配。您可以通过启动一个开箱即用的工作流程,将其分配给某人,然后像您在此处所做的那样在控制台中转储该正在运行的工作流程的任务来向自己证明这一点。

标签: java task workflow alfresco


【解决方案1】:

此任务未分配:

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

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

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

任务的所有者是当前的受让人。 bpm:assignee 属性 实际上是用于当前受让人可以设置的任务输入 下一个任务的受让人,即当他被分配任务时 他必须决定谁将是下一个处理 工作流程。只要您不包含 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);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-21
    • 1970-01-01
    • 2021-10-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-17
    • 2012-05-02
    相关资源
    最近更新 更多