Provides support to persist workflows running on JWorkflow to a MongoDB database.
<dependencies>
<dependency>
<groupId>net.jworkflow</groupId>
<artifactId>jworkflow.providers.mongodb</artifactId>
<version>0.5-SNAPSHOT</version>
</dependency>
</dependencies>
dependencies {
compile 'net.jworkflow:jworkflow.providers.mongodb:0.5-SNAPSHOT'
}
Use the MongoPersistenceService.configure static method when bootstraping your application.
import net.jworkflow.providers.mongodb.MongoPersistenceService;
...
WorkflowModule module = new WorkflowModule();
module.usePersistence(MongoPersistenceService.configure("mongodb://localhost:27017/jworkflow"));
module.build();
WorkflowHost host = module.getHost();