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





/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public interface WorkflowContext
{   
	/**
	 * Return the  WorkflowService, associated with this Container, with
	 * the specified name (if any); otherwise, return <code>null</code>
	 *
	 * @param name Name of the  WorkflowService to be retrieved
	 */
	public WorkflowService getWorkflowService();
	
	/**
	 *
	 * Writes the specified message to a workflow log file, usually
	 * an event log. The name and type of the workflow log file is 
	 * specific to the workflow container.
	 *
	 *
	 * @param msg 	a <code>String</code> specifying the 
	 *			message to be written to the log file
	 *
	 */
     
	public void log(String msg);   

	/**
	 * Writes an explanatory message and a stack trace
	 * for a given <code>Throwable</code> exception
	 * to the workflow log file. The name and type of the workflow log 
	 * file is specific to the workflow container, usually an event log.
	 *
	 *
	 * @param message 		a <code>String</code> that 
	 *				describes the error or exception
	 *
	 * @param throwable 	the <code>Throwable</code> error 
	 *				or exception
	 *
	 */
    
	public void log(String message, Throwable throwable);
}
