Process Variables¶
Process variables are key-value pairs that store data within a process instance. They can be accessed and modified by tasks during process execution.
Variable Types¶
Pythmata supports the following variable types:
- String
- Number (Integer/Float)
- Boolean
- JSON/Dictionary
- List/Array
- Date/Time
- Binary Data
Defining Variables¶
Variables can be defined in several ways:
- Process Definition
- Process Instance Creation
- Task Execution
Variable Scope¶
Variables have different scopes:
- Process Level
- Sub-process Level
- Multi-instance Level
Best Practices¶
- Use meaningful variable names
- Document variable purposes
- Consider variable lifecycle
- Handle variable persistence
- Implement proper error handling