//----------------------------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.event;

import org.huihoo.workflow.server.WorkflowWork;

public class WorkEvent extends WorkflowEvent
{
	/**
	 * The first number in the range of ids used for work events.
	 */
	public static final int WORK_FIRST = 300;

	/**
	 * The last number in the range of ids used for work events.
	 */
	public static final int WORK_LAST = 308;

	public final static int CREATED = WORK_FIRST;

	public static final int ARRIVED = 1+ WORK_FIRST;

	public final static int ACCEPTED = 2+ WORK_FIRST;

	public final static int SUBMITED = 3+ WORK_FIRST;

	public final static int FETCHED = 4+ WORK_FIRST;

	public final static int REVERSED = 5+ WORK_FIRST;

	public final static int BACKTRACKED = 6+ WORK_FIRST;

	public static final int ENTERSUBFLOW = 7+ WORK_FIRST;

	public static final int LEAVESUBFLOW = 8+ WORK_FIRST;;

	public WorkEvent(WorkflowWork source, int id)
	{
		super(source, id);
	}
}
