processEngineConfiguration怎么没有addConfigurator方法
解决方法:
ProcessEngineConfiguration中没有addConfigurator方法,而SpringProcessEngineConfiguration和StandaloneProcessEngineConfiguration就有addConfigurator方法
springboot如何配置使用SpringProcessEngineConfiguration:
@Component
public class ActivitiConfig implements ProcessEngineConfigurationConfigurer {
@Override
public void configure(SpringProcessEngineConfiguration
processEngineConfiguration) {
SecureJavascriptConfigurator configurator = new SecureJavascriptConfigurator()
.setWhiteListedClasses(new HashSet<String>(Arrays.asList("java.util.ArrayList")))
.setMaxStackDepth(10)
.setMaxScriptExecutionTime(3000L)
.setMaxMemoryUsed(3145728L)
.setNrOfInstructionsBeforeStateCheckCallback(10);
processEngineConfiguration.addConfigurator(configurator);
}
}