JBoss Community

Re: Persisting Human Task, letting user to complete after server restart.

created by Mauricio Salatino in jBPM - View the full discussion

Hi Adam,

I think that you are mixing a lot of concepts here. Don't get me wrong, it usually happens. The concept of save point also includes Human Tasks. Human interactions are considered as long living activities. For that reason the engine need to wait until the task is completed. As you mention all this waiting happens in a database, so you don't need to be worried about the application is running or not. Obviously the task server needs to be up when the user cames back and want's to interact, but it doesn't mean that needs to be up all time. Right now in jBPM5, we keep two different things persisted.

1) A knowledge runtime snapshot (SessionInfo in the database)

2) The status of each particular task inside the task server.

 

The task server is configured to use persistence by default, but as far as I remember, it's configured to use an in memory database. You should go and change that to a real database like MySQL/Postgres.

For having persistence of your processes status, that you will need if you are using human tasks interactions you need to use JPAKnowledgeService helpers to keep your sessions persisted in a database.

 

Greetings.

Reply to this message by going to Community

Start a new discussion in jBPM at Community