Package com.flower.docs.domain.task
Class Task
- java.lang.Object
-
- com.flower.docs.domain.common.IdentifiableElement
-
- com.flower.docs.domain.component.Component
-
- com.flower.docs.domain.task.Task
-
- All Implemented Interfaces:
java.io.Serializable
public class Task extends Component implements java.io.Serializable
Flower component standing for a task <p>Java class for anonymous complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> <complexType> <complexContent> <extension base="{http://flower.com/docs/domain/component}Component"> <sequence> <element name="workflow" type="{http://flower.com/docs/domain/common}Id"/> <element name="processInstance" type="{http://flower.com/docs/domain/common}Id"/> <element name="caseInstance" type="{http://flower.com/docs/domain/common}Id"/> <element name="assignee" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="participants" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> <element name="attachments" type="{http://flower.com/docs/domain/task}Attachment" maxOccurs="unbounded"/> <element name="answer" type="{http://flower.com/docs/domain/taskclass}Answer" minOccurs="0"/> <element name="files" type="{http://flower.com/docs/domain/file}DocumentFile" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType> </pre>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Answer
answer
protected java.lang.String
assignee
The principal of user or a team to which the task is assignedprotected java.util.List<Attachment>
attachments
The child components of a taskprotected Id
caseInstance
The id of the case instance to which the task belongsprotected java.util.List<DocumentFile>
files
The file attachments of a taskprotected java.util.List<java.lang.String>
participants
The principals of the participants who answer to the taskprotected Id
processInstance
The id of the process instance to which the task belongsprotected Id
workflow
The id of the workflow to which the task belongs-
Fields inherited from class com.flower.docs.domain.common.IdentifiableElement
id
-
-
Constructor Summary
Constructors Constructor Description Task()
Default no-arg constructor abcTask(Id id, ComponentData data, Tags tags, Category category, java.lang.String name, Id workflow, Id processInstance, Id caseInstance, java.lang.String assignee, java.util.List<java.lang.String> participants, java.util.List<Attachment> attachments, Answer answer, java.util.List<DocumentFile> files)
Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
Answer
getAnswer()
Gets the value of the answer property.java.lang.String
getAssignee()
Gets the value of the assignee property.java.util.List<Attachment>
getAttachments()
Gets the value of the attachments property.Id
getCaseInstance()
Gets the value of the caseInstance property.java.util.List<DocumentFile>
getFiles()
Gets the value of the files property.java.util.List<java.lang.String>
getParticipants()
Gets the value of the participants property.Id
getProcessInstance()
Gets the value of the processInstance property.Id
getWorkflow()
Gets the value of the workflow property.int
hashCode()
void
setAnswer(Answer value)
Sets the value of the answer property.void
setAssignee(java.lang.String value)
Sets the value of the assignee property.void
setAttachments(java.util.List<Attachment> value)
void
setCaseInstance(Id value)
Sets the value of the caseInstance property.void
setFiles(java.util.List<DocumentFile> value)
void
setParticipants(java.util.List<java.lang.String> value)
void
setProcessInstance(Id value)
Sets the value of the processInstance property.void
setWorkflow(Id value)
Sets the value of the workflow property.java.lang.String
toString()
-
Methods inherited from class com.flower.docs.domain.component.Component
getCategory, getData, getName, getTags, setCategory, setData, setName, setTags
-
Methods inherited from class com.flower.docs.domain.common.IdentifiableElement
getId, setId
-
-
-
-
Field Detail
-
workflow
protected Id workflow
The id of the workflow to which the task belongs
-
processInstance
protected Id processInstance
The id of the process instance to which the task belongs
-
caseInstance
protected Id caseInstance
The id of the case instance to which the task belongs
-
assignee
protected java.lang.String assignee
The principal of user or a team to which the task is assigned
-
participants
protected java.util.List<java.lang.String> participants
The principals of the participants who answer to the task
-
attachments
protected java.util.List<Attachment> attachments
The child components of a task
-
answer
protected Answer answer
-
files
protected java.util.List<DocumentFile> files
The file attachments of a task
-
-
Constructor Detail
-
Task
public Task()
Default no-arg constructor abc
-
Task
public Task(Id id, ComponentData data, Tags tags, Category category, java.lang.String name, Id workflow, Id processInstance, Id caseInstance, java.lang.String assignee, java.util.List<java.lang.String> participants, java.util.List<Attachment> attachments, Answer answer, java.util.List<DocumentFile> files)
Fully-initialising value constructor
-
-
Method Detail
-
getWorkflow
public Id getWorkflow()
Gets the value of the workflow property. <p> The id of the workflow to which the task belongs- Returns:
- possible object is
Id
-
setWorkflow
public void setWorkflow(Id value)
Sets the value of the workflow property.- Parameters:
value
- allowed object isId
- See Also:
getWorkflow()
-
getProcessInstance
public Id getProcessInstance()
Gets the value of the processInstance property. <p> The id of the process instance to which the task belongs- Returns:
- possible object is
Id
-
setProcessInstance
public void setProcessInstance(Id value)
Sets the value of the processInstance property.- Parameters:
value
- allowed object isId
- See Also:
getProcessInstance()
-
getCaseInstance
public Id getCaseInstance()
Gets the value of the caseInstance property. <p> The id of the case instance to which the task belongs- Returns:
- possible object is
Id
-
setCaseInstance
public void setCaseInstance(Id value)
Sets the value of the caseInstance property.- Parameters:
value
- allowed object isId
- See Also:
getCaseInstance()
-
getAssignee
public java.lang.String getAssignee()
Gets the value of the assignee property. <p> The principal of user or a team to which the task is assigned- Returns:
- possible object is
String
-
setAssignee
public void setAssignee(java.lang.String value)
Sets the value of the assignee property.- Parameters:
value
- allowed object isString
- See Also:
getAssignee()
-
getParticipants
public java.util.List<java.lang.String> getParticipants()
Gets the value of the participants property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the participants property. <p> For example, to add a new item, do as follows: <pre> getParticipants().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the listString
<p> The principals of the participants who answer to the task
-
getAttachments
public java.util.List<Attachment> getAttachments()
Gets the value of the attachments property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the attachments property. <p> For example, to add a new item, do as follows: <pre> getAttachments().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the listAttachment
<p> The child components of a task
-
getAnswer
public Answer getAnswer()
Gets the value of the answer property.- Returns:
- possible object is
Answer
-
setAnswer
public void setAnswer(Answer value)
Sets the value of the answer property.- Parameters:
value
- allowed object isAnswer
-
getFiles
public java.util.List<DocumentFile> getFiles()
Gets the value of the files property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the files property. <p> For example, to add a new item, do as follows: <pre> getFiles().add(newItem); </pre> <p> Objects of the following type(s) are allowed in the listDocumentFile
<p> The file attachments of a task
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
setParticipants
public void setParticipants(java.util.List<java.lang.String> value)
- See Also:
getParticipants()
-
setAttachments
public void setAttachments(java.util.List<Attachment> value)
- See Also:
getAttachments()
-
setFiles
public void setFiles(java.util.List<DocumentFile> value)
- See Also:
getFiles()
-
-