Skip to content

Files

Latest commit

cb9b6ad · Jan 30, 2021

History

History

jworkflow.providers.mongodb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 12, 2019
Jan 27, 2019
Dec 31, 2018
Jan 30, 2021

MongoDB Persistence provider for JWorkflow

Provides support to persist workflows running on JWorkflow to a MongoDB database.

Installing

Using Maven

<dependencies>
    <dependency>
        <groupId>net.jworkflow</groupId>
        <artifactId>jworkflow.providers.mongodb</artifactId>
        <version>0.5-SNAPSHOT</version>
    </dependency>
</dependencies>

Using Gradle

dependencies { 
    compile 'net.jworkflow:jworkflow.providers.mongodb:0.5-SNAPSHOT'
}

Usage

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();