For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. Single Stage Review (default.yaml): A single-stage approval workflow with a Details group containing a single Reason for Change field.

  2. 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.

Both default templates ship at schema version: '1.2' (their yaml-language-server directive points at schema-1.2.json) and are ECO-only — they declare co_types: [ECO] and default_co_type: ECO. Change orders created from them are always ECO unless you first add other change order types to co_types. See Declaring Allowed Change Order Types.

Change order type is a built-in concern configured through co_types / default_co_type — not a content field. Neither built-in template defines a legacy change_type enum in details.info.groups; that field has been removed from the shipped templates.

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.

New to YAML? Read this first

YAML is a plain-text format. Five rules cover everything in this guide:

  1. Indentation is structure. Lines indented under a parent belong to it. Use spaces, not tabs, and keep the indentation consistent (the examples here use two spaces).

  2. key: value sets a property. The space after the colon is required: type: list, not type:list.

  3. A leading - starts an item in a list. Every field under fields: and every option under options: begins with -.

  4. Text after # is a comment. Duro ignores it — the comments in the examples below are there to guide you.

  5. Quote values that could be misread. '1.0' stays a version string; 1.0 becomes a number. 'yes' stays a word; yes becomes true.

When you save, the template editor in Duro checks the YAML and marks the line with the problem — so you can fix mistakes before they reach a change order.

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

enum versus list. Both take the same options, and both render as a single-select dropdown unless you say otherwise. Duro stores an enum field as a list, so the two behave the same: multiSelect: true is the only thing that makes a field accept several values. Use enum when one answer is wanted, and list with multiSelect: true whenever users may need to pick more than one.

The Workflow Reference lists every property each type accepts.

Users see each option's value. The change order stores and displays the option value; an option's label and description are accepted by the schema but are not shown. Write values as the text you want people to read, such as Design Update, and set label to the same text.

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 whenever version is '1.1' or later; omitting it fails upload with CO_TYPES_REQUIRED_IN_SCHEMA_VERSION. When a change order is created from the template, its coType must be one of these values, or creation fails with CO_TYPE_NOT_ALLOWED.

  • default_co_type — the type applied when the creator does not pass an explicit coType. It must be a member of co_types; if omitted when the template is created, it defaults to ECO. When you update a template that already declares co_types and leave default_co_type out, the template keeps its current default, so a new co_types list that drops that default is rejected with DEFAULT_CO_TYPE_EXCLUDED_BY_UPDATE. Set default_co_type in the same update.

These two keys also govern draft-time edits, not just creation. A change order in DRAFT can switch its type and its template through submitDraft (coType / configId), so:

  • co_types bounds the types an integration can switch a draft change order into — a coType outside the list is rejected with CO_TYPE_NOT_ALLOWED on submitDraft exactly as it is on create.

  • default_co_type is the type a draft change order lands on when it is switched to this template without an explicit coType. Pick a default that is sensible for change orders arriving from another template, not only for brand-new ones.

  • Narrowing co_types on an existing template does not retype change orders already created from it, but it does stop draft change orders from switching into the removed types.

See Change Orders → Switching Type and Template in Draft.

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 as reviewers.users).

  • emails — external recipients, specified as plain email addresses. Use this for people who do not have a Duro account.

reviewers.users and notifyList.users are internal-only: each entry must be the UUID of a user in the library's organization. External addresses belong in notifyList.emails. To look up a user's UUID, query your organization's members — see RBAC → Get Organization Members with Roles.

Uploading a template via the GraphQL API requires UUIDs in these arrays. The web template editor also lets you type email addresses for internal users and resolves them to UUIDs on save, so you only need to look up IDs when authoring YAML by hand.

In notifyList.users, and in reviewers.users below '1.2', each entry is a plain string. From '1.2', a reviewers.users entry may also be an { id, isRequiredToApprove } object; see Required Approvers. Other object forms, such as - email: <address> or an isRequired flag, are rejected by the API.

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's minReviewers, 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

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:

  1. Create test change orders using the workflow

  2. Verify all stages execute correctly

  3. Confirm notifications reach the right people

  4. 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:

  1. A Duro API Key: Navigate to https://durohub.com/org/@<your-org>/libs/<your-library>/settings/api-keys to generate one. See Getting Started → Authentication for more information.

  2. 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

  1. 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.

  2. Set up headers: Click on the "Headers" tab at the bottom of the Operation panel and add the following required headers:

Header
Value
Description

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

Apollo Studio Headers tab showing x-api-key configuration

Step 4: Create Your Template

  1. Paste the mutation: In the Operation panel, paste the following GraphQL mutation:

  1. 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:

  1. Execute the mutation: Click the "CreateTemplate" button to run the mutation

Apollo Studio showing the complete setup for creating a change order template

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 configYAML are sent as \n and quotes are escaped

  • Send the configuration as configJSON instead to avoid escaping altogether

Authentication Failed

If you get an authentication error:

  • Verify your API key is correct

  • Ensure the x-api-key header is properly set in the Headers tab

  • Confirm the user who created the API key has the change_orders.templates.manage permission 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 version is a quoted string ('1.0', '1.1' or '1.2') and that co_types / default_co_type only appear from '1.1'

Error Code
Cause

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:

Error Code
Cause

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_UNRESOLVABLE rather 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.

Example
What it shows

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

  1. Review the Change Order Workflow Reference for complete specification details

  2. Explore the example templates above

  3. Start with a default template and customize it for your needs

  4. Test your workflow with a pilot group before full deployment

Last updated

Was this helpful?