OptionaldescriptionOptionaleditableOptionalfieldsOptionalgroupOptionalinitialOptionalofOptionaloptionsOptionalrequiredOptionalrolesNon-empty assignment eligibility constraint. User roles apply aliases; collective roles match literally.
OptionaltitleOptionaltypesOptionalvalidation
A field declaration whose location determines its scope and lifetime. Workflow fields initialize at start; stage and activity fields initialize on each stage visit. FieldSource controls initialization; Editable controls direct edits independently.
required: trueis valid only on workflow-scope fields with aninputsource. It requires a non-null value at start or spawn. Onsubject,doc.ref, anddoc.refs, selected targets must also remain readable in the workflow perspective after initialization. Missing targets block normal actions, triggered actions, and transitions. Abort and permitted field edits remain available.subjectis also workflow-scope-only, with at most one subject per definition. Each scope may declare at most onedueDateordueDatetimefield, always top-level.typesis a nonempty list of accepted document types onsubject,doc.ref, ordoc.refs; omit it to accept any document type. Onsubject,typesinstead governs which documents the definition's applicability read matches: an unscopedsubjectnever matches a system document (isSystemDocumentType), and naming a reserved-namespace type intypesmatches it. Naming an engine-owned type failsdefineWorkflowand deploy validation; to run a workflow from another workflow, usespawn. A stored definition that names one never matches it.rolesconstrains assignment eligibility only onassigneeandassignees. FieldShape, ChoiceOptions, and ScalarValidation define the nested-shape and scalar constraints. Authoring conveniences are accepted by AuthoringFieldEntry.