/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package com.opensymphony.workflow;

import com.opensymphony.workflow.basic.BasicWorkflow;
import com.opensymphony.workflow.config.ConfigLoader;

import java.net.URL;


/**
 * @author Hani Suleiman (hani@formicary.net)
 * Date: May 10, 2003
 * Time: 1:36:21 PM
 */
public class TestWorkflow extends BasicWorkflow {
    //~ Static fields/initializers /////////////////////////////////////////////

    public static String configFile = "/osworkflow.xml";

    //~ Constructors ///////////////////////////////////////////////////////////

    public TestWorkflow(String caller) {
        super(caller);
    }

    //~ Methods ////////////////////////////////////////////////////////////////

    protected void loadConfig(URL url) throws FactoryException {
        if (url == null) {
            ConfigLoader.load(getClass().getResourceAsStream(configFile));
        }
    }
}

@@ -210,16 +210,67 @@
 gLoader;
+%0Aimport com.opensymphony.workflow.spi.StoreFactory;
 %0A%0Aimport
@@ -717,16 +717,91 @@
 caller);
+%0A%0A        //lets clear out the old store%0A        StoreFactory.clearCache();
 %0A    %7D%0A%0A

Clear old store instance on ctor