Class CaseInstanceImpl
- java.lang.Object
-
- org.jbpm.casemgmt.impl.model.instance.CaseInstanceImpl
-
- All Implemented Interfaces:
Serializable
,CaseInstance
public class CaseInstanceImpl extends Object implements CaseInstance, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CaseInstanceImpl()
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 automaticallyCaseInstanceImpl(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 automaticallyCaseInstanceImpl(String caseId, String caseDescription, Collection<CaseStageInstance> caseStages, Collection<CaseMilestoneInstance> caseMilestones, Collection<CaseRoleInstance> caseRoles, CaseFileInstance caseFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCaseDefinitionId()
Returns case definition idString
getCaseDescription()
Returns case descriptionCaseFileInstance
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 caseString
getCompletionMessage()
Returns completion message (if any) of this caseString
getDeploymentId()
Returns deployment idString
getOwner()
Returns owner of the case - usually one who started the caseString
getParentCaseId()
Returns the parent id case if anyLong
getProcessInstanceId()
Integer
getSlaCompliance()
Returns up to date SLA compliance level for case instanceDate
getSlaDueDate()
Returns SLA due date if any is set on case instanceDate
getStartedAt()
Returns start date of this caseInteger
getStatus()
Returns status of the casevoid
setCaseDefinitionId(String caseDefinitionId)
void
setCaseDescription(String caseDescription)
void
setCaseFile(CaseFileInstance caseFile)
Sets case file information to this instancevoid
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()
-
-
-
Constructor Detail
-
CaseInstanceImpl
public CaseInstanceImpl()
-
CaseInstanceImpl
public CaseInstanceImpl(String caseId, String caseDescription, Collection<CaseStageInstance> caseStages, Collection<CaseMilestoneInstance> caseMilestones, Collection<CaseRoleInstance> caseRoles, CaseFileInstance caseFile)
-
CaseInstanceImpl
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)
Constructor to be used mainly by persistence provider to create instances automatically- Parameters:
caseId
-caseDescription
-
-
CaseInstanceImpl
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)
Constructor to be used mainly by persistence provider to create instances automatically- Parameters:
caseId
-caseDescription
-
-
-
Method Detail
-
getCaseId
public String getCaseId()
Description copied from interface:CaseInstance
Returns case identifier of this case.- Specified by:
getCaseId
in interfaceCaseInstance
-
getCaseDescription
public String getCaseDescription()
Description copied from interface:CaseInstance
Returns case description- Specified by:
getCaseDescription
in interfaceCaseInstance
-
getCaseStages
public Collection<CaseStageInstance> getCaseStages()
Description copied from interface:CaseInstance
Returns available case stages in this case.- Specified by:
getCaseStages
in interfaceCaseInstance
-
getCaseMilestones
public Collection<CaseMilestoneInstance> getCaseMilestones()
Description copied from interface:CaseInstance
Returns available case milestones for this case.- Specified by:
getCaseMilestones
in interfaceCaseInstance
-
getCaseRoles
public Collection<CaseRoleInstance> getCaseRoles()
Description copied from interface:CaseInstance
Returns case roles for this case.- Specified by:
getCaseRoles
in interfaceCaseInstance
-
getCaseFile
public CaseFileInstance getCaseFile()
Description copied from interface:CaseInstance
Returns case file associated with this case.Note:
CaseInstance.getCaseFile()
will be empty unlesswithData
flag is specified- Specified by:
getCaseFile
in interfaceCaseInstance
-
getCaseDefinitionId
public String getCaseDefinitionId()
Description copied from interface:CaseInstance
Returns case definition id- Specified by:
getCaseDefinitionId
in interfaceCaseInstance
-
setCaseDefinitionId
public void setCaseDefinitionId(String caseDefinitionId)
-
getStatus
public Integer getStatus()
Description copied from interface:CaseInstance
Returns status of the case- Specified by:
getStatus
in interfaceCaseInstance
-
setStatus
public void setStatus(Integer status)
-
getDeploymentId
public String getDeploymentId()
Description copied from interface:CaseInstance
Returns deployment id- Specified by:
getDeploymentId
in interfaceCaseInstance
-
setDeploymentId
public void setDeploymentId(String deploymentId)
-
getOwner
public String getOwner()
Description copied from interface:CaseInstance
Returns owner of the case - usually one who started the case- Specified by:
getOwner
in interfaceCaseInstance
-
setOwner
public void setOwner(String owner)
-
getStartedAt
public Date getStartedAt()
Description copied from interface:CaseInstance
Returns start date of this case- Specified by:
getStartedAt
in interfaceCaseInstance
-
setStartedAt
public void setStartedAt(Date startedAt)
-
getProcessInstanceId
public Long getProcessInstanceId()
-
setProcessInstanceId
public void setProcessInstanceId(Long processInstanceId)
-
setCaseId
public void setCaseId(String caseId)
-
setCaseDescription
public void setCaseDescription(String caseDescription)
-
setCaseStages
public void setCaseStages(Collection<CaseStageInstance> caseStages)
-
setCaseMilestones
public void setCaseMilestones(Collection<CaseMilestoneInstance> caseMilestones)
-
setCaseRoles
public void setCaseRoles(Collection<CaseRoleInstance> caseRoles)
-
setCaseFile
public void setCaseFile(CaseFileInstance caseFile)
Description copied from interface:CaseInstance
Sets case file information to this instance- Specified by:
setCaseFile
in interfaceCaseInstance
- Parameters:
caseFile
- caseFileInstance information
-
getCompletedAt
public Date getCompletedAt()
Description copied from interface:CaseInstance
Returns completion date of this case- Specified by:
getCompletedAt
in interfaceCaseInstance
-
setCompletedAt
public void setCompletedAt(Date completedAt)
-
getCompletionMessage
public String getCompletionMessage()
Description copied from interface:CaseInstance
Returns completion message (if any) of this case- Specified by:
getCompletionMessage
in interfaceCaseInstance
-
setCompletionMessage
public void setCompletionMessage(String completionMessage)
-
getSlaDueDate
public Date getSlaDueDate()
Description copied from interface:CaseInstance
Returns SLA due date if any is set on case instance- Specified by:
getSlaDueDate
in interfaceCaseInstance
-
setSlaDueDate
public void setSlaDueDate(Date slaDueDate)
-
getSlaCompliance
public Integer getSlaCompliance()
Description copied from interface:CaseInstance
Returns up to date SLA compliance level for case instance- Specified by:
getSlaCompliance
in interfaceCaseInstance
-
setSlaCompliance
public void setSlaCompliance(Integer slaCompliance)
-
getParentCaseId
public String getParentCaseId()
Description copied from interface:CaseInstance
Returns the parent id case if any- Specified by:
getParentCaseId
in interfaceCaseInstance
- Returns:
- the parent case id
-
setParentCaseId
public void setParentCaseId(String parentCaseId)
-
-