package io.biblia.workflows.manager.action;


public class MongoActionPersistance implements ActionPersistance {

    public MongoActionPersistance() {
    
    }
    
    @Override
    public List<Action> getAvailableActions() {
      List<Action> toReturn = new ArrayList<Action> toReturn;
      
      return toReturn;
    }
    
    @Override
    public void updateActionState(Action action, ActionState state) throws OutdatedActionException {
    
    }
    
    @Override
    public void addActionSubmissionId(Action action, String submissionId) {
    
    }
}

@@ -42,115 +42,556 @@
 n;%0A%0A
-%0Apublic class MongoActionPersistance implements ActionPersistance %7B%0A%0A    public MongoActionPersistance() %7B%0A
+import com.mongodb.MongoClient;%0Aimport com.mongodb.client.MongoDatabase;%0Aimport com.mongodb.client.MongoCollection;%0Aimport org.bson.Document;%0A%0Apublic class MongoActionPersistance implements ActionPersistance %7B%0A    %0A    public static final String ACTIONS_COLLECTION;%0A    private final MongoClient mongo;%0A    private final MongoDatabase workflows;%0A    private final MongoCollection actions%0A    %0A    public MongoActionPersistance(MongoClient mongo) %7B%0A        this.client = mongo;%0A        this.actions = this.mongo.getDatabase(WORKFLOWS_DATABASE);%0A    
     

Update MongoActionPersistance.java