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.
CREATE_TASK steps are how an Activity brings a person into the workflow. Use them when the next decision cannot be safely automated: analyst review, correction, approval, exception handling, reconciliation, or escalation.
An Activity is broader than a task. The Activity owns the business process. A Task is the unit of human work created when that process needs judgment.
When to Use CREATE_TASK
Use aCREATE_TASK step when the workflow needs someone to:
- Review extracted fields before posting them to a downstream system
- Correct data that failed validation
- Decide whether an exception should be accepted, rejected, or escalated
- Approve work above a business threshold
- Add missing context that is not present in the document
- Resolve a mismatch between the document and a system of record
CREATE_TASK for pure automation. Use EXECUTION, SCRIPT, BRIDGE_CALL, or LLM for automated work.
Basic Shape
| Config key | Description |
|---|---|
taskTemplateRef | Task Template used to create the human work item |
taskStatusSlug | Initial status for the created Task |
taskData | Properties copied onto the Task |
title | Optional explicit title for the Task |
description | Optional explicit description for the Task |
priority | Optional priority; otherwise the parent Task priority can be inherited |
TASK in some code and stored data. The Activity Plan concept should still be modeled as CREATE_TASK: create a Task, wait for human work, then continue the Activity from the Task result.
How It Runs
When the step becomes ready, Kodexa:- Resolves the target project from the running Activity context.
- Resolves
taskTemplateRefinside that project organization. - Resolves
taskStatusSlugto the initial project task status. - Builds task properties from
taskData, title, description, and priority. - Creates the child Task and links it to the Activity step.
- Attaches the relevant document families.
- Waits for the Task to reach an outcome that can continue the Activity.
Document Family Handling
ACREATE_TASK step should carry the document context the reviewer needs. The runtime copies document families from the parent workflow context onto the created Task.
When the upstream dependency is a per-document step, Kodexa can narrow the copied document families to the document-level results that actually succeeded. This is useful for exception queues because the reviewer sees only the documents that need attention.
Task Templates
The Task Template is where you define the review surface:- Which Data Form the reviewer sees
- Which document families and data definitions are relevant
- Which actions or statuses complete the work
- Which assignment, priority, or team rules should apply
- Which fields are required before completion
Routing From a Task
Downstream steps can depend on the Task outcome.Naming Tasks
Use clear, business-facing titles. A reviewer should be able to scan a queue and know what needs attention. Good titles:Review invoice INV-10482Resolve vendor mismatchApprove loan packet exceptionReview missing claim documents
Step 3 child taskScript exceptionManual checkpoint
Practical Pattern
A common Activity Plan shape is: The Activity handles the process. The Task exists only for the review segment.Checklist
- The Task Template exists and is bound to the project.
- The Data Form gives the reviewer all required document and data context.
- The Activity Plan declares every Task outcome that downstream steps depend on.
- The created Task receives the right document families.
- Task titles and priorities are meaningful in a real review queue.
- Automated follow-up work depends on explicit Task outcomes, not only on the Task existing.
Activity Plan Steps
Compare CREATE_TASK with the other step kinds.
Data Forms
Build the reviewer interface used by human Tasks.
