1 .. This work is a derivative of https://wiki.onap.org/display/DW/Modeling+Concepts#Concepts-198012600
2 .. This work is licensed under a Creative Commons Attribution 4.0
3 .. International License. http://creativecommons.org/licenses/by/4.0
4 .. Copyright (C) 2020 Deutsche Telekom AG.
11 TOSCA provides for a set of functions to reference elements within the template or to retrieve runtime values.
13 **Below is a list of supported expressions**
21 The **get_input** function is used to retrieve the values of properties declared
22 within the inputs section of a TOSCA Service Template.
24 Within CDS, this is mainly Workflow inputs.
26 `TOSCA specification - get_input
27 <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454178>`_
31 `<https://github.com/onap/ccsdk-cds/blob/master/components/model-catalog/blueprint-model/test-blueprint/golden/Definitions/golden-blueprint.json#L210>`_
36 "get_input": "resolution-key"
43 The **get_property** function is used to retrieve property values between modelable
44 entities defined in the same service template.
47 <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454178>`_
53 "get_property": ["SELF", "property-name"]
55 .. tab:: get_attribute
59 The **get_attribute** function is used to retrieve the values of named attributes declared
60 by the referenced node or relationship template name.
62 `TOSCA specification - get_attribute
63 <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454178>`_
67 `<https://github.com/onap/ccsdk-cds/blob/master/components/model-catalog/blueprint-model/test-blueprint/golden/Definitions/golden-blueprint.json#L64-L67>`_
72 "resource-assignment",
76 .. tab:: get_operation_output
78 **get_operation_output**
80 The **get_operation_output** function is used to retrieve the values of variables
81 exposed / exported from an interface operation.
83 `TOSCA specification - get_operation_output
84 <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454180>`_
90 "get_operation_output": ["SELF", "interface-name", "operation-name", "output-property-name"]
96 The **get_artifact** function is used to retrieve artifact location between modelable
97 entities defined in the same service template.
99 `TOSCA specification - get_artifact
100 <http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/csd01/TOSCA-Simple-Profile-YAML-v1.2-csd01.html#_Toc494454182>`_
106 "get_artifact" : ["SELF", "artifact-template", "location", true]