action

Convenience to create a WorkflowAction with parameter types matching those of the receiving StatefulWorkflow. The action will invoke the given lambda when it is applied.

Parameters

name

A string describing the update for debugging, included in toString.

update

Function that defines the workflow update.


Convenience to create a WorkflowAction with parameter types matching those of the receiving StatefulWorkflow. The action will invoke the given lambda when it is applied.

Parameters

name

Function that returns a string describing the update for debugging, included in toString.

update

Function that defines the workflow update.


Convenience to create a WorkflowAction with parameter types matching those of the receiving StatefulWorkflow. The action will invoke the given lambda when it is applied.

Parameters

name

A string describing the update for debugging, included in toString.

update

Function that defines the workflow update.


Convenience to create a WorkflowAction with parameter types matching those of the receiving StatefulWorkflow. The action will invoke the given lambda when it is applied.

Parameters

name

Function that returns a string describing the update for debugging, included in toString.

update

Function that defines the workflow update.


Creates a WorkflowAction from the apply lambda. The returned object will include the string returned from name in its toString.

It is more common to use StatefulWorkflow.action or StatelessWorkflow.action instead of this function directly, to avoid repeating its parameter types.

Parameters

name

A string describing the update for debugging.

apply

Function that defines the workflow update.

See also


Creates a WorkflowAction from the apply lambda. The returned object will include the string returned from name in its toString.

It is more common to use StatefulWorkflow.action or StatelessWorkflow.action instead of this function directly, to avoid repeating its parameter types.

Parameters

name

Function that returns a string describing the update for debugging.

apply

Function that defines the workflow update.

See also