Package io.iworkflow.core.communication
Class CommunicationImpl
java.lang.Object
io.iworkflow.core.communication.CommunicationImpl
- All Implemented Interfaces:
Communication
-
Constructor Summary
ConstructorsConstructorDescriptionCommunicationImpl
(TypeStore typeStore, ObjectEncoder objectEncoder, boolean allowTriggerStateMovements) -
Method Summary
Modifier and TypeMethodDescriptionvoid
publishInternalChannel
(String channelName, 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 Details
-
CommunicationImpl
public CommunicationImpl(TypeStore typeStore, ObjectEncoder objectEncoder, boolean allowTriggerStateMovements)
-
-
Method Details
-
publishInternalChannel
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
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
-
getStateMovements
-