/*
 * Created on 2004-3-15
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package workflow.wfmc.xpdl.event;

import workflow.wfmc.rtm.WorkflowCase;

/**
 * @author zosatapo
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class CaseEvent extends EventObject
{
  public static final int CASE_CREATE    =  500;
  
  public static final int CASE_OPEN      =  CASE_CREATE;
  
  public static final int CASE_SUSPEND   =  CASE_OPEN+1;
  
  public static final int CASE_RESUME    =  CASE_SUSPEND+1;
  
  public static final int CASE_CANCEL    =  CASE_RESUME+1;
  
  public static final int CASE_CLOSE     =  CASE_CANCEL+1;
  
	public static final int CASE_DELETE    =  CASE_CLOSE+1;
	
  public static final int CASE_LAST      =  CASE_DELETE;
  
  private int type;
  
  public CaseEvent(WorkflowCase source,int type)
  {
    super(source);
    
    this.type=type;
  }
  
  public int getType()
  {
    return type;
  }
}
