Package io.iworkflow.core.communication
Class CommunicationImpl
- java.lang.Object
-
- io.iworkflow.core.communication.CommunicationImpl
-
- All Implemented Interfaces:
Communication
public class CommunicationImpl extends java.lang.Object implements Communication
-
-
Constructor Summary
Constructors Constructor Description CommunicationImpl(java.util.Map<java.lang.String,java.lang.Class<?>> nameToTypeMap, ObjectEncoder objectEncoder, boolean allowTriggerStateMovements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<StateMovement>
getStateMovements()
java.util.Map<java.lang.String,java.util.List<EncodedObject>>
getToPublishInternalChannels()
void
publishInternalChannel(java.lang.String channelName, java.lang.Object value)
Publish a value to an internal Channelvoid
triggerStateMovements(StateMovement... stateMovements)
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
-
-
-
Constructor Detail
-
CommunicationImpl
public CommunicationImpl(java.util.Map<java.lang.String,java.lang.Class<?>> nameToTypeMap, ObjectEncoder objectEncoder, boolean allowTriggerStateMovements)
-
-
Method Detail
-
publishInternalChannel
public void publishInternalChannel(java.lang.String channelName, java.lang.Object value)
Description copied from interface:Communication
Publish a value to an internal Channel- Specified by:
publishInternalChannel
in interfaceCommunication
- Parameters:
channelName
- the channel name to send valuevalue
- 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 interfaceCommunication
-
getToPublishInternalChannels
public java.util.Map<java.lang.String,java.util.List<EncodedObject>> getToPublishInternalChannels()
-
getStateMovements
public java.util.List<StateMovement> getStateMovements()
-
-