Documentation Index
Fetch the complete documentation index at: https://developer.kodexa.ai/llms.txt
Use this file to discover all available pages before exploring further.
EXECUTION steps run automated processing work. Use them for extraction, classification, conversion, enrichment, validation, or any module-backed processing that should be tracked as part of an Activity.
An execution step is the platform showing up in the business process: it does configured work, records status, captures outputs, and gives downstream steps a reliable dependency point.
When to Use EXECUTION
UseEXECUTION when the Activity should run a module or pipeline component:
- Extract fields from a document
- Classify a document family
- Convert or normalize document content
- Run a reusable validation module
- Enrich a document with structured outputs
- Apply a processing module across many document families
SCRIPT for inline business logic. Use BRIDGE_CALL for external API calls. Use EXECUTION for module-backed processing.
Basic Shape
| Config key | Description |
|---|---|
moduleRef | Module reference to execute |
moduleOptions | Module-specific options passed into the execution |
perDocument | Run once per document family instead of once for the Activity |
maxParallel | Limit parallel launches when perDocument is enabled |
bypass | Skip the step while keeping downstream dependency behavior explicit |
moduleRef for an EXECUTION step.
Single Execution
Use a single execution when the module should process the Activity context as one unit.Per-Document Execution
UseperDocument when each document family should be processed independently.
Parallelism
maxParallel controls how many per-document executions can be launched at once. Keep it high enough for throughput and low enough for downstream systems, model limits, or module resource needs.
Typical starting points:
| Work type | Starting maxParallel |
|---|---|
| Lightweight classification | 5-10 |
| Extraction with model calls | 2-5 |
| External-system-heavy enrichment | 1-3 |
| Resource-intensive conversion | 1-2 |
Knowledge Assessment
Execution steps can run after document knowledge has been assessed and enriched. This matters when a module depends on document family classification, feature assignment, or project knowledge sets. Practical pattern:- Intake creates document families.
- Knowledge assessment identifies document type or relevant features.
EXECUTIONruns the right extractor or classifier.SCRIPTorLLMroutes the outcome.CREATE_TASKhandles exceptions.
Downstream Dependencies
Downstream steps should depend on the execution step once its automated work is complete.EXECUTION step usually completes or fails; a following SCRIPT step is often where branching belongs.
Error Handling
Design for failure paths. Extraction and classification modules can fail because of document quality, unsupported layouts, missing configuration, or model/provider errors. Good Activity Plans make those outcomes explicit:- Let the execution step fail when the module cannot produce a trustworthy result.
- Use a downstream exception task for recoverable data issues.
- Use logging and step results for operational troubleshooting.
- Keep business routing in
SCRIPTorLLMsteps rather than hiding it inside a module when the decision should be visible to workflow owners.
Checklist
moduleRefpoints to a module available to the project.moduleOptionsare explicit and stable.perDocumentis enabled only when document-level tracking is useful.maxParallelis tuned for the real module and downstream systems.- The next step knows how to route success, failure, or partial results.
- Human review is modeled as
CREATE_TASK, not hidden inside the module.
Script Steps
Route execution results with inline JavaScript.
Create Task Steps
Add human review after automated processing.
