uflo icon indicating copy to clipboard operation
uflo copied to clipboard

修改任务指派时报错,Task "+taskId+" is not the owner,So can not change task assignee.

Open smartBun opened this issue 4 years ago • 0 comments

为了您的问题能得到及时准确解答,请认真填写下面各个选项,感谢您的配合。

  • 当前使用的UFlo的具体版本号:2.1.5

  • 遇到的问题详细描述:

看了下源码,认领任务接口只修改了当前任务的assignee与state属性。认领后owner属性为null. 此时如果需要更改指派人,changeTaskAssignee 接口中又检查了owner 必须非空。

  • 涉及到的异常信息(完整异常信息):

java.lang.IllegalArgumentException: Task 2008 is not the owner,So can not change task assignee. at com.bstek.uflo.command.impl.ChangeTaskAssigneeCommand.execute(ChangeTaskAssigneeCommand.java:41) at com.bstek.uflo.command.impl.SpringTransactionCommandService$1.doInTransaction(SpringTransactionCommandService.java:53) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) at com.bstek.uflo.command.impl.SpringTransactionCommandService.executeCommand(SpringTransactionCommandService.java:51) at com.bstek.uflo.service.impl.DefaultTaskService.changeTaskAssignee(DefaultTaskService.java:334)

  • 相关截图:

认领

smartBun avatar Apr 09 '20 03:04 smartBun