danielgerlag / danielgerlag/workflow-es

Self Transitions and Feedback loops

Open
#37 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
218
Forks
52
PR merge metrics
No merged PRs in 30d

Description

Could you please provide guidance on how best to implement a self-transition? That is a state that transitions back to itself? Ideally, it would do this conditionally. So, maybe it transitions to an If that can transition back to the original state?

Geneally, the framework seems to only support acyclic paths through the state machine. Surely you can have a return transition that goes back to a previous state? Would you just 'reinstantiate' that step again in the WF definition?

I suspect it would involve ExecutionResult.branch() but there is apparently no documentation of that nor any samples that use it. The If example also appears to be a once-through with no feedback loop.

Any help would be greatly appreciated. If all workflows have to be acyclical, that would be a dealbreaker for us using it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.