Bonita engine API: How can I disable cleanup the database on restarting the server?

Hi,

I’m using the Engine api, as in the example in github " embeded engine example ". but i discover that it cleanup all my processes after all server restart.

Hi,

in src/main/java/org/bonitasoft/example/App.java
there is

// — clean all information ----
// undeploy the process
undeployProcess(processDefinition);

    // delete the created user
    deleteUser(user);

    // perform all necessary actions to delete the platform
    deletePlatform();

    // undeploy the data source
    undeployDataSource();

If you remove that code the data will not be cleaned.

If you are using the default database h2 memory nothing will be kept after a service restart. In that case you should use an other database like postgres.

BR,
Baptiste Mesta

Thanks baptiste.mesta this is helpful