Class CommunicationImpl

java.lang.Object
io.iworkflow.core.communication.CommunicationImpl
All Implemented Interfaces:
Communication

public class CommunicationImpl extends Object implements Communication
  • Constructor Details

    • CommunicationImpl

      public CommunicationImpl(TypeStore typeStore, ObjectEncoder objectEncoder, boolean allowTriggerStateMovements)
  • Method Details

    • publishInternalChannel

      public void publishInternalChannel(String channelName, Object value)
      Description copied from interface: Communication
      Publish a value to an internal Channel
      Specified by:
      publishInternalChannel in interface Communication
      Parameters:
      channelName - the channel name to send value
      value - the value to be sent
    • triggerStateMovements

      public void triggerStateMovements(StateMovement... stateMovements)
      Description copied from interface: Communication
      trigger new state movements as the RPC results NOTE: closing workflows like completing/failing are not supported NOTE: Only used in RPC -- cannot be used in state APIs
      Specified by:
      triggerStateMovements in interface Communication
    • getToPublishInternalChannels

      public Map<String,List<EncodedObject>> getToPublishInternalChannels()
    • getStateMovements

      public List<StateMovement> getStateMovements()