An activity is a discrete, executable unit of work within a workflow, such as a function call, API request, or human task, which is invoked by the workflow engine. It represents a single, often idempotent, operation that advances the workflow's state. Activities are the building blocks of a workflow definition, which structures them into a sequence or graph using patterns like conditional branching and parallel execution. The engine manages their execution, handling retries, state persistence, and communication.
