Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smartBun opened this issue Apr 9, 2020 · 0 comments

Comments

@smartBun
Copy link

smartBun commented Apr 9, 2020

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

  • 当前使用的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)

  • 相关截图:

认领

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant