RIDDL Documentation
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Action

An Action is something a program does. Actions are used in the then and but clauses of an example.

There are many kinds of Actions, described in the table below

NameDescription
AppendAdd an item to a field that is a collection
ArbitraryA textually described arbitrary action
AskSend a message to an entity, asynchronously process result
BecomeInstructs an entity change to a new handler
CompoundExecute a group of nested actions
ErrorProduce an error with a message
FunctionCallCall a function to get a result
MorphMorph the state of an entity to a new state
PublishPublish a message to a pipe
ReplyProvide the reply message to the entity that invoked a query
ReturnReturn a value from a function
SetSet a field of the current state of an entity
TellSend a message to an entity, do not wait for result
YieldPlace a message on an entity’s event pipe

Applicability

Not all actions can be used in every situation. The table below show the exceptions. Examples occur in handlers and they in turn occur in contexts, entities, functions, projections, and states.

NameContextEntityFunctionProjectionState
Append
Arbitrary
Ask
Become
Compound
Error
FunctionCall
Morph
Publish
Reply
Return
Set
Tell
Yield

Occurs In

Contains