Class Element

java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.workflow.element.Element
All Implemented Interfaces:
Identifiable, Serializable
Direct Known Subclasses:
SignalEvent, Task, TimerEvent

public class Element extends AbstractIdentifiable
The parent class for an element in a process flow.
See Also:
  • Constructor Details

    • Element

      public Element(String typeId, String id, String elementId, String name, String description, Element.ElementType type, ProcessFlowDescriptor.FlowStatus flowStatus, String processFlowId, Date created)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the elements returned by the API.
      Parameters:
      typeId - The object type identifier of the element.
      id - The unique identifier of the element.
      elementId - The identifier of the element as it appears in the process flow definition.
      name - The name of the element.
      description - The description of the element.
      type - The type of the element.
      flowStatus - The status of the process flow that contains the element.
      processFlowId - The identifier of the process flow that contains the element.
      created - The date on which the element was created.
  • Method Details

    • getElementId

      public String getElementId()
      Gets the identifier for the element as defined in the process definition.
      Returns:
      The identifier.
    • getName

      public String getName()
      Gets the name for the element.
      Returns:
      The name.
    • setName

      public void setName(String name)
      Sets the name of the element.
      Parameters:
      name - The name.
    • getProcessFlowId

      public String getProcessFlowId()
      Gets the identifier of the process flow that contains the element.
      Returns:
      The process flow identifier.
    • getCreated

      public Date getCreated()
      Gets the date on which the element was created.
      Returns:
      The date.
    • getType

      public Element.ElementType getType()
      Gets the type of the element.
      Returns:
      The type.
    • getFlowStatus

      public ProcessFlowDescriptor.FlowStatus getFlowStatus()
      Gets the status of the process flow that contains the element.
      Returns:
      The status.
    • getDescription

      public String getDescription()
      Gets the description of the element.
      Returns:
      The description of the element.
    • setDescription

      public void setDescription(String description)
      Sets the description of the element.
      Parameters:
      description - The description.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractIdentifiable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AbstractIdentifiable
    • toString

      public String toString()
      Overrides:
      toString in class AbstractIdentifiable