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

import java.util.Date;

import workflow.store.persistence.PrimaryKey;
import workflow.wfmc.pm.Participant;
import workflow.live.ProcessElement;
import workflow.wfmc.rtm.WorkflowCase;

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

	private Date creationTime;
	private int caseStatus;

	public LiveCase()
	{
	}
	
	public LiveCase(WorkflowCase workflowCase)
	{
		super(workflowCase);
		
		this.packageID=workflowCase.getWorkflowProcess().getWorkflowPackage().getUUID();
		this.processID=workflowCase.getWorkflowProcess().getUUID();
		
		this.primaryKey=workflowCase.getPrimaryKey();
		
		Participant 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;
	}
}
