How to Modify Organization Test Data
During testing, you may use the workflow engine's built-in organization data for API integration. To adjust default test users, departments, etc., edit the organization JSON file in the product package.
For production integration, synchronize organization data from the business system. See Organization Structure.
Test data location
Default organization data is located at:
/lib/horizon-workflow-extend.jar!/com/horizon/third/data/dept.jsonThis file contains test data for departments, users, groups, and positions. Before editing, copy horizon-workflow-extend.jar to another directory and extract it.
Development environment
If you have set up a local development environment, place the modified JSON file in:
src/main/java/com/horizon/third/data/dept.jsonAfter recompiling and restarting, the engine loads organization data from the project instead of the default file inside the Jar.
Jar deployment
When running from a Jar without a development project, modify files inside the Jar. Follow SpringBoot Jar File Modify:
- Extract the main
horizon-workflow-bootJar - Update the modified
dept.jsonto:
BOOT-INF/classes/com/horizon/third/data/dept.json- Repackage the Jar per the guide and restart the service
Note
- Keep valid JSON and meet organization field requirements
- Repackaged Jar size may be larger than the original
- Do not overwrite
META-INF/MANIFEST.MF
Related documentation
- Organization Structure — Sync from business system (production)
- SpringBoot Jar File Modify — Extract and repackage Jar
- Third-party Data Source — Read organization from business database
