//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010  huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/willow
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : willow@lists.sourceforge.net 
 */
//----------------------------END  LICENSE-----------------------------
package org.huihoo.willow;

public class Globals
{
	//----------------------------------------------------------------
	//
	//----------------------------------------------------------------
	/** port server listens for shutdown*/
	public static final int SERVER_COMMAND_PORT = 8023; //my honey :)

	/** port RMI export for client incoming */
	public static final int DESKTOP_SERVICE_PORT = 3019; //my honey :)

	//----------------------------------------------------------------
	//
	//----------------------------------------------------------------

	public static final String PROPS_WILLOW_HOME = "willow.home";
	public static final String PROPS_WILLOW_JAR  = "willow.jar";

	//----------------------------------------------------------------
	//
	//----------------------------------------------------------------

	/**
	 * The script context attribute under which we store the class loader
	 * used for loading script (as an object of type java.net.URLClassLoader).
	 */
	public static final String ATTR_CLASS_LOADER = "willow.script_classloader";

	/**
	 * The script context attribute under which we store the class path
	 * for our application class loader (as an object of type String),
	 * delimited with the appropriate path delimiter for this platform.
	 */
	public static final String ATTR_CLASS_PATH = "willow.script_classpath";

	/**
	 * The script context attribute under which we store a temporary
	 * working directory (as an object of type File) for use by servlets
	 * within this workflow application.
	 */
	public static final String ATTR_WORK_DIR = "willow.script_scratchdir";


	/**
	 * The JNDI directory context which is associated with the context. This
	 * context can be used to manipulate static files.
	 */
	public static final String ATTR_RESOURCES = "willow.script_resources";

	//----------------------------------------------------------------
	//
	//----------------------------------------------------------------
	/**
	 *   default workflow server log  directory  
	 */
	public static final String LOG_DIRECTORY = "logs";

	/**
	 *   default workflow application deploy  directory  
	 */
	public static final String DEPLOY_DIRECTORY = "repository";

	/**
	 *   default workflow application work directory
	 *   generally ,used as temp directory
	 */
	public static final String WORK_DIRECTORY = "work";

	/**
	 *   default workflow context name
	 *  
	 */
	public static final String DEFAULT_WORKFLOW = "ROOT";


	//----------------------------------------------------------------
	//WILLOW Default Setting Constants
	//----------------------------------------------------------------

	public static final String ApplicationWorkflowXml = "/WEB-INF/workflow.xml";
	public static final String DefaultWorkflowXml = "conf/workflow.xml";
	
	public static final String ApplicationSchemaProperties = "/WEB-INF/schema.properties";
	public static final String DefaultSchemaProperties = "conf/schema.properties";
	
	public static final String PluginXml = "conf/plugin.xml";

	//----------------------------------------------------------------
	// XPDL Parser Constants
	//----------------------------------------------------------------
	public static final String PARSER_XML_VALIDATING      = "PARSER_XML_VALIDATING";
	public static final String PARSER_XML_NAMESPACEAWARE  = "PARSER_XML_NAMESPACEAWARE";
	public static final String PARSER_XPDL_VALIDATING     = "PARSER_XPDL_VALIDATING";	
}
