本文整理汇总了Java中org.activiti.spring.ProcessEngineFactoryBean类的典型用法代码示例。如果您正苦于以下问题:Java ProcessEngineFactoryBean类的具体用法?Java ProcessEngineFactoryBean怎么用?Java ProcessEngineFactoryBean使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProcessEngineFactoryBean类属于org.activiti.spring包,在下文中一共展示了ProcessEngineFactoryBean类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: afterPropertiesSet
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
public void afterPropertiesSet() throws Exception {
if (!enabled) {
return;
}
ProcessEngineFactoryBean processEngineFactoryBean = new ProcessEngineFactoryBean();
processEngineFactoryBean
.setProcessEngineConfiguration(processEngineConfiguration);
processEngineFactoryBean.setApplicationContext(applicationContext);
ProcessEngine processEngine = processEngineFactoryBean.getObject();
proxyProcessEngine.setProcessEngine(processEngine);
}
示例2: createEngineUseSpring
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Test
public void createEngineUseSpring() {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext-test.xml");
ProcessEngineFactoryBean factoryBean = context.getBean(ProcessEngineFactoryBean.class);
assertNotNull(factoryBean);
RuntimeService bean = context.getBean(RuntimeService.class);
assertNotNull(bean);
}
示例3: activitiProcessEngine
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
/**
* Gets the Activiti Process Engine.
*
* @param activitiProcessEngineConfiguration the Activiti process engine configuration to use.
*
* @return the Activiti Process Engine.
*/
@Bean(destroyMethod = "destroy")
public ProcessEngineFactoryBean activitiProcessEngine(SpringProcessEngineConfiguration activitiProcessEngineConfiguration)
{
// Create and return a factory bean that can return an Activiti process engine based on our Activiti process engine configuration bean.
ProcessEngineFactoryBean bean = new ProcessEngineFactoryBean();
bean.setProcessEngineConfiguration(activitiProcessEngineConfiguration);
return bean;
}
示例4: processEngineFactoryBean
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public ProcessEngineFactoryBean processEngineFactoryBean() {
ProcessEngineFactoryBean engine = new ProcessEngineFactoryBean();
engine.setProcessEngineConfiguration(springProcessEngineConfiguration());
return engine;
}
示例5: createProcessEngine
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
private AbstractBeanDefinition createProcessEngine(){
BeanDefinitionBuilder bd = genericBeanDefinition(ProcessEngineFactoryBean.class);
bd.addPropertyReference("processEngineConfiguration","processEngineConfiguration");
bd.setDestroyMethodName("destroy");
return bd.getBeanDefinition();
}
示例6: repositoryService
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public RepositoryService repositoryService(ProcessEngineFactoryBean pefb) throws Exception {
return pefb.getObject().getRepositoryService();
}
示例7: runtimeService
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public RuntimeService runtimeService(ProcessEngineFactoryBean pefb) throws Exception {
return pefb.getObject().getRuntimeService();
}
示例8: historyService
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public HistoryService historyService(ProcessEngineFactoryBean pefb) throws Exception {
return pefb.getObject().getHistoryService();
}
示例9: managementService
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public ManagementService managementService(ProcessEngineFactoryBean pefb) throws Exception {
return pefb.getObject().getManagementService();
}
示例10: identityService
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public IdentityService identityService(ProcessEngineFactoryBean pefb) throws Exception {
return pefb.getObject().getIdentityService();
}
示例11: taskService
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public TaskService taskService(ProcessEngineFactoryBean pefb) throws Exception {
return pefb.getObject().getTaskService();
}
示例12: processEngine
import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
public ProcessEngine processEngine() throws Exception {
ProcessEngineFactoryBean processEngineFactoryBean = new ProcessEngineFactoryBean();
processEngineFactoryBean.setApplicationContext(this.applicationContext());
processEngineFactoryBean.setProcessEngineConfiguration(processEngineConfiguration());
return processEngineFactoryBean.getObject();
}