AnsweredAssumed Answered

Spring bean with execution in sub process

Question asked by butik on Nov 28, 2014
Latest reply on Dec 2, 2014 by butik

I have used spring bean in subprocess in the service task. This bean should do some actions with user and according to result, define which transition it should go.


T accomplished it I'm passing ActivityExecution execution
to bean.

After executing process I got exception (full log attached):
11:15:29,119 [main] DEBUG org.activiti.engine.impl.interceptor.CommandContext  - Error while closing command context
org.activiti.engine.impl.pvm.PvmException: already taking a transition
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(
   at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(
   at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(
   at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(
   at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(
   at org.activiti.engine.impl.bpmn.behavior.ServiceTaskExpressionActivityBehavior.execute(
   at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(
   at org.activiti.engine.impl.interceptor.CommandContext.performOperation(


Unit test for this error attached as

Could you please tell is it a bug or I used service task and spring in wrong way?