/*
 * $Id: TestBpms.java 10489 2008-01-23 17:53:38Z dfeist $
 * --------------------------------------------------------------------------------------
 * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

package org.mule.transport.bpm.test;

import org.mule.transport.bpm.BPMS;
import org.mule.transport.bpm.MessageService;

import java.util.Map;

/**
 * Dummy BPMS for unit testing.
 */
public class TestBpms implements BPMS
{
    private String foo;
    
    public void abortProcess(Object processId) throws Exception
    {
        // nop
    }

    public Object advanceProcess(Object processId, Object transition, Map processVariables) throws Exception
    {
        return null;
    }

    public Object getId(Object process) throws Exception
    {
        return null;
    }

    public Object getState(Object process) throws Exception
    {
        return null;
    }

    public boolean hasEnded(Object process) throws Exception
    {
        return false;
    }

    public boolean isProcess(Object obj) throws Exception
    {
        return false;
    }

    public Object lookupProcess(Object processId) throws Exception
    {
        return null;
    }

    public void setMessageService(MessageService msgService)
    {
        // nop
    }

    public Object startProcess(Object processType, Object transition, Map processVariables) throws Exception
    {
        return null;
    }

    public Object updateProcess(Object processId, Map processVariables) throws Exception
    {
        return null;
    }

    public String getFoo()
    {
        return foo;
    }

    public void setFoo(String foo)
    {
        this.foo = foo;
    }
}
