public class CaseInstanceImpl extends Object implements CaseInstance, Serializable
| Constructor and Description |
|---|
CaseInstanceImpl() |
CaseInstanceImpl(String caseId,
String caseDescription,
Collection<CaseStageInstance> caseStages,
Collection<CaseMilestoneInstance> caseMilestones,
Collection<CaseRoleInstance> caseRoles,
CaseFileInstance caseFile) |
CaseInstanceImpl(String caseId,
String caseDescription,
String caseDefinitionId,
Integer status,
String deploymentId,
String owner,
Date startedAt,
Date completedAt,
Long processInstanceId,
String completionMessage,
Date slaDueDate,
Integer slaCompliance)
Constructor to be used mainly by persistence provider to create instances automatically
|
CaseInstanceImpl(String caseId,
String caseDescription,
String caseDefinitionId,
Integer status,
String deploymentId,
String owner,
Date startedAt,
Date completedAt,
Long processInstanceId,
String completionMessage,
Date slaDueDate,
Integer slaCompliance,
String parentCaseId)
Constructor to be used mainly by persistence provider to create instances automatically
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCaseDefinitionId()
Returns case definition id
|
String |
getCaseDescription()
Returns case description
|
CaseFileInstance |
getCaseFile()
Returns case file associated with this case.
|
String |
getCaseId()
Returns case identifier of this case.
|
Collection<CaseMilestoneInstance> |
getCaseMilestones()
Returns available case milestones for this case.
|
Collection<CaseRoleInstance> |
getCaseRoles()
Returns case roles for this case.
|
Collection<CaseStageInstance> |
getCaseStages()
Returns available case stages in this case.
|
Date |
getCompletedAt()
Returns completion date of this case
|
String |
getCompletionMessage()
Returns completion message (if any) of this case
|
String |
getDeploymentId()
Returns deployment id
|
String |
getOwner()
Returns owner of the case - usually one who started the case
|
String |
getParentCaseId()
Returns the parent id case if any
|
Long |
getProcessInstanceId() |
Integer |
getSlaCompliance()
Returns up to date SLA compliance level for case instance
|
Date |
getSlaDueDate()
Returns SLA due date if any is set on case instance
|
Date |
getStartedAt()
Returns start date of this case
|
Integer |
getStatus()
Returns status of the case
|
void |
setCaseDefinitionId(String caseDefinitionId) |
void |
setCaseDescription(String caseDescription) |
void |
setCaseFile(CaseFileInstance caseFile) |
void |
setCaseId(String caseId) |
void |
setCaseMilestones(Collection<CaseMilestoneInstance> caseMilestones) |
void |
setCaseRoles(Collection<CaseRoleInstance> caseRoles) |
void |
setCaseStages(Collection<CaseStageInstance> caseStages) |
void |
setCompletedAt(Date completedAt) |
void |
setCompletionMessage(String completionMessage) |
void |
setDeploymentId(String deploymentId) |
void |
setOwner(String owner) |
void |
setParentCaseId(String parentCaseId) |
void |
setProcessInstanceId(Long processInstanceId) |
void |
setSlaCompliance(Integer slaCompliance) |
void |
setSlaDueDate(Date slaDueDate) |
void |
setStartedAt(Date startedAt) |
void |
setStatus(Integer status) |
String |
toString() |
public CaseInstanceImpl()
public CaseInstanceImpl(String caseId, String caseDescription, Collection<CaseStageInstance> caseStages, Collection<CaseMilestoneInstance> caseMilestones, Collection<CaseRoleInstance> caseRoles, CaseFileInstance caseFile)
public CaseInstanceImpl(String caseId, String caseDescription, String caseDefinitionId, Integer status, String deploymentId, String owner, Date startedAt, Date completedAt, Long processInstanceId, String completionMessage, Date slaDueDate, Integer slaCompliance)
caseId - caseDescription - public CaseInstanceImpl(String caseId, String caseDescription, String caseDefinitionId, Integer status, String deploymentId, String owner, Date startedAt, Date completedAt, Long processInstanceId, String completionMessage, Date slaDueDate, Integer slaCompliance, String parentCaseId)
caseId - caseDescription - public String getCaseId()
CaseInstancegetCaseId in interface CaseInstancepublic String getCaseDescription()
CaseInstancegetCaseDescription in interface CaseInstancepublic Collection<CaseStageInstance> getCaseStages()
CaseInstancegetCaseStages in interface CaseInstancepublic Collection<CaseMilestoneInstance> getCaseMilestones()
CaseInstancegetCaseMilestones in interface CaseInstancepublic Collection<CaseRoleInstance> getCaseRoles()
CaseInstancegetCaseRoles in interface CaseInstancepublic CaseFileInstance getCaseFile()
CaseInstance
Note: CaseInstance.getCaseFile() will always be empty.
Refer to using CaseService.getCaseFileInstance(String) when access to case file information is needed.
getCaseFile in interface CaseInstancepublic String getCaseDefinitionId()
CaseInstancegetCaseDefinitionId in interface CaseInstancepublic void setCaseDefinitionId(String caseDefinitionId)
public Integer getStatus()
CaseInstancegetStatus in interface CaseInstancepublic void setStatus(Integer status)
public String getDeploymentId()
CaseInstancegetDeploymentId in interface CaseInstancepublic void setDeploymentId(String deploymentId)
public String getOwner()
CaseInstancegetOwner in interface CaseInstancepublic void setOwner(String owner)
public Date getStartedAt()
CaseInstancegetStartedAt in interface CaseInstancepublic void setStartedAt(Date startedAt)
public Long getProcessInstanceId()
public void setProcessInstanceId(Long processInstanceId)
public void setCaseId(String caseId)
public void setCaseDescription(String caseDescription)
public void setCaseStages(Collection<CaseStageInstance> caseStages)
public void setCaseMilestones(Collection<CaseMilestoneInstance> caseMilestones)
public void setCaseRoles(Collection<CaseRoleInstance> caseRoles)
public void setCaseFile(CaseFileInstance caseFile)
public Date getCompletedAt()
CaseInstancegetCompletedAt in interface CaseInstancepublic void setCompletedAt(Date completedAt)
public String getCompletionMessage()
CaseInstancegetCompletionMessage in interface CaseInstancepublic void setCompletionMessage(String completionMessage)
public Date getSlaDueDate()
CaseInstancegetSlaDueDate in interface CaseInstancepublic void setSlaDueDate(Date slaDueDate)
public Integer getSlaCompliance()
CaseInstancegetSlaCompliance in interface CaseInstancepublic void setSlaCompliance(Integer slaCompliance)
public String getParentCaseId()
CaseInstancegetParentCaseId in interface CaseInstancepublic void setParentCaseId(String parentCaseId)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.