Skip to content

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.json

This 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.json

After 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:

  1. Extract the main horizon-workflow-boot Jar
  2. Update the modified dept.json to:
BOOT-INF/classes/com/horizon/third/data/dept.json
  1. Repackage the Jar per the guide and restart the service

Note