Package org.huihoo.workflow.impl.runtime

Source Code of org.huihoo.workflow.impl.runtime.WorkflowWorkImpl

//----------------------------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.impl.runtime;

import org.huihoo.workflow.ComplexComponentObject;
import org.huihoo.workflow.WorkflowException;
import org.huihoo.workflow.usermodel.WorkflowParticipant;
import org.huihoo.workflow.runtime.WorkflowCase;
import org.huihoo.workflow.runtime.WorkflowWork;
import org.huihoo.workflow.xpdl.WorkflowActivity;
import org.huihoo.workflow.xpdl.activity.Implementation;

/**
* @author zosatapo
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class WorkflowWorkImpl extends ComplexComponentObject implements WorkflowWork
{
  private WorkflowCase workflowCase;
  private WorkflowActivity activity;
  private WorkflowParticipant performer;
 
  private java.util.Date arriveTime;
  private java.util.Date acceptTime;
  private java.util.Date dispatchTime;
 
  private String entityID;
 
  public WorkflowWorkImpl(){}
 
  public WorkflowWorkImpl(String uuid,String name,String description,WorkflowCase workflowCase_,WorkflowActivity activity_,WorkflowParticipant performer_)
  {
    super(uuid,name,description);
   
    this.workflowCase=workflowCase_;
    this.activity=activity_;
    this.performer=performer_;
  }
 
  public void    execute()    throws WorkflowException
  {
    Implementation impl=activity.getImplementation();
    impl.execute(this);
  }
 
  public WorkflowCase getWorkflowCase()
  {
    return workflowCase;
  }
  public void  setWorkflowCase(WorkflowCase workflowCase_)
  {
    this.workflowCase=workflowCase_;
  }
  public WorkflowActivity  getWorkflowActivity()
  {
    return activity;
  }
  public void setWorkflowActivity(WorkflowActivity activity_)
  {
    this.activity=activity_;       
  }
  public WorkflowParticipant getPerformer()
  {
    return performer;
  }
 
  public void setPerformer(WorkflowParticipant performer_)
  {
    this.performer=performer_;
  }
 
  public java.util.Date       getArriveTime()
  {
    return this.arriveTime;
  }
  public void                 setArriveTime(java.util.Date arriveTime_)
  {
    this.arriveTime=arriveTime_;
  }

  public java.util.Date       getAcceptTime() 
  {
    return this.acceptTime;
  }
 
  public void                 setAcceptTime(java.util.Date acceptTime_)
  {
    this.acceptTime=acceptTime_;
  }

  public java.util.Date       getDispatchTime()
  {
    return this.dispatchTime;
  }
 
  public void                 setDispatchTime(java.util.Date dispatchTime_)
  {
    this.dispatchTime=dispatchTime_;
  }
 
  public String               getEntityID()
  {
    return entityID;
  }
 
  public void                 setEntityID(String entityID)
  {
    this.entityID=entityID;
  }
 
  public String toString()
  {
    return workflowCase.toString()+",workid="+uuid;
  }
// 
//  public void objectChanged(EventObject event)
//  {
//   
//  }
}
TOP

Related Classes of org.huihoo.workflow.impl.runtime.WorkflowWorkImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.