How to mix json- and dsl-workspaces #328
-
Following a similar approach I would like to use json-workspaces in the chain (or as "system-catalog") that were created by structurizr-java (groovy in my case). The reason is that I want to connect to enterprise catalogs (databases or the infamous Excel files) to create actors, systems and so on. I cannot figure out how to refer to an element in a json workspace in a dsl workspace extending the json. I use this groovy to create the json.
Using the DSL:
This results in How can I refer to an element in DSL that was created in Java? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can use the DSL
At the moment, the workspace extension feature doesn't load any of the |
Beta Was this translation helpful? Give feedback.
You can use the DSL
!ref
keyword in conjunction with the element's "canonical name"; for example:At the moment, the workspace extension feature doesn't load any of the
structurizr.dsl.identifier
names, but I don't see why it couldn't be modified to do that (I've contemplated this a couple of times …