/*
 * Created on 2004-4-24
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package workflow.store;

import workflow.WorkflowException;
import workflow.WorkflowInterface;
import workflow.services.WorkflowService;
import workflow.wfmc.rtm.WorkflowWork;

/**
 * @author zosatapo
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public interface WorkflowDispatcher extends WorkflowInterface
{
	public WorkflowService getWorkflowService();
	public void setWorkflowService(WorkflowService workflowService);

	public boolean accept(
		String sessionID,
		WorkflowWork workflowWork)
		throws WorkflowException;

	public boolean dispatch(
		String sessionID,
		WorkflowWork workflowWork)
		throws WorkflowException;

	public boolean revert(
		String sessionID,
		WorkflowWork workflowWork)
		throws WorkflowException;
	public boolean fetch(
		String sessionID,
		WorkflowWork workflowWork)
		throws WorkflowException;
}
