Class MetaWorkflow


@Entity public class MetaWorkflow extends AuditableModel
  • Constructor Details

    • MetaWorkflow

      public MetaWorkflow()
    • MetaWorkflow

      public MetaWorkflow(String name)
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in class Model
    • setId

      public void setId(Long id)
      Specified by:
      setId in class Model
    • getXmlId

      public String getXmlId()
      The definition's id; runs, tasks and states refer to it.
      Returns:
      the property value
    • setXmlId

      public void setXmlId(String xmlId)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getModel

      public String getModel()
      Entity class the workflow runs on; com.axelor.meta.db.MetaJsonRecord for a custom model.
      Returns:
      the property value
    • setModel

      public void setModel(String model)
    • getJsonModel

      public String getJsonModel()
      Custom model name; null for a real entity.
      Returns:
      the property value
    • setJsonModel

      public void setJsonModel(String jsonModel)
    • getModule

      public String getModule()
    • setModule

      public void setModule(String module)
    • getPriority

      public Integer getPriority()
      Among definitions with the same name, the highest wins.
      Returns:
      the property value
    • setPriority

      public void setPriority(Integer priority)
    • getSequence

      public Integer getSequence()
      Run order among workflows fired by the same change, lowest first.
      Returns:
      the property value
    • setSequence

      public void setSequence(Integer sequence)
    • getActive

      public Boolean getActive()
    • setActive

      public void setActive(Boolean active)
    • getTriggerType

      public WorkflowTrigger getTriggerType()
      The start trigger, copied from the XML for the registry.
      Returns:
      the property value
    • setTriggerType

      public void setTriggerType(WorkflowTrigger triggerType)
    • getXml

      public String getXml()
    • setXml

      public void setXml(String xml)
    • getStudioProject

      public StudioResource getStudioProject()
    • setStudioProject

      public void setStudioProject(StudioResource studioProject)
    • getCurrentRevision

      public Integer getCurrentRevision()
      Revision of the stored XML; a new run is pinned to it.
      Returns:
      the property value
    • setCurrentRevision

      public void setCurrentRevision(Integer currentRevision)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object