Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Examples

The following examples demonstrate various usage scenarios of the acts workflow engine.

Basic Examples

ExampleDescriptionPath
Simple LoopUsing JavaScript to implement a loop accumulatorexamples/simple
While LoopAccumulating with a while condition stepexamples/while
Model BuilderBuilding workflows via Rust Builder APIexamples/model_build

Interaction Examples

ExampleDescriptionPath
Action InteractionUsing IRQ interrupts to interact with clientsexamples/actions
Approval ProcessMulti-role approval workflow (PM, GM)examples/approve
Message NotificationUsing MSG to send one-way notificationsexamples/message

Error & Timeout

ExampleDescriptionPath
Error HandlingUsing catches to capture and handle errorsexamples/catches
Timeout HandlingUsing timeouts to handle step timeoutsexamples/timeout

Advanced Features

ExampleDescriptionPath
Event DrivenUsing on events to trigger workflow startexamples/event
SubflowUsing subflow to call child workflowsexamples/subflow
Custom PackageCreating and registering custom packagesexamples/package
Custom VariablesRegistering and using custom user variablesexamples/user_var

Plugin Examples

ExampleDescriptionPath
HTTP RequestSending HTTP requests via acts-package-httpexamples/plugins/http
Shell ExecutionExecuting shell scripts via acts-package-shellexamples/plugins/shell
State ManagementManaging state via acts-package-stateexamples/plugins/state

Running Examples

# Run approval process example
cargo run --example approve

# Run error handling example
cargo run --example catches

# Run timeout handling example
cargo run --example timeout