Table of Contents
Related Graphs is a powerful feature in DCR that allows you to manage process complexity and improve reusability. Instead of building one large, monolithic process, you can break it down into smaller, connected graphs.
This approach provides several key benefits:
- Manage Complexity (The Overview): It allows you to keep your main 'parent' process clean and simple (e.g., 'Patient Onboarding') while hiding complex details inside 'child' sub-processes (e.g., 'Perform Background Check', 'Schedule Initial Consultation') in a fragment
- Reusability: You can create one sub-process (like 'Manager Approval') and reuse or 'call' it from many different parent processes, saving time and ensuring consistency.
- Clear Ownership: Different teams can own and manage their specific sub-processes without interfering with the main, overarching process flow.
- Flexibility: You can easily swap out or update a sub-process without having to redesign the entire parent graph
In DCR graphs subprocesses can be fragments or if the process is executed in KMD WorkZone the effects StartProcess and WZ.StartCaseActivity can handle subprocesses. DCR Agent have a similar effect called CreateCase.
How to view related graphs
Under Windows menu in DCR Designer you find a new entry, Related Graphs.

Selecting this window will show the parent and child graphs of the current graph.

Here you can see a graph with six activities, 2 fragments, 2 StartProcess and 2 WZ.StartCaseActivity.
On the right you can see the Related Graphs window. The current graph does not have any parents but several children.
In WorkZone StartProcess and WZ.StartCaseActivity effects you either provide the title of the graph or the WorkZone internal guid of the graph. If you upload the WorkZone graphs to the DCR Portal we can search the guid and locate the DCR graph id. Find more details about this below.
Clicking on a graph will take you to the child graph:

As we went to the child graph of the WorkZone StartProcess effect we can now see the parent of this graph in the view.
Best Practice: Use Global Parameters
Instead of typing the guid directly into the StartProcess or WZ.StartCaseActivity effect, you can store it as a global parameter. This way, if the child process ever changes, you only need to update the global parameter's value in one place, rather than finding and replacing it in every single parent graph that calls it. This greatly simplifies process administration. As each WorkZone environment assigns its own unique guid to the process, you need to administer one guid for each environment. Global parameters enables you to do that.
Observability
Uploading the information from WorkZone can be done under Observability in the administration portal. You must export the data from WorkZone as described here (in Danish). As you can see in the image below we have uploaded the data from WorkZone test environment.

We use this information to search for the guid when locating relations between graphs.
Clicking on a graph id will provide you with details about the WorkZone internal guid of the graph:

