在http://www.jorambarrez.be/blog/2012/10/25/call-a-service-in-a-service-tas/
一文中,提到原来在acitivit 5.11后,在service task中,可以调用各类acitivi 本身的
service了,而且都是在一个事务中的:
如:
public
class StartProcessInstanceTestDelegate implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
Runtime
Service runtimeService = execution.getEngineServices().getRuntimeService();
runtimeService.startProcessInstanceByKey("oneTaskProcess");
}
}