gpt4 book ai didi

java - 如何确定哪个用户被分配到露天任务?

转载 作者:行者123 更新时间:2023-11-30 07:58:45 26 4
gpt4 key购买 nike

在露天执行的命令 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 =

Text 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$99");
var props = task.getProperties();
props["cm:owner"] = "admin";
//props.owner = "admin";
task.setProperties(props);
logger.info(task.properties);

关于java - 如何确定哪个用户被分配到露天任务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40148781/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com