Get up and running with WFM Archive in minutes! This guide walks you through basic operations.
Before starting, ensure you have:
- WFM Archive installed and running
- Admin credentials
- Access to the web interface
-
Open your browser and navigate to:
- Development: http://localhost:8080/app
- Production: https://wfmarchive.yourdomain.com
-
Log in with admin credentials:
- Default username:
admin - Default password:
admin(change immediately!)
- Default username:
- Click on your username in the top-right corner
- Select "Settings"
- Click "Change Password"
- Enter a strong password following the policy
- Navigate to Administration → Users
- Click Create
- Fill in user details:
Login: john.doe Name: John Doe Email: john.doe@company.com Active: ✓ - Assign roles and database access
- Click OK
- Navigate to Configuration → Document Types
- Click Create
- Configure the document type:
Name: Invoice
Code: INV
Description: Customer invoices
Folder Type: Financial Documents
Active: ✓
- Select your document type
- Click Fields tab
- Add fields:
| Field Name | Type | Required | Validation |
|---|---|---|---|
| Invoice Number | String | Yes | ^INV-\d{6}$ |
| Customer Name | String | Yes | - |
| Amount | Decimal | Yes | > 0 |
| Due Date | Date | Yes | - |
| Status | Lookup | Yes | PENDING,PAID,OVERDUE |
- Navigate to Documents → Archive Document
- Select document type: "Invoice"
- Fill in the metadata:
Invoice Number: INV-000001 Customer Name: Acme Corp Amount: 1500.00 Due Date: 2025-10-30 Status: PENDING - Upload the document file (PDF, Word, etc.)
- Click Archive
# Archive a document via API
curl -X POST https://localhost:8080/api/documents/archive \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"documentType": "INV",
"fields": {
"invoiceNumber": "INV-000002",
"customerName": "Tech Solutions Ltd",
"amount": 2500.00,
"dueDate": "2025-11-15",
"status": "PENDING"
}
}'- Navigate to Documents → Search
- Select document type: "Invoice"
- Enter search criteria:
- Customer Name contains: "Acme"
- Status equals: "PENDING"
- Click Search
Use the advanced search for complex queries:
-- Find overdue invoices over $1000
status = 'PENDING'
AND dueDate < CURRENT_DATE
AND amount > 1000# Search documents
curl -X GET "https://localhost:8080/api/documents/search?type=INV&status=PENDING" \
-H "Authorization: Bearer YOUR_TOKEN"
# Get specific document
curl -X GET "https://localhost:8080/api/documents/INV-000001" \
-H "Authorization: Bearer YOUR_TOKEN"
# Download document file
curl -X GET "https://localhost:8080/api/documents/INV-000001/download" \
-H "Authorization: Bearer YOUR_TOKEN" \
-o invoice.pdf-
Navigate to Workflows → Process Definitions
-
Import the sample workflow:
<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"> <process id="invoiceApproval" name="Invoice Approval"> <startEvent id="start"/> <userTask id="review" name="Review Invoice"> <extensionElements> <assignee>manager</assignee> </extensionElements> </userTask> <exclusiveGateway id="decision"/> <endEvent id="approved" name="Approved"/> <endEvent id="rejected" name="Rejected"/> </process> </definitions>
-
Deploy the workflow
-
Configure automatic triggers for new invoices
- Navigate to Administration → Application Properties
- Configure MongoDB:
mongodb.enabled = true mongodb.host = localhost mongodb.port = 27017 mongodb.database = wfmarchive
- Test connection
- Restart application if needed
- Configure S3 properties:
amazonS3.enabled = true amazonS3.bucketName = wfmarchive-files amazonS3.region = eu-west-1
- Add AWS credentials securely
- Test upload
- Navigate to Administration → Scheduled Tasks
- Create new task:
// Archive documents older than 7 years def cutoffDate = new Date() - (365 * 7) documentService.archiveOldDocuments(cutoffDate)
- Schedule: Daily at 2:00 AM
- Enable the task
# Use the import script
./gradlew importDocuments \
-Ppath=/import/invoices \
-Ptype=INV \
-Pmapping=invoice-mapping.json# Export to CSV
curl -X GET "https://localhost:8080/api/documents/export?type=INV&format=csv" \
-H "Authorization: Bearer YOUR_TOKEN" \
-o invoices.csv
# Export to JSON
curl -X GET "https://localhost:8080/api/documents/export?type=INV&format=json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-o invoices.json-
Check application health:
curl https://localhost:8080/app/health
-
View metrics:
curl https://localhost:8080/app/metrics
- Index frequently searched fields
- Use batch operations for bulk imports
- Enable caching for lookup data
- Archive old documents to cold storage
- Change all default passwords
- Use HTTPS in production
- Enable audit logging
- Implement role-based access control
- Regular security updates
- Use consistent naming conventions
- Document your custom fields
- Create templates for common document types
- Regular backups of configuration
- Check file size limits (default 100MB)
- Verify file type is allowed
- Ensure user has upload permissions
- Verify index is up to date
- Check search syntax
- Confirm permissions for document type
- Check workflow deployment status
- Verify trigger conditions
- Review process logs
Now that you have the basics:
- Customize Document Types - Create types specific to your business
- Design Workflows - Automate your business processes
- Configure Integrations - Connect to your existing systems
- Set Up Users and Roles - Implement proper access control
- Explore the API - Build custom integrations
- Check the Troubleshooting Guide
- Review API Documentation
- Read about Advanced Features
Congratulations! You're now ready to use WFM Archive for your document management needs.