/*
 * 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.WorkflowWork;

/**
 * @author zosatapo
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class WorkEvent extends EventObject
{  
  public static final int WORK_FIRST            =  500;
  
  public static final int WORK_ARRIVE           =  WORK_FIRST;
  
  public static final int WORK_ACCEPT           =  WORK_ARRIVE+1;
  
  public static final int WORK_DISPATCH         =  WORK_ACCEPT+1;
  
  public static final int WORK_FETCH            =  WORK_DISPATCH+1;
  
  public static final int WORK_REVERT           =  WORK_FETCH+1;
  
  public static final int WORK_ENTER_SUBFLOW    =  WORK_REVERT+1;
  public static final int WORK_LEAVE_SUBFLOW    =  WORK_ENTER_SUBFLOW+1;
  
  public static final int WORK_LAST             =  WORK_LEAVE_SUBFLOW;
  
  private int type;
  
  public WorkEvent(WorkflowWork source,int type)
  {
    super(source);
    
    this.type=type;
  }
  
  public int getType()
  {
    return type;
  }
  
}
