org.flowable.spring.boot.EngineConfigurationConfigurer Java Examples
The following examples show how to use
org.flowable.spring.boot.EngineConfigurationConfigurer.
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: FlowableDebuggerConfiguration.java From flowable-engine with Apache License 2.0 | 6 votes |
@Bean public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> debuggerProcessEngineConfigurationConfigurer( FlowableEngineAgendaFactory agendaFactory) { return processEngineConfiguration -> { processEngineConfiguration.setEnableDatabaseEventLogging(true); processEngineConfiguration.setAgendaFactory(agendaFactory); processEngineConfiguration.addCustomJobHandler(new BreakpointJobHandler()); List<AsyncRunnableExecutionExceptionHandler> customAsyncRunnableExecutionExceptionHandlers = processEngineConfiguration.getCustomAsyncRunnableExecutionExceptionHandlers(); ArrayList<AsyncRunnableExecutionExceptionHandler> exceptionHandlers; if (customAsyncRunnableExecutionExceptionHandlers == null) { exceptionHandlers = new ArrayList<>(); } else { exceptionHandlers = new ArrayList<>(customAsyncRunnableExecutionExceptionHandlers); } exceptionHandlers.add(new DefaultDebuggerExecutionExceptionHandler()); processEngineConfiguration.setCustomAsyncRunnableExecutionExceptionHandlers(exceptionHandlers); }; }
Example #2
Source File: EventRegistryAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "eventProcessEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> eventProcessEngineConfigurationConfigurer( EventRegistryEngineConfigurator eventRegistryEngineConfigurator) { return processEngineConfiguration -> processEngineConfiguration.setEventRegistryConfigurator(eventRegistryEngineConfigurator); }
Example #3
Source File: DmnEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "dmnAppEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringAppEngineConfiguration> dmnAppEngineConfigurationConfigurer( DmnEngineConfigurator dmnEngineConfigurator ) { return appEngineConfiguration -> appEngineConfiguration.addConfigurator(dmnEngineConfigurator); }
Example #4
Source File: DmnEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "dmnProcessEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> dmnProcessEngineConfigurationConfigurer( DmnEngineConfigurator dmnEngineConfigurator ) { return processEngineConfiguration -> processEngineConfiguration.addConfigurator(dmnEngineConfigurator); }
Example #5
Source File: ContentEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "contentAppEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringAppEngineConfiguration> contentAppEngineConfigurationConfigurer( ContentEngineConfigurator contentEngineConfigurator) { return appEngineConfiguration -> appEngineConfiguration.addConfigurator(contentEngineConfigurator); }
Example #6
Source File: IdmEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "idmAppEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringAppEngineConfiguration> idmAppEngineConfigurationConfigurer( IdmEngineConfigurator idmEngineConfigurator ) { return appEngineConfiguration -> appEngineConfiguration.setIdmEngineConfigurator(idmEngineConfigurator); }
Example #7
Source File: IdmEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "idmProcessEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> idmProcessEngineConfigurationConfigurer( IdmEngineConfigurator idmEngineConfigurator ) { return processEngineConfiguration -> processEngineConfiguration.setIdmEngineConfigurator(idmEngineConfigurator); }
Example #8
Source File: FormEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "formAppEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringAppEngineConfiguration> formAppEngineConfigurationConfigurer( FormEngineConfigurator formEngineConfigurator) { return appEngineConfiguration -> appEngineConfiguration.addConfigurator(formEngineConfigurator); }
Example #9
Source File: FormEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "formProcessEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> formProcessEngineConfigurationConfigurer( FormEngineConfigurator formEngineConfigurator) { return processEngineConfiguration -> processEngineConfiguration.addConfigurator(formEngineConfigurator); }
Example #10
Source File: EventRegistryAutoConfiguration.java From flowable-engine with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(name = "eventAppEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringAppEngineConfiguration> eventAppEngineConfigurationConfigurer( EventRegistryEngineConfigurator eventRegistryEngineConfigurator) { return appEngineConfiguration -> appEngineConfiguration.setEventRegistryConfigurator(eventRegistryEngineConfigurator); }
Example #11
Source File: AppEngineAutoConfigurationTest.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> customIdGeneratorConfigurer() { return engineConfiguration -> engineConfiguration.setIdGenerator(new DbIdGenerator()); }
Example #12
Source File: CustomUserEngineConfigurerConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> customUserSpringProcessEngineConfigurer() { return this::configurationInvoked; }
Example #13
Source File: CustomUserEngineConfigurerConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringEventRegistryEngineConfiguration> customUserSpringEventRegistryEngineConfigurer() { return this::configurationInvoked; }
Example #14
Source File: CustomUserEngineConfigurerConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringIdmEngineConfiguration> customUserSpringIdmEngineConfigurer() { return this::configurationInvoked; }
Example #15
Source File: CustomUserEngineConfigurerConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringFormEngineConfiguration> customUserSpringFormEngineConfigurer() { return this::configurationInvoked; }
Example #16
Source File: CustomUserEngineConfigurerConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringDmnEngineConfiguration> customUserSpringDmnEngineConfigurer() { return this::configurationInvoked; }
Example #17
Source File: CustomUserEngineConfigurerConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringContentEngineConfiguration> customUserSpringContentEngineConfigurer() { return this::configurationInvoked; }
Example #18
Source File: CustomUserEngineConfigurerConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringCmmnEngineConfiguration> customUserSpringCmmnEngineConfigurer() { return this::configurationInvoked; }
Example #19
Source File: CustomUserEngineConfigurerConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringAppEngineConfiguration> customUserSpringAppEngineConfigurer() { return this::configurationInvoked; }
Example #20
Source File: ProcessEngineAutoConfigurationTest.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> customIdGeneratorConfigurer() { return engineConfiguration -> engineConfiguration.setIdGenerator(new DbIdGenerator()); }
Example #21
Source File: IdmEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnBean(PasswordEncoder.class) @ConditionalOnMissingBean(name = "passwordEncoderIdmEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringIdmEngineConfiguration> passwordEncoderIdmEngineConfigurationConfigurer(PasswordEncoder passwordEncoder) { return idmEngineConfiguration -> idmEngineConfiguration.setPasswordEncoder(new SpringEncoder(passwordEncoder)); }
Example #22
Source File: FlowableJpaAutoConfigurationTest.java From flowable-engine with Apache License 2.0 | 4 votes |
@Test public void withEntityManagerFactoryBeanAndSpringProcessEngineConfigurationClass() { contextRunner .withConfiguration(AutoConfigurations.of( DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class )) .run(context -> { assertThat(context) .hasSingleBean(FlowableJpaAutoConfiguration.class) .hasBean("jpaProcessEngineConfigurer"); EntityManagerFactory entityManagerFactory = context.getBean(EntityManagerFactory.class); @SuppressWarnings("unchecked") EngineConfigurationConfigurer<SpringProcessEngineConfiguration> jpaProcessEngineConfigurer = (EngineConfigurationConfigurer<SpringProcessEngineConfiguration>) context .getBean("jpaProcessEngineConfigurer", EngineConfigurationConfigurer.class); SpringProcessEngineConfiguration configuration = new SpringProcessEngineConfiguration(); assertThat(configuration.getJpaEntityManagerFactory()) .as("Process JPA Entity Manager Factory") .isNull(); assertThat(configuration.isJpaHandleTransaction()) .as("Process JPA handle transaction") .isFalse(); assertThat(configuration.isJpaCloseEntityManager()) .as("Process JPA close entity manager") .isFalse(); jpaProcessEngineConfigurer.configure(configuration); assertThat(configuration.getJpaEntityManagerFactory()) .as("Process JPA Entity Manager Factory") .isSameAs(entityManagerFactory); assertThat(configuration.isJpaHandleTransaction()) .as("Process JPA handle transaction") .isFalse(); assertThat(configuration.isJpaCloseEntityManager()) .as("Process JPA close entity manager") .isFalse(); }); }
Example #23
Source File: FlowableLdapAutoConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean public EngineConfigurationConfigurer<SpringIdmEngineConfiguration> ldapIdmEngineConfigurer(LDAPConfiguration ldapConfiguration) { return idmEngineConfiguration -> idmEngineConfiguration .setIdmIdentityService(new LDAPIdentityServiceImpl(ldapConfiguration, createCache(idmEngineConfiguration, ldapConfiguration))); }
Example #24
Source File: ContentEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(name = "contentProcessEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> contentProcessEngineConfigurationConfigurer( ContentEngineConfigurator contentEngineConfigurator) { return processEngineConfiguration -> processEngineConfiguration.addConfigurator(contentEngineConfigurator); }
Example #25
Source File: CmmnEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(name = "cmmnProcessEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringProcessEngineConfiguration> cmmnProcessEngineConfigurationConfigurer( CmmnEngineConfigurator cmmnEngineConfigurator) { return processEngineConfiguration -> processEngineConfiguration.addConfigurator(cmmnEngineConfigurator); }
Example #26
Source File: CmmnEngineAutoConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean(name = "cmmnAppEngineConfigurationConfigurer") public EngineConfigurationConfigurer<SpringAppEngineConfiguration> cmmnAppEngineConfigurationConfigurer(CmmnEngineConfigurator cmmnEngineConfigurator) { return appEngineConfiguration -> appEngineConfiguration.addConfigurator(cmmnEngineConfigurator); }