当前位置: 首页>>代码示例>>Java>>正文


Java ProcessEngineFactoryBean类代码示例

本文整理汇总了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);
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:14,代码来源:ProxyProcessEngineFactoryBean.java

示例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);
}
 
开发者ID:shawn-gogh,项目名称:myjavacode,代码行数:10,代码来源:CreateEngineUseSpringProxy.java

示例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;
}
 
开发者ID:FINRAOS,项目名称:herd,代码行数:16,代码来源:ServiceSpringModuleConfig.java

示例4: processEngineFactoryBean

import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public ProcessEngineFactoryBean processEngineFactoryBean() {
    ProcessEngineFactoryBean engine = new ProcessEngineFactoryBean();
    engine.setProcessEngineConfiguration(springProcessEngineConfiguration());
    return engine;

}
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:8,代码来源:CfWebWorkflowConfig.java

示例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();
}
 
开发者ID:tryndamere,项目名称:bpm-adapter,代码行数:7,代码来源:ActivitiEngineInitialize.java

示例6: repositoryService

import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public RepositoryService repositoryService(ProcessEngineFactoryBean pefb) throws Exception {
    return pefb.getObject().getRepositoryService();
}
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:5,代码来源:CfWebWorkflowConfig.java

示例7: runtimeService

import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public RuntimeService runtimeService(ProcessEngineFactoryBean pefb) throws Exception {
    return pefb.getObject().getRuntimeService();
}
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:5,代码来源:CfWebWorkflowConfig.java

示例8: historyService

import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public HistoryService historyService(ProcessEngineFactoryBean pefb) throws Exception {
    return pefb.getObject().getHistoryService();
}
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:5,代码来源:CfWebWorkflowConfig.java

示例9: managementService

import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public ManagementService managementService(ProcessEngineFactoryBean pefb) throws Exception {
    return pefb.getObject().getManagementService();
}
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:5,代码来源:CfWebWorkflowConfig.java

示例10: identityService

import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public IdentityService identityService(ProcessEngineFactoryBean pefb) throws Exception {
    return pefb.getObject().getIdentityService();
}
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:5,代码来源:CfWebWorkflowConfig.java

示例11: taskService

import org.activiti.spring.ProcessEngineFactoryBean; //导入依赖的package包/类
@Bean
public TaskService taskService(ProcessEngineFactoryBean pefb) throws Exception {
    return pefb.getObject().getTaskService();
}
 
开发者ID:rafizanbaharum,项目名称:cfi-gov,代码行数:5,代码来源:CfWebWorkflowConfig.java

示例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();
}
 
开发者ID:joshlong,项目名称:javaconfig-ftw,代码行数:7,代码来源:DefaultActivitiConfigurer.java


注:本文中的org.activiti.spring.ProcessEngineFactoryBean类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。