ContextInstanceContainer.java :  » Rule-Engine » drolls-5.0 » org » drools » process » instance » Java Open Source

Java Open Source » Rule Engine » drolls 5.0 
drolls 5.0 » org » drools » process » instance » ContextInstanceContainer.java
package org.drools.process.instance;

import java.util.List;

import org.drools.process.core.Context;
import org.drools.process.core.ContextContainer;

/**
 * 
 * @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
 */
public interface ContextInstanceContainer {
    
    List<ContextInstance> getContextInstances(String contextId);
    
    void addContextInstance(String contextId, ContextInstance contextInstance);
    
    // TODO: does it make sense to have more than one contextInstance
    // with the same contextId (e.g. multiple variable scope instances
    // sharing the same context instance container?
    ContextInstance getContextInstance(String contextId, long id);
    
    ContextInstance getContextInstance(Context context);
    
    ContextContainer getContextContainer();

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.