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

1
0
-1

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.

1 answer

1
0
-1
This one is the BEST answer!

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

Comments

Submitted by zahreddine.chaibi on Tue, 08/04/2015 - 17:17

Thanks baptiste.mesta this is helpful

Notifications