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)
Sets case file information to this instance
|
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()
CaseInstance
getCaseId
in interface CaseInstance
public String getCaseDescription()
CaseInstance
getCaseDescription
in interface CaseInstance
public Collection<CaseStageInstance> getCaseStages()
CaseInstance
getCaseStages
in interface CaseInstance
public Collection<CaseMilestoneInstance> getCaseMilestones()
CaseInstance
getCaseMilestones
in interface CaseInstance
public Collection<CaseRoleInstance> getCaseRoles()
CaseInstance
getCaseRoles
in interface CaseInstance
public CaseFileInstance getCaseFile()
CaseInstance
Note: CaseInstance.getCaseFile()
will be empty unless withData
flag is specified
getCaseFile
in interface CaseInstance
public String getCaseDefinitionId()
CaseInstance
getCaseDefinitionId
in interface CaseInstance
public void setCaseDefinitionId(String caseDefinitionId)
public Integer getStatus()
CaseInstance
getStatus
in interface CaseInstance
public void setStatus(Integer status)
public String getDeploymentId()
CaseInstance
getDeploymentId
in interface CaseInstance
public void setDeploymentId(String deploymentId)
public String getOwner()
CaseInstance
getOwner
in interface CaseInstance
public void setOwner(String owner)
public Date getStartedAt()
CaseInstance
getStartedAt
in interface CaseInstance
public 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)
CaseInstance
setCaseFile
in interface CaseInstance
caseFile
- caseFileInstance informationpublic Date getCompletedAt()
CaseInstance
getCompletedAt
in interface CaseInstance
public void setCompletedAt(Date completedAt)
public String getCompletionMessage()
CaseInstance
getCompletionMessage
in interface CaseInstance
public void setCompletionMessage(String completionMessage)
public Date getSlaDueDate()
CaseInstance
getSlaDueDate
in interface CaseInstance
public void setSlaDueDate(Date slaDueDate)
public Integer getSlaCompliance()
CaseInstance
getSlaCompliance
in interface CaseInstance
public void setSlaCompliance(Integer slaCompliance)
public String getParentCaseId()
CaseInstance
getParentCaseId
in interface CaseInstance
public void setParentCaseId(String parentCaseId)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.