activiti 5.13中java service可以使用各种 Activiti service了

在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 {
    RuntimeService runtimeService = execution.getEngineServices().getRuntimeService();
    runtimeService.startProcessInstanceByKey("oneTaskProcess");
}

}

你可能感兴趣的:(java)