Class BoundaryNode

All Implemented Interfaces:
WorkflowNode

public final class BoundaryNode extends AbstractEventNode
A way out of the node named by host that the host's own trigger may never provide, such as "escalate after 7 days". While the host is parked the boundary races its trigger; firing first withdraws the park and continues from next. With cancel="false" the park stays and next starts a separate walk beside it.

The trigger is a timer (delay + unit, or until), a condition ( when), a message with a key, a signal, or on="error" with an optional code. An error boundary sits on a node that runs something and is consulted where its failure is raised: with a code it catches only a declared failure of that name, without one any failure at all. Boundaries on one host are tried in declaration order.

  • Constructor Details

    • BoundaryNode

      public BoundaryNode()
  • 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.
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getCode

      public String getCode()
    • setCode

      public void setCode(String code)
    • getCancel

      public Boolean getCancel()
    • setCancel

      public void setCancel(Boolean cancel)
    • getRepeatCount

      public Integer getRepeatCount()
    • setRepeatCount

      public void setRepeatCount(Integer repeatCount)
    • cancels

      public boolean cancels()
      getCancel(), with the default resolved: absent reads as true.