Class 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> &lt;complexType&gt; &lt;complexContent&gt; &lt;extension base="{http://flower.com/docs/domain/component}Component"&gt; &lt;sequence&gt; &lt;element name="workflow" type="{http://flower.com/docs/domain/common}Id"/&gt; &lt;element name="processInstance" type="{http://flower.com/docs/domain/common}Id"/&gt; &lt;element name="caseInstance" type="{http://flower.com/docs/domain/common}Id"/&gt; &lt;element name="assignee" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; &lt;element name="participants" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;element name="attachments" type="{http://flower.com/docs/domain/task}Attachment" maxOccurs="unbounded"/&gt; &lt;element name="answer" type="{http://flower.com/docs/domain/taskclass}Answer" minOccurs="0"/&gt; &lt;element name="files" type="{http://flower.com/docs/domain/file}DocumentFile" maxOccurs="unbounded" minOccurs="0"/&gt; &lt;/sequence&gt; &lt;/extension&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • 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 is Id
        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 is Id
        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 is Id
        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 is String
        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 list String <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 list Attachment <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 is Answer
      • 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 list DocumentFile <p> The file attachments of a task
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • setParticipants

        public void setParticipants​(java.util.List<java.lang.String> value)
        See Also:
        getParticipants()