org.activiti.spring.ProcessEngineFactoryBean Java Examples

The following examples show how to use org.activiti.spring.ProcessEngineFactoryBean. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #2
Source File: ProxyProcessEngineFactoryBean.java    From lemon with Apache License 2.0 5 votes vote down vote up
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);
}
 
Example #3
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #4
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #5
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #6
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #7
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #8
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #9
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #10
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #11
Source File: CreateEngineUseSpringProxy.java    From activiti-in-action-codes with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #12
Source File: ServiceSpringModuleConfig.java    From herd with Apache License 2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example #13
Source File: AbstractProcessEngineConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
public ProcessEngineFactoryBean springProcessEngineBean(SpringProcessEngineConfiguration configuration) {
  ProcessEngineFactoryBean processEngineFactoryBean = new ProcessEngineFactoryBean();
  processEngineFactoryBean.setProcessEngineConfiguration(configuration);
  return processEngineFactoryBean;
}
 
Example #14
Source File: ActivitiConfig.java    From MicroCommunity with Apache License 2.0 4 votes vote down vote up
@Bean
public ProcessEngineFactoryBean processEngine() {
    ProcessEngineFactoryBean processEngineFactoryBean = new ProcessEngineFactoryBean();
    processEngineFactoryBean.setProcessEngineConfiguration(springProcessEngineConfiguration());
    return processEngineFactoryBean;
}
 
Example #15
Source File: ActivitiEngineConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean(name = "processEngineFactoryBean")
public ProcessEngineFactoryBean processEngineFactoryBean() {
  ProcessEngineFactoryBean factoryBean = new ProcessEngineFactoryBean();
  factoryBean.setProcessEngineConfiguration(processEngineConfiguration());
  return factoryBean;
}
 
Example #16
Source File: ActivitiEngineConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean(name = "processEngineFactoryBean")
public ProcessEngineFactoryBean processEngineFactoryBean() {
  ProcessEngineFactoryBean factoryBean = new ProcessEngineFactoryBean();
  factoryBean.setProcessEngineConfiguration(processEngineConfiguration());
  return factoryBean;
}
 
Example #17
Source File: JPAActivitiEngineConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean(name = "processEngineFactoryBean")
public ProcessEngineFactoryBean processEngineFactoryBean() {
  ProcessEngineFactoryBean factoryBean = new ProcessEngineFactoryBean();
  factoryBean.setProcessEngineConfiguration(processEngineConfiguration());
  return factoryBean;
}
 
Example #18
Source File: AbstractProcessEngineAutoConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
public ProcessEngineFactoryBean processEngine(SpringProcessEngineConfiguration configuration) throws Exception {
  return super.springProcessEngineBean(configuration);
}