Skip to content

Commit

Permalink
chore(merge): release-10.2.0 into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bonita-ci committed Sep 9, 2024
2 parents ca84299 + 5fa2f03 commit b414015
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
public class EngineInitializerListener implements ServletContextListener {

static final String UPDATE_ONLY_STARTUP_PROPERTY = "bonita.runtime.startup.update-only";

private static final Logger log = LoggerFactory.getLogger(EngineInitializerListener.class);

@Override
Expand Down Expand Up @@ -63,7 +64,6 @@ AnnotationConfigWebApplicationContext initializeWebApplicationContext(ServletCon
ApplicationContext engineContext = ServiceAccessorFactory.getInstance()
.createServiceAccessor()
.getContext();

AnnotationConfigWebApplicationContext webApplicationContext = initializeWebContext(event, engineContext);
webApplicationContext.refresh();
return webApplicationContext;
Expand Down Expand Up @@ -93,7 +93,7 @@ protected EngineInitializer getEngineInitializer() {
}

@Override
public void contextDestroyed(final ServletContextEvent arg0) {
public void contextDestroyed(final ServletContextEvent event) {
try {
getEngineInitializer().unloadEngine();
} catch (final Throwable e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public void initializeEngine() throws Exception {
LOGGER.info("Starting node...");

logEditionMessage();
logDataCollectionMessage();

platformAPI.startNode();
LOGGER.info("Node started successfully.");
final long after = System.currentTimeMillis();
Expand All @@ -92,6 +94,27 @@ protected void logEditionMessage() {
LOGGER.info(" |___/ ");
}

public void logDataCollectionMessage() {
LOGGER.info("-----------------------------------------------------------------------------------------");
LOGGER.info("Anonymous Data Collection for Product Improvement");
LOGGER.info("");
LOGGER.info("Dear User,");
LOGGER.info("");
LOGGER.info("We collect strictly anonymous usage data from Bonita Studio and the Runtime (production");
LOGGER.info("environment) to help us continuously improve the product and enhance the user experience.");
LOGGER.info("The data collected is fully anonymous and cannot be used to identify you in any way.");
LOGGER.info("");
LOGGER.info("This data helps us understand how the product is used in both development and production");
LOGGER.info("settings, allowing us to optimize performance, fix bugs, and introduce new features that");
LOGGER.info("benefit all users.");
LOGGER.info("");
LOGGER.info("For more information on what data we collect and how to opt-out, please visit our");
LOGGER.info("Product Documentation (https://documentation.bonitasoft.com/bonita/latest).");
LOGGER.info("");
LOGGER.info("Thank you for supporting the ongoing improvement of our product!");
LOGGER.info("-----------------------------------------------------------------------------------------");
}

SessionAccessor getSessionAccessor() throws BonitaHomeNotSetException, IOException,
BonitaHomeConfigurationException, ReflectiveOperationException {
return getServiceAccessorFactory().createSessionAccessor();
Expand Down

0 comments on commit b414015

Please sign in to comment.