public class Case
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
caseId |
Constructor and Description |
---|
Case(java.lang.String id) |
Case(java.lang.String caseId,
java.lang.String caseName,
java.lang.String caseDescription,
Document rup) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCaseDescription() |
java.lang.String |
getCaseId() |
java.lang.String |
getCaseName() |
java.util.List<Element> |
getData() |
java.lang.String |
getDescription() |
long |
getId() |
java.lang.String |
getParentNetId(java.lang.String id)
Returns ID of parent net
|
Document |
getRUP() |
java.lang.String |
getRupAsString() |
java.lang.String |
getSavedBy() |
java.lang.String |
getText(int depth,
java.lang.String xPath)
Gets the value for an XPath expression for an Element at a specified depth
in the case's data
|
java.lang.String |
getText(java.lang.String xPath)
Traverses case data attempting to find an element that returns a non-null result
for an XPath expression
|
long |
getTimestamp() |
boolean |
isActive() |
java.lang.String |
readCaseData(java.lang.String caseId)
Read case data from the YAWL work queue
|
void |
setActive(boolean active) |
void |
setCaseId(java.lang.String id) |
void |
setCaseName(java.lang.String name) |
void |
setDescription(java.lang.String desc) |
void |
setId(long id) |
void |
setRUP(Document doc) |
void |
setRupAsString(java.lang.String ras) |
void |
setSavedBy(java.lang.String saver) |
void |
setTimestamp(long time) |
public Case(java.lang.String id)
public Case(java.lang.String caseId, java.lang.String caseName, java.lang.String caseDescription, Document rup)
public long getId()
public void setId(long id)
public java.lang.String getCaseId()
public void setCaseId(java.lang.String id)
public java.lang.String getCaseName()
public void setCaseName(java.lang.String name)
public java.lang.String getCaseDescription()
public java.lang.String getDescription()
public void setDescription(java.lang.String desc)
public Document getRUP()
public void setRUP(Document doc)
public java.lang.String getSavedBy()
public void setSavedBy(java.lang.String saver)
public boolean isActive()
public void setActive(boolean active)
public long getTimestamp()
public void setTimestamp(long time)
public java.lang.String getRupAsString()
public void setRupAsString(java.lang.String ras)
public java.util.List<Element> getData()
public java.lang.String readCaseData(java.lang.String caseId) throws java.io.IOException
caseId
- the case to get the data forjava.io.IOException
- if the case data can't be retrieved from the enginereadCaseData()
public java.lang.String getParentNetId(java.lang.String id)
If the Id passed as the argument is a root ID, it will be returned unchanged.
id
- the id of a child netpublic java.lang.String getText(int depth, java.lang.String xPath)
depth
- the depth of the Element to use from the case dataxPath
- the XPath expressionpublic java.lang.String getText(java.lang.String xPath)
xPath
- the expression to evaluateCopyright © 2004-2014 The YAWL Foundation.