Class WorkflowLink

  • All Implemented Interfaces:
    WorkflowEntity

    public class WorkflowLink
    extends java.lang.Object
    implements WorkflowEntity
    Represents Workflow Link
    • Method Detail

      • ofSavedModel

        public static WorkflowLink ofSavedModel​(LinkModel linkModel)
        Creates instance based on the saved LinkModel. The isAndConnection() property will be resolved automatically from the model
        Parameters:
        linkModel - model for which the object will be created
        Returns:
        created object.
      • ofUnsavedModel

        public static WorkflowLink ofUnsavedModel​(LinkModel linkModel,
                                                  boolean andConnection)
        Creates instance based on the un-saved LinkModel. The isAndConnection() property has to be passed as the model is not persisted and does not have access to Item.setAttribute(String, Object).
        Parameters:
        linkModel - model for which the object will be created
        andConnection - if the model should be treated as 'andConnection' link
        Returns:
        created object.
      • isAndConnection

        public boolean isAndConnection()
      • getSource

        public WorkflowEntity getSource()
        Returns:
        source of the link
      • getTarget

        public WorkflowEntity getTarget()
        Returns:
        target of the link
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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