在activiti 7.x版本中,getFormService()方法的替代方法是使用ProcessEngineConfiguration类的getFormEngineRepositoryService()方法,getIdentityService()方法的替代方法是使用ProcessEngineConfiguration类的getIdentityManager()方法。
以下是使用代码示例的解决方法:
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.FormEngineRepositoryService;
ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
FormEngineRepositoryService formEngineRepositoryService = processEngineConfiguration.getFormEngineRepositoryService();
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.IdentityManager;
ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
IdentityManager identityManager = processEngineConfiguration.getIdentityManager();