Class ScriptNode

java.lang.Object
com.axelor.meta.schema.workflows.ScriptNode
All Implemented Interfaces:
WorkflowNode

public final class ScriptNode extends Object implements WorkflowNode
Runs its script body (the element text), then continues to next. It declares its own id, title, description and next, since MOXy refuses @XmlValue on a subclass of a bound class.
  • Constructor Details

    • ScriptNode

      public ScriptNode()
  • Method Details

    • type

      public String type()
      Description copied from interface: WorkflowNode
      The element name (start, script, ...), matching the @JsonSubTypes names. Not getType(), so bean scanning ignores it.
      Specified by:
      type in interface WorkflowNode
    • getId

      public String getId()
      Specified by:
      getId in interface WorkflowNode
    • setId

      public void setId(String id)
    • getNext

      public String getNext()
    • setNext

      public void setNext(String next)
    • getTitle

      public String getTitle()
      Description copied from interface: WorkflowNode
      What the author called it, and what they said about it.
      Specified by:
      getTitle in interface WorkflowNode
    • setTitle

      public void setTitle(String title)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface WorkflowNode
    • setDescription

      public void setDescription(String description)
    • getScript

      public String getScript()
    • setScript

      public void setScript(String script)
    • getAsync

      public Boolean getAsync()
    • setAsync

      public void setAsync(Boolean async)
    • runsAsync

      public boolean runsAsync()
      getAsync(), with the default resolved: absent reads as false.