Skip to content

Append dynamic views via dsl files after adding relations via Java code #363

Closed Answered by blancqua
blancqua asked this question in Q&A
Discussion options

You must be logged in to vote

Good news, I managed to find a solution as follows:

  • root.dsl, containing all systems, persons and styling, but no relations or lower-level (i.e. container) details
  • for each system a DSL which extends from above
  • 1 DSL for the landscape which extends from root.dsl, with a !plugin (instead of pure java code) augmenting the model with discovered relations and an !include later in the file to inject dynamic views that assume the relations are defined:
workspace extends ../root.dsl {

  !adrs adr
  !docs doc

  name "_Landscape_"

  !plugin <link to plugin which discovers and adds relations>

  views {
    !include dynamic.dsl
  }

  configuration {
    scope landscape
  }

}

Hope this helps…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by blancqua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant