Class ShowNotificationTask

All Implemented Interfaces:
HasHandlers

public class ShowNotificationTask extends ProcessElement
Show a message which fades out automatically using Notify.
  • Constructor Details

    • ShowNotificationTask

      public ShowNotificationTask()
    • ShowNotificationTask

      public ShowNotificationTask(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static ShowNotificationTask getOrCreateRef(JavaScriptObject jsObj)
    • create

      public JavaScriptObject create()
      Overrides:
      create in class ProcessElement
    • setAutoDismiss

      public ShowNotificationTask setAutoDismiss(Boolean autoDismiss) throws IllegalStateException
      Auto-dismiss message after a short duration.
      Parameters:
      autoDismiss - New autoDismiss value. Default value is true
      Returns:
      ShowNotificationTask instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
    • getAutoDismiss

      public Boolean getAutoDismiss()
      Auto-dismiss message after a short duration.
      Returns:
      Current autoDismiss value. Default value is true
    • setMessage

      public ShowNotificationTask setMessage(String message) throws IllegalStateException
      Message to display. To display a dynamic message see textFormula.
      Parameters:
      message - New message value. Default value is null
      Returns:
      ShowNotificationTask instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
    • getMessage

      public String getMessage()
      Message to display. To display a dynamic message see textFormula.
      Returns:
      Current message value. Default value is null
    • setNotifyType

      public ShowNotificationTask setNotifyType(String notifyType) throws IllegalStateException
      NotifyType for message.
      Parameters:
      notifyType - New notifyType value. Default value is "message"
      Returns:
      ShowNotificationTask instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
      See Also:
    • getNotifyType

      public String getNotifyType()
      NotifyType for message.
      Returns:
      Current notifyType value. Default value is "message"
      See Also:
    • setPosition

      public ShowNotificationTask setPosition(String position) throws IllegalStateException
      Where to show the message, specified as an edge ("T", "B", "R", "L") similar to Canvas.snapTo, or "C" for center. The message will be shown at the center of the edge specified (or the very center for "C").
      Parameters:
      position - New position value. Default value is "T"
      Returns:
      ShowNotificationTask instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
    • getPosition

      public String getPosition()
      Where to show the message, specified as an edge ("T", "B", "R", "L") similar to Canvas.snapTo, or "C" for center. The message will be shown at the center of the edge specified (or the very center for "C").
      Returns:
      Current position value. Default value is "T"
    • setTextFormula

      public ShowNotificationTask setTextFormula(UserSummary textFormula) throws IllegalStateException
      Formula to be used to calculate the message contents. Use message property to assign a static message instead.

      Available fields for use in the formula are the current rule context.

      Parameters:
      textFormula - New textFormula value. Default value is null
      Returns:
      ShowNotificationTask instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the underlying component has been created
    • getTextFormula

      public UserSummary getTextFormula()
      Formula to be used to calculate the message contents. Use message property to assign a static message instead.

      Available fields for use in the formula are the current rule context.

      Returns:
      Current textFormula value. Default value is null