@Test public void taskAssigningRuntimeServerExtension() { System.setProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED, KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED_PREVIOUS_VALUE); TaskAssigningRuntimeKieServerExtension extension = (TaskAssigningRuntimeKieServerExtension) configuration.taskAssigningRuntimeServerExtension(); assertTrue(extension.isActive()); configuration.handleContextRefreshEvent(mock(ContextClosedEvent.class)); assertEquals(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED_PREVIOUS_VALUE, System.getProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED)); }
@Bean @ConditionalOnMissingBean(name = "taskAssigningRuntimeServerExtension") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) public KieServerExtension taskAssigningRuntimeServerExtension() { runtimeDisabledValue = System.getProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED); System.setProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED, Boolean.FALSE.toString()); return new TaskAssigningRuntimeKieServerExtension(); }
TaskAssigningRuntimeKieServerAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "taskAssigningRuntimeServerExtension") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) public KieServerExtension taskAssigningRuntimeServerExtension() { runtimeDisabledValue = System.getProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED); System.setProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED, Boolean.FALSE.toString()); return new TaskAssigningRuntimeKieServerExtension(); } }
TaskAssigningRuntimeKieServerAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "taskAssigningRuntimeServerExtension") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) public KieServerExtension taskAssigningRuntimeServerExtension() { runtimeDisabledValue = System.getProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED); System.setProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED, Boolean.FALSE.toString()); return new TaskAssigningRuntimeKieServerExtension(); }  }
TaskAssigningRuntimeKieServerAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "taskAssigningRuntimeServerExtension") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) public KieServerExtension taskAssigningRuntimeServerExtension() { runtimeDisabledValue = System.getProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED); System.setProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED, Boolean.FALSE.toString()); return new TaskAssigningRuntimeKieServerExtension(); }  @Bean @ConditionalOnMissingBean(name = "taskAssigningRuntimeServerExtension") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) KieServerExtension taskAssigningRuntimeServerExtension(); @Bean @ConditionalOnMissingBean(name = "taskAssigningPersistenceUnitPostProcessor") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) TaskAssigningPersistenceUnitPostProcessor taskAssigningPersistenceUnitPostProcessor(); @EventListener void handleContextRefreshEvent(ContextClosedEvent evt); }
TaskAssigningRuntimeKieServerAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "taskAssigningRuntimeServerExtension") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) public KieServerExtension taskAssigningRuntimeServerExtension() { runtimeDisabledValue = System.getProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED); System.setProperty(KIE_TASK_ASSIGNING_RUNTIME_EXT_DISABLED, Boolean.FALSE.toString()); return new TaskAssigningRuntimeKieServerExtension(); }  @Bean @ConditionalOnMissingBean(name = "taskAssigningRuntimeServerExtension") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) KieServerExtension taskAssigningRuntimeServerExtension(); @Bean @ConditionalOnMissingBean(name = "taskAssigningPersistenceUnitPostProcessor") @ConditionalOnProperty(name = KIE_SERVER_TASK_ASSIGNING_RUNTIME_ENABLED) TaskAssigningPersistenceUnitPostProcessor taskAssigningPersistenceUnitPostProcessor(); @EventListener void handleContextRefreshEvent(ContextClosedEvent evt);  }