Change Order Workflows
Overview
Change Order Workflow Templates provide a powerful way to customize the approval process for change orders in your PLM library. Using YAML configuration files, you can define multi-stage review processes, specify required approvers, and configure automated actions that align with your organization's change management procedures.
Why Use Workflow Templates?
Every organization has unique requirements for managing engineering changes. Workflow templates allow you to:
Standardize Processes: Ensure consistent review procedures across all change orders
Enforce Compliance: Meet regulatory requirements with mandatory approval stages
Automate Actions: Choose whether change orders close automatically or manually once resolved, and who is notified along the way
Customize Fields: Capture the specific information your team needs for decision-making
Getting Started
Each Duro library comes with two default workflow templates:
Single Stage Review (
default.yaml): A single-stage approval workflow with a Details group containing a single Reason for Change field.Dual Stage Review (
double.yaml): A two-stage workflow with an Impact Analysis group capturing cost and description impact.
These templates serve as starting points that you can customize for your specific needs.
Basic Workflow Structure
Every workflow template follows this structure:
Choosing a Schema Version
The version line declares which version of the template format your file follows. It is not a version of your template — it tells Duro which schema to validate the file against.
version
Use it when
Validated against
'1.2'
Use this for new templates. Same fields as '1.1', plus required approvers. It is the only version Duro validates against its schema at upload, so a malformed template is rejected with a path to the problem instead of failing later.
'1.1'
You have an existing template that controls change order types. co_types is required; default_co_type is optional.
'1.0'
You have an existing template without co_types. It stays valid and implicitly allows only ECO. co_types and default_co_type are rejected under this version.
To move a '1.1' template to '1.2', change version; nothing else about the format changes, but the template must now pass schema validation to save. To move a '1.0' template forward, also add a co_types list. Once a template is at '1.2' it cannot be moved back to an earlier version (CANNOT_DOWNGRADE_SCHEMA_VERSION). If your editor supports the YAML Language Server, add the matching schema at the top of the file to get validation as you type:
Every property table and constraint per version is in the Workflow Reference → Schema Information.
Creating Custom Fields
The details.info.groups section lets you define custom fields that users fill out when creating a change order. Fields are organized into logical groups for better user experience.
Choosing a Field Type
Start from what you want the person filling out the change order to do, then pick the type:
I want the user to…
Use type:
Also add
Type a short answer (a title, a part number)
text
—
Type a paragraph or more
longtext
—
Enter a number
number
—
Enter a monetary amount
currency
—
Pick a date
date
—
Pick exactly one option from a fixed set
enum
options
Pick one or more options from a fixed set
list
options and multiSelect: true
The Workflow Reference lists every property each type accepts.
Example: Adding Change Classification
A single-select dropdown. The user picks one category; the change order stores and shows that option's value (for example, Design Update).
Example: Letting users pick more than one option
The same shape, but with type: list and multiSelect: true. The dropdown accepts several picks, and the change order stores every chosen value — ["Project A", "Project C"] — rather than a single one.
Declaring Allowed Change Order Types
A template can declare which change order types users may choose from when creating a change order, and which one is applied by default. This requires schema version: '1.1' or later (current: '1.2').
co_types— the non-empty list of types this template allows. It is required wheneverversionis'1.1'or later; omitting it fails upload withCO_TYPES_REQUIRED_IN_SCHEMA_VERSION. When a change order is created from the template, itscoTypemust be one of these values, or creation fails withCO_TYPE_NOT_ALLOWED.default_co_type— the type applied when the creator does not pass an explicitcoType. It must be a member ofco_types; if omitted when the template is created, it defaults toECO. When you update a template that already declaresco_typesand leavedefault_co_typeout, the template keeps its current default, so a newco_typeslist that drops that default is rejected withDEFAULT_CO_TYPE_EXCLUDED_BY_UPDATE. Setdefault_co_typein the same update.
Templates without co_types (any version: '1.0' template) implicitly allow only ECO, and adding co_types or default_co_type to a '1.0' template is rejected — bump version to '1.2' first. For the full list of type values and all validation rules, see the Workflow YAML Reference.
Configuring Approval Stages
The stages.open section defines your review process. You can create multiple stages that execute sequentially.
Single-Stage Approval
Multi-Stage Approval
Pre-Assigning Notifiers
You can also pre-assign notifiers to open stages using a notifyList block. Notifiers are added to the stage's notify list when the change order is created but do not participate in the approval process.
A notifyList accepts two arrays:
users— internal users, specified as UUID strings (same format asreviewers.users).emails— external recipients, specified as plain email addresses. Use this for people who do not have a Duro account.
Editor vs. API: participant values
The structure is identical for both authoring paths — only the participant values differ:
For a required approver, the editor takes an email in place of the id:
In the editor, unrecognized addresses in a notifyList are kept as external notifyList.emails recipients. The examples throughout this guide and the reference use UUIDs, since they're written for direct API upload.
Required Approvers
From version: '1.2', you can make a pre-assigned reviewer a required approver by writing their entry as an object with isRequiredToApprove: true:
On every change order created from this template:
The stage is not approved until every required approver approves, even if its approval type is already met. In the example, two approvals make a majority, but the stage stays pending until the third reviewer approves.
If a required approver rejects, the stage is rejected at once.
A required approver cannot be removed from the stage (
CANNOT_REMOVE_REQUIRED_REVIEWER).If a required approver can no longer be added (for example, they left the organization), change orders cannot be created from the template, or drafts switched to it, until someone updates it (
REQUIRED_APPROVER_UNRESOLVABLE).
Required approvers can only come from a saved template: an inline config passed to changeOrders.create must list reviewers as UUID strings. See the Workflow YAML Reference for the full rules.
Approval Types Explained
Each approval type decides both when a stage is approved and when it is rejected:
Unanimous: Approved when every reviewer approves. Rejected as soon as any reviewer rejects.
Majority: Approved when more than half of the reviewers approve. Rejected when more than half reject.
Minimum: Approved when the stage's approval threshold (
decisionMinimumCount) is reached. Rejected when the same number of reviewers reject. The threshold starts at the stage'sminReviewers, and the change order's author may raise it.
minReviewers is also the fewest reviewers a stage must have before the change order can be submitted, whatever its approval type. Required approvers apply on top of whichever type the stage uses.
Required Fields and Value Checks
To mark a field required, set required: true on the field. The change order form then shows a required marker and will not save the field empty.
Automating Resolutions
Choose what happens when a change order is approved, rejected, or withdrawn. resolved sits under stages:
Each list holds the options the change order allows for that outcome, and the first entry is the one applied. An outcome you leave out uses AUTO_CLOSE.
To email people when a change order closes, list them under stages.closed.notifyList (users as UUIDs, emails as external addresses). They receive the closed email whatever the outcome, alongside the change order's reviewers and notifiers. Users who are no longer members of the organization or library when the change order closes are skipped. A notifyList under stages.resolved is accepted but not used, and nobody listed there is emailed.
Best Practices
1. Start Simple
Begin with a basic workflow and add complexity as needed. It's easier to expand a working workflow than debug a complex one.
2. Use Descriptive Names
Choose clear, meaningful names for stages and fields:
✅ Good:
manufacturing_impact_assessment❌ Avoid:
field1,stage_a
3. Group Related Fields
Organize fields into logical groups to improve the user experience:
4. Document Your Workflow
Always include a clear description:
5. Test Thoroughly
Before deploying a new workflow:
Create test change orders using the workflow
Verify all stages execute correctly
Confirm notifications reach the right people
Test edge cases (rejections, withdrawals)
Common Patterns
Pattern 1: Cost-Based Escalation
For organizations where higher-cost changes need additional approval:
Pattern 2: Department-Specific Reviews
When different departments need to review changes:
Creating Templates via the GraphQL API
You can create and manage change order templates programmatically using the GraphQL API through Apollo Studio, Duro's interactive API explorer. This approach is useful for:
Testing and validating your workflow configurations before deployment
Creating templates across multiple libraries
Version controlling your workflow configurations
Prerequisites
Before you begin, you'll need:
A Duro API Key: Navigate to
https://durohub.com/org/@<your-org>/libs/<your-library>/settings/api-keysto generate one. See Getting Started → Authentication for more information.Your YAML workflow template: Either use one of the default templates or create your own custom configuration
Step 1: Prepare Your YAML Configuration
First, create your workflow template YAML file. Here's a starter template:
resolved and closed belong under stages. At the root of the file they are ignored without an error, and every outcome falls back to AUTO_CLOSE.
Step 2: Choose How to Send the Configuration
CreateTemplateInput takes the configuration in one of two forms:
configYAML— the YAML as a GraphQL string. GraphQL variables are JSON, so the line breaks are written as\n(most HTTP clients and YAML libraries produce this for you when they serialize the string).configJSON— the same configuration as a JSON object. Nothing needs escaping, which makes it the easier choice from code.
Step 3: Open Apollo Studio
Navigate to Apollo Explorer: Open https://api.durohub.com/graphql in your browser. Using the EU or GovCloud region? Use your region's host — see Endpoints.
Set up headers: Click on the "Headers" tab at the bottom of the Operation panel and add the following required headers:
x-api-key
your-api-key
Your API authentication token
x-organization
@your-org
Your organization slug
x-library
@your-org/your-library
The library where the template will be created

Step 4: Create Your Template
Paste the mutation: In the Operation panel, paste the following GraphQL mutation:
Set up variables: In the Variables panel, create your input object. With
configYAML, pass the YAML as a string:
Or pass the configuration as an object with configJSON:
Execute the mutation: Click the "CreateTemplate" button to run the mutation

Step 5: Verify Your Template
A successful response will show:
Your template is now created and ready to use in your change order workflows!
Troubleshooting Common Issues
YAML Formatting Errors
If the YAML cannot be parsed, the request fails with an Invalid YAML: … message:
Ensure your YAML is valid before sending it (use a YAML validator)
Check that line breaks in
configYAMLare sent as\nand quotes are escapedSend the configuration as
configJSONinstead to avoid escaping altogether
Authentication Failed
If you get an authentication error:
Verify your API key is correct
Ensure the
x-api-keyheader is properly set in the Headers tabConfirm the user who created the API key has the
change_orders.templates.managepermission in the library, which creating and updating templates requires
Invalid Configuration
If the template configuration is rejected:
Review the error message for specific validation issues
Ensure all required fields are present in your YAML
Verify user IDs are valid UUIDs belonging to your organization
Check that
versionis a quoted string ('1.0','1.1'or'1.2') and thatco_types/default_co_typeonly appear from'1.1'
TEMPLATE_CONFIG_INVALID
A '1.2' template does not match its schema. The message names the config path and the reason.
UNSUPPORTED_SCHEMA_VERSION
version is not one of the accepted versions.
SCHEMA_VERSION_MUST_BE_STRING
version is unquoted, so it parsed as a number.
CANNOT_DOWNGRADE_SCHEMA_VERSION
An update moves a '1.2' template to '1.0' or '1.1', or a template with co_types back to '1.0'.
CO_TYPES_UNSUPPORTED_IN_SCHEMA_VERSION
co_types or default_co_type in a '1.0' template.
CO_TYPES_REQUIRED_IN_SCHEMA_VERSION / CO_TYPES_EMPTY
co_types is missing or empty in a '1.1' or later template.
DEFAULT_CO_TYPE_REQUIRES_CO_TYPES
default_co_type is set without co_types.
DEFAULT_CO_TYPE_NOT_ALLOWED
default_co_type is not a member of co_types.
DEFAULT_CO_TYPE_EXCLUDED_BY_UPDATE
An update narrows co_types so it no longer includes the current default. Set default_co_type in the same update.
INVALID_CO_TYPE
A value in co_types or default_co_type is not a change order type.
Each schema version has its own JSON Schema (schema-1.0.json, schema-1.1.json, schema-1.2.json) and a versions.json manifest that says which versions Duro accepts and which it validates structurally at upload. Today all three are accepted and only '1.2' is structurally enforced: a '1.2' template with a wrong field type or missing property is rejected at upload with TEMPLATE_CONFIG_INVALID, naming the config path and reason. In a '1.0' or '1.1' template the same mistake is stored and only surfaces when a change order is created from it, so validate those against the schema in your editor before uploading. See Schema versions and the manifest.
Participant Validation Errors
When a template includes reviewers.users or notifyList.users, Duro validates the user IDs at upload time:
TEMPLATE_PARTICIPANT_INVALID_USER_ID
User ID is not a valid UUID or does not exist
TEMPLATE_PARTICIPANT_WRONG_ORGANIZATION
User exists but is not a member of the library's organization
TEMPLATE_PARTICIPANT_MALFORMED_CONFIG
Structural error (e.g., reviewers is not an object, users is not an array, or a users entry is an object where only UUID strings are allowed). In a '1.2' template most of these are caught first by schema validation as TEMPLATE_CONFIG_INVALID.
External notifyList.emails entries are not validated against organization membership. In a '1.2' template each entry must be a well-formed email address; in '1.0' and '1.1' templates the format is not checked.
Participant Population Behavior
When a change order is created from a template that includes pre-assigned reviewers or a notify list, Duro automatically populates the corresponding stages — adding reviewers.users as stage reviewers, and notifyList.users / notifyList.emails to the stage's notify list. The same population runs when a draft change order is switched to this template, since the switch rebuilds its stages from the template.
Validation at Upload vs. Creation
Participant validation happens at two points with different behavior:
At template upload (strict): All user IDs must be valid UUIDs, exist in the system, and belong to the library's organization. The template is rejected if any user fails validation.
At change order creation (lenient): Valid users are added to their stages. Invalid or missing users are skipped, and warnings are logged to the change order's activity feed. The exception is a required approver: if one can no longer be added, creation fails with
REQUIRED_APPROVER_UNRESOLVABLErather than creating a change order that skips them.
This two-phase approach ensures templates stay clean while allowing change orders to be created even if a user has been removed from the organization since the template was last updated.
Activity Feed Logging
When participants are skipped during change order creation, Duro logs a template.participants.skipped activity entry containing the skipped user IDs, their intended stages, and the reason (not found or wrong organization).
Example Templates
Each of these is a complete version: '1.2' template that passes schema validation. Replace the placeholder user IDs with members of your organization before uploading.
One review stage, a few required fields, and an external notifier
The smallest useful template: a DCO-only workflow for documentation changes that closes automatically
Three sequential stages, a selectable change order type (ECO, MCO or DCO), a required approver, and a closed-email list
A regulated workflow with four approval stages and the people emailed when a change order closes
Next Steps
Review the Change Order Workflow Reference for complete specification details
Explore the example templates above
Start with a default template and customize it for your needs
Test your workflow with a pilot group before full deployment
Last updated
Was this helpful?