AnsweredAssumed Answered

Causing exception while claim a task

Question asked by ccp999 on Oct 27, 2015
Latest reply on Nov 2, 2015 by vasile.dirla
Hi,

I'm new to Activiti.  I want to know in what situations that claim a task could lead to runtime exception.
I attached my process file.
I couldn't figure it out why it has the following error msg while I try to first claim the task of Edit KPI (5137):

org.activiti.engine.ActivitiTaskAlreadyClaimedException: Task '5137' is already claimed by someone else.
    at org.activiti.engine.impl.cmd.ClaimTaskCmd.execute(ClaimTaskCmd.java:41)
    at org.activiti.engine.impl.cmd.ClaimTaskCmd.execute(ClaimTaskCmd.java:23)
    at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59)
    at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
    at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
    at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
    at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
    at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
    at com.activiti.addon.cluster.interceptor.GatherMetricsCommandInterceptor.execute(GatherMetricsCommandInterceptor.java:57)
    at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
    at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
    at org.activiti.engine.impl.TaskServiceImpl.claim(TaskServiceImpl.java:167)

I'm using Alfresco Enterprise 1.3.2.

Cheers,

CCP



Outcomes