Contract Properties
- Name - Unique identifier for the contract
- Version - Supports contract evolution
- Rules - Validation logic for steps and transitions
- Entry Points - Valid starting steps
- Terminal Steps - Steps that complete the thread
- Timeouts - Maximum duration for steps and threads
Contract Structure
Key Components
| Component | Description |
|---|---|
contract_name | Unique identifier for the contract |
version | Contract version number (supports evolution) |
entry_points | Valid starting steps for threads |
parties | Roles involved in the workflow |
steps | Step definitions with timeouts and required fields |
transitions | Valid step-to-step flows |
terminal_steps | Steps that complete the thread |
max_duration | Thread-level timeout |
Next Steps
Working with Contracts
Learn how to use contracts in your code
Tracking Workflows
Record steps in your workflow