/**
 * IEngineDriverExtension.java
 * Created Oct 12, 2006
 * Copyright (C) Tandberg Television 2006
 */
package com.tandbergtv.workflow.driver.plugin;

import java.util.Map;

import org.jbpm.graph.def.ProcessDefinition;

import com.tandbergtv.workflow.driver.DriverException;

/**
 * Provides the callback definition of the driver's create extension
 * 
 * @author Sahil Verma
 */
public interface ICreateDelegate {
	
	/**
	 * Extends the driver create method
	 *  
	 * @param template the template
	 * @param parameters the list of parameters used to define initial values of the process
	 * @throws DriverException 
	 * @return
	 */
	void create(ProcessDefinition template, Map<String, Object> parameters) throws DriverException;
}
