Package org.huihoo.workflow.client.serial.model

Source Code of org.huihoo.workflow.client.serial.model.SerialCase

//----------------------------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.client.serial.model;

import java.util.Date;

import org.huihoo.workflow.store.persistent.PrimaryKey;
import org.huihoo.workflow.usermodel.WorkflowParticipant;
import org.huihoo.workflow.runtime.WorkflowCase;

/**
* @author reic
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class SerialCase extends SerialProcessBase
  private PrimaryKey primaryKey;
  private String  creatorID;

  private Date creationTime;
  private int caseStatus;

  public SerialCase()
  {
  }
 
  public SerialCase(WorkflowCase workflowCase)
  {
    super(workflowCase);
   
    this.packageID=workflowCase.getWorkflowProcess().getWorkflowPackage().getUUID();
    this.processID=workflowCase.getWorkflowProcess().getUUID();
   
    this.primaryKey=workflowCase.getPrimaryKey();
   
    WorkflowParticipant particpant=workflowCase.getCreator();
    this.creatorID=(particpant==null?null:particpant.getUUID());
   
    this.creationTime=workflowCase.getCreationTime();
    this.caseStatus=workflowCase.getStatus();
  }

  public String getPackageID()
  {
    return this.packageID;
  }
 
  public String getProcessID()
  {
    return this.processID;
  }

  public String getUUID()
  {
    return this.uuid;
  }

  public String getName()
  {
    return this.name;
  }
 
  public String getDescription()
  {
    return this.description;
  }
 
  public PrimaryKey getPrimaryKey()
  {
    return primaryKey;
  }
 
  public int getStatus()
  {
    return caseStatus;
  }

  public Date getCreationTime()
  {
    return creationTime;
  }

  public String getCreatorID()
  {
    return creatorID;
  }
}
TOP

Related Classes of org.huihoo.workflow.client.serial.model.SerialCase

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.