I created new roles and users. Then logged out and logged in using the user which i created. It worked perfectly. Then i stopped the server and updated the engine.properties file with
create.demo.users=false
Then started the server. But I was not able to login. Whenever i bounce the server the database is being reset with default values. How to prevent database from resetting the DB with default values.
Activiti uses an in memory h2 database. The changes will not be persisted. You can change the db.properties file to point to a db of your choice and by doing that, you will not run into this issue again.