Activiti + spring + transaction + rollback -
i want test integration of spring , activiti, stuck confusing problem. have workflow 2 service task (using jpa repository saveandflush method update database) , b
in service a, actively throw new exception , transaction rollbacks, , flow stops. well, it's okay.
however, how can rollback service , flow continue service b? because if service throws exception, flow stopped, , if exception caught ( flow continues), service not rollback.
i use jpa repository automatically handle transaction, change manual mode take lot of efforts now.
probably need new transaction every service in flow , catch exception.
Comments
Post a Comment