Skip to content

Commit

Permalink
fixed the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ZbyszekMM committed Oct 21, 2024
1 parent 2431023 commit 3ec3317
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions docs/configuration/Common.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,35 @@ The Scenario Type is a convenient umbrella term that groups all these things. Di
Let's see how those concepts look in fragment of the configuration file:

<pre>
{/* Somehow, everything which is in the "pre" block is treated as jsx by Docusaurus*/}
{/* so, we need to escape "{" */}
{/* Somehow, everything which is in the "pre" block is treated as jsx by Docusaurus */}
{/* so, we need to add opening curly bracket as comment */}
{/* and add leading spaces in a special way. If not jsx parser will remove them */}
{/* Finally, do not worry - this is a valid jsx comment - you will not see it on Nu page*/}

<b># Designer configuration </b> <br/>
environment: "local" <br/>
... <br/>
<br/>
# Each scenario type is configured here <br/>
scenarioTypes {"{"} <br/>
{" "} "scenario-type-1": {"{"}<br/>
{" "} # Configuration of scenario deployment (Flink used as example here) <br/>
{" "} <b>deploymentConfig:</b> {"{"} <br/>
{" "} type: "flinkStreaming" <br/>
{" "} restUrl: "http://localhost:8081" <br/>
{" "} } <br/>
{" "} # Configuration of model <br/>
{" "} <b>modelConfig</b>: {"{"} <br/>
{" "} classPath: ["model/defaultModel.jar", "model/flinkExecutor.jar", "components/flink"] <br/>
{" "} restartStrategy.default.strategy: disable <br/>
{" "} components {"{"} <br/>
{" "} ... <br/>
{" "} } <br/>
{" "} } <br/>
{" "} <b>category</b>: "Default" <br/>
{" "} } <br/>
} <br/>
<b># Designer configuration </b>
environment: "local"

{" "}# Each scenario type is configured here
{" "}<b>scenarioTypes:</b> {"{"}
{" "} "scenario-type-1": {"{"}

{" "} # Configuration of scenario deployment (Flink used as example here)
{" "} <b>deploymentConfig:</b> {"{"}
{" "} type: "flinkStreaming"
{" "} restUrl: "http://localhost:8081"
{" "} }

{" "} # Configuration of the model
{" "} <b>modelConfig</b>: {"{"}
{" "} classPath: ["model/defaultModel.jar", "model/flinkExecutor.jar", "components/flink"]
{" "} restartStrategy.default.strategy: disable
{" "} components: {"{"}
{" "} }
{" "} }

{" "} <b>category</b>: "Default"
{" "} }
{" "}}
</pre>

It is worth noting that one Nussknacker Designer may be used to work with multiple Scenario Types and allow user:
Expand Down

0 comments on commit 3ec3317

Please sign in to comment.