使用SWIMLANE指定ACTORID为什么一直为NULL?

sdliubo 2007-05-10
在流程中
< swimlane name="salesman">
< assignment expression="user(ernie)" />
< /swimlane>
这样定义了SWIMLANE
< task swimlane="salesman">

流程布署后查看jbpm_swimlaneinstance表发现其中的actorid值为NULL

流程启动后相关任务的ACTORID也为NULL 请问一下大家这是怎么回事啊?是不是因为我的数据库中的用户表中没有用户ernie的信息?还是什么原因,谢谢了。
sdliubo 2007-05-11
原因找到了 是因为我使用的Swimlane 在 start task中
在其它地方使用没有关系,查看了说明 ,没有发现是什么原因,搞不懂:(
11.7. Swimlane in start task
A swimlane can be associated with the start task to capture the process initiator.

A task can be specified in a start-state. That task be associated with a swimlane. When a new task instance is created for such a task, the current authenticated actor will be captured with Authentication.getAuthenticatedActorId() and that actor will be stored in the swimlane of the start task.

piaoling 2007-05-17
如果通过你说的上述配置,actorid为null的话,那只有一个原因,你的jbpm_user表中没有这个用户
sdliubo 2007-05-18
jbpm_user 有用户
那种情况也只出现在start state节点的中的Task 时
在其它 taskNode中的Task任务的分配就一切正常
delphidoc 2007-06-22
start-state中的task需要你手工创建

TaskInstance taskInstance = instance.getTaskMgmtInstance().createStartTaskInstance();

因为开始节点是一个流程的启动,它里面的参与者也必须你在代码中添加:
taskInstance.setActorId("delphidoc");

Global site tag (gtag.js) - Google Analytics