Interactive workflows using dotnet-state-machine/stateless.
Packages
- PowerShell 5.1 and 7.x module, PSGallery FarNet.Stateless
- FarNet library, NuGet FarNet.Stateless
Use cases
- Interactive workflows using PowerShell host UI.
- Persistent workflows using checkpoint files.
- Testing and visualizing state machines.
- Interactive input of complex data.
- Hierarchical action/choice menus.
Phone.stateless.ps1 example with interactive loop in PowerShell:
(OnHook
-> OffHook
-> Dial
(+ prompt for number) -> Ringing
-> Connected
-> ...)
You may install the PowerShell module by this command:
Install-Module -Name FarNet.Stateless
Explore, see also about_FarNet.Stateless.help.txt:
# import and get module commands
Import-Module -Name FarNet.Stateless
Get-Command -Module FarNet.Stateless
# get module and commands help
help about_FarNet.Stateless
help Invoke-Stateless
help Invoke-StateMachine
help Show-StateMachine
To install as the FarNet library FarNet.Stateless
, follow these steps.
See PowerShell FarNet modules for details.