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

import workflow.WorkflowException;
import workflow.wfmc.pm.Participant;
import workflow.wfmc.xpdl.WorkflowActivity;
import workflow.wfmc.xpdl.XPDLElement;


/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public interface WorkflowWork extends XPDLElement
{
//-----------------------------------------------------------
  public void       execute()  throws WorkflowException;
//-----------------------------------------------------------
 
  
  public WorkflowCase          getWorkflowCase();
  public void                  setWorkflowCase(WorkflowCase workflowCase);
  
  /**
   *  根据WorkflowActivity获取工作项(WorkflowWork)直接归属流程(WorkflowProcess)信息
   */
  public WorkflowActivity     getWorkflowActivity();
  public void                 setWorkflowActivity(WorkflowActivity activity);
  
  public Participant          getPerformer();
  public void                 setPerformer(Participant performer);
  
  public java.util.Date       getArriveTime();
  public void                 setArriveTime(java.util.Date arriveTime);
  
  public java.util.Date       getAcceptTime();
  public void                 setAcceptTime(java.util.Date acceptTime);
  
  public java.util.Date       getDispatchTime();
  public void                 setDispatchTime(java.util.Date dispatchTime);
  
  public String               getEntityID();
  public void                 setEntityID(String entityID);
  
}
