我是靠谱客的博主 直率蓝天,最近开发中收集的这篇文章主要介绍activiti报错:org.activiti.engine.ActivitiTaskAlreadyClaimedException: Task ‘12502‘ is already claimed,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
在运行activiti时,报错信息如下:
Exception in thread "main" org.activiti.engine.ActivitiTaskAlreadyClaimedException: Task '12502' is already claimed by someone else.
at org.activiti.engine.impl.cmd.ClaimTaskCmd.execute(ClaimTaskCmd.java:50)
at org.activiti.engine.impl.cmd.ClaimTaskCmd.execute(ClaimTaskCmd.java:24)
at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:56)
at org.activiti.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:37)
at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:78)
at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:57)
at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:42)
at org.activiti.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:48)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:63)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:35)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:44)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:39)
at org.activiti.engine.impl.TaskServiceImpl.claim(TaskServiceImpl.java:184)
at com.yao.day05.GroupTest.main(GroupTest.java:78)
查看该任务发现已经存在任务执行人,所以设置候选用户时报错如上图。
对已有任务执行人,不应再设置候选用户。
最后
以上就是直率蓝天为你收集整理的activiti报错:org.activiti.engine.ActivitiTaskAlreadyClaimedException: Task ‘12502‘ is already claimed的全部内容,希望文章能够帮你解决activiti报错:org.activiti.engine.ActivitiTaskAlreadyClaimedException: Task ‘12502‘ is already claimed所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复