org.yawlfoundation.yawl.engine.instance
Class CaseInstance

java.lang.Object
  extended by org.yawlfoundation.yawl.engine.instance.CaseInstance
All Implemented Interfaces:
YInstance

public class CaseInstance
extends Object
implements YInstance

Author: Michael Adams Creation Date: 11/11/2008


Constructor Summary
CaseInstance()
           
CaseInstance(org.jdom.Element instance)
           
CaseInstance(String xml)
           
CaseInstance(String caseID, YSpecificationID specID, String caseParams, YLogDataItemList logData, long startTime)
           
 
Method Summary
 void addWorkItemInstance(WorkItemInstance item)
           
 void addWorkItemInstance(YWorkItem workitem)
           
 String formatAge(long age)
          formats a long time value into a string of the form 'ddd:hh:mm:ss'
 void fromXML(org.jdom.Element instance)
           
 void fromXML(String xml)
           
 String getAgeAsDateString()
           
 String getCaseID()
           
 String getCaseParams()
           
 YLogDataItemList getLogData()
           
 YSpecificationID getSpecID()
           
 String getSpecName()
           
 String getSpecVersion()
           
 long getStartTime()
           
 String getStartTimeAsDateString()
           
 WorkItemInstance getWorkItemInstance(String id)
           
 Map<String,WorkItemInstance> getWorkitemMap()
           
 Collection<WorkItemInstance> getWorkItems()
           
 String marshalWorkitems()
           
 void setCaseID(String s)
           
 void setCaseParams(String params)
           
 void setLogData(YLogDataItemList data)
           
 void setSpecID(YSpecificationID id)
           
 void setStartTime(long time)
           
 void setWorkitemMap(Map<String,WorkItemInstance> items)
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaseInstance

public CaseInstance()

CaseInstance

public CaseInstance(String caseID,
                    YSpecificationID specID,
                    String caseParams,
                    YLogDataItemList logData,
                    long startTime)

CaseInstance

public CaseInstance(String xml)

CaseInstance

public CaseInstance(org.jdom.Element instance)
Method Detail

getCaseID

public String getCaseID()

setCaseID

public void setCaseID(String s)

getSpecID

public YSpecificationID getSpecID()

setSpecID

public void setSpecID(YSpecificationID id)

getSpecName

public String getSpecName()

getSpecVersion

public String getSpecVersion()

getCaseParams

public String getCaseParams()

setCaseParams

public void setCaseParams(String params)

getLogData

public YLogDataItemList getLogData()

setLogData

public void setLogData(YLogDataItemList data)

getStartTime

public long getStartTime()

getStartTimeAsDateString

public String getStartTimeAsDateString()

getAgeAsDateString

public String getAgeAsDateString()

formatAge

public String formatAge(long age)
formats a long time value into a string of the form 'ddd:hh:mm:ss'

Parameters:
age - the time value (in milliseconds)
Returns:
the formatted time string

setStartTime

public void setStartTime(long time)

getWorkitemMap

public Map<String,WorkItemInstance> getWorkitemMap()

setWorkitemMap

public void setWorkitemMap(Map<String,WorkItemInstance> items)

getWorkItems

public Collection<WorkItemInstance> getWorkItems()

addWorkItemInstance

public void addWorkItemInstance(WorkItemInstance item)

addWorkItemInstance

public void addWorkItemInstance(YWorkItem workitem)

getWorkItemInstance

public WorkItemInstance getWorkItemInstance(String id)

marshalWorkitems

public String marshalWorkitems()

toXML

public String toXML()
Specified by:
toXML in interface YInstance

fromXML

public void fromXML(String xml)
Specified by:
fromXML in interface YInstance

fromXML

public void fromXML(org.jdom.Element instance)
Specified by:
fromXML in interface YInstance


Copyright © 2004-2012 The YAWL Foundation.