注意对于这种方式,你需要在 Spring 配置中(在上文的例子中它是自动注入的)定义一个 org.activiti.engine.test.ActivitiRulebean