Complete DPP Workflow Guide
Quick Start: Auto-Generate Commands
Workflow Generator
Use the workflow generator to automatically create all commands for your organization:
thor orobo:admin:workflow:generate "Your Organization Name" "yourdomain.com"
thor orobo:admin:workflow:generate "Acme Corp" "acme.com" \
--csv-file="path/to/your/data.csv" \
--template="Electronics DPP EU ESPR" \
--network=testnet
thor orobo:admin:workflow:validate "Your Organization" "yourdomain.com"
thor orobo:admin:workflow:quick "Your Organization" "yourdomain.com"
Step 1: Organization Onboarding
1.1 Create Organization Account
Onboarding Steps:
- 1 Getting Started - Welcome & Introduction
- 2 Your Information - User Registration
- 3 Organization Info - Company Details & Address
- 4 Subscription - Plan Selection (Basic/Standard/Pro)
- 5 Domain Verification - DNS Verification Setup
- 6 Completion - Success & Next Steps
1.2 Complete Web Onboarding
Fill out the onboarding form with:
- User details (name, email, password)
- Organization information (company name, address)
- Select subscription plan
- Add your domain for verification
Step 2: Deploy IOTA Smart Contract
2.1 Deploy Contract (Required for DPP blockchain storage)
Deploy Command
thor orobo:admin:contracts:deploy --network=testnet
This will:
- Build the Move contract
- Deploy it to IOTA testnet
- Generate Package ID and Contract Address
- Save to config/contracts/testnet.json
2.2 Configure Environment Variables
After deployment, add these to your .env file:
IOTA_CONTRACT_ADDRESS=0x... # Contract object ID from deployment
IOTA_PACKAGE_ID=0x... # Package ID from deployment
IOTA_MODULE_NAME=traceability # Contract module name
# Required for identity operations
IOTA_NETWORK=testnet
IOTA_OWNER_SEED=iotaprivkey1... # Your private key
2.3 Verify Contract Deployment
thor orobo:admin:contracts:addresses
thor orobo:admin:contracts:verify <contract_address>
Step 3: Domain Verification
3.1 Add DNS Record
The onboarding process will provide you with a DNS record to add:
orobo-dpp-id.yourdomain.com CNAME id-manager.orobo.tech
3.2 Verify Domain via Thor
thor orobo:admin:domains:verify yourdomain.com --organization-name="Your Organization"
thor orobo:admin:domains:verify acme-corp.com --organization-name="Acme Corporation"
Step 4: Create Digital Identity (DID)
4.1 Create IOTA Identity
thor orobo:admin:domains:create_identity yourdomain.com --method=iota
thor orobo:admin:domains:create_identity acme-corp.com --method=iota
4.2 Verify Identity Creation
thor orobo:admin:domains:status yourdomain.com
Step 5: Prepare Product Template
5.1 Check Available Templates
thor orobo:admin:templates:list
5.2 Create Template (if needed)
thor orobo:admin:templates:create "Construction Materials" --industry=construction
Step 6: Import DPPs from CSV
6.1 Analyze CSV File
First, analyze the CSV to understand its structure:
thor orobo:admin:dpps:import_csv \
--file=db/seed_data/dpps/re-use/ElementenPoslijstUniqueItemsReUse.csv \
--organization="Your Organization Name" \
--template="Construction Materials" \
--dry-run
Expected Output:
6.2 Show Field Mapping
thor orobo:admin:dpps:import_csv \
--file=db/seed_data/dpps/re-use/ElementenPoslijstUniqueItemsReUse.csv \
--organization="Your Organization Name" \
--template="Construction Materials" \
--show-mapping
6.3 Import DPPs
thor orobo:admin:dpps:import_csv \
--file=db/seed_data/dpps/re-use/ElementenPoslijstUniqueItemsReUse.csv \
--organization="Your Organization Name" \
--template="Construction Materials" \
--auto-publish
Expected Output:
Step 7: Verify DPP Creation
7.1 List Created DPPs
thor orobo:admin:dpps:list --organization="Your Organization Name"
7.2 Check DPP Status
thor orobo:admin:dpps:status
Expected Output:
Step 8: Test Blockchain Integration
8.1 Test IOTA Connection
thor orobo:admin:iota:test_connection
8.2 Test DPP Blockchain Integration
thor orobo:admin:dpps:test_blockchain
Step 9: Access Your DPPs
9.1 Web Interface
Visit your Rails application and navigate to:
-
Dashboard:
http://localhost:3000/dashboard -
DPPs List:
http://localhost:3000/dpps
9.2 API Access
curl -H "Authorization: Bearer $OAUTH_ACCESS_TOKEN" \
http://localhost:3000/api/v2/dpps
Complete Example Workflow
Here's the complete command sequence for a typical workflow:
--file=db/seed_data/dpps/re-use/ElementenPoslijstUniqueItemsReUse.csv \
--organization="Your Organization Name" \
--template="Construction Materials" \
--dry-run
--file=db/seed_data/dpps/re-use/ElementenPoslijstUniqueItemsReUse.csv \
--organization="Your Organization Name" \
--template="Construction Materials" \
--auto-publish
Understanding the CSV Structure
The ElementenPoslijstUniqueItemsReUse.csv file contains construction elements with this structure:
| Column | Description | Example |
|---|---|---|
| DPP | DPP grouping ID | 1, 2, 3... |
| Bronbestand | Source file | DK17, DK18, BU_1... |
| Gebouw | Building | Hoofdgebouw, Bijgebouw |
| Toepassing | Application | vloer, muur, wand |
| Naam | Element name | BOVENREGEL, STIJL, LATEI |
| Profiel | Profile | CC200-2-15-50, CC100-1.5-15-50 |
| Materiaal | Material | S280GD |
| Lengte (mm) | Length in mm | 841, 3433, 5651 |
| Aantal | Quantity | 1, 2, 7 |
| Pos. | Position | B9, O9, S226 |
Each unique DPP ID groups multiple construction elements into a single Digital Product Passport.
Troubleshooting
Common Issues
1. Domain Verification Fails
nslookup orobo-dpp-id.yourdomain.com
thor orobo:admin:domains:verify yourdomain.com 1 --force
2. Organization Not Found
thor orobo:admin:organizations:list
thor orobo:admin:dpps:import_csv --organization=1 # Use ID instead
3. Template Not Found
thor orobo:admin:templates:list
thor orobo:admin:templates:create "Construction Materials"
4. IOTA Connection Issues
thor orobo:admin:iota:status
thor orobo:admin:iota:test_connection
Next Steps
After successfully creating DPPs:
Customize Templates
Modify product templates to match your specific requirements
Add Images
Upload product images to enhance DPP presentation
Configure QR Codes
Generate QR codes for physical product linking
Set up API Integration
Integrate with your existing systems
Configure Notifications
Set up email notifications for DPP updates
Explore Analytics
Use the dashboard to monitor DPP usage and performance
Additional Resources
Technical Guides
- IOTA Integration Guide - Technical IOTA implementation details
- Onboarding Flow - Detailed onboarding process
Advanced Topics
- Template Import System - Advanced template management
- Blockchain Abstraction - Understanding the blockchain layer
Document Summary
Complete Step-by-Step Workflow • Organization Onboarding to DPP Creation • CSV Import & Blockchain Verification
Auto-Generated Commands • Troubleshooting Guide • Next Steps & Resources
This guide provides a complete workflow for creating DPPs from organization onboarding through CSV import and blockchain verification, with automated command generation for streamlined implementation.