655
ctx context.Context,
656
timerTask *tasks.StateMachineTimerTask,
658
>
actionFn := func(
659
>
ctx context.Context,
660
>
wfContext historyi.WorkflowContext,
661
>
mutableState historyi.MutableState,
662
>
_ historyi.ReleaseWorkflowContextFunc,
663
>
) (any, error) {
664
>
processedTimers, err := t.executeStateMachineTimers(
665
>
ctx,
666
>
wfContext,
667
>
mutableState,
668
>
timerTask,
669
>
func(node *hsm.Node, task hsm.Task) error {
670
// If this line of code is reached, the task's Validate() function returned no error, which indicates
671
// that it is still expected to run. Return ErrTaskRetry to wait the machine to transition on the active