Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/docs/user-manual/managing-workflows/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ weight = 30
draft = false
+++

Export workflow data, including CSV results and case files: [Exporting Workflow Data](/docs/user-manual/managing-workflows/exporting-workflow-data/).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is desired results, see this page https://deploy-preview-73--highlighter-docs.netlify.app/docs/user-manual/managing-workflows/ has just this text at the top. All other content is just links

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Workflow Orders are a way of dividing up the work of your Assessment Workflow in

A Workflow Order funnels work through a sequence of Workflow Steps. For example, the sequence might be Data Source -> Machine Assessment Step -> Human Assessment Step. The following instructions assume your sequence of Workflow steps has already been set up, and includes a data source as the first step.

To export workflow data (CSV results or case files) for a workflow order, see [Exporting Workflow Data](/docs/user-manual/managing-workflows/exporting-workflow-data/).

- <a href="#navigate-to-the-workflow-orders-page">Navigate To The Workflow Orders Page</a>
- <a href="#manually-create-workflow-orders">Manually Create Workflow Orders</a>
- <a href="#bulk-create-workflow-orders">Bulk-Create Workflow Orders</a>
Expand Down Expand Up @@ -59,4 +61,3 @@ You will see instructions about the format of CSV required. Once you have create
Also set the 'State of Orders' dropdown to indicate whether you want the new Workflow Orders to be created as 'draft' or 'approved'. The state of an order is a way to indicate whether it's a work-in-progress that you will make further changes to, or whether it's finished and approved.

Then click 'Create Orders' and you'll be redirected to your orders page, with a message indicating the results, for example:<blockquote>Successfully imported orders: 30 total, 30 created, 0 skipped due to same name, 0 skipped due to same filter original source url.</blockquote> You can change your CSV and try again - only orders that don't already exists in the system will be created.

Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
+++
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a page for exporting data from workflows: https://deploy-preview-73--highlighter-docs.netlify.app/docs/user-manual/managing-workflows/exporting-data/, we should integrate this content into it

title = "Exporting Workflow Data"
description = "Export workflow data, including case files and CSV results, from Highlighter."
date = 2025-05-01T08:00:00+00:00
updated = 2025-05-01T08:00:00+00:00
draft = false
weight = 20
sort_by = "weight"
template = "docs/page.html"

[extra]
toc = true
top = false
+++

Use the workflow page to export data for an entire workflow or a specific workflow order.

- If you select a workflow order, exports include only that order.
- If no order is selected, exports include all cases in the workflow. Note that some export types, such as annotated case files, require a workflow order.

## Navigate to the workflow page

1. Click "Develop" in the top navigation.
2. Click "Workflows" under "Assessments".
3. Open the workflow you want to export.
4. Use the order selector to choose a workflow order (optional).

## Export results as CSV

1. Choose the submissions and layout options.
2. Click "Export CSV".

The CSV export includes assessment results and metadata for the current workflow or selected order.

## Export case files (ZIP)

1. Click "Export Case Files".
2. (Optional) Enter a folder path template.
3. Click "Download Files".

If no template is provided, files are placed at the ZIP root using the default filename pattern:
`<external-id (padded to 12 digits)>_<workflow[-order]-name>_<count>.<ext>`

### Customize the ZIP path

You can control the folder structure inside the ZIP by providing a template. Use Liquid-style
variables like `{{ WORKFLOW_ORDER_NAME }}` and `/` to create folders.

Example:
`{{ WORKFLOW_ORDER_NAME }}/{{ CASE_EXTERNAL_ID }}/{{ FILENAME }}`

Available variables:
- `WORKFLOW_NAME`: Project/workflow name
- `WORKFLOW_ORDER_NAME`: Workflow order name (or workflow name if no order)
- `CASE_ID`: Case database ID
- `CASE_SHORT_ID`: Case short ID
- `CASE_EXTERNAL_ID`: External ID (entity, case, or short ID)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The description for CASE_EXTERNAL_ID is ambiguous as it lists multiple possible IDs ('entity, case, or short ID') without specifying the order of precedence. To help users predict the output of the template, please clarify the fallback logic. For example: '...uses the entity ID if available, otherwise the case ID, and finally the short ID'.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my similar comment in highlighter PR about this text in brackets

- `CASE_EXTERNAL_ID_PADDED`: External ID zero-padded to 12 digits
- `FILE_UUID`: File unique identifier
- `FILE_COUNT`: File number within the case (1-based)
- `FILE_EXT`: File extension (.jpg, .png, etc.)
- `ORIGINAL_FILENAME`: Original uploaded filename
- `FILENAME`: Default generated filename

Notes:
- Templates only support plain variables. Tags, filters, and `${TOKEN}` syntax are not supported.
- Invalid path characters are sanitized, and unsafe paths (absolute paths or `..`) are rejected.

## Export annotated case files (ZIP)

1. Select a workflow order.
2. Click "Export Annotated Case Files".
3. You will receive an email with a download link when the export is ready.