There are currently two methods to convert an existing V2 Workflow Schema to the new and improved V3 in your local workflow repository.
Method 1: FormBio CLI
If you do not already have the FormBio CLI installed your machine, check out this doc.
cd
into the root of the workflow repository you wish to work on- Copy the relative path to the JSON file containing the Workflow Schema you’d like to convert
- Run
formbio workflow build --env <env> --schema <relativePath>
- <env> should be either
sbx
,stg
, orprd
depending on which environment you’d like to be authenticated on - If authentication is successful and the JSON is a valid V2 schema, you will see an
output.zip
file downloaded alongside your current JSON file. Simply unzip its contents to get your V3 version and rename it to replace the V2 file.
Method 2: workflow-schema
Package Script
- If you have not already,
git clone
the workflow-schema package to your machine cd
into the root of the workflow-schema repo- If cloned prior to this, run
git pull origin main
to get the latest contents - Copy the full path on your machine to the V2 schema JSON file you would like to convert
- Run
./scripts/V2ToV3.sh <fullPath>
- You may need to run
chmod +x <fullPathTo ./scripts/V2ToV3.sh>
to be able to execute the script - If successful, the existing V2 JSON schema file will be overwritten with the V3 version