Skip to content

Commit fa0804d

Browse files
committed
Add properties for requirements in node templates
1 parent e0dc6f0 commit fa0804d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ToscaDesigner/src/main/resources/fr/softeam/templates/TNodeTemplate.hbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{{#each ../ownedAttribute}}{{#extension}}{{#eq name "Metadata"}}
55
{{../name}}: "{{../value}}"
66
{{/eq}}{{/extension}}{{/each}}
7-
{{#unless (noStereotypeApplications this "PropertyDefinitionType")}}properties:{{/unless}}
8-
{{#each ../ownedAttribute}}{{#extension}}{{#eq name "PropertyDefinitionType"}}
7+
{{#unless (noStereotypeApplications this "TPropertyDef")}}properties:{{/unless}}
8+
{{#each ../ownedAttribute}}{{#extension}}{{#eq name "TPropertyDef"}}
99
{{../name}}: "{{../value}}"
1010
{{/eq}}{{/extension}}{{/each}}
1111
{{#unless (noStereotypeApplications this "RequirementsType")}}requirements:{{/unless}}
@@ -14,6 +14,10 @@
1414
node: {{getProperty ../this "node"}}
1515
relationship: {{relationship}}
1616
capability: {{getProperty ../this "capability"}}
17+
{{#unless (noStereotypeApplications this "TPropertyDef")}}properties:{{/unless}}
18+
{{#each ../ownedAttribute}}{{#extension}}{{#eq name "TPropertyDef"}}
19+
{{../name}}: "{{../value}}"
20+
{{/eq}}{{/extension}}{{/each}}
1721
{{/eq}}{{/extension}}{{/each}}{{/eq}}{{/extension}}{{/each}}
1822
{{#unless (noStereotypeApplications this "TDeploymentArtifacts")}}artifacts:{{/unless}}
1923
{{#each ../ownedElement}}{{#extension}}{{#eq name "TDeploymentArtifacts"}}{{#each ../ownedElement}}{{#extension}}{{#eq name "TDeploymentArtifact"}}
8 Bytes
Binary file not shown.
21 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)