Class SignalChannelDef

java.lang.Object
io.iworkflow.core.communication.SignalChannelDef
All Implemented Interfaces:
CommunicationMethodDef

@Immutable public abstract class SignalChannelDef extends Object implements CommunicationMethodDef
  • Constructor Details

    • SignalChannelDef

      public SignalChannelDef()
  • Method Details

    • create

      public static SignalChannelDef create(Class type, String name)
      iWF will verify if the name has been registered for the signal channel created using this method, allowing users to create only one signal channel with the same name and type.
      Parameters:
      type - required.
      name - required. The unique name.
      Returns:
      a signal channel definition
    • createByPrefix

      public static SignalChannelDef createByPrefix(Class type, String namePrefix)
      iWF now supports dynamically created signal channels with a shared name prefix and the same type. (E.g., dynamically created signal channels of type String can be named with a common prefix like: signal_channel_prefix_1: "one", signal_channel_prefix_2: "two") iWF will verify if the prefix has been registered for signal channels created using this method, allowing users to create multiple signal channels with the same name prefix and type.
      Parameters:
      type - required.
      namePrefix - required. The common name prefix of a set of signal channels to be created later.
      Returns:
      a signal channel definition