//----------------------------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.workflow.tools;

public interface ServletConstants
{
	String PACKAGE = "org.huihoo.workflow.tools";

	//------------------------------------------------------------------
	// Standard Servlet Command Constants
	//------------------------------------------------------------------
	
	String COMMAND_CREATE_CASE      = "Create_C";
	String COMMAND_OPEN_CASE        = "Open_C";
	String COMMAND_FIND_CASE        = "Find_C";
	String COMMAND_DELETE_CASE      = "Delete_C";
	String COMMAND_ABORT_CASE       = "Abort_C";
	
	String COMMAND_ACCEPT_WORK      = "Accept_W";
	String COMMAND_OPEN_WORK        = "Open_W";
	String COMMAND_SUBMIT_WORK      = "Submit_W";
	String COMMAND_RESUBMIT_WORK    = "ReSubmit_W";
	String COMMAND_BACKTRACK_WORK   = "BackTrack_W";
	String COMMAND_REVERSE_WORK     = "Reverse_W";
	String COMMAND_FETCH_WORK       = "Fetch_W";
	
	//------------------------------------------------------------------
	// Standard HttpSession Attribute Key
	//------------------------------------------------------------------		
	/** for java.lang.String*/
	String WORKFLOW_PARTICIPANT_KEY = "workflow.participant";

	/** for java.util.Hashtable*/
	String WORKFLOW_VARIABLES_KEY = "workflow.variables";

	/** for java.lang.Exception*/
	String WORKFLOW_EXCEPTION_KEY = "workflow.exception";

	//------------------------------------------------------------------
	// Standard HttpRequest Parameter/Attribute Key
	//------------------------------------------------------------------	
	String SERVLET_COMMAND_KEY     = "w_cmd";

	String WORKFLOW_PACKAGE_KEY    = "w_pkg";
	String WORKFLOW_PROCESS_KEY    = "w_prc";
	String WORKFLOW_ACTIVITY_KEY   = "w_act";
	String WORKFLOW_TRANSITION_KEY = "w_trs";

	String WORKFLOW_CASE_KEY       = "w_cas";
	String WORKFLOW_PRIMARY_KEY    = "w_pky";
	String WORKFLOW_WORK_KEY       = "w_wrk";
	String WORKFLOW_USER_KEY       = "w_usr";
	
	String NAME_KEY                = "w_name";
	String DESCRIPTION_KEY         = "w_desc";
}
