AnsweredAssumed Answered

Transaction Management: no rollback?

Question asked by gant on Oct 27, 2011
Latest reply on Oct 27, 2011 by trademak

I try to figure out how transaction management exactly works.

I have a process model like this:

In my 'ServiceTask' I call a spring-wired service that throws an Exception. According to the default Transaction Mgmt Strategy described here:, I'd expect that the transaction would be rolled back and

Map<String, Object> vars = new HashMap<String, Object>();
       vars.put("exceptionService", new ExceptionThrowingService());
      String processInstanceId = runtimeService.startProcessInstanceByKey("errorHandlingErrorNoBoundaryEvent", vars).getId();

in my JUnit test would evaluate to true.

Instead, runtimeService#signal crashes with an 'ActivitiException: Error while evaluating expressions'. What I caused by throwing an exception in my service.

So why is this transaction not rolled back?

I'm using Activiti 5.6