Forwarding and effects

This page documents how to use Cloudstate effects and forwarding in Javascript. For high level information on what Cloudstate effects and forwarding is, please read the general forwarding and effects documentation first.

Forwarding command

The CommandContextnew tab can call the method thenForwardnew tab to forward the command to another entity service call.

Emitting an effect

The CommandContextnew tab for each entity type implements EffectContextnew tab, which is able to emit an effect after processing the command by invoking the method effectnew tab